Compare commits

...

4 Commits

Author SHA1 Message Date
Rami Bitar
4aa55c2b89 Bump version 0.0.19 2026-05-11 23:42:58 -04:00
Rami Bitar
661eb99e94 Log PUBLISH payload and post full route object
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-11 23:32:54 -04:00
Rami Bitar
6b6be4f50c Log PUBLISH payload in handlePublish
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-11 23:31:23 -04:00
Rami Bitar
0b135b8a32 Post publish message before delay in handlePublish
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-11 23:13:02 -04:00
3 changed files with 17 additions and 16 deletions

View File

@@ -28,7 +28,7 @@
"@radix-ui/react-switch": "^1.2.5",
"@radix-ui/react-tabs": "^1.1.12",
"@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-shopify": "^0.0.1",
"@reacteditor/plugin-ai": "^0.0.4",

View File

@@ -47,14 +47,15 @@ export default function App() {
);
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) {
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(
() => [createTailwindCdnPlugin()],

View File

@@ -981,10 +981,10 @@
resolved "https://registry.yarnpkg.com/@radix-ui/rect/-/rect-1.1.1.tgz#78244efe12930c56fd255d7923865857c41ac8cb"
integrity sha512-HPwpGIzkl28mWyZqG52jiqDJ12waP11Pa1lGoiyUkIEuMLBP0oeK/C89esbXrxsky5we7dfd8U58nm0SgAWpVw==
"@reacteditor/core@0.0.18":
version "0.0.18"
resolved "https://registry.yarnpkg.com/@reacteditor/core/-/core-0.0.18.tgz#5505676a97831f5f36870be851d52ed027e84993"
integrity sha512-Sj0fWxJJnTPbydY0ImmIX/WYYuOO+LuoYK3ykXx6KL7njqdOxnW5UwQQpXKEhF6aEvuLZGw4seqF4oVwbNrvJQ==
"@reacteditor/core@0.0.19":
version "0.0.19"
resolved "https://registry.yarnpkg.com/@reacteditor/core/-/core-0.0.19.tgz#058049f798bf94ae7e88db56bfd35cb5d4073756"
integrity sha512-XlSVL6FydfAp6VJzH2L5P8vQxGZwtOQXS/jIUlMoQdMBZjBz53JFSbcnnKw1nDOatIsO9KkPGd7Bl29tDAjQ4A==
dependencies:
"@base-ui/react" "^1.4.1"
"@dnd-kit/abstract" "0.4.0"
@@ -1050,10 +1050,10 @@
zod "^3.25.76"
zod-to-json-schema "^3.23.0"
"@reacteditor/plugin-media@^0.0.1":
version "0.0.1"
resolved "https://registry.yarnpkg.com/@reacteditor/plugin-media/-/plugin-media-0.0.1.tgz#c5406bf10edb2db4fcf253377d6e8a3c5f992a1e"
integrity sha512-RLl8w3PqTuBYuQ5FnuGbfnpyBcJDPrMpe/ugf8dipIBgmH966oQRy0jN2HpK1Y5itN6m4o9LLWaNXyaFQRGS3g==
"@reacteditor/plugin-media@^0.0.2":
version "0.0.2"
resolved "https://registry.yarnpkg.com/@reacteditor/plugin-media/-/plugin-media-0.0.2.tgz#179a008bf4c534f85168b48f8161c783e2fe3a27"
integrity sha512-G9w1+s4dQcQHlzpYgSxMj6ZCC49GOZJrJJ3z42EfCEFH/V8Ph5zmPAdzNUmDjcIsubLnlVkltGq0u12A7lnafA==
"@reacteditor/plugin-tailwind-cdn@^0.0.2":
version "0.0.2"