create-plasmic-app 0.0.96 → 0.0.97
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/cpa-out/react-codegen-js/eslint.config.js +38 -0
- package/cpa-out/react-codegen-js/package.json +22 -32
- package/cpa-out/react-codegen-js/plasmic.json +16 -10
- package/cpa-out/react-codegen-js/src/App.jsx +1 -1
- package/cpa-out/react-codegen-js/src/components/Button.jsx +1 -3
- package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicButton.jsx +47 -96
- package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.jsx +35 -29
- package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.jsx +2 -14
- package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx +24 -24
- package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.jsx +44 -58
- package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Checksvg.jsx +2 -2
- package/cpa-out/react-codegen-js/src/main.jsx +10 -0
- package/cpa-out/react-codegen-js/vite.config.js +7 -0
- package/cpa-out/react-codegen-ts/eslint.config.js +28 -0
- package/cpa-out/react-codegen-ts/package.json +23 -37
- package/cpa-out/react-codegen-ts/plasmic.json +16 -10
- package/cpa-out/react-codegen-ts/src/App.tsx +1 -1
- package/cpa-out/react-codegen-ts/src/components/Button.tsx +4 -5
- package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicButton.tsx +84 -62
- package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx +73 -44
- package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.tsx +2 -14
- package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx +62 -38
- package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.tsx +83 -70
- package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Checksvg.tsx +3 -3
- package/cpa-out/react-codegen-ts/src/main.tsx +10 -0
- package/cpa-out/react-codegen-ts/src/vite-env.d.ts +1 -0
- package/cpa-out/react-codegen-ts/tsconfig.json +4 -23
- package/cpa-out/react-codegen-ts/vite.config.ts +7 -0
- package/dist/lib.js +1 -1
- package/dist/react/react.js +36 -11
- package/package.json +2 -2
- package/src/lib.ts +1 -1
- package/src/react/react.ts +47 -16
- package/cpa-out/react-codegen-js/src/index.js +0 -17
- package/cpa-out/react-codegen-js/src/reportWebVitals.js +0 -13
- package/cpa-out/react-codegen-js/src/setupTests.js +0 -5
- package/cpa-out/react-codegen-ts/src/index.tsx +0 -19
- package/cpa-out/react-codegen-ts/src/react-app-env.d.ts +0 -1
- package/cpa-out/react-codegen-ts/src/reportWebVitals.ts +0 -15
- package/cpa-out/react-codegen-ts/src/setupTests.ts +0 -5
- package/cpa-out/react-loader-js/package.json +0 -40
- package/cpa-out/react-loader-js/plasmic.json +0 -127
- package/cpa-out/react-loader-js/src/App.jsx +0 -9
- package/cpa-out/react-loader-js/src/components/Button.jsx +0 -13
- package/cpa-out/react-loader-js/src/components/DynamicPage.jsx +0 -26
- package/cpa-out/react-loader-js/src/components/Homepage.jsx +0 -26
- package/cpa-out/react-loader-js/src/components/RandomDynamicPageButton.jsx +0 -24
- package/cpa-out/react-loader-js/src/components/plasmic/create_plasmic_app/PlasmicButton.jsx +0 -625
- package/cpa-out/react-loader-js/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.jsx +0 -166
- package/cpa-out/react-loader-js/src/components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.jsx +0 -29
- package/cpa-out/react-loader-js/src/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx +0 -210
- package/cpa-out/react-loader-js/src/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.jsx +0 -161
- package/cpa-out/react-loader-js/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Checksvg.jsx +0 -39
- package/cpa-out/react-loader-js/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Icon.jsx +0 -37
- package/cpa-out/react-loader-js/src/index.js +0 -17
- package/cpa-out/react-loader-js/src/reportWebVitals.js +0 -13
- package/cpa-out/react-loader-js/src/setupTests.js +0 -5
- package/cpa-out/react-loader-ts/package.json +0 -45
- package/cpa-out/react-loader-ts/plasmic.json +0 -127
- package/cpa-out/react-loader-ts/src/App.tsx +0 -9
- package/cpa-out/react-loader-ts/src/components/Button.tsx +0 -36
- package/cpa-out/react-loader-ts/src/components/DynamicPage.tsx +0 -45
- package/cpa-out/react-loader-ts/src/components/Homepage.tsx +0 -45
- package/cpa-out/react-loader-ts/src/components/RandomDynamicPageButton.tsx +0 -44
- package/cpa-out/react-loader-ts/src/components/plasmic/create_plasmic_app/PlasmicButton.tsx +0 -725
- package/cpa-out/react-loader-ts/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx +0 -248
- package/cpa-out/react-loader-ts/src/components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.tsx +0 -31
- package/cpa-out/react-loader-ts/src/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx +0 -294
- package/cpa-out/react-loader-ts/src/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.tsx +0 -240
- package/cpa-out/react-loader-ts/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Checksvg.tsx +0 -44
- package/cpa-out/react-loader-ts/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Icon.tsx +0 -41
- package/cpa-out/react-loader-ts/src/index.tsx +0 -19
- package/cpa-out/react-loader-ts/src/react-app-env.d.ts +0 -1
- package/cpa-out/react-loader-ts/src/reportWebVitals.ts +0 -15
- package/cpa-out/react-loader-ts/src/setupTests.ts +0 -5
- package/cpa-out/react-loader-ts/tsconfig.json +0 -26
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import js from '@eslint/js'
|
|
2
|
+
import globals from 'globals'
|
|
3
|
+
import react from 'eslint-plugin-react'
|
|
4
|
+
import reactHooks from 'eslint-plugin-react-hooks'
|
|
5
|
+
import reactRefresh from 'eslint-plugin-react-refresh'
|
|
6
|
+
|
|
7
|
+
export default [
|
|
8
|
+
{ ignores: ['dist'] },
|
|
9
|
+
{
|
|
10
|
+
files: ['**/*.{js,jsx}'],
|
|
11
|
+
languageOptions: {
|
|
12
|
+
ecmaVersion: 2020,
|
|
13
|
+
globals: globals.browser,
|
|
14
|
+
parserOptions: {
|
|
15
|
+
ecmaVersion: 'latest',
|
|
16
|
+
ecmaFeatures: { jsx: true },
|
|
17
|
+
sourceType: 'module',
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
settings: { react: { version: '18.3' } },
|
|
21
|
+
plugins: {
|
|
22
|
+
react,
|
|
23
|
+
'react-hooks': reactHooks,
|
|
24
|
+
'react-refresh': reactRefresh,
|
|
25
|
+
},
|
|
26
|
+
rules: {
|
|
27
|
+
...js.configs.recommended.rules,
|
|
28
|
+
...react.configs.recommended.rules,
|
|
29
|
+
...react.configs['jsx-runtime'].rules,
|
|
30
|
+
...reactHooks.configs.recommended.rules,
|
|
31
|
+
'react/jsx-no-target-blank': 'off',
|
|
32
|
+
'react-refresh/only-export-components': [
|
|
33
|
+
'warn',
|
|
34
|
+
{ allowConstantExport: true },
|
|
35
|
+
],
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
]
|
|
@@ -1,40 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-codegen-js",
|
|
3
|
-
"version": "0.1.0",
|
|
4
3
|
"private": true,
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
"@plasmicapp/react-web": "^0.2.174",
|
|
8
|
-
"@testing-library/jest-dom": "^5.14.1",
|
|
9
|
-
"@testing-library/react": "^13.0.0",
|
|
10
|
-
"@testing-library/user-event": "^13.2.1",
|
|
11
|
-
"react": "^18.2.0",
|
|
12
|
-
"react-dom": "^18.2.0",
|
|
13
|
-
"react-scripts": "5.0.1",
|
|
14
|
-
"web-vitals": "^2.1.0"
|
|
15
|
-
},
|
|
4
|
+
"version": "0.0.0",
|
|
5
|
+
"type": "module",
|
|
16
6
|
"scripts": {
|
|
17
|
-
"
|
|
18
|
-
"build": "
|
|
19
|
-
"
|
|
20
|
-
"
|
|
7
|
+
"dev": "vite",
|
|
8
|
+
"build": "vite build",
|
|
9
|
+
"lint": "eslint .",
|
|
10
|
+
"preview": "vite preview"
|
|
21
11
|
},
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"@plasmicapp/cli": "^0.1.335",
|
|
14
|
+
"@plasmicapp/react-web": "^0.2.366",
|
|
15
|
+
"react": "^19.0.0",
|
|
16
|
+
"react-dom": "^19.0.0"
|
|
27
17
|
},
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"@eslint/js": "^9.19.0",
|
|
20
|
+
"@types/react": "^19.0.8",
|
|
21
|
+
"@types/react-dom": "^19.0.3",
|
|
22
|
+
"@vitejs/plugin-react": "^4.3.4",
|
|
23
|
+
"eslint": "^9.19.0",
|
|
24
|
+
"eslint-plugin-react": "^7.37.4",
|
|
25
|
+
"eslint-plugin-react-hooks": "^5.0.0",
|
|
26
|
+
"eslint-plugin-react-refresh": "^0.4.18",
|
|
27
|
+
"globals": "^15.14.0",
|
|
28
|
+
"vite": "^6.1.0"
|
|
39
29
|
}
|
|
40
30
|
}
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"defaultStyleCssFilePath": "plasmic/plasmic__default_style.css"
|
|
11
11
|
},
|
|
12
12
|
"images": {
|
|
13
|
-
"scheme": "
|
|
14
|
-
"publicDir": "
|
|
13
|
+
"scheme": "inlined",
|
|
14
|
+
"publicDir": "../public",
|
|
15
15
|
"publicUrlPrefix": "/static/"
|
|
16
16
|
},
|
|
17
17
|
"tokens": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"projectApiToken": "7BRFratDxPLMGZHnd2grV5QP6mlHcZ1AK3BJSIeh7xzUlHgWh25XpgXvUaKAqHXFMXQQuzpADqboibF6nqNWQ",
|
|
27
27
|
"projectName": "create-plasmic-app",
|
|
28
28
|
"version": "latest",
|
|
29
|
-
"cssFilePath": "plasmic/create_plasmic_app/
|
|
29
|
+
"cssFilePath": "plasmic/create_plasmic_app/plasmic.module.css",
|
|
30
30
|
"components": [
|
|
31
31
|
{
|
|
32
32
|
"id": "6uuAAE1jiCew",
|
|
@@ -39,7 +39,8 @@
|
|
|
39
39
|
},
|
|
40
40
|
"cssFilePath": "plasmic/create_plasmic_app/PlasmicHomepage.module.css",
|
|
41
41
|
"scheme": "blackbox",
|
|
42
|
-
"componentType": "page"
|
|
42
|
+
"componentType": "page",
|
|
43
|
+
"path": "/"
|
|
43
44
|
},
|
|
44
45
|
{
|
|
45
46
|
"id": "AO44A-w7hh",
|
|
@@ -52,7 +53,8 @@
|
|
|
52
53
|
},
|
|
53
54
|
"cssFilePath": "plasmic/create_plasmic_app/PlasmicDynamicPage.module.css",
|
|
54
55
|
"scheme": "blackbox",
|
|
55
|
-
"componentType": "page"
|
|
56
|
+
"componentType": "page",
|
|
57
|
+
"path": "/dynamic/[slug]"
|
|
56
58
|
},
|
|
57
59
|
{
|
|
58
60
|
"id": "TQcvW_pSKi3",
|
|
@@ -85,8 +87,8 @@
|
|
|
85
87
|
"icons": [
|
|
86
88
|
{
|
|
87
89
|
"id": "gj-_D7n31Ho",
|
|
88
|
-
"name": "
|
|
89
|
-
"moduleFilePath": "plasmic/create_plasmic_app/icons/
|
|
90
|
+
"name": "CheckSvgIcon",
|
|
91
|
+
"moduleFilePath": "plasmic/create_plasmic_app/icons/PlasmicIcon__CheckSvg.jsx"
|
|
90
92
|
},
|
|
91
93
|
{
|
|
92
94
|
"id": "6PNxx3YMyDQ",
|
|
@@ -97,18 +99,22 @@
|
|
|
97
99
|
"images": [],
|
|
98
100
|
"indirect": false,
|
|
99
101
|
"globalContextsFilePath": "",
|
|
102
|
+
"splitsProviderFilePath": "",
|
|
100
103
|
"codeComponents": [
|
|
101
104
|
{
|
|
102
105
|
"id": "P6aGdYWZ2R",
|
|
103
106
|
"name": "PlasmicHead",
|
|
107
|
+
"displayName": "hostless-plasmic-head",
|
|
104
108
|
"componentImportPath": "@plasmicapp/react-web"
|
|
105
109
|
},
|
|
106
110
|
{
|
|
107
111
|
"id": "8G2A-uTjGa",
|
|
108
112
|
"name": "Fetcher",
|
|
113
|
+
"displayName": "plasmic-data-source-fetcher",
|
|
109
114
|
"componentImportPath": "@plasmicapp/react-web/lib/data-sources"
|
|
110
115
|
}
|
|
111
|
-
]
|
|
116
|
+
],
|
|
117
|
+
"customFunctions": []
|
|
112
118
|
}
|
|
113
119
|
],
|
|
114
120
|
"globalVariants": {
|
|
@@ -122,6 +128,6 @@
|
|
|
122
128
|
]
|
|
123
129
|
},
|
|
124
130
|
"wrapPagesWithGlobalContexts": true,
|
|
125
|
-
"cliVersion": "0.1.
|
|
126
|
-
"$schema": "https://unpkg.com/@plasmicapp/cli@0.1.
|
|
131
|
+
"cliVersion": "0.1.335",
|
|
132
|
+
"$schema": "https://unpkg.com/@plasmicapp/cli@0.1.335/dist/plasmic.schema.json"
|
|
127
133
|
}
|