react-native-seel-widget 0.1.1 → 0.1.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.
- package/package.json +131 -7
- package/.editorconfig +0 -15
- package/.gitattributes +0 -3
- package/.github/ISSUE_TEMPLATE/bug_report.yml +0 -67
- package/.github/ISSUE_TEMPLATE/config.yml +0 -8
- package/.github/actions/setup/action.yml +0 -36
- package/.github/workflows/ci.yml +0 -72
- package/.nvmrc +0 -1
- package/.watchmanconfig +0 -1
- package/.yarn/releases/yarn-4.11.0.cjs +0 -942
- package/.yarnrc.yml +0 -4
- package/CODE_OF_CONDUCT.md +0 -133
- package/CONTRIBUTING.md +0 -134
- package/babel.config.js +0 -12
- package/eslint.config.mjs +0 -29
- package/example/app.json +0 -31
- package/example/assets/adaptive-icon.png +0 -0
- package/example/assets/favicon.png +0 -0
- package/example/assets/icon.png +0 -0
- package/example/assets/splash-icon.png +0 -0
- package/example/babel.config.js +0 -16
- package/example/index.js +0 -8
- package/example/metro.config.js +0 -20
- package/example/package.json +0 -25
- package/example/src/App.tsx +0 -20
- package/example/tsconfig.json +0 -6
- package/lefthook.yml +0 -16
- package/src/__tests__/index.test.tsx +0 -1
- package/tsconfig.build.json +0 -4
- package/tsconfig.json +0 -30
package/package.json
CHANGED
|
@@ -1,21 +1,145 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-seel-widget",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "React-Native SeelWidget",
|
|
5
|
-
"
|
|
6
|
-
"
|
|
5
|
+
"exports": {
|
|
6
|
+
".": {
|
|
7
|
+
"source": "./src/index.tsx",
|
|
8
|
+
"types": "./lib/typescript/src/index.d.ts",
|
|
9
|
+
"default": "./lib/module/index.js"
|
|
10
|
+
},
|
|
11
|
+
"./package.json": "./package.json"
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"src",
|
|
15
|
+
"lib",
|
|
16
|
+
"android",
|
|
17
|
+
"ios",
|
|
18
|
+
"cpp",
|
|
19
|
+
"*.podspec",
|
|
20
|
+
"react-native.config.js",
|
|
21
|
+
"!ios/build",
|
|
22
|
+
"!android/build",
|
|
23
|
+
"!android/gradle",
|
|
24
|
+
"!android/gradlew",
|
|
25
|
+
"!android/gradlew.bat",
|
|
26
|
+
"!android/local.properties",
|
|
27
|
+
"!**/__tests__",
|
|
28
|
+
"!**/__fixtures__",
|
|
29
|
+
"!**/__mocks__",
|
|
30
|
+
"!**/.*"
|
|
7
31
|
],
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
"
|
|
32
|
+
"scripts": {
|
|
33
|
+
"example": "yarn workspace react-native-seel-widget-example",
|
|
34
|
+
"clean": "del-cli lib",
|
|
35
|
+
"prepare": "bob build",
|
|
36
|
+
"typecheck": "tsc",
|
|
37
|
+
"lint": "eslint \"**/*.{js,ts,tsx}\"",
|
|
38
|
+
"test": "jest",
|
|
39
|
+
"release": "release-it --only-version"
|
|
11
40
|
},
|
|
41
|
+
"keywords": [
|
|
42
|
+
"react-native",
|
|
43
|
+
"ios",
|
|
44
|
+
"android"
|
|
45
|
+
],
|
|
12
46
|
"repository": {
|
|
13
47
|
"type": "git",
|
|
14
48
|
"url": "git+https://github.com/seelinc/react-native-seel-widget.git"
|
|
15
49
|
},
|
|
50
|
+
"homepage": "https://github.com/seelinc/react-native-seel-widget",
|
|
51
|
+
"bugs": {
|
|
52
|
+
"url": "https://github.com/seelinc/react-native-seel-widget/issues"
|
|
53
|
+
},
|
|
16
54
|
"license": "ISC",
|
|
55
|
+
"publishConfig": {
|
|
56
|
+
"registry": "https://registry.npmjs.org/"
|
|
57
|
+
},
|
|
58
|
+
"devDependencies": {
|
|
59
|
+
"@commitlint/config-conventional": "^19.8.1",
|
|
60
|
+
"@eslint/compat": "^1.3.2",
|
|
61
|
+
"@eslint/eslintrc": "^3.3.1",
|
|
62
|
+
"@eslint/js": "^9.35.0",
|
|
63
|
+
"@react-native/babel-preset": "0.83.0",
|
|
64
|
+
"@react-native/eslint-config": "0.83.0",
|
|
65
|
+
"@release-it/conventional-changelog": "^10.0.1",
|
|
66
|
+
"@types/jest": "^29.5.14",
|
|
67
|
+
"@types/react": "^19.1.12",
|
|
68
|
+
"commitlint": "^19.8.1",
|
|
69
|
+
"del-cli": "^6.0.0",
|
|
70
|
+
"eslint": "^9.35.0",
|
|
71
|
+
"eslint-config-prettier": "^10.1.8",
|
|
72
|
+
"eslint-plugin-prettier": "^5.5.4",
|
|
73
|
+
"jest": "^29.7.0",
|
|
74
|
+
"lefthook": "^2.0.3",
|
|
75
|
+
"prettier": "^2.8.8",
|
|
76
|
+
"react": "19.1.0",
|
|
77
|
+
"react-native": "0.81.5",
|
|
78
|
+
"react-native-builder-bob": "^0.40.17",
|
|
79
|
+
"release-it": "^19.0.4",
|
|
80
|
+
"typescript": "^5.9.2"
|
|
81
|
+
},
|
|
82
|
+
"peerDependencies": {
|
|
83
|
+
"react": "*",
|
|
84
|
+
"react-native": "*"
|
|
85
|
+
},
|
|
86
|
+
"workspaces": [
|
|
87
|
+
"example"
|
|
88
|
+
],
|
|
89
|
+
"packageManager": "yarn@4.11.0",
|
|
90
|
+
"prettier": {
|
|
91
|
+
"quoteProps": "consistent",
|
|
92
|
+
"singleQuote": true,
|
|
93
|
+
"tabWidth": 2,
|
|
94
|
+
"trailingComma": "es5",
|
|
95
|
+
"useTabs": false
|
|
96
|
+
},
|
|
97
|
+
"jest": {
|
|
98
|
+
"preset": "react-native",
|
|
99
|
+
"modulePathIgnorePatterns": [
|
|
100
|
+
"<rootDir>/example/node_modules",
|
|
101
|
+
"<rootDir>/lib/"
|
|
102
|
+
]
|
|
103
|
+
},
|
|
104
|
+
"commitlint": {
|
|
105
|
+
"extends": [
|
|
106
|
+
"@commitlint/config-conventional"
|
|
107
|
+
]
|
|
108
|
+
},
|
|
109
|
+
"release-it": {
|
|
110
|
+
"git": {
|
|
111
|
+
"commitMessage": "chore: release ${version}",
|
|
112
|
+
"tagName": "v${version}"
|
|
113
|
+
},
|
|
114
|
+
"npm": {
|
|
115
|
+
"publish": true
|
|
116
|
+
},
|
|
117
|
+
"github": {
|
|
118
|
+
"release": true
|
|
119
|
+
},
|
|
120
|
+
"plugins": {
|
|
121
|
+
"@release-it/conventional-changelog": {
|
|
122
|
+
"preset": {
|
|
123
|
+
"name": "angular"
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"create-react-native-library": {
|
|
129
|
+
"type": "library",
|
|
130
|
+
"languages": "js",
|
|
131
|
+
"tools": [
|
|
132
|
+
"eslint",
|
|
133
|
+
"jest",
|
|
134
|
+
"lefthook",
|
|
135
|
+
"release-it"
|
|
136
|
+
],
|
|
137
|
+
"version": "0.56.0"
|
|
138
|
+
},
|
|
139
|
+
"dependencies": {
|
|
140
|
+
"@react-native-async-storage/async-storage": "^2.2.0"
|
|
141
|
+
},
|
|
17
142
|
"author": "qingming.zhang",
|
|
18
|
-
"type": "commonjs",
|
|
19
143
|
"main": "./src/index.tsx",
|
|
20
144
|
"directories": {
|
|
21
145
|
"example": "example"
|
package/.editorconfig
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# EditorConfig helps developers define and maintain consistent
|
|
2
|
-
# coding styles between different editors and IDEs
|
|
3
|
-
# editorconfig.org
|
|
4
|
-
|
|
5
|
-
root = true
|
|
6
|
-
|
|
7
|
-
[*]
|
|
8
|
-
|
|
9
|
-
indent_style = space
|
|
10
|
-
indent_size = 2
|
|
11
|
-
|
|
12
|
-
end_of_line = lf
|
|
13
|
-
charset = utf-8
|
|
14
|
-
trim_trailing_whitespace = true
|
|
15
|
-
insert_final_newline = true
|
package/.gitattributes
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
name: 🐛 Bug report
|
|
2
|
-
description: Report a reproducible bug or regression in this library.
|
|
3
|
-
labels: [bug]
|
|
4
|
-
body:
|
|
5
|
-
- type: markdown
|
|
6
|
-
attributes:
|
|
7
|
-
value: |
|
|
8
|
-
# Bug report
|
|
9
|
-
|
|
10
|
-
👋 Hi!
|
|
11
|
-
|
|
12
|
-
**Please fill the following carefully before opening a new issue ❗**
|
|
13
|
-
*(Your issue may be closed if it doesn't provide the required pieces of information)*
|
|
14
|
-
- type: checkboxes
|
|
15
|
-
attributes:
|
|
16
|
-
label: Before submitting a new issue
|
|
17
|
-
description: Please perform simple checks first.
|
|
18
|
-
options:
|
|
19
|
-
- label: I tested using the latest version of the library, as the bug might be already fixed.
|
|
20
|
-
required: true
|
|
21
|
-
- label: I tested using a [supported version](https://github.com/reactwg/react-native-releases/blob/main/docs/support.md) of react native.
|
|
22
|
-
required: true
|
|
23
|
-
- label: I checked for possible duplicate issues, with possible answers.
|
|
24
|
-
required: true
|
|
25
|
-
- type: textarea
|
|
26
|
-
id: summary
|
|
27
|
-
attributes:
|
|
28
|
-
label: Bug summary
|
|
29
|
-
description: |
|
|
30
|
-
Provide a clear and concise description of what the bug is.
|
|
31
|
-
If needed, you can also provide other samples: error messages / stack traces, screenshots, gifs, etc.
|
|
32
|
-
validations:
|
|
33
|
-
required: true
|
|
34
|
-
- type: input
|
|
35
|
-
id: library-version
|
|
36
|
-
attributes:
|
|
37
|
-
label: Library version
|
|
38
|
-
description: What version of the library are you using?
|
|
39
|
-
placeholder: "x.x.x"
|
|
40
|
-
validations:
|
|
41
|
-
required: true
|
|
42
|
-
- type: textarea
|
|
43
|
-
id: react-native-info
|
|
44
|
-
attributes:
|
|
45
|
-
label: Environment info
|
|
46
|
-
description: Run `react-native info` in your terminal and paste the results here.
|
|
47
|
-
render: shell
|
|
48
|
-
validations:
|
|
49
|
-
required: true
|
|
50
|
-
- type: textarea
|
|
51
|
-
id: steps-to-reproduce
|
|
52
|
-
attributes:
|
|
53
|
-
label: Steps to reproduce
|
|
54
|
-
description: |
|
|
55
|
-
You must provide a clear list of steps and code to reproduce the problem.
|
|
56
|
-
value: |
|
|
57
|
-
1. …
|
|
58
|
-
2. …
|
|
59
|
-
validations:
|
|
60
|
-
required: true
|
|
61
|
-
- type: input
|
|
62
|
-
id: reproducible-example
|
|
63
|
-
attributes:
|
|
64
|
-
label: Reproducible example repository
|
|
65
|
-
description: Please provide a link to a repository on GitHub with a reproducible example.
|
|
66
|
-
validations:
|
|
67
|
-
required: true
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
blank_issues_enabled: false
|
|
2
|
-
contact_links:
|
|
3
|
-
- name: Feature Request 💡
|
|
4
|
-
url: https://github.com/seelinc/react-native-seel-widget/discussions/new?category=ideas
|
|
5
|
-
about: If you have a feature request, please create a new discussion on GitHub.
|
|
6
|
-
- name: Discussions on GitHub 💬
|
|
7
|
-
url: https://github.com/seelinc/react-native-seel-widget/discussions
|
|
8
|
-
about: If this library works as promised but you need help, please ask questions there.
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
name: Setup
|
|
2
|
-
description: Setup Node.js and install dependencies
|
|
3
|
-
|
|
4
|
-
runs:
|
|
5
|
-
using: composite
|
|
6
|
-
steps:
|
|
7
|
-
- name: Setup Node.js
|
|
8
|
-
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
|
|
9
|
-
with:
|
|
10
|
-
node-version-file: .nvmrc
|
|
11
|
-
|
|
12
|
-
- name: Restore dependencies
|
|
13
|
-
id: yarn-cache
|
|
14
|
-
uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
|
|
15
|
-
with:
|
|
16
|
-
path: |
|
|
17
|
-
**/node_modules
|
|
18
|
-
.yarn/install-state.gz
|
|
19
|
-
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}-${{ hashFiles('**/package.json', '!node_modules/**') }}
|
|
20
|
-
restore-keys: |
|
|
21
|
-
${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
|
|
22
|
-
${{ runner.os }}-yarn-
|
|
23
|
-
|
|
24
|
-
- name: Install dependencies
|
|
25
|
-
if: steps.yarn-cache.outputs.cache-hit != 'true'
|
|
26
|
-
run: yarn install --immutable
|
|
27
|
-
shell: bash
|
|
28
|
-
|
|
29
|
-
- name: Cache dependencies
|
|
30
|
-
if: steps.yarn-cache.outputs.cache-hit != 'true'
|
|
31
|
-
uses: actions/cache/save@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
|
|
32
|
-
with:
|
|
33
|
-
path: |
|
|
34
|
-
**/node_modules
|
|
35
|
-
.yarn/install-state.gz
|
|
36
|
-
key: ${{ steps.yarn-cache.outputs.cache-primary-key }}
|
package/.github/workflows/ci.yml
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
name: CI
|
|
2
|
-
on:
|
|
3
|
-
push:
|
|
4
|
-
branches:
|
|
5
|
-
- main
|
|
6
|
-
pull_request:
|
|
7
|
-
branches:
|
|
8
|
-
- main
|
|
9
|
-
merge_group:
|
|
10
|
-
types:
|
|
11
|
-
- checks_requested
|
|
12
|
-
|
|
13
|
-
concurrency:
|
|
14
|
-
group: ${{ github.workflow }}-${{ github.ref }}
|
|
15
|
-
cancel-in-progress: true
|
|
16
|
-
|
|
17
|
-
jobs:
|
|
18
|
-
lint:
|
|
19
|
-
runs-on: ubuntu-latest
|
|
20
|
-
|
|
21
|
-
steps:
|
|
22
|
-
- name: Checkout
|
|
23
|
-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
24
|
-
|
|
25
|
-
- name: Setup
|
|
26
|
-
uses: ./.github/actions/setup
|
|
27
|
-
|
|
28
|
-
- name: Lint files
|
|
29
|
-
run: yarn lint
|
|
30
|
-
|
|
31
|
-
- name: Typecheck files
|
|
32
|
-
run: yarn typecheck
|
|
33
|
-
|
|
34
|
-
test:
|
|
35
|
-
runs-on: ubuntu-latest
|
|
36
|
-
|
|
37
|
-
steps:
|
|
38
|
-
- name: Checkout
|
|
39
|
-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
40
|
-
|
|
41
|
-
- name: Setup
|
|
42
|
-
uses: ./.github/actions/setup
|
|
43
|
-
|
|
44
|
-
- name: Run unit tests
|
|
45
|
-
run: yarn test --maxWorkers=2 --coverage
|
|
46
|
-
|
|
47
|
-
build-library:
|
|
48
|
-
runs-on: ubuntu-latest
|
|
49
|
-
|
|
50
|
-
steps:
|
|
51
|
-
- name: Checkout
|
|
52
|
-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
53
|
-
|
|
54
|
-
- name: Setup
|
|
55
|
-
uses: ./.github/actions/setup
|
|
56
|
-
|
|
57
|
-
- name: Build package
|
|
58
|
-
run: yarn prepare
|
|
59
|
-
|
|
60
|
-
build-web:
|
|
61
|
-
runs-on: ubuntu-latest
|
|
62
|
-
|
|
63
|
-
steps:
|
|
64
|
-
- name: Checkout
|
|
65
|
-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
66
|
-
|
|
67
|
-
- name: Setup
|
|
68
|
-
uses: ./.github/actions/setup
|
|
69
|
-
|
|
70
|
-
- name: Build example for Web
|
|
71
|
-
run: |
|
|
72
|
-
yarn example expo export --platform web
|
package/.nvmrc
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
v22.20.0
|
package/.watchmanconfig
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{}
|