@juo/blocks 1.4.0 → 1.4.2
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.
- package/dist/{ExtensionRoot-DZXt0oYb.js → ExtensionRoot-8ntJL9wz.js} +22 -9
- package/dist/block.d.ts +2 -0
- package/dist/block.d.ts.map +1 -1
- package/dist/block.test.d.ts +2 -0
- package/dist/block.test.d.ts.map +1 -0
- package/dist/core.js +28 -12
- package/dist/editor.js +1 -1
- package/dist/{juo-workflow-D-Id_qs8.js → juo-workflow-BXGQS82N.js} +1 -1
- package/dist/main.d.ts +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/observability.d.ts +21 -0
- package/dist/observability.d.ts.map +1 -0
- package/dist/observability.js +1381 -0
- package/dist/observability.test.d.ts +2 -0
- package/dist/observability.test.d.ts.map +1 -0
- package/dist/registry.d.ts.map +1 -1
- package/dist/registry.test.d.ts +2 -0
- package/dist/registry.test.d.ts.map +1 -0
- package/dist/{theme-state-CElvC60x.js → theme-state-BpmgtjdC.js} +117 -30
- package/dist/theme-state.d.ts.map +1 -1
- package/dist/theme-state.resolve.test.d.ts +2 -0
- package/dist/theme-state.resolve.test.d.ts.map +1 -0
- package/dist/web-components/Block.d.ts.map +1 -1
- package/dist/web-components/ExtensionRoot.d.ts.map +1 -1
- package/dist/web-components/ExtensionRoot.test.d.ts +2 -0
- package/dist/web-components/ExtensionRoot.test.d.ts.map +1 -0
- package/dist/web-components-editor.js +3 -3
- package/dist/web-components-runtime.js +3 -3
- package/package.json +7 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"observability.test.d.ts","sourceRoot":"","sources":["../src/observability.test.ts"],"names":[],"mappings":""}
|
package/dist/registry.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":"AA6BA;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,SAAO,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAwB1E;AAED;;;;;;;GAOG;AACH,wBAAsB,iBAAiB,CACrC,OAAO,GAAE;IACP,sBAAsB,CAAC,EAAE,MAAM,CAAC;CAC5B,GACL,OAAO,CAAC,IAAI,CAAC,CA6Cf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.test.d.ts","sourceRoot":"","sources":["../src/registry.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +1,7 @@
|
|
|
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 { reportBlockError, reportBlockWarning } from "./observability.js";
|
|
4
5
|
const createContext = (key) => key;
|
|
5
6
|
class ContextRequestEvent extends Event {
|
|
6
7
|
constructor(context, callback, subscribe) {
|
|
@@ -528,7 +529,20 @@ function withWrapper(fn) {
|
|
|
528
529
|
let wrapper = null;
|
|
529
530
|
return (block) => {
|
|
530
531
|
var _a;
|
|
531
|
-
let rendered
|
|
532
|
+
let rendered;
|
|
533
|
+
try {
|
|
534
|
+
rendered = fn(block);
|
|
535
|
+
} catch (error) {
|
|
536
|
+
reportBlockError(error, {
|
|
537
|
+
site: "block.withWrapper",
|
|
538
|
+
block: { id: block.id, type: block.type, definition: block.definition },
|
|
539
|
+
keys: {
|
|
540
|
+
props: Object.keys(block.props ?? {}),
|
|
541
|
+
slots: Object.keys(block.slots ?? {})
|
|
542
|
+
}
|
|
543
|
+
});
|
|
544
|
+
rendered = createStubDefinition(block.type).render(block);
|
|
545
|
+
}
|
|
532
546
|
if (wrapper === null) {
|
|
533
547
|
if (isInEditorIframe()) {
|
|
534
548
|
wrapper = document.createElement("juo-editor-block-wrapper");
|
|
@@ -591,26 +605,39 @@ function createCeRenderer(name) {
|
|
|
591
605
|
}
|
|
592
606
|
return Object.entries(slots).flatMap(([key, value]) => {
|
|
593
607
|
const values = Array.isArray(value) ? value : [value];
|
|
594
|
-
return values.
|
|
608
|
+
return values.flatMap((value2) => {
|
|
595
609
|
if (typeof value2 === "string") {
|
|
596
|
-
const
|
|
610
|
+
const el = document.createElement("span");
|
|
597
611
|
if (key !== "default") {
|
|
598
|
-
|
|
612
|
+
el.slot = key;
|
|
599
613
|
}
|
|
600
|
-
|
|
601
|
-
return
|
|
614
|
+
el.innerText = value2;
|
|
615
|
+
return [el];
|
|
602
616
|
}
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
617
|
+
try {
|
|
618
|
+
const el = value2.definition.render({
|
|
619
|
+
...value2,
|
|
620
|
+
props: {
|
|
621
|
+
...value2.props,
|
|
622
|
+
parentProps: block.props
|
|
623
|
+
}
|
|
624
|
+
});
|
|
625
|
+
if (key !== "default") {
|
|
626
|
+
el.slot = key;
|
|
608
627
|
}
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
628
|
+
return [el];
|
|
629
|
+
} catch (error) {
|
|
630
|
+
reportBlockError(error, {
|
|
631
|
+
site: "block.createCeRenderer.renderSlots",
|
|
632
|
+
block: { id: value2.id, type: value2.type, definition: value2.definition },
|
|
633
|
+
extra: {
|
|
634
|
+
parentBlockId: block.id,
|
|
635
|
+
parentBlockType: block.type,
|
|
636
|
+
slotKey: key
|
|
637
|
+
}
|
|
638
|
+
});
|
|
639
|
+
return [];
|
|
612
640
|
}
|
|
613
|
-
return el;
|
|
614
641
|
});
|
|
615
642
|
});
|
|
616
643
|
}
|
|
@@ -629,12 +656,46 @@ function createCeRenderer(name) {
|
|
|
629
656
|
return wrapper;
|
|
630
657
|
};
|
|
631
658
|
}
|
|
659
|
+
const stubDefinitionCache = /* @__PURE__ */ new Map();
|
|
660
|
+
function createStubDefinition(name) {
|
|
661
|
+
const cached = stubDefinitionCache.get(name);
|
|
662
|
+
if (cached) return cached;
|
|
663
|
+
const stub = {
|
|
664
|
+
name,
|
|
665
|
+
group: "internal",
|
|
666
|
+
schema: {},
|
|
667
|
+
initialValue: { props: {}, slots: {} },
|
|
668
|
+
__stub: true,
|
|
669
|
+
render() {
|
|
670
|
+
const el = document.createElement("div");
|
|
671
|
+
el.dataset.stubBlock = name;
|
|
672
|
+
if (isInEditorIframe()) {
|
|
673
|
+
el.textContent = `Block definition not found: ${name}`;
|
|
674
|
+
} else {
|
|
675
|
+
el.style.display = "none";
|
|
676
|
+
}
|
|
677
|
+
return el;
|
|
678
|
+
}
|
|
679
|
+
};
|
|
680
|
+
stubDefinitionCache.set(name, stub);
|
|
681
|
+
reportBlockWarning(`Block definition '${name}' not found`, {
|
|
682
|
+
site: "block.createStubDefinition",
|
|
683
|
+
block: { id: "(none)", type: name }
|
|
684
|
+
});
|
|
685
|
+
console.warn(
|
|
686
|
+
`[juo/blocks] Block definition '${name}' not found. This block may have been removed or renamed. Rendering a hidden stub.`
|
|
687
|
+
);
|
|
688
|
+
return stub;
|
|
689
|
+
}
|
|
690
|
+
function isStubDefinition(definition) {
|
|
691
|
+
return definition.__stub === true;
|
|
692
|
+
}
|
|
632
693
|
function getDefinitionByName(name) {
|
|
633
694
|
const definition = blockDefinitions.get(name);
|
|
634
|
-
if (definition
|
|
635
|
-
|
|
695
|
+
if (definition != null) {
|
|
696
|
+
return definition;
|
|
636
697
|
}
|
|
637
|
-
return
|
|
698
|
+
return createStubDefinition(name);
|
|
638
699
|
}
|
|
639
700
|
function createBlockInstance(name, opts) {
|
|
640
701
|
const initialValue = (() => {
|
|
@@ -645,9 +706,14 @@ function createBlockInstance(name, opts) {
|
|
|
645
706
|
return value;
|
|
646
707
|
})();
|
|
647
708
|
if ((opts == null ? void 0 : opts.props) == null && initialValue == null) {
|
|
648
|
-
|
|
649
|
-
`Block '${name} cannot be created without value in runtime mode`
|
|
709
|
+
const error = new Error(
|
|
710
|
+
`Block '${name}' cannot be created without value in runtime mode`
|
|
650
711
|
);
|
|
712
|
+
reportBlockError(error, {
|
|
713
|
+
site: "block.createBlockInstance",
|
|
714
|
+
block: { id: "(none)", type: name }
|
|
715
|
+
});
|
|
716
|
+
throw error;
|
|
651
717
|
}
|
|
652
718
|
const slots = {
|
|
653
719
|
...initialValue.slots,
|
|
@@ -684,7 +750,15 @@ function createBlockInstanceFromObject(input) {
|
|
|
684
750
|
});
|
|
685
751
|
}
|
|
686
752
|
function createBlockInstanceFromJSON(input) {
|
|
687
|
-
|
|
753
|
+
try {
|
|
754
|
+
return createBlockInstanceFromObject(JSON.parse(input));
|
|
755
|
+
} catch (error) {
|
|
756
|
+
reportBlockError(error, {
|
|
757
|
+
site: "block.createBlockInstanceFromJSON",
|
|
758
|
+
extra: { inputLength: input.length }
|
|
759
|
+
});
|
|
760
|
+
throw error;
|
|
761
|
+
}
|
|
688
762
|
}
|
|
689
763
|
const DEFAULT_GLOBAL_STYLES = {
|
|
690
764
|
volume: "comfort",
|
|
@@ -814,9 +888,21 @@ function createThemeState(deps) {
|
|
|
814
888
|
surfaces[surface].blocks.value = [];
|
|
815
889
|
const stored = await deps.resolve(surface, path);
|
|
816
890
|
if (stored != null) {
|
|
817
|
-
surfaces[surface].blocks.value = stored.blocks.
|
|
818
|
-
|
|
819
|
-
|
|
891
|
+
surfaces[surface].blocks.value = stored.blocks.flatMap((block) => {
|
|
892
|
+
try {
|
|
893
|
+
return [createBlockInstanceFromObject(block)];
|
|
894
|
+
} catch (error) {
|
|
895
|
+
reportBlockError(error, {
|
|
896
|
+
site: "theme-state.resolve.hydrate",
|
|
897
|
+
extra: {
|
|
898
|
+
surface,
|
|
899
|
+
path,
|
|
900
|
+
blockType: typeof (block == null ? void 0 : block.type) === "string" ? block.type : "(unknown)"
|
|
901
|
+
}
|
|
902
|
+
});
|
|
903
|
+
return [];
|
|
904
|
+
}
|
|
905
|
+
});
|
|
820
906
|
return stored;
|
|
821
907
|
}
|
|
822
908
|
const blockToUse = surface === "page" ? (_b = (_a2 = deps.routerService) == null ? void 0 : _a2.getPages().find((p2) => p2.path === path)) == null ? void 0 : _b.block : (_c = getDefinedBlocks().find((b2) => b2.name === path)) == null ? void 0 : _c.name;
|
|
@@ -889,14 +975,15 @@ export {
|
|
|
889
975
|
getDefinedBlocks as l,
|
|
890
976
|
indexOverrides as m,
|
|
891
977
|
injectContext as n,
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
978
|
+
isStubDefinition as o,
|
|
979
|
+
onRegisterBlock as p,
|
|
980
|
+
provideContext as q,
|
|
895
981
|
registerBlock as r,
|
|
896
982
|
serializeBlocks as s,
|
|
897
|
-
|
|
983
|
+
subscribeContext as t,
|
|
898
984
|
u,
|
|
899
|
-
|
|
985
|
+
n as v,
|
|
900
986
|
w,
|
|
901
|
-
|
|
987
|
+
withWrapper as x,
|
|
988
|
+
ContextRoot as y
|
|
902
989
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme-state.d.ts","sourceRoot":"","sources":["../src/theme-state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,cAAc,EAAE,KAAK,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAEhF,OAAO,EAIL,KAAK,KAAK,EAEV,KAAK,aAAa,EAGnB,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"theme-state.d.ts","sourceRoot":"","sources":["../src/theme-state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,cAAc,EAAE,KAAK,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAEhF,OAAO,EAIL,KAAK,KAAK,EAEV,KAAK,aAAa,EAGnB,MAAM,SAAS,CAAC;AAEjB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEvD,MAAM,MAAM,YAAY,GA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AAK,EAAE,CAAA;KAAE,CAAC,CAAC;CACnC,CAAC;AAEF,eAAO,MAAM,iBAAiB;;CAA2C,CAAC;AA0C1E,wBAAgB,cAAc,CAAC,SAAS,EAAE,mBAAmB,EAAE,GAAG;IAChE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;CAChD,CAmBA;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE;IACrC,OAAO,EAAE,CACP,OAAO,EAAE,YAAY,EACrB,IAAI,EAAE,MAAM,KACT,OAAO,CAAC;QAAE,MAAM,EAAE,KAAK,EAAE,CAAA;KAAE,GAAG,IAAI,CAAC,CAAC;IACzC,YAAY,CAAC,EAAE;QACb,mBAAmB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,mBAAmB,EAAE,CAAC,CAAC;KACzE,CAAC;IACF,mBAAmB,CAAC,EAAE,YAAY,CAAC;IACnC,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,WAAW,CAAC,EAAE,CAAC,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,IAAI,CAAC;CAC9E,GAAG,UAAU,CA+Jb"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme-state.resolve.test.d.ts","sourceRoot":"","sources":["../src/theme-state.resolve.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Block.d.ts","sourceRoot":"","sources":["../../src/web-components/Block.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Block.d.ts","sourceRoot":"","sources":["../../src/web-components/Block.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,WAAW;IAC5C,4CAA4C;IAC5C,OAAO,CAAC,IAAI,CAA+B;IAE3C,OAAO,CAAC,aAAa,CAAC,CAAa;IAEnC,MAAM,KAAK,kBAAkB,aAE5B;;IAMD,iBAAiB;IAQjB,wBAAwB,CACtB,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM,GAAG,IAAI,EACvB,QAAQ,EAAE,MAAM,GAAG,IAAI;IAOzB,oBAAoB;IAOpB,OAAO,CAAC,WAAW;CAyBpB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,KAAK,CAAC;KACpB;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExtensionRoot.d.ts","sourceRoot":"","sources":["../../src/web-components/ExtensionRoot.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ExtensionRoot.d.ts","sourceRoot":"","sources":["../../src/web-components/ExtensionRoot.ts"],"names":[],"mappings":"AAYA,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,WAAW;IACpD,OAAO,CAAC,KAAK,CAA8B;IAC3C,OAAO,CAAC,UAAU,CAA2B;IAC7C,OAAO,CAAC,uBAAuB,CAAC,CAAa;IAC7C,OAAO,CAAC,aAAa,CAAC,CAAa;IAEnC;;;;;;OAMG;IACI,YAAY,EAAE,CAAC,CAAC,QAAQ,EAAE,WAAW,KAAK,WAAW,CAAC,GAAG,IAAI,CAAQ;IAE5E,MAAM,KAAK,kBAAkB,aAE5B;;IAMD,OAAO,CAAC,YAAY,CAGhB;IAEJ,OAAO,CAAC,WAAW;IAanB,OAAO,CAAC,UAAU;IAIlB,OAAO,CAAC,sBAAsB;IAM9B,iBAAiB;IAyDjB,wBAAwB,CACtB,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM,GAAG,IAAI,EACvB,QAAQ,EAAE,MAAM,GAAG,IAAI;IAiBzB,oBAAoB;CAWrB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,oBAAoB,EAAE,aAAa,CAAC;KACrC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExtensionRoot.test.d.ts","sourceRoot":"","sources":["../../src/web-components/ExtensionRoot.test.ts"],"names":[],"mappings":""}
|
|
@@ -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 { n as injectContext, E,
|
|
5
|
-
import { E as ExtensionRoot, B as Block } from "./ExtensionRoot-
|
|
4
|
+
import { n as injectContext, E, y as ContextRoot } from "./theme-state-BpmgtjdC.js";
|
|
5
|
+
import { E as ExtensionRoot, B as Block } from "./ExtensionRoot-8ntJL9wz.js";
|
|
6
6
|
import { a as createEditorBridge, b as createFocusInlineTextMessage, d as createUpdateBlockTranslationMessage } from "./bridge-B8cVa2-2.js";
|
|
7
|
-
import { T as TranslationContext } from "./juo-workflow-
|
|
7
|
+
import { T as TranslationContext } from "./juo-workflow-BXGQS82N.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 { n as injectContext, E,
|
|
5
|
-
import { E as ExtensionRoot, B as Block } from "./ExtensionRoot-
|
|
6
|
-
import { T as TranslationContext } from "./juo-workflow-
|
|
4
|
+
import { n as injectContext, E, y as ContextRoot } from "./theme-state-BpmgtjdC.js";
|
|
5
|
+
import { E as ExtensionRoot, B as Block } from "./ExtensionRoot-8ntJL9wz.js";
|
|
6
|
+
import { T as TranslationContext } from "./juo-workflow-BXGQS82N.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.4.
|
|
4
|
+
"version": "1.4.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
@@ -48,10 +48,15 @@
|
|
|
48
48
|
"./web-components/runtime": {
|
|
49
49
|
"types": "./dist/web-components/runtime/main.d.ts",
|
|
50
50
|
"default": "./dist/web-components-runtime.js"
|
|
51
|
+
},
|
|
52
|
+
"./observability": {
|
|
53
|
+
"types": "./dist/observability.d.ts",
|
|
54
|
+
"default": "./dist/observability.js"
|
|
51
55
|
}
|
|
52
56
|
},
|
|
53
57
|
"dependencies": {
|
|
54
|
-
"@preact/signals-core": "1.11.0"
|
|
58
|
+
"@preact/signals-core": "1.11.0",
|
|
59
|
+
"@sentry/core": "7.79.0"
|
|
55
60
|
},
|
|
56
61
|
"scripts": {
|
|
57
62
|
"dev": "vite build -w",
|