create-plasmic-app 0.0.105 → 0.0.106
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 +9 -13
- package/cpa-out/react-codegen-js/package.json +12 -12
- package/cpa-out/react-codegen-js/plasmic.json +2 -2
- package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.jsx +8 -0
- package/cpa-out/react-codegen-ts/eslint.config.js +10 -15
- package/cpa-out/react-codegen-ts/package.json +14 -14
- package/cpa-out/react-codegen-ts/plasmic.json +2 -2
- package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.tsx +9 -0
- package/package.json +2 -2
|
@@ -2,11 +2,17 @@ import js from '@eslint/js'
|
|
|
2
2
|
import globals from 'globals'
|
|
3
3
|
import reactHooks from 'eslint-plugin-react-hooks'
|
|
4
4
|
import reactRefresh from 'eslint-plugin-react-refresh'
|
|
5
|
+
import { defineConfig, globalIgnores } from 'eslint/config'
|
|
5
6
|
|
|
6
|
-
export default [
|
|
7
|
-
|
|
7
|
+
export default defineConfig([
|
|
8
|
+
globalIgnores(['dist']),
|
|
8
9
|
{
|
|
9
10
|
files: ['**/*.{js,jsx}'],
|
|
11
|
+
extends: [
|
|
12
|
+
js.configs.recommended,
|
|
13
|
+
reactHooks.configs['recommended-latest'],
|
|
14
|
+
reactRefresh.configs.vite,
|
|
15
|
+
],
|
|
10
16
|
languageOptions: {
|
|
11
17
|
ecmaVersion: 2020,
|
|
12
18
|
globals: globals.browser,
|
|
@@ -16,18 +22,8 @@ export default [
|
|
|
16
22
|
sourceType: 'module',
|
|
17
23
|
},
|
|
18
24
|
},
|
|
19
|
-
plugins: {
|
|
20
|
-
'react-hooks': reactHooks,
|
|
21
|
-
'react-refresh': reactRefresh,
|
|
22
|
-
},
|
|
23
25
|
rules: {
|
|
24
|
-
...js.configs.recommended.rules,
|
|
25
|
-
...reactHooks.configs.recommended.rules,
|
|
26
26
|
'no-unused-vars': ['error', { varsIgnorePattern: '^[A-Z_]' }],
|
|
27
|
-
'react-refresh/only-export-components': [
|
|
28
|
-
'warn',
|
|
29
|
-
{ allowConstantExport: true },
|
|
30
|
-
],
|
|
31
27
|
},
|
|
32
28
|
},
|
|
33
|
-
]
|
|
29
|
+
])
|
|
@@ -10,20 +10,20 @@
|
|
|
10
10
|
"preview": "vite preview"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@plasmicapp/cli": "^0.1.
|
|
14
|
-
"@plasmicapp/react-web": "^0.2.
|
|
15
|
-
"react": "^19.
|
|
16
|
-
"react-dom": "^19.
|
|
13
|
+
"@plasmicapp/cli": "^0.1.338",
|
|
14
|
+
"@plasmicapp/react-web": "^0.2.393",
|
|
15
|
+
"react": "^19.1.0",
|
|
16
|
+
"react-dom": "^19.1.0"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@eslint/js": "^9.
|
|
20
|
-
"@types/react": "^19.
|
|
21
|
-
"@types/react-dom": "^19.
|
|
22
|
-
"@vitejs/plugin-react": "^4.
|
|
23
|
-
"eslint": "^9.
|
|
19
|
+
"@eslint/js": "^9.29.0",
|
|
20
|
+
"@types/react": "^19.1.8",
|
|
21
|
+
"@types/react-dom": "^19.1.6",
|
|
22
|
+
"@vitejs/plugin-react": "^4.5.2",
|
|
23
|
+
"eslint": "^9.29.0",
|
|
24
24
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
25
|
-
"eslint-plugin-react-refresh": "^0.4.
|
|
26
|
-
"globals": "^16.
|
|
27
|
-
"vite": "^
|
|
25
|
+
"eslint-plugin-react-refresh": "^0.4.20",
|
|
26
|
+
"globals": "^16.2.0",
|
|
27
|
+
"vite": "^7.0.0"
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -128,6 +128,6 @@
|
|
|
128
128
|
]
|
|
129
129
|
},
|
|
130
130
|
"wrapPagesWithGlobalContexts": true,
|
|
131
|
-
"cliVersion": "0.1.
|
|
132
|
-
"$schema": "https://unpkg.com/@plasmicapp/cli@0.1.
|
|
131
|
+
"cliVersion": "0.1.338",
|
|
132
|
+
"$schema": "https://unpkg.com/@plasmicapp/cli@0.1.338/dist/plasmic.schema.json"
|
|
133
133
|
}
|
|
@@ -9,6 +9,14 @@ export const ScreenContext = React.createContext(
|
|
|
9
9
|
"PLEASE_RENDER_INSIDE_PROVIDER"
|
|
10
10
|
);
|
|
11
11
|
|
|
12
|
+
export function ScreenContextProvider(props) {
|
|
13
|
+
return (
|
|
14
|
+
<ScreenContext.Provider value={props.value}>
|
|
15
|
+
{props.children}
|
|
16
|
+
</ScreenContext.Provider>
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
|
|
12
20
|
export const useScreenVariants = createUseScreenVariants(true, {
|
|
13
21
|
desktopOnly: "(min-width:768px)",
|
|
14
22
|
});
|
|
@@ -3,26 +3,21 @@ import globals from 'globals'
|
|
|
3
3
|
import reactHooks from 'eslint-plugin-react-hooks'
|
|
4
4
|
import reactRefresh from 'eslint-plugin-react-refresh'
|
|
5
5
|
import tseslint from 'typescript-eslint'
|
|
6
|
+
import { globalIgnores } from 'eslint/config'
|
|
6
7
|
|
|
7
|
-
export default tseslint.config(
|
|
8
|
-
|
|
8
|
+
export default tseslint.config([
|
|
9
|
+
globalIgnores(['dist']),
|
|
9
10
|
{
|
|
10
|
-
extends: [js.configs.recommended, ...tseslint.configs.recommended],
|
|
11
11
|
files: ['**/*.{ts,tsx}'],
|
|
12
|
+
extends: [
|
|
13
|
+
js.configs.recommended,
|
|
14
|
+
tseslint.configs.recommended,
|
|
15
|
+
reactHooks.configs['recommended-latest'],
|
|
16
|
+
reactRefresh.configs.vite,
|
|
17
|
+
],
|
|
12
18
|
languageOptions: {
|
|
13
19
|
ecmaVersion: 2020,
|
|
14
20
|
globals: globals.browser,
|
|
15
21
|
},
|
|
16
|
-
plugins: {
|
|
17
|
-
'react-hooks': reactHooks,
|
|
18
|
-
'react-refresh': reactRefresh,
|
|
19
|
-
},
|
|
20
|
-
rules: {
|
|
21
|
-
...reactHooks.configs.recommended.rules,
|
|
22
|
-
'react-refresh/only-export-components': [
|
|
23
|
-
'warn',
|
|
24
|
-
{ allowConstantExport: true },
|
|
25
|
-
],
|
|
26
|
-
},
|
|
27
22
|
},
|
|
28
|
-
)
|
|
23
|
+
])
|
|
@@ -10,22 +10,22 @@
|
|
|
10
10
|
"preview": "vite preview"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@plasmicapp/cli": "^0.1.
|
|
14
|
-
"@plasmicapp/react-web": "^0.2.
|
|
15
|
-
"react": "^19.
|
|
16
|
-
"react-dom": "^19.
|
|
13
|
+
"@plasmicapp/cli": "^0.1.338",
|
|
14
|
+
"@plasmicapp/react-web": "^0.2.393",
|
|
15
|
+
"react": "^19.1.0",
|
|
16
|
+
"react-dom": "^19.1.0"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@eslint/js": "^9.
|
|
20
|
-
"@types/react": "^19.
|
|
21
|
-
"@types/react-dom": "^19.
|
|
22
|
-
"@vitejs/plugin-react": "^4.
|
|
23
|
-
"eslint": "^9.
|
|
19
|
+
"@eslint/js": "^9.29.0",
|
|
20
|
+
"@types/react": "^19.1.8",
|
|
21
|
+
"@types/react-dom": "^19.1.6",
|
|
22
|
+
"@vitejs/plugin-react": "^4.5.2",
|
|
23
|
+
"eslint": "^9.29.0",
|
|
24
24
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
25
|
-
"eslint-plugin-react-refresh": "^0.4.
|
|
26
|
-
"globals": "^16.
|
|
27
|
-
"typescript": "~5.
|
|
28
|
-
"typescript-eslint": "^8.
|
|
29
|
-
"vite": "^
|
|
25
|
+
"eslint-plugin-react-refresh": "^0.4.20",
|
|
26
|
+
"globals": "^16.2.0",
|
|
27
|
+
"typescript": "~5.8.3",
|
|
28
|
+
"typescript-eslint": "^8.34.1",
|
|
29
|
+
"vite": "^7.0.0"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -128,6 +128,6 @@
|
|
|
128
128
|
]
|
|
129
129
|
},
|
|
130
130
|
"wrapPagesWithGlobalContexts": true,
|
|
131
|
-
"cliVersion": "0.1.
|
|
132
|
-
"$schema": "https://unpkg.com/@plasmicapp/cli@0.1.
|
|
131
|
+
"cliVersion": "0.1.338",
|
|
132
|
+
"$schema": "https://unpkg.com/@plasmicapp/cli@0.1.338/dist/plasmic.schema.json"
|
|
133
133
|
}
|
|
@@ -10,6 +10,15 @@ export type ScreenValue = "desktopOnly";
|
|
|
10
10
|
export const ScreenContext = React.createContext<ScreenValue[] | undefined>(
|
|
11
11
|
"PLEASE_RENDER_INSIDE_PROVIDER" as any
|
|
12
12
|
);
|
|
13
|
+
export function ScreenContextProvider(
|
|
14
|
+
props: React.PropsWithChildren<{ value: ScreenValue[] | undefined }>
|
|
15
|
+
) {
|
|
16
|
+
return (
|
|
17
|
+
<ScreenContext.Provider value={props.value}>
|
|
18
|
+
{props.children}
|
|
19
|
+
</ScreenContext.Provider>
|
|
20
|
+
);
|
|
21
|
+
}
|
|
13
22
|
|
|
14
23
|
export const useScreenVariants = createUseScreenVariants(true, {
|
|
15
24
|
desktopOnly: "(min-width:768px)",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-plasmic-app",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.106",
|
|
4
4
|
"description": "Create Plasmic-powered React apps",
|
|
5
5
|
"main": "./dist/lib.js",
|
|
6
6
|
"types": "./dist/lib.d.ts",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"validate-npm-package-name": "^3.0.0",
|
|
47
47
|
"yargs": "^16.2.0"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "b1b13b4f03d13517cc8a8bb7526deb862c8deeb8"
|
|
50
50
|
}
|