@ray-js/code-sandbox 0.0.2
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/README.md +121 -0
- package/lib/catch-error/index.d.ts +15 -0
- package/lib/catch-error/index.js +25 -0
- package/lib/codesandbox/index.d.ts +7 -0
- package/lib/codesandbox/index.js +50 -0
- package/lib/codesandbox/index.module.less +18 -0
- package/lib/decoder/index.d.ts +7 -0
- package/lib/decoder/index.js +17 -0
- package/lib/index.d.ts +6 -0
- package/lib/index.js +6 -0
- package/lib/listener/index.css +1 -0
- package/lib/listener/index.d.ts +10 -0
- package/lib/listener/index.js +5 -0
- package/lib/listener/index.json +4 -0
- package/lib/listener/index.sjs +8 -0
- package/lib/listener/index.tyml +6 -0
- package/lib/loading/index.d.ts +5 -0
- package/lib/loading/index.js +22 -0
- package/lib/loading/index.module.less +8 -0
- package/lib/txp/codesandbox/code-editor/index.d.ts +42 -0
- package/lib/txp/codesandbox/code-editor/index.js +152 -0
- package/lib/txp/codesandbox/index.d.ts +19 -0
- package/lib/txp/codesandbox/index.js +121 -0
- package/lib/txp/codesandbox/index.style.d.ts +7 -0
- package/lib/txp/codesandbox/index.style.js +28 -0
- package/lib/txp/codesandbox/postSandboxCode.d.ts +2 -0
- package/lib/txp/codesandbox/postSandboxCode.js +36 -0
- package/lib/txp/demo/index.d.ts +13 -0
- package/lib/txp/demo/index.js +54 -0
- package/lib/txp/demo/index.style.d.ts +2 -0
- package/lib/txp/demo/index.style.js +14 -0
- package/lib/txp/hooks/useAsync.d.ts +14 -0
- package/lib/txp/hooks/useAsync.js +37 -0
- package/lib/txp/hooks/useTestUrl.d.ts +1 -0
- package/lib/txp/hooks/useTestUrl.js +12 -0
- package/lib/txp/index.d.ts +3 -0
- package/lib/txp/index.js +3 -0
- package/lib/txp/sandbox/index.d.ts +7 -0
- package/lib/txp/sandbox/index.js +32 -0
- package/lib/txp/sandbox/index.style.d.ts +17 -0
- package/lib/txp/sandbox/index.style.js +20 -0
- package/lib/txp/services/index.d.ts +4 -0
- package/lib/txp/services/index.js +12 -0
- package/lib/txp/services/interface.d.ts +9 -0
- package/lib/txp/services/interface.js +1 -0
- package/lib/txp/utils/theme-vars.d.ts +1032 -0
- package/lib/txp/utils/theme-vars.js +1032 -0
- package/package.json +77 -0
package/package.json
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ray-js/code-sandbox",
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"description": "小程序 CodeSandbox 容器",
|
|
5
|
+
"main": "lib/index",
|
|
6
|
+
"files": [
|
|
7
|
+
"lib"
|
|
8
|
+
],
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"types": "lib/index.d.ts",
|
|
11
|
+
"maintainers": [
|
|
12
|
+
"tuya_npm",
|
|
13
|
+
{
|
|
14
|
+
"name": "tuyafe",
|
|
15
|
+
"email": "tuyafe@tuya.com"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"scripts": {
|
|
19
|
+
"lint": "eslint src --ext .js,.jsx,.ts,.tsx --fix",
|
|
20
|
+
"build": "patch-package && ray build --type=component",
|
|
21
|
+
"watch": "ray start --type=component --output ./example/src/lib",
|
|
22
|
+
"build:tuya": "ray build ./example",
|
|
23
|
+
"build:wechat": "ray build ./example --target=wechat",
|
|
24
|
+
"build:web": "ray build ./example --target=web",
|
|
25
|
+
"build:native": "ray build ./example --target=native",
|
|
26
|
+
"start:native": "ray start ./example -t native --verbose",
|
|
27
|
+
"start:tuya": "ray start ./example",
|
|
28
|
+
"start:wechat": "ray start ./example -t wechat --verbose",
|
|
29
|
+
"start:web": "ray start ./example -t web",
|
|
30
|
+
"prepublishOnly": "yarn build",
|
|
31
|
+
"release-it": "standard-version"
|
|
32
|
+
},
|
|
33
|
+
"peerDependencies": {
|
|
34
|
+
"@ray-js/ray": "^1.4.9"
|
|
35
|
+
},
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"clsx": "^1.2.1"
|
|
38
|
+
},
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"@commitlint/cli": "^7.2.1",
|
|
41
|
+
"@commitlint/config-conventional": "^9.0.1",
|
|
42
|
+
"@ray-js/cli": "^1.4.9",
|
|
43
|
+
"@ray-js/ray": "^1.4.9",
|
|
44
|
+
"@ray-js/smart-ui": "^1.2.0",
|
|
45
|
+
"@saber2pr/monaco": "^0.0.90",
|
|
46
|
+
"@tuya-miniapp/smart-ui": "^1.2.0",
|
|
47
|
+
"antd": "^5.20.2",
|
|
48
|
+
"axios": "^1.7.4",
|
|
49
|
+
"core-js": "^3.19.1",
|
|
50
|
+
"eslint-config-tuya-panel": "^0.4.2",
|
|
51
|
+
"husky": "^1.2.0",
|
|
52
|
+
"lint-staged": "^10.2.11",
|
|
53
|
+
"lodash": "^4.17.21",
|
|
54
|
+
"patch-package": "^8.0.0",
|
|
55
|
+
"standard-version": "9.3.2",
|
|
56
|
+
"styled-components": "^6.1.12"
|
|
57
|
+
},
|
|
58
|
+
"resolutions": {
|
|
59
|
+
"@ray-js/builder-mp": "1.4.15"
|
|
60
|
+
},
|
|
61
|
+
"husky": {
|
|
62
|
+
"hooks": {
|
|
63
|
+
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS --config commitlint.config.js",
|
|
64
|
+
"pre-commit": "lint-staged"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"lint-staged": {
|
|
68
|
+
"*.{ts,tsx,js,jsx}": [
|
|
69
|
+
"eslint --fix",
|
|
70
|
+
"git add"
|
|
71
|
+
],
|
|
72
|
+
"*.{json,md,yml,yaml}": [
|
|
73
|
+
"prettier --write",
|
|
74
|
+
"git add"
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
}
|