create-plasmic-app 0.0.96 → 0.0.98

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.
Files changed (78) hide show
  1. package/cpa-out/react-codegen-js/eslint.config.js +38 -0
  2. package/cpa-out/react-codegen-js/package.json +22 -32
  3. package/cpa-out/react-codegen-js/plasmic.json +16 -10
  4. package/cpa-out/react-codegen-js/src/App.jsx +1 -1
  5. package/cpa-out/react-codegen-js/src/components/Button.jsx +1 -3
  6. package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicButton.jsx +47 -96
  7. package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.jsx +35 -29
  8. package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.jsx +2 -14
  9. package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx +24 -24
  10. package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.jsx +44 -58
  11. package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Checksvg.jsx +2 -2
  12. package/cpa-out/react-codegen-js/src/main.jsx +10 -0
  13. package/cpa-out/react-codegen-js/vite.config.js +7 -0
  14. package/cpa-out/react-codegen-ts/eslint.config.js +28 -0
  15. package/cpa-out/react-codegen-ts/package.json +23 -37
  16. package/cpa-out/react-codegen-ts/plasmic.json +16 -10
  17. package/cpa-out/react-codegen-ts/src/App.tsx +1 -1
  18. package/cpa-out/react-codegen-ts/src/components/Button.tsx +4 -5
  19. package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicButton.tsx +84 -62
  20. package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx +73 -44
  21. package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.tsx +2 -14
  22. package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx +62 -38
  23. package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.tsx +83 -70
  24. package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Checksvg.tsx +3 -3
  25. package/cpa-out/react-codegen-ts/src/main.tsx +10 -0
  26. package/cpa-out/react-codegen-ts/src/vite-env.d.ts +1 -0
  27. package/cpa-out/react-codegen-ts/tsconfig.json +4 -23
  28. package/cpa-out/react-codegen-ts/vite.config.ts +7 -0
  29. package/dist/index.js +3 -3
  30. package/dist/lib.js +1 -1
  31. package/dist/react/react.js +36 -11
  32. package/package.json +2 -2
  33. package/src/index.ts +3 -3
  34. package/src/lib.ts +1 -1
  35. package/src/react/react.ts +47 -16
  36. package/cpa-out/react-codegen-js/src/index.js +0 -17
  37. package/cpa-out/react-codegen-js/src/reportWebVitals.js +0 -13
  38. package/cpa-out/react-codegen-js/src/setupTests.js +0 -5
  39. package/cpa-out/react-codegen-ts/src/index.tsx +0 -19
  40. package/cpa-out/react-codegen-ts/src/react-app-env.d.ts +0 -1
  41. package/cpa-out/react-codegen-ts/src/reportWebVitals.ts +0 -15
  42. package/cpa-out/react-codegen-ts/src/setupTests.ts +0 -5
  43. package/cpa-out/react-loader-js/package.json +0 -40
  44. package/cpa-out/react-loader-js/plasmic.json +0 -127
  45. package/cpa-out/react-loader-js/src/App.jsx +0 -9
  46. package/cpa-out/react-loader-js/src/components/Button.jsx +0 -13
  47. package/cpa-out/react-loader-js/src/components/DynamicPage.jsx +0 -26
  48. package/cpa-out/react-loader-js/src/components/Homepage.jsx +0 -26
  49. package/cpa-out/react-loader-js/src/components/RandomDynamicPageButton.jsx +0 -24
  50. package/cpa-out/react-loader-js/src/components/plasmic/create_plasmic_app/PlasmicButton.jsx +0 -625
  51. package/cpa-out/react-loader-js/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.jsx +0 -166
  52. package/cpa-out/react-loader-js/src/components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.jsx +0 -29
  53. package/cpa-out/react-loader-js/src/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx +0 -210
  54. package/cpa-out/react-loader-js/src/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.jsx +0 -161
  55. package/cpa-out/react-loader-js/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Checksvg.jsx +0 -39
  56. package/cpa-out/react-loader-js/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Icon.jsx +0 -37
  57. package/cpa-out/react-loader-js/src/index.js +0 -17
  58. package/cpa-out/react-loader-js/src/reportWebVitals.js +0 -13
  59. package/cpa-out/react-loader-js/src/setupTests.js +0 -5
  60. package/cpa-out/react-loader-ts/package.json +0 -45
  61. package/cpa-out/react-loader-ts/plasmic.json +0 -127
  62. package/cpa-out/react-loader-ts/src/App.tsx +0 -9
  63. package/cpa-out/react-loader-ts/src/components/Button.tsx +0 -36
  64. package/cpa-out/react-loader-ts/src/components/DynamicPage.tsx +0 -45
  65. package/cpa-out/react-loader-ts/src/components/Homepage.tsx +0 -45
  66. package/cpa-out/react-loader-ts/src/components/RandomDynamicPageButton.tsx +0 -44
  67. package/cpa-out/react-loader-ts/src/components/plasmic/create_plasmic_app/PlasmicButton.tsx +0 -725
  68. package/cpa-out/react-loader-ts/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx +0 -248
  69. package/cpa-out/react-loader-ts/src/components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.tsx +0 -31
  70. package/cpa-out/react-loader-ts/src/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx +0 -294
  71. package/cpa-out/react-loader-ts/src/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.tsx +0 -240
  72. package/cpa-out/react-loader-ts/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Checksvg.tsx +0 -44
  73. package/cpa-out/react-loader-ts/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Icon.tsx +0 -41
  74. package/cpa-out/react-loader-ts/src/index.tsx +0 -19
  75. package/cpa-out/react-loader-ts/src/react-app-env.d.ts +0 -1
  76. package/cpa-out/react-loader-ts/src/reportWebVitals.ts +0 -15
  77. package/cpa-out/react-loader-ts/src/setupTests.ts +0 -5
  78. 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
- "dependencies": {
6
- "@plasmicapp/cli": "^0.1.231",
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
- "start": "react-scripts start",
18
- "build": "react-scripts build",
19
- "test": "react-scripts test",
20
- "eject": "react-scripts eject"
7
+ "dev": "vite",
8
+ "build": "vite build",
9
+ "lint": "eslint .",
10
+ "preview": "vite preview"
21
11
  },
22
- "eslintConfig": {
23
- "extends": [
24
- "react-app",
25
- "react-app/jest"
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
- "browserslist": {
29
- "production": [
30
- ">0.2%",
31
- "not dead",
32
- "not op_mini all"
33
- ],
34
- "development": [
35
- "last 1 chrome version",
36
- "last 1 firefox version",
37
- "last 1 safari version"
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": "files",
14
- "publicDir": "../../public",
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/plasmic_create_plasmic_app.module.css",
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": "ChecksvgIcon",
89
- "moduleFilePath": "plasmic/create_plasmic_app/icons/PlasmicIcon__Checksvg.jsx"
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.231",
126
- "$schema": "https://unpkg.com/@plasmicapp/cli@0.1.231/dist/plasmic.schema.json"
131
+ "cliVersion": "0.1.335",
132
+ "$schema": "https://unpkg.com/@plasmicapp/cli@0.1.335/dist/plasmic.schema.json"
127
133
  }
@@ -1,9 +1,9 @@
1
1
 
2
2
  import Homepage from './components/Homepage';
3
3
 
4
+
4
5
  function App() {
5
6
  return (<Homepage />);
6
7
  }
7
8
 
8
9
  export default App;
9
-
@@ -8,6 +8,4 @@ function Button_(props, ref) {
8
8
 
9
9
  const Button = React.forwardRef(Button_);
10
10
 
11
- export default Object.assign(Button, {
12
- __plumeType: "button"
13
- });
11
+ export default Object.assign(Button, { __plumeType: "button" });