@bagelink/blox 1.13.4 → 1.14.0

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 (47) hide show
  1. package/dist/CmsPageView.vue.d.ts.map +1 -1
  2. package/dist/PreviewApp-BrthGx2F.js +4 -0
  3. package/dist/PreviewApp-CV_Uh9-d.cjs +4 -0
  4. package/dist/PreviewApp.vue.d.ts.map +1 -1
  5. package/dist/PreviewApp.vue_vue_type_style_index_0_lang-BkGWMbsE.js +185 -0
  6. package/dist/PreviewApp.vue_vue_type_style_index_0_lang-CFS05Itn.cjs +184 -0
  7. package/dist/PreviewRenderer.d.ts.map +1 -1
  8. package/dist/bridge.d.ts +1 -0
  9. package/dist/bridge.d.ts.map +1 -1
  10. package/dist/core-CPXNfJ-Z.js +460 -0
  11. package/dist/core-D1FiZJtz.cjs +459 -0
  12. package/dist/core.d.ts.map +1 -1
  13. package/dist/createBloxApp.d.ts +107 -0
  14. package/dist/createBloxApp.d.ts.map +1 -0
  15. package/dist/defineBlock.d.ts +19 -4
  16. package/dist/defineBlock.d.ts.map +1 -1
  17. package/dist/index.cjs +87 -604
  18. package/dist/index.d.ts +2 -0
  19. package/dist/index.d.ts.map +1 -1
  20. package/dist/index.mjs +86 -602
  21. package/dist/{prerender-CjJwDXkC.cjs → prerender-Bi7YtzSp.cjs} +48 -46
  22. package/dist/{prerender-oMLxrKGs.js → prerender-D3Q4jKXm.js} +51 -49
  23. package/dist/schema.d.ts +2 -0
  24. package/dist/schema.d.ts.map +1 -1
  25. package/dist/ssg/cli.cjs +17 -5
  26. package/dist/ssg/cli.mjs +17 -5
  27. package/dist/ssg/client.cjs +9 -7
  28. package/dist/ssg/client.d.ts +1 -1
  29. package/dist/ssg/client.d.ts.map +1 -1
  30. package/dist/ssg/client.mjs +3 -1
  31. package/dist/ssg/createSSREntry.d.ts +73 -0
  32. package/dist/ssg/createSSREntry.d.ts.map +1 -0
  33. package/dist/ssg/index.cjs +116 -8
  34. package/dist/ssg/index.d.ts +2 -0
  35. package/dist/ssg/index.d.ts.map +1 -1
  36. package/dist/ssg/index.mjs +93 -6
  37. package/dist/ssg/prerender.d.ts.map +1 -1
  38. package/dist/style.css +5 -46
  39. package/dist/vite-plugin.cjs +142 -3
  40. package/dist/vite-plugin.d.ts +22 -21
  41. package/dist/vite-plugin.d.ts.map +1 -1
  42. package/dist/vite-plugin.mjs +142 -3
  43. package/package.json +4 -1
  44. package/dist/PreviewApp-BZNzZkit.js +0 -4
  45. package/dist/PreviewApp-C1WvJWI4.cjs +0 -4
  46. package/dist/constants-BjitNk-W.js +0 -8
  47. package/dist/constants-CFB_pMvT.cjs +0 -7
@@ -1 +1 @@
1
- {"version":3,"file":"CmsPageView.vue.d.ts","sourceRoot":"","sources":["../src/CmsPageView.vue"],"names":[],"mappings":";AAoXA,wBAMG"}
1
+ {"version":3,"file":"CmsPageView.vue.d.ts","sourceRoot":"","sources":["../src/CmsPageView.vue"],"names":[],"mappings":";AA0XA,wBAMG"}
@@ -0,0 +1,4 @@
1
+ import { _ as _sfc_main } from "./PreviewApp.vue_vue_type_style_index_0_lang-BkGWMbsE.js";
2
+ export {
3
+ _sfc_main as default
4
+ };
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const PreviewApp_vue_vue_type_style_index_0_lang = require("./PreviewApp.vue_vue_type_style_index_0_lang-CFS05Itn.cjs");
4
+ exports.default = PreviewApp_vue_vue_type_style_index_0_lang._sfc_main;
@@ -1 +1 @@
1
- {"version":3,"file":"PreviewApp.vue.d.ts","sourceRoot":"","sources":["../src/PreviewApp.vue"],"names":[],"mappings":";AAyQA,wBAMG"}
1
+ {"version":3,"file":"PreviewApp.vue.d.ts","sourceRoot":"","sources":["../src/PreviewApp.vue"],"names":[],"mappings":";AAyNA,wBAMG"}
@@ -0,0 +1,185 @@
1
+ import { defineComponent, inject, ref, h, provide, onMounted, onUnmounted, createElementBlock, openBlock, createVNode, unref, nextTick } from "vue";
2
+ import { e as BLOX_REGISTRY_KEY, u as useLocale } from "./core-CPXNfJ-Z.js";
3
+ function sendToEditor(msg) {
4
+ window.parent.postMessage(msg, "*");
5
+ }
6
+ function sendToPreview(iframe, msg) {
7
+ var _a;
8
+ (_a = iframe.contentWindow) == null ? void 0 : _a.postMessage(msg, "*");
9
+ }
10
+ const PreviewRenderer = defineComponent({
11
+ name: "PreviewRenderer",
12
+ props: {
13
+ blocks: {
14
+ type: Array,
15
+ default: () => []
16
+ },
17
+ selectedIndex: {
18
+ type: Number,
19
+ default: null
20
+ },
21
+ hoveredIndex: {
22
+ type: Number,
23
+ default: null
24
+ }
25
+ },
26
+ setup(props) {
27
+ const registry = inject(BLOX_REGISTRY_KEY, {});
28
+ const localHovered = ref(null);
29
+ function onBlockClick(index) {
30
+ sendToEditor({ type: "BLOX_BLOCK_CLICK", index });
31
+ }
32
+ function onBlockEnter(index) {
33
+ localHovered.value = index;
34
+ sendToEditor({ type: "BLOX_BLOCK_HOVER", index });
35
+ }
36
+ function onBlockLeave() {
37
+ localHovered.value = null;
38
+ sendToEditor({ type: "BLOX_BLOCK_HOVER", index: null });
39
+ }
40
+ const wrapperStyle = { position: "relative", cursor: "pointer" };
41
+ const overlayBase = {
42
+ position: "absolute",
43
+ inset: "0",
44
+ zIndex: "10",
45
+ pointerEvents: "auto",
46
+ transition: "box-shadow 0.12s, background 0.12s"
47
+ };
48
+ const overlayHovered = {
49
+ ...overlayBase,
50
+ boxShadow: "inset 0 0 0 2px rgba(99, 102, 241, 0.5)",
51
+ background: "rgba(99, 102, 241, 0.04)"
52
+ };
53
+ const overlaySelected = {
54
+ ...overlayBase,
55
+ boxShadow: "inset 0 0 0 3px #6366f1",
56
+ background: "rgba(99, 102, 241, 0.06)"
57
+ };
58
+ const labelBase = {
59
+ position: "absolute",
60
+ top: "0",
61
+ left: "0",
62
+ zIndex: "20",
63
+ padding: "2px 8px",
64
+ fontSize: "11px",
65
+ fontFamily: "system-ui, sans-serif",
66
+ fontWeight: "600",
67
+ lineHeight: "20px",
68
+ letterSpacing: "0.02em",
69
+ textTransform: "uppercase",
70
+ pointerEvents: "none",
71
+ whiteSpace: "nowrap",
72
+ color: "#6366f1",
73
+ background: "rgba(99, 102, 241, 0.1)",
74
+ borderBottomRightRadius: "4px"
75
+ };
76
+ const labelSelected = { ...labelBase, color: "#fff", background: "#6366f1" };
77
+ return () => h(
78
+ "div",
79
+ { class: "blox-preview-canvas" },
80
+ props.blocks.flatMap((block, i) => {
81
+ const definition = registry[block.type];
82
+ if (!definition) return [];
83
+ const isSelected = props.selectedIndex === i;
84
+ const isHovered = (props.hoveredIndex === i || localHovered.value === i) && !isSelected;
85
+ const { label } = definition.schema;
86
+ const overlayStyle = isSelected ? overlaySelected : isHovered ? overlayHovered : overlayBase;
87
+ return [
88
+ h(
89
+ "div",
90
+ {
91
+ "key": i,
92
+ "data-blox-index": i,
93
+ "style": wrapperStyle,
94
+ "onClick": () => {
95
+ onBlockClick(i);
96
+ },
97
+ "onMouseenter": () => {
98
+ onBlockEnter(i);
99
+ },
100
+ "onMouseleave": onBlockLeave
101
+ },
102
+ [
103
+ h(definition.component, { ...definition.schema.defaults, ...block.props }),
104
+ h("div", { style: overlayStyle }),
105
+ (isSelected || isHovered) && h("div", { style: isSelected ? labelSelected : labelBase }, label)
106
+ ]
107
+ )
108
+ ];
109
+ })
110
+ );
111
+ }
112
+ });
113
+ const _hoisted_1 = { class: "blox-preview-root" };
114
+ const _sfc_main = /* @__PURE__ */ defineComponent({
115
+ __name: "PreviewApp",
116
+ setup(__props) {
117
+ const registry = inject(BLOX_REGISTRY_KEY, {});
118
+ const { setLocale } = useLocale();
119
+ const blocks = ref([]);
120
+ const contexts = ref({});
121
+ const selectedIndex = ref(null);
122
+ const hoveredIndex = ref(null);
123
+ provide("contexts", contexts);
124
+ let heightObserver = null;
125
+ function onMessage(event) {
126
+ var _a;
127
+ const msg = event.data;
128
+ switch (msg.type) {
129
+ case "BLOX_INIT":
130
+ blocks.value = ((_a = msg.page.page.content) == null ? void 0 : _a.blocks) ?? [];
131
+ contexts.value = msg.page.contexts ?? {};
132
+ setLocale(msg.locale);
133
+ break;
134
+ case "BLOX_SET_LOCALE":
135
+ setLocale(msg.locale);
136
+ break;
137
+ case "BLOX_SET_BLOCKS":
138
+ blocks.value = msg.blocks;
139
+ break;
140
+ case "BLOX_SELECT_BLOCK":
141
+ selectedIndex.value = msg.index;
142
+ if (msg.index !== null) {
143
+ nextTick(() => {
144
+ const el = document.querySelector(`[data-blox-index="${msg.index}"]`);
145
+ el == null ? void 0 : el.scrollIntoView({ behavior: "smooth", block: "center" });
146
+ });
147
+ }
148
+ break;
149
+ case "BLOX_HOVER_BLOCK":
150
+ hoveredIndex.value = msg.index;
151
+ break;
152
+ }
153
+ }
154
+ onMounted(() => {
155
+ window.addEventListener("message", onMessage);
156
+ heightObserver = new ResizeObserver(() => {
157
+ sendToEditor({ type: "BLOX_HEIGHT", height: document.body.scrollHeight });
158
+ });
159
+ heightObserver.observe(document.body);
160
+ sendToEditor({
161
+ type: "BLOX_READY",
162
+ registry: Object.fromEntries(Object.entries(registry).map(([key, def]) => [key, def.schema]))
163
+ });
164
+ });
165
+ onUnmounted(() => {
166
+ window.removeEventListener("message", onMessage);
167
+ heightObserver == null ? void 0 : heightObserver.disconnect();
168
+ });
169
+ return (_ctx, _cache) => {
170
+ return openBlock(), createElementBlock("div", _hoisted_1, [
171
+ createVNode(unref(PreviewRenderer), {
172
+ blocks: blocks.value,
173
+ "selected-index": selectedIndex.value,
174
+ "hovered-index": hoveredIndex.value
175
+ }, null, 8, ["blocks", "selected-index", "hovered-index"])
176
+ ]);
177
+ };
178
+ }
179
+ });
180
+ export {
181
+ PreviewRenderer as P,
182
+ _sfc_main as _,
183
+ sendToPreview as a,
184
+ sendToEditor as s
185
+ };
@@ -0,0 +1,184 @@
1
+ "use strict";
2
+ const vue = require("vue");
3
+ const core = require("./core-D1FiZJtz.cjs");
4
+ function sendToEditor(msg) {
5
+ window.parent.postMessage(msg, "*");
6
+ }
7
+ function sendToPreview(iframe, msg) {
8
+ var _a;
9
+ (_a = iframe.contentWindow) == null ? void 0 : _a.postMessage(msg, "*");
10
+ }
11
+ const PreviewRenderer = vue.defineComponent({
12
+ name: "PreviewRenderer",
13
+ props: {
14
+ blocks: {
15
+ type: Array,
16
+ default: () => []
17
+ },
18
+ selectedIndex: {
19
+ type: Number,
20
+ default: null
21
+ },
22
+ hoveredIndex: {
23
+ type: Number,
24
+ default: null
25
+ }
26
+ },
27
+ setup(props) {
28
+ const registry = vue.inject(core.BLOX_REGISTRY_KEY, {});
29
+ const localHovered = vue.ref(null);
30
+ function onBlockClick(index) {
31
+ sendToEditor({ type: "BLOX_BLOCK_CLICK", index });
32
+ }
33
+ function onBlockEnter(index) {
34
+ localHovered.value = index;
35
+ sendToEditor({ type: "BLOX_BLOCK_HOVER", index });
36
+ }
37
+ function onBlockLeave() {
38
+ localHovered.value = null;
39
+ sendToEditor({ type: "BLOX_BLOCK_HOVER", index: null });
40
+ }
41
+ const wrapperStyle = { position: "relative", cursor: "pointer" };
42
+ const overlayBase = {
43
+ position: "absolute",
44
+ inset: "0",
45
+ zIndex: "10",
46
+ pointerEvents: "auto",
47
+ transition: "box-shadow 0.12s, background 0.12s"
48
+ };
49
+ const overlayHovered = {
50
+ ...overlayBase,
51
+ boxShadow: "inset 0 0 0 2px rgba(99, 102, 241, 0.5)",
52
+ background: "rgba(99, 102, 241, 0.04)"
53
+ };
54
+ const overlaySelected = {
55
+ ...overlayBase,
56
+ boxShadow: "inset 0 0 0 3px #6366f1",
57
+ background: "rgba(99, 102, 241, 0.06)"
58
+ };
59
+ const labelBase = {
60
+ position: "absolute",
61
+ top: "0",
62
+ left: "0",
63
+ zIndex: "20",
64
+ padding: "2px 8px",
65
+ fontSize: "11px",
66
+ fontFamily: "system-ui, sans-serif",
67
+ fontWeight: "600",
68
+ lineHeight: "20px",
69
+ letterSpacing: "0.02em",
70
+ textTransform: "uppercase",
71
+ pointerEvents: "none",
72
+ whiteSpace: "nowrap",
73
+ color: "#6366f1",
74
+ background: "rgba(99, 102, 241, 0.1)",
75
+ borderBottomRightRadius: "4px"
76
+ };
77
+ const labelSelected = { ...labelBase, color: "#fff", background: "#6366f1" };
78
+ return () => vue.h(
79
+ "div",
80
+ { class: "blox-preview-canvas" },
81
+ props.blocks.flatMap((block, i) => {
82
+ const definition = registry[block.type];
83
+ if (!definition) return [];
84
+ const isSelected = props.selectedIndex === i;
85
+ const isHovered = (props.hoveredIndex === i || localHovered.value === i) && !isSelected;
86
+ const { label } = definition.schema;
87
+ const overlayStyle = isSelected ? overlaySelected : isHovered ? overlayHovered : overlayBase;
88
+ return [
89
+ vue.h(
90
+ "div",
91
+ {
92
+ "key": i,
93
+ "data-blox-index": i,
94
+ "style": wrapperStyle,
95
+ "onClick": () => {
96
+ onBlockClick(i);
97
+ },
98
+ "onMouseenter": () => {
99
+ onBlockEnter(i);
100
+ },
101
+ "onMouseleave": onBlockLeave
102
+ },
103
+ [
104
+ vue.h(definition.component, { ...definition.schema.defaults, ...block.props }),
105
+ vue.h("div", { style: overlayStyle }),
106
+ (isSelected || isHovered) && vue.h("div", { style: isSelected ? labelSelected : labelBase }, label)
107
+ ]
108
+ )
109
+ ];
110
+ })
111
+ );
112
+ }
113
+ });
114
+ const _hoisted_1 = { class: "blox-preview-root" };
115
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
116
+ __name: "PreviewApp",
117
+ setup(__props) {
118
+ const registry = vue.inject(core.BLOX_REGISTRY_KEY, {});
119
+ const { setLocale } = core.useLocale();
120
+ const blocks = vue.ref([]);
121
+ const contexts = vue.ref({});
122
+ const selectedIndex = vue.ref(null);
123
+ const hoveredIndex = vue.ref(null);
124
+ vue.provide("contexts", contexts);
125
+ let heightObserver = null;
126
+ function onMessage(event) {
127
+ var _a;
128
+ const msg = event.data;
129
+ switch (msg.type) {
130
+ case "BLOX_INIT":
131
+ blocks.value = ((_a = msg.page.page.content) == null ? void 0 : _a.blocks) ?? [];
132
+ contexts.value = msg.page.contexts ?? {};
133
+ setLocale(msg.locale);
134
+ break;
135
+ case "BLOX_SET_LOCALE":
136
+ setLocale(msg.locale);
137
+ break;
138
+ case "BLOX_SET_BLOCKS":
139
+ blocks.value = msg.blocks;
140
+ break;
141
+ case "BLOX_SELECT_BLOCK":
142
+ selectedIndex.value = msg.index;
143
+ if (msg.index !== null) {
144
+ vue.nextTick(() => {
145
+ const el = document.querySelector(`[data-blox-index="${msg.index}"]`);
146
+ el == null ? void 0 : el.scrollIntoView({ behavior: "smooth", block: "center" });
147
+ });
148
+ }
149
+ break;
150
+ case "BLOX_HOVER_BLOCK":
151
+ hoveredIndex.value = msg.index;
152
+ break;
153
+ }
154
+ }
155
+ vue.onMounted(() => {
156
+ window.addEventListener("message", onMessage);
157
+ heightObserver = new ResizeObserver(() => {
158
+ sendToEditor({ type: "BLOX_HEIGHT", height: document.body.scrollHeight });
159
+ });
160
+ heightObserver.observe(document.body);
161
+ sendToEditor({
162
+ type: "BLOX_READY",
163
+ registry: Object.fromEntries(Object.entries(registry).map(([key, def]) => [key, def.schema]))
164
+ });
165
+ });
166
+ vue.onUnmounted(() => {
167
+ window.removeEventListener("message", onMessage);
168
+ heightObserver == null ? void 0 : heightObserver.disconnect();
169
+ });
170
+ return (_ctx, _cache) => {
171
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
172
+ vue.createVNode(vue.unref(PreviewRenderer), {
173
+ blocks: blocks.value,
174
+ "selected-index": selectedIndex.value,
175
+ "hovered-index": hoveredIndex.value
176
+ }, null, 8, ["blocks", "selected-index", "hovered-index"])
177
+ ]);
178
+ };
179
+ }
180
+ });
181
+ exports.PreviewRenderer = PreviewRenderer;
182
+ exports._sfc_main = _sfc_main;
183
+ exports.sendToEditor = sendToEditor;
184
+ exports.sendToPreview = sendToPreview;
@@ -1 +1 @@
1
- {"version":3,"file":"PreviewRenderer.d.ts","sourceRoot":"","sources":["../src/PreviewRenderer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AACnC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;;;cAatB,QAAQ,CAAC,KAAK,EAAE,CAAC;uBACnB,KAAK,EAAE;;;cAGJ,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAC;;;;cAIvB,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAC;;;;;;;cARxB,QAAQ,CAAC,KAAK,EAAE,CAAC;uBACnB,KAAK,EAAE;;;cAGJ,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAC;;;;cAIvB,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAC;;;;;;;;AAZ1C,wBA6EE"}
1
+ {"version":3,"file":"PreviewRenderer.d.ts","sourceRoot":"","sources":["../src/PreviewRenderer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AACnC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;;;cAatB,QAAQ,CAAC,KAAK,EAAE,CAAC;uBACnB,KAAK,EAAE;;;cAGJ,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAC;;;;cAIvB,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAC;;;;;;;cARxB,QAAQ,CAAC,KAAK,EAAE,CAAC;uBACnB,KAAK,EAAE;;;cAGJ,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAC;;;;cAIvB,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAC;;;;;;;;AAZ1C,wBA8FE"}
package/dist/bridge.d.ts CHANGED
@@ -6,6 +6,7 @@ export interface BlockSchemaInfo {
6
6
  icon?: string;
7
7
  fields: SchemaDefinition;
8
8
  defaults?: Record<string, unknown>;
9
+ dataSource?: boolean;
9
10
  }
10
11
  export type EditorMessage = {
11
12
  type: 'BLOX_INIT';
@@ -1 +1 @@
1
- {"version":3,"file":"b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