zh-web-sdk 2.13.1 → 2.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,14 @@
1
+ name: "Reusable NPM Publish tag"
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "v*"
7
+ workflow_dispatch:
8
+
9
+ jobs:
10
+ from_reusable:
11
+ uses: seedcx/composite-actions/.github/workflows/rw-npm-publish-public-oidc.yml@main
12
+ secrets: inherit
13
+ with:
14
+ NODE_VERSION: "22.21.1"
@@ -9,5 +9,5 @@ jobs:
9
9
  uses: seedcx/composite-actions/.github/workflows/rw-npm-build.yml@main
10
10
  secrets: inherit
11
11
  with:
12
- NODE_VERSION: "16.13.0"
12
+ NODE_VERSION: "22.22.0"
13
13
  NPM_VERSION: "9"
@@ -9,6 +9,6 @@ jobs:
9
9
  uses: seedcx/composite-actions/.github/workflows/rw-node-pull-request.yml@main
10
10
  secrets: inherit
11
11
  with:
12
- NODE_VERSION: "16.13.0"
12
+ NODE_VERSION: "22.22.0"
13
13
  TEST_PLATFORM: 'npm'
14
14
  TEST_REPORTER: 'jest-junit'
@@ -10,4 +10,4 @@ jobs:
10
10
  uses: seedcx/composite-actions/.github/workflows/rw-npm-publish-public.yml@main
11
11
  secrets: inherit
12
12
  with:
13
- NODE_VERSION: "16.13.0"
13
+ NODE_VERSION: "22.22.0"
@@ -11,4 +11,4 @@ jobs:
11
11
  uses: seedcx/composite-actions/.github/workflows/rw-npm-tag.yml@main
12
12
  secrets: inherit
13
13
  with:
14
- NODE_VERSION: "16.13.0"
14
+ NODE_VERSION: "22.22.0"
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ export interface JWTPayload {
2
+ auth_embedded?: boolean;
3
+ reference_id?: string;
4
+ [key: string]: unknown;
5
+ }
6
+ export declare function decodeJWT(token: string): JWTPayload | null;
@@ -1,4 +1,4 @@
1
- import { AppIdentifier, Filters, Page } from "../types";
1
+ import { AppIdentifier, AuthSettings, Filters, Page } from "../types";
2
2
  interface AppContainerProps {
3
3
  isAppActive?: boolean;
4
4
  isAppLoaded?: boolean;
@@ -7,8 +7,10 @@ interface AppContainerProps {
7
7
  appIdentifier: AppIdentifier;
8
8
  filters?: Filters;
9
9
  navigate?: Page;
10
+ useAuth?: boolean;
11
+ authSettings?: AuthSettings;
10
12
  }
11
- declare const _default: import("react-redux").ConnectedComponent<({ isAppActive, isAppLoaded, jwt, zeroHashAppURL, appIdentifier, navigate, }: AppContainerProps) => import("react/jsx-runtime").JSX.Element, {
13
+ declare const _default: import("react-redux").ConnectedComponent<({ isAppActive, isAppLoaded, jwt, zeroHashAppURL, appIdentifier, navigate, useAuth, authSettings, }: AppContainerProps) => import("react/jsx-runtime").JSX.Element, {
12
14
  zeroHashAppURL: string;
13
15
  appIdentifier: AppIdentifier;
14
16
  isAppActive?: boolean | undefined;
@@ -16,6 +18,8 @@ declare const _default: import("react-redux").ConnectedComponent<({ isAppActive,
16
18
  jwt?: string | undefined;
17
19
  filters?: Filters | undefined;
18
20
  navigate?: Page | undefined;
21
+ useAuth?: boolean | undefined;
22
+ authSettings?: AuthSettings | undefined;
19
23
  context?: import("react-redux/es/components/Context").ReactReduxContextInstance | undefined;
20
24
  store?: import("redux").Store | undefined;
21
25
  }>;