@juo/orion-core 0.13.0 → 0.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.
- package/dist/{ExtensionRoot-BF5241B2.js → ExtensionRoot-BFk-vt2J.js} +2 -4
- package/dist/core.js +1 -1
- package/dist/flows/juo-workflow.d.ts +0 -2
- package/dist/{juo-workflow-CroVzict.js → juo-workflow-CoWvwYTn.js} +0 -3
- package/dist/web-components/ExtensionRoot.d.ts +0 -2
- package/dist/web-components-editor.js +2 -2
- package/dist/web-components-runtime.js +2 -2
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ var __publicField = (obj, key, value) => {
|
|
|
6
6
|
};
|
|
7
7
|
import { signal, effect, createBlockInstance } from "@juo/orion-core";
|
|
8
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-
|
|
9
|
+
import "./juo-workflow-CoWvwYTn.js";
|
|
10
10
|
class Block extends HTMLElement {
|
|
11
11
|
constructor() {
|
|
12
12
|
super();
|
|
@@ -67,8 +67,6 @@ class ExtensionRoot extends HTMLElement {
|
|
|
67
67
|
* on already-cached block wrappers.
|
|
68
68
|
*/
|
|
69
69
|
__publicField(this, "blockWrapper", null);
|
|
70
|
-
/** Override the default width (`fit-content`). Set before the element is connected. */
|
|
71
|
-
__publicField(this, "width", null);
|
|
72
70
|
__publicField(this, "wrapperCache", /* @__PURE__ */ new WeakMap());
|
|
73
71
|
}
|
|
74
72
|
static get observedAttributes() {
|
|
@@ -98,7 +96,7 @@ class ExtensionRoot extends HTMLElement {
|
|
|
98
96
|
this.style.display = "flex";
|
|
99
97
|
this.style.flexDirection = "column";
|
|
100
98
|
this.style.gap = "16px";
|
|
101
|
-
this.style.width =
|
|
99
|
+
this.style.width = "fit-content";
|
|
102
100
|
this.style.justifySelf = "center";
|
|
103
101
|
this.unsubscribeThemeContext = subscribeContext(
|
|
104
102
|
this,
|
package/dist/core.js
CHANGED
|
@@ -6,7 +6,7 @@ var __publicField = (obj, key, value) => {
|
|
|
6
6
|
};
|
|
7
7
|
import { c as createContext, d, w, E, u } from "./theme-state-TW-9hD7e.js";
|
|
8
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-
|
|
9
|
+
import { T as T2, W, c, b as b2, a as a2, g as g2, h as h2 } from "./juo-workflow-CoWvwYTn.js";
|
|
10
10
|
function createState() {
|
|
11
11
|
const discountCode = d(null);
|
|
12
12
|
const products = d([]);
|
|
@@ -40,8 +40,6 @@ export declare class JuoWorkflowElement extends HTMLElement {
|
|
|
40
40
|
* Must be set before workflow becomes active for correct behavior.
|
|
41
41
|
*/
|
|
42
42
|
blockWrapper: ((rendered: HTMLElement) => HTMLElement) | null;
|
|
43
|
-
/** Override width for the <juo-extension-root> element (default: `fit-content`). */
|
|
44
|
-
extensionRootWidth: string | null;
|
|
45
43
|
connectedCallback(): void;
|
|
46
44
|
disconnectedCallback(): void;
|
|
47
45
|
private setupSubscription;
|
|
@@ -464,8 +464,6 @@ class JuoWorkflowElement extends HTMLElement {
|
|
|
464
464
|
* Must be set before workflow becomes active for correct behavior.
|
|
465
465
|
*/
|
|
466
466
|
__publicField(this, "blockWrapper", null);
|
|
467
|
-
/** Override width for the <juo-extension-root> element (default: `fit-content`). */
|
|
468
|
-
__publicField(this, "extensionRootWidth", null);
|
|
469
467
|
}
|
|
470
468
|
connectedCallback() {
|
|
471
469
|
this.style.display = "contents";
|
|
@@ -515,7 +513,6 @@ class JuoWorkflowElement extends HTMLElement {
|
|
|
515
513
|
extensionRoot.setAttribute("surface", "overlay");
|
|
516
514
|
extensionRoot.setAttribute("name", stepId);
|
|
517
515
|
extensionRoot.blockWrapper = this.blockWrapper;
|
|
518
|
-
extensionRoot.width = this.extensionRootWidth;
|
|
519
516
|
this.appendChild(extensionRoot);
|
|
520
517
|
}
|
|
521
518
|
return;
|
|
@@ -11,8 +11,6 @@ export default class ExtensionRoot extends HTMLElement {
|
|
|
11
11
|
* on already-cached block wrappers.
|
|
12
12
|
*/
|
|
13
13
|
blockWrapper: ((rendered: HTMLElement) => HTMLElement) | null;
|
|
14
|
-
/** Override the default width (`fit-content`). Set before the element is connected. */
|
|
15
|
-
width: string | null;
|
|
16
14
|
static get observedAttributes(): string[];
|
|
17
15
|
constructor();
|
|
18
16
|
private wrapperCache;
|
|
@@ -5,9 +5,9 @@ var __publicField = (obj, key, value) => {
|
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
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-
|
|
8
|
+
import { E as ExtensionRoot, B as Block } from "./ExtensionRoot-BFk-vt2J.js";
|
|
9
9
|
import { c as createEditorBridge, a as createFocusInlineTextMessage, b as createUpdateBlockTranslationMessage } from "./bridge-fHXg0b-e.js";
|
|
10
|
-
import { T as TranslationContext } from "./juo-workflow-
|
|
10
|
+
import { T as TranslationContext } from "./juo-workflow-CoWvwYTn.js";
|
|
11
11
|
const _InlineText = class _InlineText extends HTMLElement {
|
|
12
12
|
constructor() {
|
|
13
13
|
super();
|
|
@@ -5,8 +5,8 @@ var __publicField = (obj, key, value) => {
|
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
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-
|
|
9
|
-
import { T as TranslationContext } from "./juo-workflow-
|
|
8
|
+
import { E as ExtensionRoot, B as Block } from "./ExtensionRoot-BFk-vt2J.js";
|
|
9
|
+
import { T as TranslationContext } from "./juo-workflow-CoWvwYTn.js";
|
|
10
10
|
class InlineText extends HTMLElement {
|
|
11
11
|
constructor() {
|
|
12
12
|
super(...arguments);
|