Compare commits
4 Commits
60e262465e
...
4aa55c2b89
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4aa55c2b89 | ||
|
|
661eb99e94 | ||
|
|
6b6be4f50c | ||
|
|
0b135b8a32 |
@@ -28,7 +28,7 @@
|
|||||||
"@radix-ui/react-switch": "^1.2.5",
|
"@radix-ui/react-switch": "^1.2.5",
|
||||||
"@radix-ui/react-tabs": "^1.1.12",
|
"@radix-ui/react-tabs": "^1.1.12",
|
||||||
"@radix-ui/react-tooltip": "^1.2.7",
|
"@radix-ui/react-tooltip": "^1.2.7",
|
||||||
"@reacteditor/core": "0.0.18",
|
"@reacteditor/core": "0.0.19",
|
||||||
"@reacteditor/field-google-fonts": "^0.0.1",
|
"@reacteditor/field-google-fonts": "^0.0.1",
|
||||||
"@reacteditor/field-shopify": "^0.0.1",
|
"@reacteditor/field-shopify": "^0.0.1",
|
||||||
"@reacteditor/plugin-ai": "^0.0.4",
|
"@reacteditor/plugin-ai": "^0.0.4",
|
||||||
|
|||||||
@@ -47,14 +47,15 @@ export default function App() {
|
|||||||
);
|
);
|
||||||
|
|
||||||
const handlePublish = async (data: any, route?: { key: string }) => {
|
const handlePublish = async (data: any, route?: { key: string }) => {
|
||||||
await new Promise((resolve) => setTimeout(resolve, 1000));
|
console.log({ type: "PUBLISH", data: { data, route: JSON.stringify(route) } });
|
||||||
if (typeof window !== "undefined" && window.parent !== window) {
|
if (typeof window !== "undefined" && window.parent !== window) {
|
||||||
window.parent.postMessage(
|
window.parent.postMessage(
|
||||||
{ type: "PUBLISH", data: { data, route: route?.key } },
|
{ type: "PUBLISH", data: { data, route } },
|
||||||
"*",
|
"*",
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
await new Promise((resolve) => setTimeout(resolve, 1000));
|
||||||
|
};
|
||||||
|
|
||||||
const plugins = useMemo(
|
const plugins = useMemo(
|
||||||
() => [createTailwindCdnPlugin()],
|
() => [createTailwindCdnPlugin()],
|
||||||
|
|||||||
16
yarn.lock
16
yarn.lock
@@ -981,10 +981,10 @@
|
|||||||
resolved "https://registry.yarnpkg.com/@radix-ui/rect/-/rect-1.1.1.tgz#78244efe12930c56fd255d7923865857c41ac8cb"
|
resolved "https://registry.yarnpkg.com/@radix-ui/rect/-/rect-1.1.1.tgz#78244efe12930c56fd255d7923865857c41ac8cb"
|
||||||
integrity sha512-HPwpGIzkl28mWyZqG52jiqDJ12waP11Pa1lGoiyUkIEuMLBP0oeK/C89esbXrxsky5we7dfd8U58nm0SgAWpVw==
|
integrity sha512-HPwpGIzkl28mWyZqG52jiqDJ12waP11Pa1lGoiyUkIEuMLBP0oeK/C89esbXrxsky5we7dfd8U58nm0SgAWpVw==
|
||||||
|
|
||||||
"@reacteditor/core@0.0.18":
|
"@reacteditor/core@0.0.19":
|
||||||
version "0.0.18"
|
version "0.0.19"
|
||||||
resolved "https://registry.yarnpkg.com/@reacteditor/core/-/core-0.0.18.tgz#5505676a97831f5f36870be851d52ed027e84993"
|
resolved "https://registry.yarnpkg.com/@reacteditor/core/-/core-0.0.19.tgz#058049f798bf94ae7e88db56bfd35cb5d4073756"
|
||||||
integrity sha512-Sj0fWxJJnTPbydY0ImmIX/WYYuOO+LuoYK3ykXx6KL7njqdOxnW5UwQQpXKEhF6aEvuLZGw4seqF4oVwbNrvJQ==
|
integrity sha512-XlSVL6FydfAp6VJzH2L5P8vQxGZwtOQXS/jIUlMoQdMBZjBz53JFSbcnnKw1nDOatIsO9KkPGd7Bl29tDAjQ4A==
|
||||||
dependencies:
|
dependencies:
|
||||||
"@base-ui/react" "^1.4.1"
|
"@base-ui/react" "^1.4.1"
|
||||||
"@dnd-kit/abstract" "0.4.0"
|
"@dnd-kit/abstract" "0.4.0"
|
||||||
@@ -1050,10 +1050,10 @@
|
|||||||
zod "^3.25.76"
|
zod "^3.25.76"
|
||||||
zod-to-json-schema "^3.23.0"
|
zod-to-json-schema "^3.23.0"
|
||||||
|
|
||||||
"@reacteditor/plugin-media@^0.0.1":
|
"@reacteditor/plugin-media@^0.0.2":
|
||||||
version "0.0.1"
|
version "0.0.2"
|
||||||
resolved "https://registry.yarnpkg.com/@reacteditor/plugin-media/-/plugin-media-0.0.1.tgz#c5406bf10edb2db4fcf253377d6e8a3c5f992a1e"
|
resolved "https://registry.yarnpkg.com/@reacteditor/plugin-media/-/plugin-media-0.0.2.tgz#179a008bf4c534f85168b48f8161c783e2fe3a27"
|
||||||
integrity sha512-RLl8w3PqTuBYuQ5FnuGbfnpyBcJDPrMpe/ugf8dipIBgmH966oQRy0jN2HpK1Y5itN6m4o9LLWaNXyaFQRGS3g==
|
integrity sha512-G9w1+s4dQcQHlzpYgSxMj6ZCC49GOZJrJJ3z42EfCEFH/V8Ph5zmPAdzNUmDjcIsubLnlVkltGq0u12A7lnafA==
|
||||||
|
|
||||||
"@reacteditor/plugin-tailwind-cdn@^0.0.2":
|
"@reacteditor/plugin-tailwind-cdn@^0.0.2":
|
||||||
version "0.0.2"
|
version "0.0.2"
|
||||||
|
|||||||
Reference in New Issue
Block a user