1.4.2 • Published 22 days ago

@accelbyte/widgets-v2 v1.4.2

Weekly downloads
-
License
SEE LICENSE IN LI...
Repository
-
Last release
22 days ago

AccelByte Web Widgets V2

In addition to the Accelbyte Web SDK and Web Widgets, the library provides an extension called Web Widgets V2 allowing the creation of SDK UI components. AccelByte Web Widgets is a UI library consisting of a set of JavaScript React components that can be embedded inside a browser. These components have the same appearance and business functionality as the AccelByte Player Portal.

Note

The Web Widgets are currently undergoing Alpha testing. If you would like to participate in the Alpha test, we encourage you to reach out to your assigned DPM resource before making use of these solutions.

Installation

To npm install the Web Widgets execute

yarn add @accelbyte/widgets-v2

Testing

yarn --cwd packages/sdk test

Usage

Widgets V2 Usage Example

<SdkWidget
    sdkOptions={{
        baseURL: "<Publisher Base URL, e.g. https://demo.accelbyte.io>",
        clientId: "<Publisher Client ID>, e.g. 32_char_guid",
        redirectURI: "<Publisher Redirect URL, e.g. https://demo.accelbyte.io>",
        namespace: "<Publisher namespace>, e.g. 'accelbyte'"
    }}
    Link={WidgetLink}
    NavLink={WidgetLink}
    history={{
        // This is to support Next.js with a dynamic base path and make it similar to any other application.
        // We need to remove the base path from location.pathname and add the base path when navigating.
        location,
        push: to => router.push(to),
        replace: to => router.replace(to)
    }}
    onInitializeSDK={sdk => console.info('initialized', sdk)}
    routes={PlayerPortalRoutes}>
    <StoreWidget>
    {({ isSingleGame }) => {
        return <StoreSection isSingleGame={isSingleGame} />
    }}
    </StoreWidget>
</SdkWidget>

Payment Widgets V2 Sample Usage

<PaymentWidget 
    namespace={`<Publisher namespace>, e.g. 'accelbyte'`} 
    paymentOrderNo={`<Order Number got from Store Detail>`} 
    redirectPath={`<Redirect Path after successful transaction>`} 
/>

Widgets V2 Sample App

In addition, there is a Widget V2 Sample App for complete example widgets v2 usage.

1.4.2

22 days ago

1.4.0

1 month ago

1.3.2

4 months ago

1.3.1

4 months ago

1.2.0

5 months ago

1.1.0

6 months ago

1.0.51

6 months ago

1.0.19

9 months ago

1.0.18

10 months ago

1.0.17

10 months ago

1.0.22

9 months ago

1.0.21

9 months ago

1.0.25

8 months ago

1.0.29

8 months ago

1.0.27

9 months ago

1.0.32

8 months ago

1.0.31

8 months ago

1.0.35

8 months ago

1.0.39

8 months ago

1.0.40

8 months ago

1.0.41

7 months ago

1.0.48

7 months ago

1.0.47

7 months ago

1.0.46

7 months ago

1.0.45

7 months ago

1.0.50

7 months ago

1.0.13

10 months ago

1.0.12

10 months ago

1.0.0

11 months ago

0.2.24

11 months ago

0.2.23

11 months ago

0.2.22

11 months ago

0.2.21

11 months ago

0.2.20

11 months ago

0.2.19

11 months ago

0.2.35

11 months ago

0.2.33

11 months ago

0.2.32

11 months ago

0.2.29

11 months ago

0.2.28

11 months ago

0.2.0-beta.20

1 year ago

0.2.0-beta.21

1 year ago

0.2.17

11 months ago

0.2.16

11 months ago

0.2.15

12 months ago

0.2.14

12 months ago

0.2.13

12 months ago

0.2.12

12 months ago

0.2.10

12 months ago

0.2.1

1 year ago

0.2.9

12 months ago

0.2.0-beta.19

1 year ago

0.2.0-beta.13

1 year ago

0.2.0-beta.14

1 year ago

0.2.0-beta.16

1 year ago

0.2.0-beta.17

1 year ago

0.2.0-beta.18

1 year ago

0.2.0-beta.7

1 year ago

0.2.0-beta.5

1 year ago

0.2.0-beta.4

1 year ago

0.2.0-beta.3

1 year ago

0.2.0-beta.0

1 year ago