@juo/blocks 1.0.0 → 1.0.1

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.
@@ -2,8 +2,8 @@ var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
4
  import { signal, effect, createBlockInstance } from "@juo/blocks";
5
- import { d, j as withWrapper, t as subscribeContext, T as ThemeStateContext, E, v as n } from "./theme-state-BZplRS92.js";
6
- import "./juo-workflow-RSrOuKUH.js";
5
+ import { d, q as subscribeContext, T as ThemeStateContext, E, v as withWrapper, t as n } from "./theme-state-DMyDKxtl.js";
6
+ import "./juo-workflow-BvTgGZQj.js";
7
7
  class Block extends HTMLElement {
8
8
  constructor() {
9
9
  super();
@@ -469,22 +469,22 @@ export {
469
469
  createRemoveBlockMessage as f,
470
470
  createRegisterBlocksMessage as g,
471
471
  createRegisterRoutesMessage as h,
472
- isEditorMessage as i,
473
- isIframeMessage as j,
474
- createProvideThemeStateMessage as k,
475
- createRequestThemeStateMessage as l,
476
- createRequestTranslationOverridesMessage as m,
472
+ createAddBlockMessage as i,
473
+ createMoveBlockMessage as j,
474
+ createProvideGlobalStylesMessage as k,
475
+ createProvideInitialGlobalStylesMessage as l,
476
+ createProvideThemeStateMessage as m,
477
477
  createProvideTranslationOverridesMessage as n,
478
- createUpdateBlockPropsMessage as o,
479
- createAddBlockMessage as p,
480
- createMoveBlockMessage as q,
481
- createSetBlockPresetMessage as r,
482
- createSetLocaleMessage as s,
483
- createSetGlobalStylesMessage as t,
484
- createRequestGlobalStylesMessage as u,
485
- createProvideGlobalStylesMessage as v,
486
- createProvideInitialGlobalStylesMessage as w,
487
- createScrollSyncMessage as x,
488
- createReportContentHeightMessage as y,
489
- getEditorBridge as z
478
+ createReportContentHeightMessage as o,
479
+ createRequestGlobalStylesMessage as p,
480
+ createRequestThemeStateMessage as q,
481
+ createRequestTranslationOverridesMessage as r,
482
+ createScrollSyncMessage as s,
483
+ createSetBlockPresetMessage as t,
484
+ createSetGlobalStylesMessage as u,
485
+ createSetLocaleMessage as v,
486
+ createUpdateBlockPropsMessage as w,
487
+ getEditorBridge as x,
488
+ isEditorMessage as y,
489
+ isIframeMessage as z
490
490
  };
package/dist/core.js CHANGED
@@ -1,9 +1,9 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
- import { c as createContext, d, w, E, u } from "./theme-state-BZplRS92.js";
5
- 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-BZplRS92.js";
6
- import { T as T2, W, c, b as b2, a as a2, g as g2, h as h2 } from "./juo-workflow-RSrOuKUH.js";
4
+ import { c as createContext, d, w, E, u } from "./theme-state-DMyDKxtl.js";
5
+ import { B, C, a, D, S, T, b, e, f, g, h, i, j, k, l, m, n, o, p, r, s, q, t, v } from "./theme-state-DMyDKxtl.js";
6
+ import { T as T2, W, c, a as a2, b as b2, g as g2, h as h2 } from "./juo-workflow-BvTgGZQj.js";
7
7
  function createState() {
8
8
  const discountCode = d(null);
9
9
  const products = d([]);
@@ -439,7 +439,19 @@ function createMockProductAdapter() {
439
439
  price: {
440
440
  amount: "12.49",
441
441
  currencyCode: "EUR"
442
- }
442
+ },
443
+ purchaseOptions: [
444
+ {
445
+ name: "Monthly",
446
+ price: { amount: "9.99", currencyCode: "EUR" },
447
+ interval: { intervalCount: 1, interval: "MONTH" }
448
+ },
449
+ {
450
+ name: "Every 2 months",
451
+ price: { amount: "10.99", currencyCode: "EUR" },
452
+ interval: { intervalCount: 2, interval: "MONTH" }
453
+ }
454
+ ]
443
455
  }
444
456
  ],
445
457
  collections: []
@@ -461,7 +473,14 @@ function createMockProductAdapter() {
461
473
  price: {
462
474
  amount: "12.49",
463
475
  currencyCode: "EUR"
464
- }
476
+ },
477
+ purchaseOptions: [
478
+ {
479
+ name: "Monthly",
480
+ price: { amount: "10.99", currencyCode: "EUR" },
481
+ interval: { intervalCount: 1, interval: "MONTH" }
482
+ }
483
+ ]
465
484
  }
466
485
  ],
467
486
  collections: []
@@ -472,18 +491,43 @@ function createMockProductAdapter() {
472
491
  featuredImage: {
473
492
  url: "https://via.placeholder.com/400x400?text=Product+3"
474
493
  },
475
- hasOnlyDefaultVariant: true,
494
+ hasOnlyDefaultVariant: false,
476
495
  variants: [
477
496
  {
478
497
  id: "sample-3-1",
479
498
  title: "Green tea and jasmine",
480
499
  image: {
481
- url: "https://via.placeholder.com/400x400?text=Product+3"
500
+ url: "https://via.placeholder.com/400x400?text=Product+3a"
482
501
  },
483
502
  price: {
484
503
  amount: "6.7",
485
504
  currencyCode: "EUR"
486
- }
505
+ },
506
+ purchaseOptions: [
507
+ {
508
+ name: "Monthly",
509
+ price: { amount: "5.36", currencyCode: "EUR" },
510
+ interval: { intervalCount: 1, interval: "MONTH" }
511
+ }
512
+ ]
513
+ },
514
+ {
515
+ id: "sample-3-2",
516
+ title: "Lavender and mint",
517
+ image: {
518
+ url: "https://via.placeholder.com/400x400?text=Product+3b"
519
+ },
520
+ price: {
521
+ amount: "7.5",
522
+ currencyCode: "EUR"
523
+ },
524
+ purchaseOptions: [
525
+ {
526
+ name: "Monthly",
527
+ price: { amount: "6.00", currencyCode: "EUR" },
528
+ interval: { intervalCount: 1, interval: "MONTH" }
529
+ }
530
+ ]
487
531
  }
488
532
  ],
489
533
  collections: []
@@ -1114,8 +1158,8 @@ export {
1114
1158
  AuthenticationError,
1115
1159
  AuthenticationErrorReason,
1116
1160
  B as BlockWrapperEvent,
1117
- n as ContextProvideEvent,
1118
- C as ContextRequestEvent,
1161
+ C as ContextProvideEvent,
1162
+ a as ContextRequestEvent,
1119
1163
  D as DEFAULT_GLOBAL_STYLES,
1120
1164
  LoginServiceContext,
1121
1165
  ProductServiceContext,
@@ -1127,37 +1171,37 @@ export {
1127
1171
  T2 as TranslationContext,
1128
1172
  W as WorkflowServiceContext,
1129
1173
  w as computed,
1130
- a as createBlockInstance,
1131
- b as createBlockInstanceFromJSON,
1132
- e as createBlockInstanceFromObject,
1133
- f as createCeRenderer,
1174
+ b as createBlockInstance,
1175
+ e as createBlockInstanceFromJSON,
1176
+ f as createBlockInstanceFromObject,
1177
+ g as createCeRenderer,
1134
1178
  createContext,
1135
1179
  createMockProductAdapter,
1136
1180
  createMockSubscriptionAdapter,
1137
1181
  createMockWorkflowApiAdapter,
1138
1182
  createProductService,
1139
- k as createSelectedBlock,
1183
+ h as createSelectedBlock,
1140
1184
  createState,
1141
1185
  createSubscriptionService,
1142
- l as createThemeState,
1186
+ i as createThemeState,
1143
1187
  c as createTranslationService,
1144
- b2 as createWorkflowApiAdapter,
1145
- a2 as createWorkflowService,
1146
- g as defineBlock,
1147
- h as defineBlockRuntime,
1188
+ a2 as createWorkflowApiAdapter,
1189
+ b2 as createWorkflowService,
1190
+ j as defineBlock,
1191
+ k as defineBlockRuntime,
1148
1192
  E as effect,
1149
1193
  g2 as getDefaultBlockForAction,
1150
- i as getDefinedBlocks,
1194
+ l as getDefinedBlocks,
1151
1195
  h2 as hasDefaultBlockForAction,
1152
1196
  m as indexOverrides,
1153
- p as injectContext,
1197
+ n as injectContext,
1154
1198
  loginService,
1155
1199
  o as onRegisterBlock,
1156
- q as provideContext,
1200
+ p as provideContext,
1157
1201
  r as registerBlock,
1158
1202
  s as serializeBlocks,
1159
1203
  d as signal,
1160
- t as subscribeContext,
1161
- v as untracked,
1162
- j as withWrapper
1204
+ q as subscribeContext,
1205
+ t as untracked,
1206
+ v as withWrapper
1163
1207
  };
package/dist/editor.js CHANGED
@@ -2,9 +2,9 @@ var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
4
  import { getDefinedBlocks, onRegisterBlock } from "@juo/blocks";
5
- import { a as createEditorBridge, f as createRemoveBlockMessage, g as createRegisterBlocksMessage, h as createRegisterRoutesMessage } from "./bridge-DQsM97cH.js";
6
- import { p, b, q, v, w, k, n, c, y, u, l, m, x, e, r, t, s, o, d, z, i, j } from "./bridge-DQsM97cH.js";
7
- import { e as createBlockInstanceFromObject, m as indexOverrides } from "./theme-state-BZplRS92.js";
5
+ import { a as createEditorBridge, f as createRemoveBlockMessage, g as createRegisterBlocksMessage, h as createRegisterRoutesMessage } from "./bridge-CIUKbSJR.js";
6
+ import { i, b, j, k, l, m, n, c, o, p, q, r, s, e, t, u, v, w, d, x, y, z } from "./bridge-CIUKbSJR.js";
7
+ import { f as createBlockInstanceFromObject, m as indexOverrides } from "./theme-state-DMyDKxtl.js";
8
8
  function createEditorHandler(options) {
9
9
  const { themeState, onBlockSelection } = options;
10
10
  const blockSurfaceIndex = /* @__PURE__ */ new Map();
@@ -680,32 +680,32 @@ async function setupEditorMode(routes, themeState) {
680
680
  }
681
681
  export {
682
682
  BlockWrapper,
683
- p as createAddBlockMessage,
683
+ i as createAddBlockMessage,
684
684
  createEditorBridge,
685
685
  createEditorHandler,
686
686
  b as createFocusInlineTextMessage,
687
- q as createMoveBlockMessage,
688
- v as createProvideGlobalStylesMessage,
689
- w as createProvideInitialGlobalStylesMessage,
690
- k as createProvideThemeStateMessage,
687
+ j as createMoveBlockMessage,
688
+ k as createProvideGlobalStylesMessage,
689
+ l as createProvideInitialGlobalStylesMessage,
690
+ m as createProvideThemeStateMessage,
691
691
  n as createProvideTranslationOverridesMessage,
692
692
  c as createRegisterBlockTranslationKeysMessage,
693
693
  createRegisterBlocksMessage,
694
694
  createRegisterRoutesMessage,
695
695
  createRemoveBlockMessage,
696
- y as createReportContentHeightMessage,
697
- u as createRequestGlobalStylesMessage,
698
- l as createRequestThemeStateMessage,
699
- m as createRequestTranslationOverridesMessage,
700
- x as createScrollSyncMessage,
696
+ o as createReportContentHeightMessage,
697
+ p as createRequestGlobalStylesMessage,
698
+ q as createRequestThemeStateMessage,
699
+ r as createRequestTranslationOverridesMessage,
700
+ s as createScrollSyncMessage,
701
701
  e as createSelectBlockMessage,
702
- r as createSetBlockPresetMessage,
703
- t as createSetGlobalStylesMessage,
704
- s as createSetLocaleMessage,
705
- o as createUpdateBlockPropsMessage,
702
+ t as createSetBlockPresetMessage,
703
+ u as createSetGlobalStylesMessage,
704
+ v as createSetLocaleMessage,
705
+ w as createUpdateBlockPropsMessage,
706
706
  d as createUpdateBlockTranslationMessage,
707
- z as getEditorBridge,
708
- i as isEditorMessage,
709
- j as isIframeMessage,
707
+ x as getEditorBridge,
708
+ y as isEditorMessage,
709
+ z as isIframeMessage,
710
710
  setupEditorMode
711
711
  };
@@ -1,8 +1,8 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
- 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-BZplRS92.js";
5
- import { a as createEditorBridge, e as createSelectBlockMessage } from "./bridge-DQsM97cH.js";
4
+ import { c as createContext, d, E, l as getDefinedBlocks, b as createBlockInstance, w, r as registerBlock, j as defineBlock, q as subscribeContext } from "./theme-state-DMyDKxtl.js";
5
+ import { a as createEditorBridge, e as createSelectBlockMessage } from "./bridge-CIUKbSJR.js";
6
6
  const TranslationContext = createContext("translation");
7
7
  function toStringRecord(input) {
8
8
  if (input == null) return {};
@@ -583,8 +583,8 @@ if (typeof customElements !== "undefined" && !customElements.get("juo-workflow")
583
583
  export {
584
584
  TranslationContext as T,
585
585
  WorkflowServiceContext as W,
586
- createWorkflowService as a,
587
- createWorkflowApiAdapter as b,
586
+ createWorkflowApiAdapter as a,
587
+ createWorkflowService as b,
588
588
  createTranslationService as c,
589
589
  getDefaultBlockForAction as g,
590
590
  hasDefaultBlockForAction as h
package/dist/preact.js CHANGED
@@ -1,12 +1,12 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
- import { effect, provideContext, injectContext, createCeRenderer } from "@juo/blocks";
4
+ import { effect, injectContext, provideContext, createCeRenderer } from "@juo/blocks";
5
5
  import { useState, useRef, useEffect, useContext as useContext$1, useMemo } from "preact/hooks";
6
6
  import { g as getSignalValue, s as setSignalValue, w as wrapContext, c as createSlotChildren } from "./block-VhmfGB3N.js";
7
7
  import { t } from "./block-VhmfGB3N.js";
8
8
  import { createContext, h, render } from "preact";
9
- import { a as createEditorBridge } from "./bridge-DQsM97cH.js";
9
+ import { a as createEditorBridge } from "./bridge-CIUKbSJR.js";
10
10
  function toState(signal) {
11
11
  const [value, setValue] = useState(() => getSignalValue(signal));
12
12
  const disposeRef = useRef(null);
package/dist/react.js CHANGED
@@ -1,12 +1,12 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
- import { effect, provideContext, injectContext, createCeRenderer } from "@juo/blocks";
4
+ import { effect, injectContext, provideContext, createCeRenderer } from "@juo/blocks";
5
5
  import React, { useSyncExternalStore, createContext, useState, useContext as useContext$1, useMemo, useRef, useEffect } from "react";
6
6
  import { g as getSignalValue, s as setSignalValue, w as wrapContext, c as createSlotChildren } from "./block-VhmfGB3N.js";
7
7
  import { t } from "./block-VhmfGB3N.js";
8
8
  import { createRoot } from "react-dom/client";
9
- import { a as createEditorBridge } from "./bridge-DQsM97cH.js";
9
+ import { a as createEditorBridge } from "./bridge-CIUKbSJR.js";
10
10
  function toState(signal) {
11
11
  const subscribe = (callback) => {
12
12
  const dispose = effect(() => {
@@ -1 +1 @@
1
- {"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../src/services/product/adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,KAAK,EAAE,OAAO,EAAkB,YAAY,EAAE,MAAM,SAAS,CAAC;AAErE;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC;IAE3D,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC;IAEzE,MAAM,CAAC,IAAI,CAAC,EAAE;QACZ,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,UAAU,CAAC,EAAE;YAAE,MAAM,EAAE,MAAM,CAAA;SAAE,GAAG;YAAE,KAAK,EAAE,MAAM,CAAA;SAAE,CAAC;KACrD,GAAG,OAAO,CAAC,aAAa,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;CACnD;AAED,wBAAgB,wBAAwB,IAAI,cAAc,CA0JzD"}
1
+ {"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../src/services/product/adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,KAAK,EAAE,OAAO,EAAkB,YAAY,EAAE,MAAM,SAAS,CAAC;AAErE;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC;IAE3D,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC;IAEzE,MAAM,CAAC,IAAI,CAAC,EAAE;QACZ,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,UAAU,CAAC,EAAE;YAAE,MAAM,EAAE,MAAM,CAAA;SAAE,GAAG;YAAE,KAAK,EAAE,MAAM,CAAA;SAAE,CAAC;KACrD,GAAG,OAAO,CAAC,aAAa,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;CACnD;AAED,wBAAgB,wBAAwB,IAAI,cAAc,CAsMzD"}
@@ -8,11 +8,21 @@ export interface Product {
8
8
  handle: string;
9
9
  }[];
10
10
  }
11
+ export interface PurchaseOption {
12
+ name: string;
13
+ price: PriceWithCurrency;
14
+ interval: {
15
+ intervalCount: number;
16
+ interval: string;
17
+ };
18
+ }
11
19
  export interface ProductVariant {
12
20
  id: string;
13
21
  title: string;
14
22
  image: Image | null;
15
23
  price: PriceWithCurrency;
24
+ subscriptionPrice?: PriceWithCurrency;
25
+ purchaseOptions?: PurchaseOption[];
16
26
  }
17
27
  export type WithVariants<T> = T & {
18
28
  variants: PaginatedList<ProductVariant>;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/services/product/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAE3E,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,KAAK,GAAG,IAAI,CAAC;IAC5B,qBAAqB,EAAE,OAAO,CAAC;IAC/B,WAAW,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CACnC;AAED,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB,KAAK,EAAE,iBAAiB,CAAC;CAC1B;AAED,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,CAAC,GAAG;IAChC,QAAQ,EAAE,aAAa,CAAC,cAAc,CAAC,CAAC;CACzC,CAAC;AAEF,MAAM,MAAM,cAAc,CACxB,CAAC,SAAS,YAAY,CAAC,OAAO,CAAC,GAAG,YAAY,CAAC,OAAO,CAAC,IACrD;IACF,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;IACvC,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;IACrD,MAAM,CAAC,IAAI,CAAC,EAAE;QACZ,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,UAAU,CAAC,EAAE;YAAE,MAAM,EAAE,MAAM,CAAA;SAAE,GAAG;YAAE,KAAK,EAAE,MAAM,CAAA;SAAE,CAAC;KACrD,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC;CAC/B,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/services/product/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAE3E,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,KAAK,GAAG,IAAI,CAAC;IAC5B,qBAAqB,EAAE,OAAO,CAAC;IAC/B,WAAW,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CACnC;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,iBAAiB,CAAC;IACzB,QAAQ,EAAE;QAAE,aAAa,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC;CACvD;AAED,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB,KAAK,EAAE,iBAAiB,CAAC;IACzB,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC,eAAe,CAAC,EAAE,cAAc,EAAE,CAAC;CACpC;AAED,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,CAAC,GAAG;IAChC,QAAQ,EAAE,aAAa,CAAC,cAAc,CAAC,CAAC;CACzC,CAAC;AAEF,MAAM,MAAM,cAAc,CACxB,CAAC,SAAS,YAAY,CAAC,OAAO,CAAC,GAAG,YAAY,CAAC,OAAO,CAAC,IACrD;IACF,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;IACvC,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;IACrD,MAAM,CAAC,IAAI,CAAC,EAAE;QACZ,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,UAAU,CAAC,EAAE;YAAE,MAAM,EAAE,MAAM,CAAA;SAAE,GAAG;YAAE,KAAK,EAAE,MAAM,CAAA;SAAE,CAAC;KACrD,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC;CAC/B,CAAC"}
@@ -854,33 +854,33 @@ function createThemeState(deps) {
854
854
  }
855
855
  export {
856
856
  BlockWrapperEvent as B,
857
- ContextRequestEvent as C,
857
+ ContextProvideEvent as C,
858
858
  DEFAULT_GLOBAL_STYLES as D,
859
859
  E,
860
860
  SelectedBlockContext as S,
861
861
  ThemeStateContext as T,
862
- createBlockInstance as a,
863
- createBlockInstanceFromJSON as b,
862
+ ContextRequestEvent as a,
863
+ createBlockInstance as b,
864
864
  createContext as c,
865
865
  d,
866
- createBlockInstanceFromObject as e,
867
- createCeRenderer as f,
868
- defineBlock as g,
869
- defineBlockRuntime as h,
870
- getDefinedBlocks as i,
871
- withWrapper as j,
872
- createSelectedBlock as k,
873
- createThemeState as l,
866
+ createBlockInstanceFromJSON as e,
867
+ createBlockInstanceFromObject as f,
868
+ createCeRenderer as g,
869
+ createSelectedBlock as h,
870
+ createThemeState as i,
871
+ defineBlock as j,
872
+ defineBlockRuntime as k,
873
+ getDefinedBlocks as l,
874
874
  indexOverrides as m,
875
- ContextProvideEvent as n,
875
+ injectContext as n,
876
876
  onRegisterBlock as o,
877
- injectContext as p,
878
- provideContext as q,
877
+ provideContext as p,
878
+ subscribeContext as q,
879
879
  registerBlock as r,
880
880
  serializeBlocks as s,
881
- subscribeContext as t,
881
+ n as t,
882
882
  u,
883
- n as v,
883
+ withWrapper as v,
884
884
  w,
885
885
  ContextRoot as x
886
886
  };
package/dist/vue.js CHANGED
@@ -1,6 +1,6 @@
1
- import { toValue, watchEffect, customRef, defineComponent, ref, getCurrentInstance, onMounted, provide, h, renderSlot, inject, computed, createApp, useHost, defineCustomElement } from "vue";
2
- import { signal, effect, injectContext, provideContext, createCeRenderer } from "@juo/blocks";
3
- import { c as createRegisterBlockTranslationKeysMessage, a as createEditorBridge } from "./bridge-DQsM97cH.js";
1
+ import { customRef, toValue, watchEffect, defineComponent, ref, getCurrentInstance, onMounted, provide, h, renderSlot, inject, computed, useHost, defineCustomElement, createApp } from "vue";
2
+ import { effect, signal, injectContext, provideContext, createCeRenderer } from "@juo/blocks";
3
+ import { c as createRegisterBlockTranslationKeysMessage, a as createEditorBridge } from "./bridge-CIUKbSJR.js";
4
4
  const signalsMap = /* @__PURE__ */ new WeakMap();
5
5
  function toSignal(ref2) {
6
6
  if (!signalsMap.has(ref2)) {
@@ -1,10 +1,10 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
- import { p as injectContext, E, x as ContextRoot } from "./theme-state-BZplRS92.js";
5
- import { E as ExtensionRoot, B as Block } from "./ExtensionRoot-CZyBNJZY.js";
6
- import { a as createEditorBridge, b as createFocusInlineTextMessage, d as createUpdateBlockTranslationMessage } from "./bridge-DQsM97cH.js";
7
- import { T as TranslationContext } from "./juo-workflow-RSrOuKUH.js";
4
+ import { n as injectContext, E, x as ContextRoot } from "./theme-state-DMyDKxtl.js";
5
+ import { E as ExtensionRoot, B as Block } from "./ExtensionRoot-Dcu7r0GP.js";
6
+ import { a as createEditorBridge, b as createFocusInlineTextMessage, d as createUpdateBlockTranslationMessage } from "./bridge-CIUKbSJR.js";
7
+ import { T as TranslationContext } from "./juo-workflow-BvTgGZQj.js";
8
8
  const _InlineText = class _InlineText extends HTMLElement {
9
9
  constructor() {
10
10
  super();
@@ -1,9 +1,9 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
- import { p as injectContext, E, x as ContextRoot } from "./theme-state-BZplRS92.js";
5
- import { E as ExtensionRoot, B as Block } from "./ExtensionRoot-CZyBNJZY.js";
6
- import { T as TranslationContext } from "./juo-workflow-RSrOuKUH.js";
4
+ import { n as injectContext, E, x as ContextRoot } from "./theme-state-DMyDKxtl.js";
5
+ import { E as ExtensionRoot, B as Block } from "./ExtensionRoot-Dcu7r0GP.js";
6
+ import { T as TranslationContext } from "./juo-workflow-BvTgGZQj.js";
7
7
  class InlineText extends HTMLElement {
8
8
  constructor() {
9
9
  super(...arguments);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@juo/blocks",
3
3
  "private": false,
4
- "version": "1.0.0",
4
+ "version": "1.0.1",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"