create-plasmic-app 0.0.98 → 0.0.100
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/gatsby-codegen-js/gatsby-browser.jsx +2 -1
- package/cpa-out/gatsby-codegen-js/gatsby-ssr.jsx +2 -1
- package/cpa-out/gatsby-codegen-js/package.json +4 -4
- package/cpa-out/gatsby-codegen-js/plasmic.json +14 -8
- package/cpa-out/gatsby-codegen-js/src/components/Button.jsx +1 -3
- package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicButton.jsx +53 -100
- package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.jsx +36 -30
- package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.jsx +3 -15
- package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx +25 -25
- package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.jsx +45 -59
- package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Checksvg.jsx +3 -3
- package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Icon.jsx +1 -1
- package/cpa-out/gatsby-codegen-js/src/pages/dynamic/[slug].jsx +5 -4
- package/cpa-out/gatsby-codegen-js/src/pages/index.jsx +5 -4
- package/cpa-out/gatsby-codegen-ts/gatsby-browser.tsx +2 -1
- package/cpa-out/gatsby-codegen-ts/gatsby-ssr.tsx +2 -1
- package/cpa-out/gatsby-codegen-ts/package.json +9 -9
- package/cpa-out/gatsby-codegen-ts/plasmic.json +14 -8
- package/cpa-out/gatsby-codegen-ts/src/components/Button.tsx +4 -5
- package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicButton.tsx +99 -75
- package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx +80 -49
- package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.tsx +3 -15
- package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx +69 -43
- package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.tsx +90 -77
- package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Checksvg.tsx +4 -4
- package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Icon.tsx +1 -1
- package/cpa-out/gatsby-codegen-ts/src/pages/dynamic/[slug].tsx +6 -5
- package/cpa-out/gatsby-codegen-ts/src/pages/index.tsx +6 -5
- package/cpa-out/gatsby-loader-js/package.json +3 -3
- package/cpa-out/gatsby-loader-js/src/templates/defaultPlasmicPage.jsx +1 -0
- package/cpa-out/gatsby-loader-ts/package.json +8 -8
- package/cpa-out/gatsby-loader-ts/src/templates/defaultPlasmicPage.tsx +1 -0
- package/cpa-out/nextjs-app-loader-js/package.json +8 -6
- package/cpa-out/nextjs-app-loader-js/plasmic-init.js +10 -1
- package/cpa-out/nextjs-app-loader-ts/package.json +12 -10
- package/cpa-out/nextjs-app-loader-ts/plasmic-init.ts +10 -1
- package/cpa-out/nextjs-app-loader-ts/tsconfig.json +2 -9
- package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicButton.jsx +6 -5
- package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicDynamicPage.jsx +1 -1
- package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.jsx +1 -1
- package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx +1 -1
- package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.jsx +1 -1
- package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Checksvg.jsx +1 -1
- package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Icon.jsx +1 -1
- package/cpa-out/nextjs-pages-codegen-js/package.json +4 -4
- package/cpa-out/nextjs-pages-codegen-js/pages/_app.jsx +2 -1
- package/cpa-out/nextjs-pages-codegen-js/plasmic.json +2 -2
- package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicButton.tsx +17 -14
- package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx +7 -7
- package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.tsx +1 -1
- package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx +7 -7
- package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.tsx +7 -7
- package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Checksvg.tsx +1 -1
- package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Icon.tsx +1 -1
- package/cpa-out/nextjs-pages-codegen-ts/package.json +4 -4
- package/cpa-out/nextjs-pages-codegen-ts/pages/_app.tsx +2 -1
- package/cpa-out/nextjs-pages-codegen-ts/pages/dynamic/[slug].tsx +1 -0
- package/cpa-out/nextjs-pages-codegen-ts/pages/index.tsx +1 -0
- package/cpa-out/nextjs-pages-codegen-ts/plasmic.json +2 -2
- package/cpa-out/nextjs-pages-loader-js/package.json +3 -3
- package/cpa-out/nextjs-pages-loader-ts/package.json +3 -3
- package/cpa-out/react-codegen-js/eslint.config.js +1 -6
- package/cpa-out/react-codegen-js/package.json +10 -11
- package/cpa-out/react-codegen-js/plasmic.json +2 -2
- package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicButton.jsx +6 -5
- package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.jsx +1 -1
- package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.jsx +1 -1
- package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx +1 -1
- package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.jsx +1 -1
- package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Checksvg.jsx +1 -1
- package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Icon.jsx +1 -1
- package/cpa-out/react-codegen-ts/package.json +11 -11
- package/cpa-out/react-codegen-ts/plasmic.json +2 -2
- package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicButton.tsx +17 -14
- package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx +7 -7
- package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.tsx +1 -1
- package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx +7 -7
- package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.tsx +7 -7
- package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Checksvg.tsx +1 -1
- package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Icon.tsx +1 -1
- package/dist/index.js +7 -8
- package/dist/utils/file-utils.d.ts +2 -2
- package/dist/utils/file-utils.js +29 -28
- package/package.json +5 -13
- package/run-cpa.ts +8 -6
- package/src/index.ts +7 -9
- package/src/utils/file-utils.ts +44 -30
- package/.eslintrc.js +0 -15
- package/cpa-out/nextjs-app-loader-js/app/[[...catchall]]/page.jsx +0 -56
- package/cpa-out/nextjs-app-loader-js/app/api/hello/route.js +0 -3
- package/cpa-out/nextjs-app-loader-js/app/layout.js +0 -14
- package/cpa-out/nextjs-app-loader-js/app/plasmic-host/page.jsx +0 -6
- package/cpa-out/nextjs-app-loader-js/plasmic-init-client.jsx +0 -65
- package/cpa-out/nextjs-app-loader-ts/app/[[...catchall]]/page.tsx +0 -59
- package/cpa-out/nextjs-app-loader-ts/app/api/hello/route.ts +0 -3
- package/cpa-out/nextjs-app-loader-ts/app/layout.tsx +0 -18
- package/cpa-out/nextjs-app-loader-ts/app/plasmic-host/page.tsx +0 -6
- package/cpa-out/nextjs-app-loader-ts/plasmic-init-client.tsx +0 -65
|
@@ -34,6 +34,7 @@ const PlasmicGatsbyPage = ({ data, location }: PlasmicGatsbyPageProps) => {
|
|
|
34
34
|
<PlasmicRootProvider
|
|
35
35
|
loader={initPlasmicLoaderWithRegistrations(plasmicOptions)}
|
|
36
36
|
prefetchedData={plasmicComponents}
|
|
37
|
+
pageRoute={pageMeta.path}
|
|
37
38
|
pageParams={pageMeta.params}
|
|
38
39
|
pageQuery={Object.fromEntries(new URLSearchParams(location.search))}
|
|
39
40
|
Head={Helmet}
|
|
@@ -9,11 +9,13 @@
|
|
|
9
9
|
"lint": "next lint"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@plasmicapp/loader-nextjs": "^1.0.
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
"@plasmicapp/loader-nextjs": "^1.0.422",
|
|
13
|
+
"next": "14.2.20",
|
|
14
|
+
"react": "^18",
|
|
15
|
+
"react-dom": "^18"
|
|
16
|
+
},
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"eslint": "^8",
|
|
19
|
+
"eslint-config-next": "14.2.20"
|
|
18
20
|
}
|
|
19
21
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { initPlasmicLoader } from "@plasmicapp/loader-nextjs
|
|
1
|
+
import { initPlasmicLoader } from "@plasmicapp/loader-nextjs";
|
|
2
2
|
|
|
3
3
|
export const PLASMIC = initPlasmicLoader({
|
|
4
4
|
projects: [
|
|
@@ -14,3 +14,12 @@ export const PLASMIC = initPlasmicLoader({
|
|
|
14
14
|
// only use this for development, as this is significantly slower.
|
|
15
15
|
preview: false,
|
|
16
16
|
});
|
|
17
|
+
|
|
18
|
+
// You can register any code components that you want to use here; see
|
|
19
|
+
// https://docs.plasmic.app/learn/code-components-ref/
|
|
20
|
+
// And configure your Plasmic project to use the host url pointing at
|
|
21
|
+
// the /plasmic-host page of your nextjs app (for example,
|
|
22
|
+
// http://localhost:3000/plasmic-host). See
|
|
23
|
+
// https://docs.plasmic.app/learn/app-hosting/#set-a-plasmic-project-to-use-your-app-host
|
|
24
|
+
|
|
25
|
+
// PLASMIC.registerComponent(...);
|
|
@@ -9,15 +9,17 @@
|
|
|
9
9
|
"lint": "next lint"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@plasmicapp/loader-nextjs": "^1.0.
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
"
|
|
19
|
-
"react": "18
|
|
20
|
-
"react-dom": "18
|
|
21
|
-
"
|
|
12
|
+
"@plasmicapp/loader-nextjs": "^1.0.422",
|
|
13
|
+
"next": "14.2.20",
|
|
14
|
+
"react": "^18",
|
|
15
|
+
"react-dom": "^18"
|
|
16
|
+
},
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"@types/node": "^20",
|
|
19
|
+
"@types/react": "^18",
|
|
20
|
+
"@types/react-dom": "^18",
|
|
21
|
+
"eslint": "^8",
|
|
22
|
+
"eslint-config-next": "14.2.20",
|
|
23
|
+
"typescript": "^5"
|
|
22
24
|
}
|
|
23
25
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { initPlasmicLoader } from "@plasmicapp/loader-nextjs
|
|
1
|
+
import { initPlasmicLoader } from "@plasmicapp/loader-nextjs";
|
|
2
2
|
|
|
3
3
|
export const PLASMIC = initPlasmicLoader({
|
|
4
4
|
projects: [
|
|
@@ -14,3 +14,12 @@ export const PLASMIC = initPlasmicLoader({
|
|
|
14
14
|
// only use this for development, as this is significantly slower.
|
|
15
15
|
preview: false,
|
|
16
16
|
});
|
|
17
|
+
|
|
18
|
+
// You can register any code components that you want to use here; see
|
|
19
|
+
// https://docs.plasmic.app/learn/code-components-ref/
|
|
20
|
+
// And configure your Plasmic project to use the host url pointing at
|
|
21
|
+
// the /plasmic-host page of your nextjs app (for example,
|
|
22
|
+
// http://localhost:3000/plasmic-host). See
|
|
23
|
+
// https://docs.plasmic.app/learn/app-hosting/#set-a-plasmic-project-to-use-your-app-host
|
|
24
|
+
|
|
25
|
+
// PLASMIC.registerComponent(...);
|
|
@@ -1,28 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
"target": "es5",
|
|
4
3
|
"lib": ["dom", "dom.iterable", "esnext"],
|
|
5
4
|
"allowJs": true,
|
|
6
5
|
"skipLibCheck": true,
|
|
7
6
|
"strict": true,
|
|
8
|
-
"forceConsistentCasingInFileNames": true,
|
|
9
7
|
"noEmit": true,
|
|
10
8
|
"esModuleInterop": true,
|
|
11
9
|
"module": "esnext",
|
|
12
|
-
"moduleResolution": "
|
|
10
|
+
"moduleResolution": "bundler",
|
|
13
11
|
"resolveJsonModule": true,
|
|
14
12
|
"isolatedModules": true,
|
|
15
13
|
"jsx": "preserve",
|
|
16
14
|
"incremental": true,
|
|
17
|
-
"plugins": [
|
|
18
|
-
{
|
|
19
|
-
"name": "next"
|
|
20
|
-
}
|
|
21
|
-
],
|
|
22
15
|
"paths": {
|
|
23
16
|
"@/*": ["./*"]
|
|
24
17
|
}
|
|
25
18
|
},
|
|
26
|
-
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"
|
|
19
|
+
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
|
|
27
20
|
"exclude": ["node_modules"]
|
|
28
21
|
}
|
package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicButton.jsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
1
|
/* eslint-disable */
|
|
3
2
|
/* tslint:disable */
|
|
3
|
+
// @ts-nocheck
|
|
4
4
|
/* prettier-ignore-start */
|
|
5
5
|
/** @jsxRuntime classic */
|
|
6
6
|
/** @jsx createPlasmicElementProxy */
|
|
@@ -42,11 +42,12 @@ export const PlasmicButton__VariantProps = new Array(
|
|
|
42
42
|
);
|
|
43
43
|
|
|
44
44
|
export const PlasmicButton__ArgProps = new Array(
|
|
45
|
-
"children",
|
|
46
|
-
"startIcon",
|
|
47
|
-
"endIcon",
|
|
48
45
|
"link",
|
|
49
|
-
"submitsForm"
|
|
46
|
+
"submitsForm",
|
|
47
|
+
"target",
|
|
48
|
+
"startIcon",
|
|
49
|
+
"children",
|
|
50
|
+
"endIcon"
|
|
50
51
|
);
|
|
51
52
|
|
|
52
53
|
const $$ = {};
|
|
@@ -9,14 +9,14 @@
|
|
|
9
9
|
"lint": "next lint"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@plasmicapp/cli": "^0.1.
|
|
13
|
-
"@plasmicapp/react-web": "^0.2.
|
|
14
|
-
"next": "14.2.
|
|
12
|
+
"@plasmicapp/cli": "^0.1.337",
|
|
13
|
+
"@plasmicapp/react-web": "^0.2.381",
|
|
14
|
+
"next": "14.2.20",
|
|
15
15
|
"react": "^18",
|
|
16
16
|
"react-dom": "^18"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"eslint": "^8",
|
|
20
|
-
"eslint-config-next": "14.2.
|
|
20
|
+
"eslint-config-next": "14.2.20"
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import '@/styles/globals.css'
|
|
2
2
|
import { PlasmicRootProvider } from "@plasmicapp/react-web";
|
|
3
3
|
import Head from "next/head";
|
|
4
|
+
import Link from "next/link";
|
|
4
5
|
|
|
5
6
|
export default function MyApp({ Component, pageProps }) {
|
|
6
7
|
return (
|
|
7
|
-
<PlasmicRootProvider Head={Head}>
|
|
8
|
+
<PlasmicRootProvider Head={Head} Link={Link}>
|
|
8
9
|
<Component {...pageProps} />
|
|
9
10
|
</PlasmicRootProvider>
|
|
10
11
|
);
|
|
@@ -131,6 +131,6 @@
|
|
|
131
131
|
"nextjsConfig": {
|
|
132
132
|
"pagesDir": "../pages"
|
|
133
133
|
},
|
|
134
|
-
"cliVersion": "0.1.
|
|
135
|
-
"$schema": "https://unpkg.com/@plasmicapp/cli@0.1.
|
|
134
|
+
"cliVersion": "0.1.337",
|
|
135
|
+
"$schema": "https://unpkg.com/@plasmicapp/cli@0.1.337/dist/plasmic.schema.json"
|
|
136
136
|
}
|
package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicButton.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
1
|
/* eslint-disable */
|
|
3
2
|
/* tslint:disable */
|
|
3
|
+
// @ts-nocheck
|
|
4
4
|
/* prettier-ignore-start */
|
|
5
5
|
|
|
6
6
|
/** @jsxRuntime classic */
|
|
@@ -125,19 +125,21 @@ export const PlasmicButton__VariantProps = new Array<VariantPropType>(
|
|
|
125
125
|
);
|
|
126
126
|
|
|
127
127
|
export type PlasmicButton__ArgsType = {
|
|
128
|
-
children?: React.ReactNode;
|
|
129
|
-
startIcon?: React.ReactNode;
|
|
130
|
-
endIcon?: React.ReactNode;
|
|
131
128
|
link?: string;
|
|
132
129
|
submitsForm?: boolean;
|
|
130
|
+
target?: boolean;
|
|
131
|
+
startIcon?: React.ReactNode;
|
|
132
|
+
children?: React.ReactNode;
|
|
133
|
+
endIcon?: React.ReactNode;
|
|
133
134
|
};
|
|
134
135
|
type ArgPropType = keyof PlasmicButton__ArgsType;
|
|
135
136
|
export const PlasmicButton__ArgProps = new Array<ArgPropType>(
|
|
136
|
-
"children",
|
|
137
|
-
"startIcon",
|
|
138
|
-
"endIcon",
|
|
139
137
|
"link",
|
|
140
|
-
"submitsForm"
|
|
138
|
+
"submitsForm",
|
|
139
|
+
"target",
|
|
140
|
+
"startIcon",
|
|
141
|
+
"children",
|
|
142
|
+
"endIcon"
|
|
141
143
|
);
|
|
142
144
|
|
|
143
145
|
export type PlasmicButton__OverridesType = {
|
|
@@ -149,6 +151,7 @@ export type PlasmicButton__OverridesType = {
|
|
|
149
151
|
|
|
150
152
|
export interface DefaultButtonProps extends pp.BaseButtonProps {
|
|
151
153
|
submitsForm?: boolean;
|
|
154
|
+
target?: boolean;
|
|
152
155
|
shape?: SingleChoiceArg<"rounded" | "round" | "sharp">;
|
|
153
156
|
size?: SingleChoiceArg<"compact" | "minimal">;
|
|
154
157
|
color?: SingleChoiceArg<
|
|
@@ -699,15 +702,15 @@ type NodeComponentProps<T extends NodeNameType> =
|
|
|
699
702
|
args?: PlasmicButton__ArgsType;
|
|
700
703
|
overrides?: NodeOverridesType<T>;
|
|
701
704
|
} & Omit<PlasmicButton__VariantsArgs, ReservedPropsType> & // Specify variants directly as props
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
/* Specify overrides for each element directly as props*/ Omit<
|
|
705
|
+
// Specify args directly as props
|
|
706
|
+
Omit<PlasmicButton__ArgsType, ReservedPropsType> &
|
|
707
|
+
// Specify overrides for each element directly as props
|
|
708
|
+
Omit<
|
|
707
709
|
NodeOverridesType<T>,
|
|
708
710
|
ReservedPropsType | VariantPropType | ArgPropType
|
|
709
711
|
> &
|
|
710
|
-
|
|
712
|
+
// Specify props for the root element
|
|
713
|
+
Omit<
|
|
711
714
|
Partial<React.ComponentProps<NodeDefaultElementType[T]>>,
|
|
712
715
|
ReservedPropsType | VariantPropType | ArgPropType | DescendantsType<T>
|
|
713
716
|
>;
|
package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
1
|
/* eslint-disable */
|
|
3
2
|
/* tslint:disable */
|
|
3
|
+
// @ts-nocheck
|
|
4
4
|
/* prettier-ignore-start */
|
|
5
5
|
|
|
6
6
|
/** @jsxRuntime classic */
|
|
@@ -225,15 +225,15 @@ type NodeComponentProps<T extends NodeNameType> =
|
|
|
225
225
|
args?: PlasmicDynamicPage__ArgsType;
|
|
226
226
|
overrides?: NodeOverridesType<T>;
|
|
227
227
|
} & Omit<PlasmicDynamicPage__VariantsArgs, ReservedPropsType> & // Specify variants directly as props
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
/* Specify overrides for each element directly as props*/ Omit<
|
|
228
|
+
// Specify args directly as props
|
|
229
|
+
Omit<PlasmicDynamicPage__ArgsType, ReservedPropsType> &
|
|
230
|
+
// Specify overrides for each element directly as props
|
|
231
|
+
Omit<
|
|
233
232
|
NodeOverridesType<T>,
|
|
234
233
|
ReservedPropsType | VariantPropType | ArgPropType
|
|
235
234
|
> &
|
|
236
|
-
|
|
235
|
+
// Specify props for the root element
|
|
236
|
+
Omit<
|
|
237
237
|
Partial<React.ComponentProps<NodeDefaultElementType[T]>>,
|
|
238
238
|
ReservedPropsType | VariantPropType | ArgPropType | DescendantsType<T>
|
|
239
239
|
>;
|
package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
1
|
/* eslint-disable */
|
|
3
2
|
/* tslint:disable */
|
|
3
|
+
// @ts-nocheck
|
|
4
4
|
/* prettier-ignore-start */
|
|
5
5
|
|
|
6
6
|
/** @jsxRuntime classic */
|
|
@@ -265,15 +265,15 @@ type NodeComponentProps<T extends NodeNameType> =
|
|
|
265
265
|
args?: PlasmicHomepage__ArgsType;
|
|
266
266
|
overrides?: NodeOverridesType<T>;
|
|
267
267
|
} & Omit<PlasmicHomepage__VariantsArgs, ReservedPropsType> & // Specify variants directly as props
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
/* Specify overrides for each element directly as props*/ Omit<
|
|
268
|
+
// Specify args directly as props
|
|
269
|
+
Omit<PlasmicHomepage__ArgsType, ReservedPropsType> &
|
|
270
|
+
// Specify overrides for each element directly as props
|
|
271
|
+
Omit<
|
|
273
272
|
NodeOverridesType<T>,
|
|
274
273
|
ReservedPropsType | VariantPropType | ArgPropType
|
|
275
274
|
> &
|
|
276
|
-
|
|
275
|
+
// Specify props for the root element
|
|
276
|
+
Omit<
|
|
277
277
|
Partial<React.ComponentProps<NodeDefaultElementType[T]>>,
|
|
278
278
|
ReservedPropsType | VariantPropType | ArgPropType | DescendantsType<T>
|
|
279
279
|
>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
1
|
/* eslint-disable */
|
|
3
2
|
/* tslint:disable */
|
|
3
|
+
// @ts-nocheck
|
|
4
4
|
/* prettier-ignore-start */
|
|
5
5
|
|
|
6
6
|
/** @jsxRuntime classic */
|
|
@@ -206,15 +206,15 @@ type NodeComponentProps<T extends NodeNameType> =
|
|
|
206
206
|
args?: PlasmicRandomDynamicPageButton__ArgsType;
|
|
207
207
|
overrides?: NodeOverridesType<T>;
|
|
208
208
|
} & Omit<PlasmicRandomDynamicPageButton__VariantsArgs, ReservedPropsType> & // Specify variants directly as props
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
/* Specify overrides for each element directly as props*/ Omit<
|
|
209
|
+
// Specify args directly as props
|
|
210
|
+
Omit<PlasmicRandomDynamicPageButton__ArgsType, ReservedPropsType> &
|
|
211
|
+
// Specify overrides for each element directly as props
|
|
212
|
+
Omit<
|
|
214
213
|
NodeOverridesType<T>,
|
|
215
214
|
ReservedPropsType | VariantPropType | ArgPropType
|
|
216
215
|
> &
|
|
217
|
-
|
|
216
|
+
// Specify props for the root element
|
|
217
|
+
Omit<
|
|
218
218
|
Partial<React.ComponentProps<NodeDefaultElementType[T]>>,
|
|
219
219
|
ReservedPropsType | VariantPropType | ArgPropType | DescendantsType<T>
|
|
220
220
|
>;
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
"lint": "next lint"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@plasmicapp/cli": "^0.1.
|
|
13
|
-
"@plasmicapp/react-web": "^0.2.
|
|
14
|
-
"next": "14.2.
|
|
12
|
+
"@plasmicapp/cli": "^0.1.337",
|
|
13
|
+
"@plasmicapp/react-web": "^0.2.381",
|
|
14
|
+
"next": "14.2.20",
|
|
15
15
|
"react": "^18",
|
|
16
16
|
"react-dom": "^18"
|
|
17
17
|
},
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"@types/react": "^18",
|
|
21
21
|
"@types/react-dom": "^18",
|
|
22
22
|
"eslint": "^8",
|
|
23
|
-
"eslint-config-next": "14.2.
|
|
23
|
+
"eslint-config-next": "14.2.20",
|
|
24
24
|
"typescript": "^5"
|
|
25
25
|
}
|
|
26
26
|
}
|
|
@@ -2,10 +2,11 @@ import '@/styles/globals.css'
|
|
|
2
2
|
import { PlasmicRootProvider } from "@plasmicapp/react-web";
|
|
3
3
|
import type { AppProps } from "next/app";
|
|
4
4
|
import Head from "next/head";
|
|
5
|
+
import Link from "next/link";
|
|
5
6
|
|
|
6
7
|
export default function MyApp({ Component, pageProps }: AppProps) {
|
|
7
8
|
return (
|
|
8
|
-
<PlasmicRootProvider Head={Head}>
|
|
9
|
+
<PlasmicRootProvider Head={Head} Link={Link}>
|
|
9
10
|
<Component {...pageProps} />
|
|
10
11
|
</PlasmicRootProvider>
|
|
11
12
|
);
|
|
@@ -131,6 +131,6 @@
|
|
|
131
131
|
"nextjsConfig": {
|
|
132
132
|
"pagesDir": "../pages"
|
|
133
133
|
},
|
|
134
|
-
"cliVersion": "0.1.
|
|
135
|
-
"$schema": "https://unpkg.com/@plasmicapp/cli@0.1.
|
|
134
|
+
"cliVersion": "0.1.337",
|
|
135
|
+
"$schema": "https://unpkg.com/@plasmicapp/cli@0.1.337/dist/plasmic.schema.json"
|
|
136
136
|
}
|
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
"lint": "next lint"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@plasmicapp/loader-nextjs": "^1.0.
|
|
13
|
-
"next": "14.2.
|
|
12
|
+
"@plasmicapp/loader-nextjs": "^1.0.422",
|
|
13
|
+
"next": "14.2.20",
|
|
14
14
|
"react": "^18",
|
|
15
15
|
"react-dom": "^18"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"eslint": "^8",
|
|
19
|
-
"eslint-config-next": "14.2.
|
|
19
|
+
"eslint-config-next": "14.2.20"
|
|
20
20
|
}
|
|
21
21
|
}
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
"lint": "next lint"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@plasmicapp/loader-nextjs": "^1.0.
|
|
13
|
-
"next": "14.2.
|
|
12
|
+
"@plasmicapp/loader-nextjs": "^1.0.422",
|
|
13
|
+
"next": "14.2.20",
|
|
14
14
|
"react": "^18",
|
|
15
15
|
"react-dom": "^18"
|
|
16
16
|
},
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"@types/react": "^18",
|
|
20
20
|
"@types/react-dom": "^18",
|
|
21
21
|
"eslint": "^8",
|
|
22
|
-
"eslint-config-next": "14.2.
|
|
22
|
+
"eslint-config-next": "14.2.20",
|
|
23
23
|
"typescript": "^5"
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import js from '@eslint/js'
|
|
2
2
|
import globals from 'globals'
|
|
3
|
-
import react from 'eslint-plugin-react'
|
|
4
3
|
import reactHooks from 'eslint-plugin-react-hooks'
|
|
5
4
|
import reactRefresh from 'eslint-plugin-react-refresh'
|
|
6
5
|
|
|
@@ -17,18 +16,14 @@ export default [
|
|
|
17
16
|
sourceType: 'module',
|
|
18
17
|
},
|
|
19
18
|
},
|
|
20
|
-
settings: { react: { version: '18.3' } },
|
|
21
19
|
plugins: {
|
|
22
|
-
react,
|
|
23
20
|
'react-hooks': reactHooks,
|
|
24
21
|
'react-refresh': reactRefresh,
|
|
25
22
|
},
|
|
26
23
|
rules: {
|
|
27
24
|
...js.configs.recommended.rules,
|
|
28
|
-
...react.configs.recommended.rules,
|
|
29
|
-
...react.configs['jsx-runtime'].rules,
|
|
30
25
|
...reactHooks.configs.recommended.rules,
|
|
31
|
-
'
|
|
26
|
+
'no-unused-vars': ['error', { varsIgnorePattern: '^[A-Z_]' }],
|
|
32
27
|
'react-refresh/only-export-components': [
|
|
33
28
|
'warn',
|
|
34
29
|
{ allowConstantExport: true },
|
|
@@ -10,21 +10,20 @@
|
|
|
10
10
|
"preview": "vite preview"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@plasmicapp/cli": "^0.1.
|
|
14
|
-
"@plasmicapp/react-web": "^0.2.
|
|
13
|
+
"@plasmicapp/cli": "^0.1.337",
|
|
14
|
+
"@plasmicapp/react-web": "^0.2.381",
|
|
15
15
|
"react": "^19.0.0",
|
|
16
16
|
"react-dom": "^19.0.0"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@eslint/js": "^9.
|
|
20
|
-
"@types/react": "^19.0.
|
|
21
|
-
"@types/react-dom": "^19.0.
|
|
19
|
+
"@eslint/js": "^9.22.0",
|
|
20
|
+
"@types/react": "^19.0.10",
|
|
21
|
+
"@types/react-dom": "^19.0.4",
|
|
22
22
|
"@vitejs/plugin-react": "^4.3.4",
|
|
23
|
-
"eslint": "^9.
|
|
24
|
-
"eslint-plugin-react": "^
|
|
25
|
-
"eslint-plugin-react-
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"vite": "^6.1.0"
|
|
23
|
+
"eslint": "^9.22.0",
|
|
24
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
25
|
+
"eslint-plugin-react-refresh": "^0.4.19",
|
|
26
|
+
"globals": "^16.0.0",
|
|
27
|
+
"vite": "^6.3.1"
|
|
29
28
|
}
|
|
30
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.337",
|
|
132
|
+
"$schema": "https://unpkg.com/@plasmicapp/cli@0.1.337/dist/plasmic.schema.json"
|
|
133
133
|
}
|
package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicButton.jsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
1
|
/* eslint-disable */
|
|
3
2
|
/* tslint:disable */
|
|
3
|
+
// @ts-nocheck
|
|
4
4
|
/* prettier-ignore-start */
|
|
5
5
|
/** @jsxRuntime classic */
|
|
6
6
|
/** @jsx createPlasmicElementProxy */
|
|
@@ -39,11 +39,12 @@ export const PlasmicButton__VariantProps = new Array(
|
|
|
39
39
|
);
|
|
40
40
|
|
|
41
41
|
export const PlasmicButton__ArgProps = new Array(
|
|
42
|
-
"children",
|
|
43
|
-
"startIcon",
|
|
44
|
-
"endIcon",
|
|
45
42
|
"link",
|
|
46
|
-
"submitsForm"
|
|
43
|
+
"submitsForm",
|
|
44
|
+
"target",
|
|
45
|
+
"startIcon",
|
|
46
|
+
"children",
|
|
47
|
+
"endIcon"
|
|
47
48
|
);
|
|
48
49
|
|
|
49
50
|
const $$ = {};
|