zh-web-sdk 2.9.0 → 2.10.4

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,13 @@
1
+ name: "Reusable NPM Build"
2
+
3
+ on:
4
+ pull_request:
5
+ branches: [ main, master ]
6
+
7
+ jobs:
8
+ from_reusable:
9
+ uses: seedcx/composite-actions/.github/workflows/rw-npm-build.yml@main
10
+ secrets: inherit
11
+ with:
12
+ NODE_VERSION: "16.13.0"
13
+ NPM_VERSION: "9"
@@ -10,4 +10,5 @@ jobs:
10
10
  secrets: inherit
11
11
  with:
12
12
  NODE_VERSION: "16.13.0"
13
- TEST_ENABLED: false
13
+ TEST_PLATFORM: 'npm'
14
+ TEST_REPORTER: 'jest-junit'
@@ -0,0 +1,13 @@
1
+ name: "Reusable NPM Publish"
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "*"
7
+
8
+ jobs:
9
+ from_reusable:
10
+ uses: seedcx/composite-actions/.github/workflows/rw-npm-publish-public.yml@main
11
+ secrets: inherit
12
+ with:
13
+ NODE_VERSION: "16.13.0"
@@ -2,54 +2,13 @@ name: 'Tag New Version'
2
2
 
3
3
  on:
4
4
  push:
5
- # Run the action only on pushes to the main branch
6
5
  branches:
7
6
  - main
8
-
9
- permissions:
10
- contents: write
7
+ workflow_dispatch:
11
8
 
12
9
  jobs:
13
- push-to-main:
14
- if: github.event.pusher.name != 'seedcx-deploy'
15
- env:
16
- NODE_VERSION: '16.13.0'
17
- BUMP: ${{ contains(github.event.head_commit.message, 'BREAKING CHANGE') && 'major' || contains(github.event.head_commit.message, 'feat') && 'minor' || 'patch' }}
18
- GITHUB_TOKEN: ${{ secrets.ORG_GH_TOKEN }}
19
- runs-on: ["builder","x64","linux","self-hosted"]
20
- steps:
21
- - uses: actions/checkout@v3
22
- with:
23
- token: ${{ secrets.GH_TAG_TOKEN }}
24
-
25
- - name: Import bot's GPG key for signing commits
26
- id: import-gpg
27
- uses: crazy-max/ghaction-import-gpg@v5
28
- with:
29
- gpg_private_key: ${{ secrets.SEEDCX_DEPLOY_GPG_PRIVATE_KEY }}
30
- passphrase: ${{ secrets.SEEDCX_DEPLOY_GPG_PASSPHRASE }}
31
- git_config_global: true
32
- git_user_signingkey: true
33
- git_commit_gpgsign: true
34
-
35
- - uses: actions/setup-node@v3
36
- with:
37
- node-version: ${{ env.NODE_VERSION }}
38
-
39
- # Set git config
40
- - uses: nodef/git-config.action@v1.0.0
41
- with:
42
- credentials: auto
43
- entries: |-
44
- user.name = seedcx-deploy
45
- user.email = 22893110+seedcx-deploy@users.noreply.github.com>
46
-
47
- - name: Update Version
48
- run: echo "VERSION=$(npm version ${{ env.BUMP }})" >> $GITHUB_OUTPUT
49
- id: version
50
-
51
- - name: Push version update
52
- run: git push
53
-
54
- - name: Push tag
55
- run: git push origin ${{ steps.version.outputs.VERSION }}
10
+ from_reusable:
11
+ uses: seedcx/composite-actions/.github/workflows/rw-npm-tag.yml@main
12
+ secrets: inherit
13
+ with:
14
+ NODE_VERSION: "16.13.0"
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ export declare const useWindowSize: () => {
2
+ height: number;
3
+ width: number;
4
+ };