@juo/orion-core 0.14.0 → 0.16.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.
@@ -5,8 +5,8 @@ var __publicField = (obj, key, value) => {
5
5
  return value;
6
6
  };
7
7
  import { signal, effect, createBlockInstance } from "@juo/orion-core";
8
- import { d, j as withWrapper, q as subscribeContext, T as ThemeStateContext, E, t as n } from "./theme-state-TW-9hD7e.js";
9
- import "./juo-workflow-CoWvwYTn.js";
8
+ import { d, j as withWrapper, t as subscribeContext, T as ThemeStateContext, E, v as n } from "./theme-state-D4n_2n_h.js";
9
+ import "./juo-workflow-ComG9rLp.js";
10
10
  class Block extends HTMLElement {
11
11
  constructor() {
12
12
  super();
@@ -1,8 +1,8 @@
1
1
  function isEditorMessage(message) {
2
- return message.type === "PROVIDE_THEME_STATE" || message.type === "PROVIDE_TRANSLATION_OVERRIDES" || message.type === "SELECT_BLOCK" || message.type === "UPDATE_BLOCK_PROPS" || message.type === "ADD_BLOCK" || message.type === "REMOVE_BLOCK" || message.type === "MOVE_BLOCK" || message.type === "SET_BLOCK_PRESET" || message.type === "SET_LOCALE" || message.type === "SET_GLOBAL_STYLES" || message.type === "PROVIDE_GLOBAL_STYLES";
2
+ return message.type === "PROVIDE_THEME_STATE" || message.type === "PROVIDE_TRANSLATION_OVERRIDES" || message.type === "SELECT_BLOCK" || message.type === "UPDATE_BLOCK_PROPS" || message.type === "ADD_BLOCK" || message.type === "REMOVE_BLOCK" || message.type === "MOVE_BLOCK" || message.type === "SET_BLOCK_PRESET" || message.type === "SET_LOCALE" || message.type === "SET_GLOBAL_STYLES" || message.type === "PROVIDE_GLOBAL_STYLES" || message.type === "SCROLL_SYNC" || message.type === "REQUEST_CONTENT_HEIGHT";
3
3
  }
4
4
  function isIframeMessage(message) {
5
- return message.type === "SELECT_BLOCK" || message.type === "IFRAME_READY" || message.type === "REGISTER_BLOCKS" || message.type === "REGISTER_ROUTES" || message.type === "REMOVE_BLOCK" || message.type === "UPDATE_BLOCK_PROPS" || message.type === "REQUEST_THEME_STATE" || message.type === "REQUEST_TRANSLATION_OVERRIDES" || message.type === "UPDATE_BLOCK_TRANSLATION" || message.type === "FOCUS_INLINE_TEXT" || message.type === "REQUEST_GLOBAL_STYLES";
5
+ return message.type === "SELECT_BLOCK" || message.type === "IFRAME_READY" || message.type === "REGISTER_BLOCKS" || message.type === "REGISTER_ROUTES" || message.type === "REMOVE_BLOCK" || message.type === "UPDATE_BLOCK_PROPS" || message.type === "REQUEST_THEME_STATE" || message.type === "REQUEST_TRANSLATION_OVERRIDES" || message.type === "UPDATE_BLOCK_TRANSLATION" || message.type === "FOCUS_INLINE_TEXT" || message.type === "REQUEST_GLOBAL_STYLES" || message.type === "PROVIDE_INITIAL_GLOBAL_STYLES" || message.type === "REPORT_CONTENT_HEIGHT" || message.type === "SCROLL_SYNC";
6
6
  }
7
7
  function createProvideThemeStateMessage(payload) {
8
8
  return {
@@ -146,6 +146,27 @@ function createProvideGlobalStylesMessage(payload) {
146
146
  timestamp: Date.now()
147
147
  };
148
148
  }
149
+ function createProvideInitialGlobalStylesMessage(payload) {
150
+ return {
151
+ type: "PROVIDE_INITIAL_GLOBAL_STYLES",
152
+ payload,
153
+ timestamp: Date.now()
154
+ };
155
+ }
156
+ function createScrollSyncMessage(payload) {
157
+ return {
158
+ type: "SCROLL_SYNC",
159
+ payload,
160
+ timestamp: Date.now()
161
+ };
162
+ }
163
+ function createReportContentHeightMessage(payload) {
164
+ return {
165
+ type: "REPORT_CONTENT_HEIGHT",
166
+ payload,
167
+ timestamp: Date.now()
168
+ };
169
+ }
149
170
  let bridgeInstance = null;
150
171
  function getEditorBridge() {
151
172
  return bridgeInstance;
@@ -331,6 +352,13 @@ function createEditorBridge() {
331
352
  }
332
353
  } else if (data.type === "SELECT_BLOCK") {
333
354
  updateBlockSelection(data.payload.blockId);
355
+ } else if (data.type === "SCROLL_SYNC") {
356
+ suppressScrollReport = true;
357
+ window.scrollTo(0, data.payload.scrollY);
358
+ return;
359
+ } else if (data.type === "REQUEST_CONTENT_HEIGHT") {
360
+ reportContentHeight();
361
+ return;
334
362
  }
335
363
  messageHandlers.forEach((handler) => handler(data));
336
364
  }
@@ -352,6 +380,35 @@ function createEditorBridge() {
352
380
  });
353
381
  }
354
382
  const isEditorMode = window.parent !== window;
383
+ let ghostScrollStyleEl = null;
384
+ let ghostScrollObserver = null;
385
+ let suppressScrollReport = false;
386
+ function reportContentHeight() {
387
+ var _a;
388
+ if (!isEditorMode)
389
+ return;
390
+ const height = Math.max(
391
+ document.documentElement.scrollHeight,
392
+ ((_a = document.body) == null ? void 0 : _a.scrollHeight) ?? 0
393
+ );
394
+ sendMessage(createReportContentHeightMessage({ height }));
395
+ }
396
+ function handleScrollEvent() {
397
+ if (suppressScrollReport) {
398
+ suppressScrollReport = false;
399
+ return;
400
+ }
401
+ sendMessage(createScrollSyncMessage({ scrollY: window.scrollY }));
402
+ }
403
+ if (isEditorMode) {
404
+ ghostScrollStyleEl = document.createElement("style");
405
+ ghostScrollStyleEl.textContent = "html { scrollbar-width: none; } html::-webkit-scrollbar { display: none; }";
406
+ document.head.appendChild(ghostScrollStyleEl);
407
+ window.addEventListener("scroll", handleScrollEvent, { passive: true });
408
+ ghostScrollObserver = new ResizeObserver(reportContentHeight);
409
+ ghostScrollObserver.observe(document.documentElement);
410
+ reportContentHeight();
411
+ }
355
412
  function onBlockPresetChange(blockId, callback) {
356
413
  return onMessage((message) => {
357
414
  if (message.type !== "SET_BLOCK_PRESET")
@@ -368,6 +425,11 @@ function createEditorBridge() {
368
425
  function destroy() {
369
426
  window.removeEventListener("message", handleWindowMessage);
370
427
  document.removeEventListener("click", handleGlobalClick, true);
428
+ window.removeEventListener("scroll", handleScrollEvent);
429
+ ghostScrollObserver == null ? void 0 : ghostScrollObserver.disconnect();
430
+ ghostScrollObserver = null;
431
+ ghostScrollStyleEl == null ? void 0 : ghostScrollStyleEl.remove();
432
+ ghostScrollStyleEl = null;
371
433
  for (const [, { timer }] of pendingRequests) {
372
434
  clearTimeout(timer);
373
435
  }
@@ -417,5 +479,8 @@ export {
417
479
  createSetGlobalStylesMessage as s,
418
480
  createRequestGlobalStylesMessage as t,
419
481
  createProvideGlobalStylesMessage as u,
420
- getEditorBridge as v
482
+ createProvideInitialGlobalStylesMessage as v,
483
+ createScrollSyncMessage as w,
484
+ createReportContentHeightMessage as x,
485
+ getEditorBridge as y
421
486
  };
package/dist/core.js CHANGED
@@ -4,9 +4,9 @@ var __publicField = (obj, key, value) => {
4
4
  __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
5
  return value;
6
6
  };
7
- import { c as createContext, d, w, E, u } from "./theme-state-TW-9hD7e.js";
8
- import { B, n, C, D, S, T, a, b, e, f, k, l, g, h, i, m, o, p, r, s, q, t, j } from "./theme-state-TW-9hD7e.js";
9
- import { T as T2, W, c, b as b2, a as a2, g as g2, h as h2 } from "./juo-workflow-CoWvwYTn.js";
7
+ import { c as createContext, d, w, E, u } from "./theme-state-D4n_2n_h.js";
8
+ import { B, n, C, D, S, T, a, b, e, f, k, l, g, h, i, m, p, o, q, r, s, t, v, j } from "./theme-state-D4n_2n_h.js";
9
+ import { T as T2, W, c, b as b2, a as a2, g as g2, h as h2 } from "./juo-workflow-ComG9rLp.js";
10
10
  function createState() {
11
11
  const discountCode = d(null);
12
12
  const products = d([]);
@@ -1121,13 +1121,14 @@ export {
1121
1121
  i as getDefinedBlocks,
1122
1122
  h2 as hasDefaultBlockForAction,
1123
1123
  m as indexOverrides,
1124
- o as injectContext,
1124
+ p as injectContext,
1125
1125
  loginService,
1126
- p as provideContext,
1126
+ o as onRegisterBlock,
1127
+ q as provideContext,
1127
1128
  r as registerBlock,
1128
1129
  s as serializeBlocks,
1129
1130
  d as signal,
1130
- q as subscribeContext,
1131
- t as untracked,
1131
+ t as subscribeContext,
1132
+ v as untracked,
1132
1133
  j as withWrapper
1133
1134
  };
@@ -1,6 +1,6 @@
1
1
  import { Block, BlockPresets } from '../block';
2
2
  import { GlobalStyles, ThemeSurface, TranslationOverride } from '../theme-state';
3
- export type MessageType = "PROVIDE_THEME_STATE" | "SELECT_BLOCK" | "UPDATE_BLOCK_PROPS" | "ADD_BLOCK" | "REMOVE_BLOCK" | "MOVE_BLOCK" | "IFRAME_READY" | "REGISTER_BLOCKS" | "REGISTER_ROUTES" | "SET_BLOCK_PRESET" | "SET_LOCALE" | "REQUEST_THEME_STATE" | "REQUEST_TRANSLATION_OVERRIDES" | "PROVIDE_TRANSLATION_OVERRIDES" | "UPDATE_BLOCK_TRANSLATION" | "FOCUS_INLINE_TEXT" | "SET_GLOBAL_STYLES" | "REQUEST_GLOBAL_STYLES" | "PROVIDE_GLOBAL_STYLES";
3
+ export type MessageType = "PROVIDE_THEME_STATE" | "SELECT_BLOCK" | "UPDATE_BLOCK_PROPS" | "ADD_BLOCK" | "REMOVE_BLOCK" | "MOVE_BLOCK" | "IFRAME_READY" | "REGISTER_BLOCKS" | "REGISTER_ROUTES" | "SET_BLOCK_PRESET" | "SET_LOCALE" | "REQUEST_THEME_STATE" | "REQUEST_TRANSLATION_OVERRIDES" | "PROVIDE_TRANSLATION_OVERRIDES" | "UPDATE_BLOCK_TRANSLATION" | "FOCUS_INLINE_TEXT" | "SET_GLOBAL_STYLES" | "REQUEST_GLOBAL_STYLES" | "PROVIDE_GLOBAL_STYLES" | "PROVIDE_INITIAL_GLOBAL_STYLES" | "SCROLL_SYNC" | "REPORT_CONTENT_HEIGHT" | "REQUEST_CONTENT_HEIGHT";
4
4
  export interface BaseMessage {
5
5
  type: MessageType;
6
6
  timestamp: number;
@@ -170,8 +170,14 @@ export interface ProvideGlobalStylesMessage extends BaseMessage {
170
170
  styles: GlobalStyles;
171
171
  };
172
172
  }
173
- export type EditorMessage = ProvideThemeStateMessage | ProvideTranslationOverridesMessage | SelectBlockMessage | UpdateBlockPropsMessage | AddBlockMessage | RemoveBlockMessage | MoveBlockMessage | SetBlockPresetMessage | SetLocaleMessage | SetGlobalStylesMessage | ProvideGlobalStylesMessage;
174
- export type IframeMessage = SelectBlockMessage | IframeReadyMessage | RegisterBlocksMessage | RegisterRoutesMessage | RemoveBlockMessage | UpdateBlockPropsMessage | RequestThemeStateMessage | RequestTranslationOverridesMessage | UpdateBlockTranslationMessage | FocusInlineTextMessage | RequestGlobalStylesMessage;
173
+ export interface ProvideInitialGlobalStylesMessage extends BaseMessage {
174
+ type: "PROVIDE_INITIAL_GLOBAL_STYLES";
175
+ payload: {
176
+ styles: GlobalStyles;
177
+ };
178
+ }
179
+ export type EditorMessage = ProvideThemeStateMessage | ProvideTranslationOverridesMessage | SelectBlockMessage | UpdateBlockPropsMessage | AddBlockMessage | RemoveBlockMessage | MoveBlockMessage | SetBlockPresetMessage | SetLocaleMessage | SetGlobalStylesMessage | ProvideGlobalStylesMessage | ScrollSyncMessage | RequestContentHeightMessage;
180
+ export type IframeMessage = SelectBlockMessage | IframeReadyMessage | RegisterBlocksMessage | RegisterRoutesMessage | RemoveBlockMessage | UpdateBlockPropsMessage | RequestThemeStateMessage | RequestTranslationOverridesMessage | UpdateBlockTranslationMessage | FocusInlineTextMessage | RequestGlobalStylesMessage | ProvideInitialGlobalStylesMessage | ReportContentHeightMessage | ScrollSyncMessage;
175
181
  export type AnyMessage = EditorMessage | IframeMessage;
176
182
  export declare function isEditorMessage(message: AnyMessage): message is EditorMessage;
177
183
  export declare function isIframeMessage(message: AnyMessage): message is IframeMessage;
@@ -192,4 +198,23 @@ export declare function createFocusInlineTextMessage(payload: FocusInlineTextMes
192
198
  export declare function createRegisterRoutesMessage(payload: RegisterRoutesMessage["payload"]): RegisterRoutesMessage;
193
199
  export declare function createSetGlobalStylesMessage(payload: SetGlobalStylesMessage["payload"]): SetGlobalStylesMessage;
194
200
  export declare function createRequestGlobalStylesMessage(payload: RequestGlobalStylesMessage["payload"]): RequestGlobalStylesMessage;
201
+ export interface ScrollSyncMessage extends BaseMessage {
202
+ type: "SCROLL_SYNC";
203
+ payload: {
204
+ scrollY: number;
205
+ };
206
+ }
207
+ export interface ReportContentHeightMessage extends BaseMessage {
208
+ type: "REPORT_CONTENT_HEIGHT";
209
+ payload: {
210
+ height: number;
211
+ };
212
+ }
213
+ export interface RequestContentHeightMessage extends BaseMessage {
214
+ type: "REQUEST_CONTENT_HEIGHT";
215
+ payload: Record<string, never>;
216
+ }
195
217
  export declare function createProvideGlobalStylesMessage(payload: ProvideGlobalStylesMessage["payload"]): ProvideGlobalStylesMessage;
218
+ export declare function createProvideInitialGlobalStylesMessage(payload: ProvideInitialGlobalStylesMessage["payload"]): ProvideInitialGlobalStylesMessage;
219
+ export declare function createScrollSyncMessage(payload: ScrollSyncMessage["payload"]): ScrollSyncMessage;
220
+ export declare function createReportContentHeightMessage(payload: ReportContentHeightMessage["payload"]): ReportContentHeightMessage;
package/dist/editor.js CHANGED
@@ -4,10 +4,10 @@ var __publicField = (obj, key, value) => {
4
4
  __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
5
  return value;
6
6
  };
7
- import { getDefinedBlocks } from "@juo/orion-core";
8
- import { c as createEditorBridge, d as createRemoveBlockMessage, e as createRegisterBlocksMessage, f as createRegisterRoutesMessage } from "./bridge-fHXg0b-e.js";
9
- import { o, a, p, u, h, l, t, j, k, m, q, s, r, n, b, v, i, g } from "./bridge-fHXg0b-e.js";
10
- import { e as createBlockInstanceFromObject, m as indexOverrides, x as onRegisterBlock } from "./theme-state-TW-9hD7e.js";
7
+ import { getDefinedBlocks, onRegisterBlock } from "@juo/orion-core";
8
+ import { c as createEditorBridge, d as createRemoveBlockMessage, e as createRegisterBlocksMessage, f as createRegisterRoutesMessage } from "./bridge-D-0V6_BT.js";
9
+ import { o, a, p, u, v, h, l, x, t, j, k, w, m, q, s, r, n, b, y, i, g } from "./bridge-D-0V6_BT.js";
10
+ import { e as createBlockInstanceFromObject, m as indexOverrides } from "./theme-state-D4n_2n_h.js";
11
11
  function createEditorHandler(options) {
12
12
  const { themeState, onBlockSelection } = options;
13
13
  const blockSurfaceIndex = /* @__PURE__ */ new Map();
@@ -669,21 +669,24 @@ export {
669
669
  a as createFocusInlineTextMessage,
670
670
  p as createMoveBlockMessage,
671
671
  u as createProvideGlobalStylesMessage,
672
+ v as createProvideInitialGlobalStylesMessage,
672
673
  h as createProvideThemeStateMessage,
673
674
  l as createProvideTranslationOverridesMessage,
674
675
  createRegisterBlocksMessage,
675
676
  createRegisterRoutesMessage,
676
677
  createRemoveBlockMessage,
678
+ x as createReportContentHeightMessage,
677
679
  t as createRequestGlobalStylesMessage,
678
680
  j as createRequestThemeStateMessage,
679
681
  k as createRequestTranslationOverridesMessage,
682
+ w as createScrollSyncMessage,
680
683
  m as createSelectBlockMessage,
681
684
  q as createSetBlockPresetMessage,
682
685
  s as createSetGlobalStylesMessage,
683
686
  r as createSetLocaleMessage,
684
687
  n as createUpdateBlockPropsMessage,
685
688
  b as createUpdateBlockTranslationMessage,
686
- v as getEditorBridge,
689
+ y as getEditorBridge,
687
690
  i as isEditorMessage,
688
691
  g as isIframeMessage,
689
692
  setupEditorMode
@@ -61,6 +61,7 @@ export interface WorkflowState {
61
61
  /** Describes the primary action taken when the workflow completes.
62
62
  * Used to show a confirmation toast (e.g. "Your subscription has been cancelled"). */
63
63
  outcome: WorkflowOutcome | null;
64
+ dryRun: boolean | null;
64
65
  }
65
66
  /** Available steps metadata (for rendering and editor) */
66
67
  export interface WorkflowStepInfo {
@@ -4,8 +4,8 @@ var __publicField = (obj, key, value) => {
4
4
  __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
5
  return value;
6
6
  };
7
- import { c as createContext, d, E, i as getDefinedBlocks, a as createBlockInstance, w, r as registerBlock, g as defineBlock, q as subscribeContext } from "./theme-state-TW-9hD7e.js";
8
- import { c as createEditorBridge } from "./bridge-fHXg0b-e.js";
7
+ import { c as createContext, d, E, i as getDefinedBlocks, a as createBlockInstance, w, r as registerBlock, g as defineBlock, t as subscribeContext } from "./theme-state-D4n_2n_h.js";
8
+ import { c as createEditorBridge } from "./bridge-D-0V6_BT.js";
9
9
  const TranslationContext = createContext("translation");
10
10
  function toStringRecord(input) {
11
11
  if (input == null)
@@ -134,7 +134,8 @@ function createWorkflowService(deps) {
134
134
  result: null,
135
135
  flowParams: null,
136
136
  invalidatedResources: [],
137
- outcome: null
137
+ outcome: null,
138
+ dryRun: null
138
139
  });
139
140
  const _registeredRootBlocks = /* @__PURE__ */ new Set();
140
141
  const isActive = w(() => _state.value.status === "active");
@@ -351,8 +352,14 @@ function createWorkflowService(deps) {
351
352
  currentStepInfo,
352
353
  // Methods
353
354
  async startFlow(flowType, context, workflowId) {
354
- updateState({ status: "loading", error: null, flowParams: context, flowType });
355
355
  const isDryRun = isEditorMode;
356
+ updateState({
357
+ status: "loading",
358
+ error: null,
359
+ flowParams: context,
360
+ flowType,
361
+ dryRun: isDryRun
362
+ });
356
363
  try {
357
364
  const data = await api.start(
358
365
  flowType,
package/dist/main.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export type { Block, BlockInstance, BlockDefinition, BlockLocaleFile, BlockRenderer, BlockPreset, BlockPresets, } from './block';
2
- export { createBlockInstance, createBlockInstanceFromJSON, createBlockInstanceFromObject, createCeRenderer, defineBlock, defineBlockRuntime, getDefinedBlocks, withWrapper, registerBlock, SelectedBlockContext, createSelectedBlock, BlockWrapperEvent, serializeBlocks, } from './block';
2
+ export { createBlockInstance, createBlockInstanceFromJSON, createBlockInstanceFromObject, createCeRenderer, defineBlock, defineBlockRuntime, getDefinedBlocks, withWrapper, registerBlock, SelectedBlockContext, createSelectedBlock, BlockWrapperEvent, serializeBlocks, onRegisterBlock, } from './block';
3
3
  export { ThemeStateContext, createThemeState, indexOverrides, type TranslationCatalogs, type TranslationMode, type TranslationScope, type TranslationOverride, type ThemeLocaleState, type ThemeState, type ThemeSurface, type ThemeSurfaceState, type GlobalStyles, type GlobalStyleColors, type ThemeType, DEFAULT_GLOBAL_STYLES, } from './theme-state';
4
4
  export { TranslationContext, createTranslationService, type TranslationServiceOptions, type TranslationService, } from './translation';
5
5
  export { ContextRequestEvent, ContextProvideEvent, type ContextCallback, createContext, injectContext, provideContext, subscribeContext, type ContextType, type UnknownContext, } from './context';
@@ -7,4 +7,4 @@ export { StateContext, createState } from './state';
7
7
  export * from './utils';
8
8
  export * from './services';
9
9
  export * from './flows';
10
- export { Signal, signal, effect, computed, untracked } from '@preact/signals-core';
10
+ export { Signal, signal, effect, computed, untracked, } from '@preact/signals-core';
package/dist/preact.js CHANGED
@@ -9,7 +9,7 @@ import { useState, useRef, useEffect, useContext as useContext$1, useMemo } from
9
9
  import { g as getSignalValue, s as setSignalValue, w as wrapContext, c as createSlotChildren } from "./block-DPjf_G7G.js";
10
10
  import { t } from "./block-DPjf_G7G.js";
11
11
  import { createContext, h, render } from "preact";
12
- import { c as createEditorBridge } from "./bridge-fHXg0b-e.js";
12
+ import { c as createEditorBridge } from "./bridge-D-0V6_BT.js";
13
13
  function toState(signal) {
14
14
  const [value, setValue] = useState(() => getSignalValue(signal));
15
15
  const disposeRef = useRef(null);
package/dist/react.js CHANGED
@@ -9,7 +9,7 @@ import React, { useSyncExternalStore, createContext, useState, useContext as use
9
9
  import { g as getSignalValue, s as setSignalValue, w as wrapContext, c as createSlotChildren } from "./block-DPjf_G7G.js";
10
10
  import { t } from "./block-DPjf_G7G.js";
11
11
  import { createRoot } from "react-dom/client";
12
- import { c as createEditorBridge } from "./bridge-fHXg0b-e.js";
12
+ import { c as createEditorBridge } from "./bridge-D-0V6_BT.js";
13
13
  function toState(signal) {
14
14
  const subscribe = (callback) => {
15
15
  const dispose = effect(() => {
@@ -737,7 +737,7 @@ const DEFAULT_GLOBAL_STYLES = {
737
737
  colors: {
738
738
  accent: "#000000",
739
739
  secondary: "#000000",
740
- tint: "#FFFFFF",
740
+ tint: "#111111",
741
741
  callout: "#F5F5F5",
742
742
  success: "#287a25",
743
743
  error: "#a93c3c",
@@ -917,14 +917,14 @@ export {
917
917
  createThemeState as l,
918
918
  indexOverrides as m,
919
919
  ContextProvideEvent as n,
920
- injectContext as o,
921
- provideContext as p,
922
- subscribeContext as q,
920
+ onRegisterBlock as o,
921
+ injectContext as p,
922
+ provideContext as q,
923
923
  registerBlock as r,
924
924
  serializeBlocks as s,
925
- n as t,
925
+ subscribeContext as t,
926
926
  u,
927
- ContextRoot as v,
927
+ n as v,
928
928
  w,
929
- onRegisterBlock as x
929
+ ContextRoot as x
930
930
  };
package/dist/vue.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { toValue, watchEffect, customRef, defineComponent, ref, getCurrentInstance, onMounted, provide, h, renderSlot, inject, computed, createApp, useHost, defineCustomElement } from "vue";
2
2
  import { signal, effect, injectContext, provideContext, createCeRenderer } from "@juo/orion-core";
3
- import { c as createEditorBridge } from "./bridge-fHXg0b-e.js";
3
+ import { c as createEditorBridge } from "./bridge-D-0V6_BT.js";
4
4
  const signalsMap = /* @__PURE__ */ new WeakMap();
5
5
  function toSignal(ref2) {
6
6
  if (!signalsMap.has(ref2)) {
@@ -4,10 +4,10 @@ var __publicField = (obj, key, value) => {
4
4
  __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
5
  return value;
6
6
  };
7
- import { o as injectContext, E, v as ContextRoot } from "./theme-state-TW-9hD7e.js";
8
- import { E as ExtensionRoot, B as Block } from "./ExtensionRoot-BFk-vt2J.js";
9
- import { c as createEditorBridge, a as createFocusInlineTextMessage, b as createUpdateBlockTranslationMessage } from "./bridge-fHXg0b-e.js";
10
- import { T as TranslationContext } from "./juo-workflow-CoWvwYTn.js";
7
+ import { p as injectContext, E, x as ContextRoot } from "./theme-state-D4n_2n_h.js";
8
+ import { E as ExtensionRoot, B as Block } from "./ExtensionRoot-Cy6c9p75.js";
9
+ import { c as createEditorBridge, a as createFocusInlineTextMessage, b as createUpdateBlockTranslationMessage } from "./bridge-D-0V6_BT.js";
10
+ import { T as TranslationContext } from "./juo-workflow-ComG9rLp.js";
11
11
  const _InlineText = class _InlineText extends HTMLElement {
12
12
  constructor() {
13
13
  super();
@@ -4,9 +4,9 @@ var __publicField = (obj, key, value) => {
4
4
  __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
5
  return value;
6
6
  };
7
- import { o as injectContext, E, v as ContextRoot } from "./theme-state-TW-9hD7e.js";
8
- import { E as ExtensionRoot, B as Block } from "./ExtensionRoot-BFk-vt2J.js";
9
- import { T as TranslationContext } from "./juo-workflow-CoWvwYTn.js";
7
+ import { p as injectContext, E, x as ContextRoot } from "./theme-state-D4n_2n_h.js";
8
+ import { E as ExtensionRoot, B as Block } from "./ExtensionRoot-Cy6c9p75.js";
9
+ import { T as TranslationContext } from "./juo-workflow-ComG9rLp.js";
10
10
  class InlineText extends HTMLElement {
11
11
  constructor() {
12
12
  super(...arguments);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@juo/orion-core",
3
3
  "private": false,
4
- "version": "0.14.0",
4
+ "version": "0.16.0",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"