@useinsider/guido 3.9.0-beta.fc7d209 → 3.9.0-beta.fd95a10
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/components/organisms/header/AiStatusPill.vue.js +18 -0
- package/dist/components/organisms/header/AiStatusPill.vue2.js +17 -0
- package/dist/components/organisms/header/EditorToolbar.vue.js +2 -2
- package/dist/components/organisms/header/EditorToolbar.vue2.js +7 -6
- package/dist/composables/useAiStatus.js +12 -0
- package/dist/composables/useCortexBlueprintBridge.js +58 -41
- package/dist/extensions/Blocks/Recommendation/controls/main/algorithm.js +21 -22
- package/dist/extensions/Blocks/Recommendation/recommendation.css.js +4 -62
- package/dist/extensions/Blocks/common-control.js +45 -58
- package/dist/guido.css +1 -1
- package/dist/src/components/organisms/header/AiStatusPill.vue.d.ts +2 -0
- package/dist/src/composables/useAiStatus.d.ts +25 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/main/algorithm.d.ts +1 -1
- package/dist/src/extensions/Blocks/common-control.d.ts +0 -7
- package/dist/src/stores/ai-status.d.ts +24 -0
- package/dist/stores/ai-status.js +15 -0
- package/package.json +1 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import i from "./AiStatusPill.vue2.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import e from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
|
+
var l = function() {
|
|
5
|
+
var t = this, s = t._self._c, a = t._self._setupProxy;
|
|
6
|
+
return a.aiStatusStore.isGenerating ? s("div", { staticClass: "d-f a-i-c ml-2 ai-status-pill", attrs: { id: "guido__ai-status-pill", "data-testid": "AI Status Pill" } }, [s(a.InLoading, { attrs: { "color-class": "i-c-53", size: "16" } }), s("span", { staticClass: "ml-1 f-s-1 t-c-53 ai-status-pill__label" }, [t._v(" " + t._s(a.label) + " ")])], 1) : t._e();
|
|
7
|
+
}, r = [], _ = /* @__PURE__ */ e(
|
|
8
|
+
i,
|
|
9
|
+
l,
|
|
10
|
+
r,
|
|
11
|
+
!1,
|
|
12
|
+
null,
|
|
13
|
+
"1ed36cb3"
|
|
14
|
+
);
|
|
15
|
+
const u = _.exports;
|
|
16
|
+
export {
|
|
17
|
+
u as default
|
|
18
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { defineComponent as s, computed as a } from "vue";
|
|
2
|
+
import { useTranslations as i } from "../../../composables/useTranslations.js";
|
|
3
|
+
import { useAiStatusStore as m } from "../../../stores/ai-status.js";
|
|
4
|
+
import { InLoading as u } from "@useinsider/design-system-vue";
|
|
5
|
+
const d = /* @__PURE__ */ s({
|
|
6
|
+
__name: "AiStatusPill",
|
|
7
|
+
setup(p) {
|
|
8
|
+
const n = m(), t = i(), r = a(() => {
|
|
9
|
+
const e = "newsletter.ai-generating", o = t(e);
|
|
10
|
+
return o === e ? "AI is generating…" : o;
|
|
11
|
+
});
|
|
12
|
+
return { __sfc: !0, aiStatusStore: n, trans: t, label: r, InLoading: u };
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
export {
|
|
16
|
+
d as default
|
|
17
|
+
};
|
|
@@ -3,14 +3,14 @@ import i from "./EditorToolbar.vue2.js";
|
|
|
3
3
|
import s from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
4
|
var n = function() {
|
|
5
5
|
var e = this, o = e._self._c, t = e._self._setupProxy;
|
|
6
|
-
return o("div", { staticClass: "d-f editor-toolbar" }, [o(t.InButtonV2, { attrs: { id: "guido__undo-button", "left-icon": "line-undo", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isUndoButtonDisabled, "label-text-status": !1, "tooltip-options": t.getTooltipOptions("guido__undo-button"), "tooltip-text": t.trans("action-builder.undo") } }), o(t.InButtonV2, { attrs: { id: "guido__redo-button", "left-icon": "line-redo", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isRedoButtonDisabled, "label-text-status": !1, "tooltip-options": t.getTooltipOptions("guido__redo-button"), "tooltip-text": t.trans("action-builder.redo") } }), o(t.InButtonV2, { attrs: { id: "guido__code-button", "data-testid": "Code Editor", "left-icon": "line-code", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isCodeEditorButtonDisabled, "label-text-status": !1, "selected-status": t.editorStore.isCodeEditorOpen, "tooltip-options": t.getTooltipOptions("guido__code-button"), "tooltip-text": t.codeEditorTooltipText } }), o(t.InButtonV2, { attrs: { id: "guido__preview-button", "left-icon": "line-show-on", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isPreviewButtonDisabled, "label-text-status": !1, "selected-status": t.editorStore.isPreviewModeOpen, "tooltip-options": t.getTooltipOptions("guido__preview-button"), "tooltip-text": t.previewTooltipText }, on: { click: t.handlePreviewToggle } }), o(t.ViewOptions, { staticClass: "ml-2" })], 1);
|
|
6
|
+
return o("div", { staticClass: "d-f editor-toolbar" }, [o(t.InButtonV2, { attrs: { id: "guido__undo-button", "left-icon": "line-undo", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isUndoButtonDisabled, "label-text-status": !1, "tooltip-options": t.getTooltipOptions("guido__undo-button"), "tooltip-text": t.trans("action-builder.undo") } }), o(t.InButtonV2, { attrs: { id: "guido__redo-button", "left-icon": "line-redo", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isRedoButtonDisabled, "label-text-status": !1, "tooltip-options": t.getTooltipOptions("guido__redo-button"), "tooltip-text": t.trans("action-builder.redo") } }), o(t.InButtonV2, { attrs: { id: "guido__code-button", "data-testid": "Code Editor", "left-icon": "line-code", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isCodeEditorButtonDisabled, "label-text-status": !1, "selected-status": t.editorStore.isCodeEditorOpen, "tooltip-options": t.getTooltipOptions("guido__code-button"), "tooltip-text": t.codeEditorTooltipText } }), o(t.InButtonV2, { attrs: { id: "guido__preview-button", "left-icon": "line-show-on", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isPreviewButtonDisabled, "label-text-status": !1, "selected-status": t.editorStore.isPreviewModeOpen, "tooltip-options": t.getTooltipOptions("guido__preview-button"), "tooltip-text": t.previewTooltipText }, on: { click: t.handlePreviewToggle } }), o(t.ViewOptions, { staticClass: "ml-2" }), o(t.AiStatusPill)], 1);
|
|
7
7
|
}, d = [], l = /* @__PURE__ */ s(
|
|
8
8
|
i,
|
|
9
9
|
n,
|
|
10
10
|
d,
|
|
11
11
|
!1,
|
|
12
12
|
null,
|
|
13
|
-
"
|
|
13
|
+
"ec30d292"
|
|
14
14
|
);
|
|
15
15
|
const _ = l.exports;
|
|
16
16
|
export {
|
|
@@ -4,14 +4,15 @@ import { useTranslations as l } from "../../../composables/useTranslations.js";
|
|
|
4
4
|
import { useEditorStore as d } from "../../../stores/editor.js";
|
|
5
5
|
import { getTooltipOptions as w } from "../../../utils/tooltipUtils.js";
|
|
6
6
|
import { InButtonV2 as c } from "@useinsider/design-system-vue";
|
|
7
|
-
import a from "./
|
|
8
|
-
|
|
7
|
+
import a from "./AiStatusPill.vue.js";
|
|
8
|
+
import f from "./ViewOptions.vue.js";
|
|
9
|
+
const x = /* @__PURE__ */ p({
|
|
9
10
|
__name: "EditorToolbar",
|
|
10
|
-
setup(
|
|
11
|
-
const o = d(), e = l(), { openPreviewMode: t, closePreviewMode: r } = m(),
|
|
12
|
-
return { __sfc: !0, editorStore: o, trans: e, openPreviewMode: t, closePreviewMode: r, previewTooltipText:
|
|
11
|
+
setup(u) {
|
|
12
|
+
const o = d(), e = l(), { openPreviewMode: t, closePreviewMode: r } = m(), s = i(() => o.isPreviewModeOpen ? e("newsletter.close-email-preview") : e("newsletter.email-preview")), n = i(() => o.isCodeEditorOpen ? e("newsletter.close-html-editor") : e("newsletter.html-editor"));
|
|
13
|
+
return { __sfc: !0, editorStore: o, trans: e, openPreviewMode: t, closePreviewMode: r, previewTooltipText: s, codeEditorTooltipText: n, handlePreviewToggle: () => o.isPreviewModeOpen ? r() : t(), getTooltipOptions: w, InButtonV2: c, AiStatusPill: a, ViewOptions: f };
|
|
13
14
|
}
|
|
14
15
|
});
|
|
15
16
|
export {
|
|
16
|
-
|
|
17
|
+
x as default
|
|
17
18
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { useAiStatusStore as r } from "../stores/ai-status.js";
|
|
2
|
+
const a = () => {
|
|
3
|
+
const t = r();
|
|
4
|
+
return { store: t, start: (e = "") => {
|
|
5
|
+
t.isGenerating && t.activeTool === e || t.$patch({ isGenerating: !0, activeTool: e });
|
|
6
|
+
}, stop: () => {
|
|
7
|
+
!t.isGenerating && t.activeTool === "" || t.$patch({ isGenerating: !1, activeTool: "" });
|
|
8
|
+
} };
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
a as useAiStatus
|
|
12
|
+
};
|
|
@@ -1,66 +1,83 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
1
|
+
import { useAiStatus as v } from "./useAiStatus.js";
|
|
2
|
+
import { useEmailTemplateApplier as I, resetEmailTemplateApplier as B } from "./useEmailTemplateApplier.js";
|
|
3
|
+
import { useToaster as M } from "./useToaster.js";
|
|
4
|
+
import { useTranslations as P } from "./useTranslations.js";
|
|
5
|
+
import { ToasterTypeOptions as D } from "../enums/toaster.js";
|
|
6
|
+
import { getActivePinia as L } from "pinia";
|
|
7
|
+
import { watch as N, onUnmounted as x } from "vue";
|
|
8
|
+
const C = "email_template", G = "chat", R = "guido:debug:ai", U = /* @__PURE__ */ new Set(["done", "error", "cancelled"]), Y = () => {
|
|
8
9
|
if (typeof window > "u")
|
|
9
10
|
return !1;
|
|
10
11
|
try {
|
|
11
|
-
return window.localStorage.getItem(
|
|
12
|
+
return window.localStorage.getItem(R) === "1";
|
|
12
13
|
} catch {
|
|
13
14
|
return !1;
|
|
14
15
|
}
|
|
15
|
-
},
|
|
16
|
-
const
|
|
17
|
-
if (!
|
|
16
|
+
}, q = () => {
|
|
17
|
+
const s = L();
|
|
18
|
+
if (!s)
|
|
18
19
|
return;
|
|
19
|
-
const
|
|
20
|
+
const c = s._s, p = c == null ? void 0 : c.get(G);
|
|
20
21
|
if (!p)
|
|
21
22
|
return;
|
|
22
|
-
const { applyTemplate:
|
|
23
|
-
const
|
|
24
|
-
return
|
|
25
|
-
},
|
|
26
|
-
|
|
27
|
-
},
|
|
28
|
-
if (
|
|
23
|
+
const { applyTemplate: T, applyTemplateDebounced: A } = I(), { showToaster: E } = M(), l = v(), y = P(), h = (r, t) => {
|
|
24
|
+
const e = y(r);
|
|
25
|
+
return e === r ? t : e;
|
|
26
|
+
}, a = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Set(), d = Y(), m = (r, t) => {
|
|
27
|
+
d && console.debug(`[guido:cortex] msg=${r ?? "?"} type=${(t == null ? void 0 : t.type) ?? "?"}`, t);
|
|
28
|
+
}, b = (r) => {
|
|
29
|
+
if (r.blueprintType !== C)
|
|
29
30
|
return;
|
|
30
|
-
const t =
|
|
31
|
-
if (!t || !(
|
|
31
|
+
const t = r.blueprintId, e = r.blueprintData;
|
|
32
|
+
if (!t || !(e != null && e.html))
|
|
32
33
|
return;
|
|
33
|
-
const
|
|
34
|
-
|
|
35
|
-
},
|
|
36
|
-
type:
|
|
37
|
-
message:
|
|
38
|
-
}), !0),
|
|
34
|
+
const n = a.get(t);
|
|
35
|
+
n === void 0 ? (a.set(t, e.html), T(t, e)) : n !== e.html && (a.set(t, e.html), A(t, e));
|
|
36
|
+
}, f = (r) => r === void 0 || u.has(r) ? !1 : (u.add(r), E({
|
|
37
|
+
type: D.Alert,
|
|
38
|
+
message: h("newsletter.ai-template-failed", "AI couldn't generate the template. Please try again.")
|
|
39
|
+
}), !0), S = (r) => {
|
|
40
|
+
const t = r.toolName ?? r.name ?? r.tool;
|
|
41
|
+
return typeof t == "string" ? t : "";
|
|
42
|
+
}, _ = (r) => {
|
|
43
|
+
const t = r[r.length - 1];
|
|
44
|
+
if (!t) {
|
|
45
|
+
l.stop();
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
const e = Array.isArray(t.segments) ? t.segments : [];
|
|
49
|
+
if (t.isError === !0 || t.isCancelled === !0 || e.some((i) => !!i && U.has(i.type ?? ""))) {
|
|
50
|
+
l.stop();
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
const o = [...e].reverse().find((i) => (i == null ? void 0 : i.type) === "tool_call");
|
|
54
|
+
o && l.start(S(o));
|
|
55
|
+
}, w = N(
|
|
39
56
|
() => p.messages,
|
|
40
|
-
(
|
|
41
|
-
Array.isArray(
|
|
42
|
-
const
|
|
43
|
-
(t == null ? void 0 : t.isError) === !0 &&
|
|
44
|
-
const
|
|
45
|
-
Array.isArray(
|
|
46
|
-
if (
|
|
47
|
-
switch (
|
|
57
|
+
(r) => {
|
|
58
|
+
Array.isArray(r) && (_(r), r.forEach((t) => {
|
|
59
|
+
const e = t == null ? void 0 : t.id;
|
|
60
|
+
(t == null ? void 0 : t.isError) === !0 && f(e) && d && console.debug(`[guido:cortex] message-level error id=${e}`, t);
|
|
61
|
+
const n = t == null ? void 0 : t.segments;
|
|
62
|
+
Array.isArray(n) && n.forEach((o) => {
|
|
63
|
+
if (o)
|
|
64
|
+
switch (m(e, o), o.type) {
|
|
48
65
|
case "blueprint":
|
|
49
|
-
|
|
66
|
+
b(o);
|
|
50
67
|
break;
|
|
51
68
|
case "error":
|
|
52
|
-
|
|
69
|
+
f(e);
|
|
53
70
|
break;
|
|
54
71
|
}
|
|
55
72
|
});
|
|
56
|
-
});
|
|
73
|
+
}));
|
|
57
74
|
},
|
|
58
75
|
{ deep: !0, immediate: !0 }
|
|
59
76
|
);
|
|
60
|
-
|
|
61
|
-
|
|
77
|
+
x(() => {
|
|
78
|
+
w(), a.clear(), u.clear(), l.stop(), B();
|
|
62
79
|
});
|
|
63
80
|
};
|
|
64
81
|
export {
|
|
65
|
-
|
|
82
|
+
q as useCortexBlueprintBridge
|
|
66
83
|
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { UEAttr as
|
|
5
|
-
import { CommonControl as
|
|
1
|
+
var c = Object.defineProperty;
|
|
2
|
+
var l = (s, o, t) => o in s ? c(s, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[o] = t;
|
|
3
|
+
var a = (s, o, t) => l(s, typeof o != "symbol" ? o + "" : o, t);
|
|
4
|
+
import { UEAttr as h } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
5
|
+
import { CommonControl as d } from "../../../common-control.js";
|
|
6
6
|
import { RecommendationConfigService as n } from "../../services/configService.js";
|
|
7
|
-
import { useRecommendationExtensionStore as
|
|
8
|
-
import { mapLegacyStrategy as
|
|
9
|
-
const
|
|
7
|
+
import { useRecommendationExtensionStore as m } from "../../store/recommendation.js";
|
|
8
|
+
import { mapLegacyStrategy as g } from "../../utils/legacyStrategyMap.js";
|
|
9
|
+
const u = "recommendation-algorithm-control", i = {
|
|
10
10
|
ALGORITHM: "strategy",
|
|
11
11
|
PRODUCT_IDS: "productIds"
|
|
12
12
|
};
|
|
13
|
-
class
|
|
13
|
+
class R extends d {
|
|
14
14
|
constructor() {
|
|
15
15
|
super(...arguments);
|
|
16
16
|
// Store is used ONLY for API-fetched data (algorithms list), not for config
|
|
17
|
-
|
|
17
|
+
a(this, "store", m());
|
|
18
18
|
}
|
|
19
19
|
getId() {
|
|
20
|
-
return
|
|
20
|
+
return u;
|
|
21
21
|
}
|
|
22
22
|
getTemplate() {
|
|
23
23
|
return `
|
|
@@ -30,10 +30,10 @@ class y extends m {
|
|
|
30
30
|
options: this.store.getActivePredictiveAlgorithms
|
|
31
31
|
}),
|
|
32
32
|
this._GuLabel({ text: this.api.translate("Product Ids"), name: `${i.PRODUCT_IDS}_label` }),
|
|
33
|
-
this.
|
|
33
|
+
this._GuTextInput({
|
|
34
34
|
name: i.PRODUCT_IDS,
|
|
35
35
|
placeholder: this.api.translate("Enter Product Ids"),
|
|
36
|
-
className: "
|
|
36
|
+
className: "es-180w"
|
|
37
37
|
})
|
|
38
38
|
])}
|
|
39
39
|
</div>
|
|
@@ -46,11 +46,10 @@ class y extends m {
|
|
|
46
46
|
super.onTemplateNodeUpdated(t), this._initializeSelectItems(), this._setFormValues();
|
|
47
47
|
}
|
|
48
48
|
_setFormValues() {
|
|
49
|
-
const t = n.getConfig(this.currentNode), e =
|
|
49
|
+
const t = n.getConfig(this.currentNode), e = g(t.strategy) ?? t.strategy;
|
|
50
50
|
this._setProductIdsVisibility(e), this.api.updateValues({
|
|
51
51
|
[i.ALGORITHM]: e,
|
|
52
|
-
|
|
53
|
-
[i.PRODUCT_IDS]: t.productIds
|
|
52
|
+
[i.PRODUCT_IDS]: t.productIds.join(",")
|
|
54
53
|
});
|
|
55
54
|
}
|
|
56
55
|
_initializeSelectItems() {
|
|
@@ -60,7 +59,7 @@ class y extends m {
|
|
|
60
59
|
try {
|
|
61
60
|
this.api.setUIEAttribute(
|
|
62
61
|
i.ALGORITHM,
|
|
63
|
-
|
|
62
|
+
h.SELECTPICKER.items,
|
|
64
63
|
t
|
|
65
64
|
);
|
|
66
65
|
} catch (r) {
|
|
@@ -82,13 +81,13 @@ class y extends m {
|
|
|
82
81
|
_onProductIdsChange(t) {
|
|
83
82
|
if (!this.currentNode)
|
|
84
83
|
return;
|
|
85
|
-
const e =
|
|
86
|
-
|
|
84
|
+
const e = t.split(",").map((r) => r.trim()).filter(Boolean);
|
|
85
|
+
n.updateConfig(
|
|
87
86
|
this.api,
|
|
88
87
|
this.currentNode,
|
|
89
88
|
{ productIds: e },
|
|
90
89
|
"Updated product IDs"
|
|
91
|
-
), this.store.patchCurrentBlockConfig({ productIds: e })
|
|
90
|
+
), this.store.patchCurrentBlockConfig({ productIds: e });
|
|
92
91
|
}
|
|
93
92
|
_listenToFormUpdates() {
|
|
94
93
|
this.api.onValueChanged(i.ALGORITHM, (t) => {
|
|
@@ -99,6 +98,6 @@ class y extends m {
|
|
|
99
98
|
}
|
|
100
99
|
}
|
|
101
100
|
export {
|
|
102
|
-
|
|
103
|
-
|
|
101
|
+
u as ALGORITHM_CONTROL_ID,
|
|
102
|
+
R as AlgorithmControl
|
|
104
103
|
};
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
const n = `/* Utils */
|
|
2
|
-
.es-180w {
|
|
3
|
-
width: 180px;
|
|
4
|
-
}
|
|
2
|
+
.es-180w { width: 180px; }
|
|
5
3
|
|
|
6
4
|
/* Recommendation Controls - Main settings panel separators */
|
|
7
|
-
.recommendation-controls-container>div {
|
|
5
|
+
.recommendation-controls-container > div {
|
|
8
6
|
border-bottom: 1px solid #eee;
|
|
9
7
|
}
|
|
10
8
|
|
|
11
|
-
.recommendation-controls-container>div:first-child {
|
|
9
|
+
.recommendation-controls-container > div:first-child {
|
|
12
10
|
padding-top: 0;
|
|
13
11
|
}
|
|
14
12
|
|
|
15
|
-
.recommendation-controls-container>div:last-child {
|
|
13
|
+
.recommendation-controls-container > div:last-child {
|
|
16
14
|
border-bottom: none;
|
|
17
15
|
}
|
|
18
16
|
|
|
@@ -291,62 +289,6 @@ ue-orderable.orderable-disabled .droppable-icon {
|
|
|
291
289
|
font-weight: 400;
|
|
292
290
|
line-height: 16px;
|
|
293
291
|
}
|
|
294
|
-
|
|
295
|
-
/* product ID multiselect — initial */
|
|
296
|
-
.product-ids-multiselect {
|
|
297
|
-
background-color: var(--guido-color-gray-0);
|
|
298
|
-
border: 1px solid var(--guido-color-gray-300);
|
|
299
|
-
width: 180px;
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
/* product ID multiselect — hover */
|
|
303
|
-
.product-ids-multiselect:hover {
|
|
304
|
-
border-color: var(--guido-color-primary-500);
|
|
305
|
-
background-color: var(--guido-color-gray-0) !important;
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
/* product ID multiselect — selected (.on) */
|
|
309
|
-
.product-ids-multiselect.on,
|
|
310
|
-
.product-ids-multiselect.on:hover {
|
|
311
|
-
border-color: var(--guido-color-primary-500);
|
|
312
|
-
box-shadow: 0 0 0 3px var(--guido-color-primary-200) !important;
|
|
313
|
-
background-color: var(--guido-color-gray-0) !important;
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
.product-ids-multiselect .multiple-wrapper .multiple-item {
|
|
317
|
-
display: flex;
|
|
318
|
-
align-items: center;
|
|
319
|
-
border-radius: 4px;
|
|
320
|
-
border: 1px solid #B5C1F1;
|
|
321
|
-
background-color: #F1F3FE;
|
|
322
|
-
font-size: 13px;
|
|
323
|
-
color: #0A2ECC;
|
|
324
|
-
line-height: 16px;
|
|
325
|
-
box-shadow: none;
|
|
326
|
-
padding: 0 4px;
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
/* Close (×): always visible, moved to the right, split off by a left border (Figma).
|
|
330
|
-
Label is a text node (can't be ordered) so the icon gets order:1 to sit after it;
|
|
331
|
-
Stripo toggles visibility inline on hover, hence !important to keep it shown. */
|
|
332
|
-
.product-ids-multiselect .multiple-wrapper .multiple-item .multiple-item-remove-icon {
|
|
333
|
-
visibility: visible !important;
|
|
334
|
-
opacity: 1;
|
|
335
|
-
position: static !important;
|
|
336
|
-
order: 1;
|
|
337
|
-
margin-left: 4px;
|
|
338
|
-
border-left: 1px solid #B5C1F1;
|
|
339
|
-
color: var(--guido-color-primary-500);
|
|
340
|
-
cursor: pointer;
|
|
341
|
-
width: 16px;
|
|
342
|
-
height: 16px;
|
|
343
|
-
padding: 4px 0 4px 3px;
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
.product-ids-multiselect .multiple-wrapper .multiple-item:hover {
|
|
347
|
-
background-color: #F1F3FE;
|
|
348
|
-
padding: 0 4px;
|
|
349
|
-
}
|
|
350
292
|
`;
|
|
351
293
|
export {
|
|
352
294
|
n as default
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var c = Object.defineProperty;
|
|
2
|
-
var i = (s,
|
|
3
|
-
var
|
|
2
|
+
var i = (s, r, e) => r in s ? c(s, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[r] = e;
|
|
3
|
+
var u = (s, r, e) => i(s, typeof r != "symbol" ? r + "" : r, e);
|
|
4
4
|
import { Control as I, UIElementType as n, UEAttr as $ } from "../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
5
|
-
class
|
|
5
|
+
class d extends I {
|
|
6
6
|
constructor() {
|
|
7
7
|
super(...arguments);
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
u(this, "currentNode");
|
|
9
|
+
u(this, "lastBlockInstanceId", null);
|
|
10
10
|
}
|
|
11
11
|
getContainer() {
|
|
12
12
|
var e;
|
|
@@ -47,15 +47,15 @@ class _ extends I {
|
|
|
47
47
|
const t = this.getBlockInstanceId();
|
|
48
48
|
if (!t)
|
|
49
49
|
return !1;
|
|
50
|
-
const
|
|
51
|
-
return e(),
|
|
50
|
+
const o = t !== this.lastBlockInstanceId;
|
|
51
|
+
return e(), o && (this.lastBlockInstanceId = t), o;
|
|
52
52
|
}
|
|
53
|
-
_GuLabel({ text: e, name: t = "", hint:
|
|
53
|
+
_GuLabel({ text: e, name: t = "", hint: o }) {
|
|
54
54
|
return `
|
|
55
55
|
<${n.LABEL}
|
|
56
56
|
${$.LABEL.text}="${e}"
|
|
57
57
|
${$.LABEL.name}="${t || `${e} Label`}"
|
|
58
|
-
${
|
|
58
|
+
${o ? `${$.LABEL.hint}="${o}"` : ""}>
|
|
59
59
|
</${n.LABEL}>
|
|
60
60
|
`;
|
|
61
61
|
}
|
|
@@ -73,7 +73,7 @@ class _ extends I {
|
|
|
73
73
|
* Use in getTemplate() — the icon is registered in a hidden store so Stripo initializes it.
|
|
74
74
|
* Pair with _setInfoMessageValue() in onRender() to set the text content.
|
|
75
75
|
*/
|
|
76
|
-
_GuOnPageMessage({ name: e, icon: t = "not-found", type:
|
|
76
|
+
_GuOnPageMessage({ name: e, icon: t = "not-found", type: o = "info" }) {
|
|
77
77
|
return `
|
|
78
78
|
<div data-info-message="${e}" style="display: none; padding: 16px 16px 0;">
|
|
79
79
|
<div class="icon-store" style="display: none;">
|
|
@@ -81,7 +81,7 @@ class _ extends I {
|
|
|
81
81
|
${this._GuIcon({ src: t, className: "icon" })}
|
|
82
82
|
</div>
|
|
83
83
|
</div>
|
|
84
|
-
${this._GuMessage({ name: e, type:
|
|
84
|
+
${this._GuMessage({ name: e, type: o })}
|
|
85
85
|
</div>
|
|
86
86
|
`;
|
|
87
87
|
}
|
|
@@ -91,7 +91,7 @@ class _ extends I {
|
|
|
91
91
|
* and combines it with the text in Stripo's alert-message layout.
|
|
92
92
|
*/
|
|
93
93
|
_setInfoMessageValue(e, t) {
|
|
94
|
-
const
|
|
94
|
+
const o = this.getContainer(), E = o.querySelector(`[data-icon-key="${e}"]`), a = E == null ? void 0 : E.querySelector("ue-icon-component"), l = (a == null ? void 0 : a.outerHTML) ?? "";
|
|
95
95
|
this.api.setUIEAttribute(
|
|
96
96
|
e,
|
|
97
97
|
"value",
|
|
@@ -104,8 +104,8 @@ class _ extends I {
|
|
|
104
104
|
</div>
|
|
105
105
|
`
|
|
106
106
|
);
|
|
107
|
-
const
|
|
108
|
-
|
|
107
|
+
const T = o.querySelector(`[data-info-message="${e}"]`);
|
|
108
|
+
T && (T.style.display = "");
|
|
109
109
|
}
|
|
110
110
|
_GuToggle(e) {
|
|
111
111
|
return `
|
|
@@ -121,59 +121,59 @@ class _ extends I {
|
|
|
121
121
|
${$.SELECT_ITEM.value}="${t}">
|
|
122
122
|
</${n.SELECT_ITEM}>`;
|
|
123
123
|
}
|
|
124
|
-
_GuSelect({ name: e, placeholder: t, options:
|
|
124
|
+
_GuSelect({ name: e, placeholder: t, options: o, className: E = "es-180w" }) {
|
|
125
125
|
return `
|
|
126
126
|
<${n.SELECTPICKER}
|
|
127
|
-
class="${
|
|
127
|
+
class="${E}"
|
|
128
128
|
${$.SELECTPICKER.name}="${e}"
|
|
129
129
|
${$.SELECTPICKER.placeholder}="${t}">
|
|
130
|
-
${
|
|
130
|
+
${o.map((a) => this._GuSelectItem(a)).join("")}
|
|
131
131
|
</${n.SELECTPICKER}>
|
|
132
132
|
`;
|
|
133
133
|
}
|
|
134
|
-
_GuTextInput({ name: e, placeholder: t, className:
|
|
134
|
+
_GuTextInput({ name: e, placeholder: t, className: o = "", disabled: E = !1 }) {
|
|
135
135
|
return `
|
|
136
136
|
<${n.TEXT}
|
|
137
|
-
class=${
|
|
137
|
+
class=${o}
|
|
138
138
|
${$.TEXT.name}="${e}"
|
|
139
139
|
placeholder="${t || e}"
|
|
140
|
-
${
|
|
140
|
+
${E ? `${$.TEXT.disabled}="true"` : ""}>
|
|
141
141
|
</${n.TEXT}>
|
|
142
142
|
`;
|
|
143
143
|
}
|
|
144
|
-
_GuCounter({ name: e, maxValue: t, minValue:
|
|
144
|
+
_GuCounter({ name: e, maxValue: t, minValue: o = 1, step: E = 1 }) {
|
|
145
145
|
return `
|
|
146
146
|
<${n.COUNTER}
|
|
147
147
|
${$.COUNTER.name}="${e}"
|
|
148
|
-
${$.COUNTER.minValue}="${
|
|
148
|
+
${$.COUNTER.minValue}="${o}"
|
|
149
149
|
${$.COUNTER.maxValue}="${t}"
|
|
150
|
-
${$.COUNTER.step}="${
|
|
150
|
+
${$.COUNTER.step}="${E}">
|
|
151
151
|
</${n.COUNTER}>
|
|
152
152
|
`;
|
|
153
153
|
}
|
|
154
|
-
_GuRadioButtonItem({ text: e, value: t, icon:
|
|
154
|
+
_GuRadioButtonItem({ text: e, value: t, icon: o }) {
|
|
155
155
|
return `
|
|
156
156
|
<${n.RADIO_ITEM}
|
|
157
157
|
${$.RADIO_ITEM.value}="${t}"
|
|
158
158
|
${e ? `${$.RADIO_ITEM.text}="${e}"` : ""}
|
|
159
|
-
${
|
|
159
|
+
${o ? `${$.RADIO_ITEM.icon}="${o}"` : ""}>
|
|
160
160
|
</${n.RADIO_ITEM}>
|
|
161
161
|
`;
|
|
162
162
|
}
|
|
163
|
-
_GuRadioButton({ name: e, buttons: t, id:
|
|
163
|
+
_GuRadioButton({ name: e, buttons: t, id: o = "" }) {
|
|
164
164
|
return `
|
|
165
165
|
<${n.RADIO_BUTTONS}
|
|
166
|
-
${
|
|
166
|
+
${o ? `id="${o}"` : ""}
|
|
167
167
|
${$.RADIO_BUTTONS.name}="${e}">
|
|
168
|
-
${t.map((
|
|
168
|
+
${t.map((E) => this._GuRadioButtonItem(E)).join("")}
|
|
169
169
|
</${n.RADIO_BUTTONS}>
|
|
170
170
|
`;
|
|
171
171
|
}
|
|
172
|
-
_GuButton({ name: e, label: t, id:
|
|
172
|
+
_GuButton({ name: e, label: t, id: o = "" }) {
|
|
173
173
|
return `
|
|
174
174
|
<${n.BUTTON}
|
|
175
175
|
${$.BUTTON.name}="${e}"
|
|
176
|
-
${
|
|
176
|
+
${o ? `id="${o}"` : ""}
|
|
177
177
|
${$.BUTTON.caption}="${t}"}>
|
|
178
178
|
</${n.BUTTON}>
|
|
179
179
|
`;
|
|
@@ -191,10 +191,10 @@ class _ extends I {
|
|
|
191
191
|
* @param param0
|
|
192
192
|
* @returns It returns a button with an icon.
|
|
193
193
|
*/
|
|
194
|
-
_GuIconButton({ name: e, icon: t, className:
|
|
194
|
+
_GuIconButton({ name: e, icon: t, className: o = "" }) {
|
|
195
195
|
return `
|
|
196
196
|
<${n.BUTTON}
|
|
197
|
-
class="${
|
|
197
|
+
class="${o}"
|
|
198
198
|
${$.BUTTON.name}="${e}"
|
|
199
199
|
${$.BUTTON.icon}="${t}">
|
|
200
200
|
</${n.BUTTON}>
|
|
@@ -222,19 +222,19 @@ class _ extends I {
|
|
|
222
222
|
* @returns HTML string for the orderable control
|
|
223
223
|
*/
|
|
224
224
|
_GuOrderable(e, t) {
|
|
225
|
-
let
|
|
226
|
-
t.forEach((
|
|
225
|
+
let o = "";
|
|
226
|
+
t.forEach((a) => {
|
|
227
227
|
const l = $.ORDERABLE_ITEM && "name" in $.ORDERABLE_ITEM ? $.ORDERABLE_ITEM.name : "name";
|
|
228
|
-
|
|
229
|
-
<${n.ORDERABLE_ITEM} ${l}="${
|
|
230
|
-
${
|
|
228
|
+
o += `
|
|
229
|
+
<${n.ORDERABLE_ITEM} ${l}="${a.key}">
|
|
230
|
+
${a.content}
|
|
231
231
|
</${n.ORDERABLE_ITEM}>
|
|
232
232
|
`;
|
|
233
233
|
});
|
|
234
|
-
const
|
|
234
|
+
const E = $.ORDERABLE && "name" in $.ORDERABLE ? $.ORDERABLE.name : "name";
|
|
235
235
|
return `
|
|
236
|
-
<${n.ORDERABLE} ${
|
|
237
|
-
${
|
|
236
|
+
<${n.ORDERABLE} ${E}="${e}">
|
|
237
|
+
${o}
|
|
238
238
|
</${n.ORDERABLE}>
|
|
239
239
|
`;
|
|
240
240
|
}
|
|
@@ -275,16 +275,16 @@ class _ extends I {
|
|
|
275
275
|
`;
|
|
276
276
|
}
|
|
277
277
|
_GuRadioButtons(e, t) {
|
|
278
|
-
const
|
|
278
|
+
const o = t.map((E) => `
|
|
279
279
|
<${n.RADIO_ITEM}
|
|
280
|
-
${$.RADIO_ITEM.text}="${
|
|
281
|
-
${$.RADIO_ITEM.value}="${
|
|
280
|
+
${$.RADIO_ITEM.text}="${E.text}"
|
|
281
|
+
${$.RADIO_ITEM.value}="${E.value}">
|
|
282
282
|
</${n.RADIO_ITEM}>
|
|
283
283
|
`).join("");
|
|
284
284
|
return `
|
|
285
285
|
<${n.RADIO_BUTTONS}
|
|
286
286
|
${$.RADIO_BUTTONS.name}="${e}">
|
|
287
|
-
${
|
|
287
|
+
${o}
|
|
288
288
|
</${n.RADIO_BUTTONS}>
|
|
289
289
|
`;
|
|
290
290
|
}
|
|
@@ -296,20 +296,7 @@ class _ extends I {
|
|
|
296
296
|
</${n.CHECKBOX}>
|
|
297
297
|
`;
|
|
298
298
|
}
|
|
299
|
-
// Tag/chips input (Stripo MULTIPLE_SELECT): add-by-Enter, remove-by-×.
|
|
300
|
-
// Value is read/written as a string[] via updateValues / onValueChanged.
|
|
301
|
-
_GuMultiSelect({ name: e, placeholder: t = "", className: E = "", disabled: o = !1 }) {
|
|
302
|
-
const r = [E, o ? "" : "click-enabled"].filter(Boolean).join(" ");
|
|
303
|
-
return `
|
|
304
|
-
<${n.MULTIPLE_SELECT}
|
|
305
|
-
class="${r}"
|
|
306
|
-
${$.MULTIPLE_SELECT.name}="${e}"
|
|
307
|
-
${$.MULTIPLE_SELECT.placeholder}="${t}"
|
|
308
|
-
${o ? `${$.MULTIPLE_SELECT.disabled}="true"` : ""}>
|
|
309
|
-
</${n.MULTIPLE_SELECT}>
|
|
310
|
-
`;
|
|
311
|
-
}
|
|
312
299
|
}
|
|
313
300
|
export {
|
|
314
|
-
|
|
301
|
+
d as CommonControl
|
|
315
302
|
};
|
package/dist/guido.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.gap-16[data-v-5553d071],.gap-16[data-v-0e1b0c54]{gap:16px}[data-v-73199fa4] .in-button-v2__wrapper{line-height:0}[data-v-22226124] .in-segments-wrapper__button_selected,[data-v-22226124] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb;color:#0010ac;border-color:#0010ac}[data-v-2cb418af] .in-progress-wrapper__progress p span:last-child{display:none!important}[data-v-2cb418af] .in-progress-description-status{display:none!important}.view-options-wrapper[data-v-195ab6d4]{position:relative;display:inline-block}.new-tag[data-v-195ab6d4]{position:absolute;top:-8px;right:-16px;z-index:10}[data-v-195ab6d4] .guido__view-option-selection-desktop svg,[data-v-195ab6d4] .guido__view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-195ab6d4] .in-segments-wrapper__button_selected,[data-v-195ab6d4] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-195ab6d4] .in-tooltip-wrapper__icon{cursor:pointer}.editor-toolbar[data-v-
|
|
1
|
+
.gap-16[data-v-5553d071],.gap-16[data-v-0e1b0c54]{gap:16px}[data-v-73199fa4] .in-button-v2__wrapper{line-height:0}[data-v-22226124] .in-segments-wrapper__button_selected,[data-v-22226124] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb;color:#0010ac;border-color:#0010ac}[data-v-2cb418af] .in-progress-wrapper__progress p span:last-child{display:none!important}[data-v-2cb418af] .in-progress-description-status{display:none!important}.ai-status-pill[data-v-1ed36cb3]{padding:2px 8px;border-radius:12px;background-color:#f3f4f6}.ai-status-pill__label[data-v-1ed36cb3]{white-space:nowrap}.view-options-wrapper[data-v-195ab6d4]{position:relative;display:inline-block}.new-tag[data-v-195ab6d4]{position:absolute;top:-8px;right:-16px;z-index:10}[data-v-195ab6d4] .guido__view-option-selection-desktop svg,[data-v-195ab6d4] .guido__view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-195ab6d4] .in-segments-wrapper__button_selected,[data-v-195ab6d4] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-195ab6d4] .in-tooltip-wrapper__icon{cursor:pointer}.editor-toolbar[data-v-ec30d292]{gap:4px}.version-history-item[data-v-ee4b9c3f]{flex-basis:200px}.version-history[data-v-64c52560]{gap:8px}.version-history__toolbar[data-v-64c52560]{gap:4px}.view-options-wrapper[data-v-d405ca59]{position:relative;display:inline-block}.new-tag[data-v-d405ca59]{position:absolute;top:-8px;right:-16px;z-index:10}[data-v-d405ca59] .guido__verion-history-view-option-selection-desktop svg,[data-v-d405ca59] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-d405ca59] .in-segments-wrapper__button_selected,[data-v-d405ca59] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-d405ca59] .in-tooltip-wrapper__icon{cursor:pointer}.auto-save-toggle[data-v-2c964af4]{position:relative}.auto-save-toggle__info-box[data-v-2c964af4]{position:absolute;top:100%;left:0;z-index:10;width:280px}.editor-actions[data-v-82128f7d]{gap:4px}.header-wrapper[data-v-5c02dcc7]{min-width:1000px}.guido-loading__wrapper[data-v-07c4b2d8]{height:100%;top:75px!important;bottom:0!important}.guido-editor__wrapper[data-v-50dac6de]{--ribbon-offset: 0px;position:relative;width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__container[data-v-50dac6de]{width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__no-header[data-v-50dac6de]{height:calc(100vh - 75px - var(--ribbon-offset))}[data-v-293f1c47] .in-breadcrumb-wrapper__links{cursor:pointer}.templates-wrapper[data-v-669fe7cf]{gap:16px;grid-template-columns:repeat(3,1fr)}.templates-wrapper .template-wrapper[data-v-669fe7cf]{cursor:pointer}.templates-wrapper .template-wrapper .template-container[data-v-669fe7cf]{height:274px;padding:2px;transition:none}.templates-wrapper .template-wrapper .template-container.selected[data-v-669fe7cf]{padding:1px}.templates-wrapper .template-wrapper .template-container .thumbnail[data-v-669fe7cf]{object-fit:cover;transform:scale(1)}[data-v-7a305bb2] .guido__verion-history-view-option-selection-desktop svg,[data-v-7a305bb2] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-7a305bb2] .in-segments-wrapper__button_selected,[data-v-7a305bb2] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}.error-list[data-v-c3fd5d4b]{gap:16px}.desktop-browser-header[data-v-d86c5af5]{height:79px;min-height:79px}.desktop-browser-header__left[data-v-d86c5af5]{-webkit-user-drag:none;height:79px;width:378px}.desktop-browser-header__center[data-v-d86c5af5]{height:79px;background-repeat:repeat-x;background-size:auto 100%;background-position:left top}.desktop-browser-header__right[data-v-d86c5af5]{-webkit-user-drag:none;height:79px;width:112px}.desktop-preview[data-v-06afaecb]{min-width:602px;height:70vh;min-height:583px;border-radius:10px}.desktop-preview iframe[data-v-06afaecb]{min-height:504px}.iframe-wrapper[data-v-cbafc185]{width:258px}.iframe-scaled[data-v-cbafc185]{width:320px;height:124.0310077519%;transform:scale(.80625);transform-origin:top left}.cropped-text[data-v-eb3d05d7]{width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-preview-wrapper__phone[data-v-3f472f96]{width:282px}.mobile-preview-wrapper__phone img[data-v-3f472f96]{object-fit:cover;border-radius:44px}.mobile-preview-wrapper__content[data-v-3f472f96]{width:258px;height:450px;left:12px}[data-v-7419ae06] .vueperslides__bullets,[data-v-796d193b] .vueperslides__bullets{pointer-events:none!important}[data-v-796d193b] .vueperslides__parallax-wrapper{height:110px!important}[data-v-cadfc82d] .vueperslides__bullets{pointer-events:none!important}[data-v-cadfc82d] .vueperslides__parallax-wrapper{height:110px!important}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Thin mutation API over the `guidoAiStatus` store. The cortex bridge calls
|
|
3
|
+
* `start`/`stop` as it observes `tool_call` and terminal (`done`/`error`/
|
|
4
|
+
* `cancelled`) segments; the toolbar pill reads the store directly.
|
|
5
|
+
*
|
|
6
|
+
* Both mutations are idempotent: the bridge re-evaluates status on every
|
|
7
|
+
* stream tick, so guarding against no-op writes keeps the store (and any
|
|
8
|
+
* reactive consumers) from churning.
|
|
9
|
+
*/
|
|
10
|
+
export declare const useAiStatus: () => {
|
|
11
|
+
store: import("pinia").Store<"guidoAiStatus", {
|
|
12
|
+
isGenerating: boolean;
|
|
13
|
+
activeTool: string;
|
|
14
|
+
}, {
|
|
15
|
+
isBusy: (state: {
|
|
16
|
+
isGenerating: boolean;
|
|
17
|
+
activeTool: string;
|
|
18
|
+
} & import("pinia").PiniaCustomStateProperties<{
|
|
19
|
+
isGenerating: boolean;
|
|
20
|
+
activeTool: string;
|
|
21
|
+
}>) => boolean;
|
|
22
|
+
}, {}>;
|
|
23
|
+
start: (tool?: string) => void;
|
|
24
|
+
stop: () => void;
|
|
25
|
+
};
|
|
@@ -24,6 +24,6 @@ export declare class AlgorithmControl extends CommonControl {
|
|
|
24
24
|
_initializeSelectItems(): void;
|
|
25
25
|
_setProductIdsVisibility(strategy?: string): void;
|
|
26
26
|
_onAlgorithmChange(value: string): void;
|
|
27
|
-
_onProductIdsChange(value: string
|
|
27
|
+
_onProductIdsChange(value: string): void;
|
|
28
28
|
_listenToFormUpdates(): void;
|
|
29
29
|
}
|
|
@@ -6,12 +6,6 @@ interface TextInputProps {
|
|
|
6
6
|
className?: string;
|
|
7
7
|
disabled?: boolean;
|
|
8
8
|
}
|
|
9
|
-
interface MultiSelectProps {
|
|
10
|
-
name: string;
|
|
11
|
-
placeholder?: string;
|
|
12
|
-
className?: string;
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
}
|
|
15
9
|
interface LabelProps {
|
|
16
10
|
text: string;
|
|
17
11
|
name?: string;
|
|
@@ -151,6 +145,5 @@ export declare abstract class CommonControl extends Control {
|
|
|
151
145
|
value: string;
|
|
152
146
|
}[]): string;
|
|
153
147
|
_GuCheckbox(name: string, caption: string): string;
|
|
154
|
-
_GuMultiSelect({ name, placeholder, className, disabled }: MultiSelectProps): string;
|
|
155
148
|
}
|
|
156
149
|
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tracks whether the AI agent (cortex-fe) is mid-generation so the editor
|
|
3
|
+
* toolbar can surface a status pill. Written by `useAiStatus` via `$patch` —
|
|
4
|
+
* state + getters only, mirroring `guido-email-editor` (architecture invariant).
|
|
5
|
+
*
|
|
6
|
+
* Store id `guidoAiStatus` is intentionally cross-MFE readable for debugging,
|
|
7
|
+
* same convention as `guidoEmailEditor`.
|
|
8
|
+
*/
|
|
9
|
+
export declare const useAiStatusStore: import("pinia").StoreDefinition<"guidoAiStatus", {
|
|
10
|
+
/** True while a qmechanics tool_call is in flight and no terminal segment seen. */
|
|
11
|
+
isGenerating: boolean;
|
|
12
|
+
/** Best-effort name of the tool that flipped the pill on — for debug/telemetry. */
|
|
13
|
+
activeTool: string;
|
|
14
|
+
}, {
|
|
15
|
+
isBusy: (state: {
|
|
16
|
+
isGenerating: boolean;
|
|
17
|
+
activeTool: string;
|
|
18
|
+
} & import("pinia").PiniaCustomStateProperties<{
|
|
19
|
+
/** True while a qmechanics tool_call is in flight and no terminal segment seen. */
|
|
20
|
+
isGenerating: boolean;
|
|
21
|
+
/** Best-effort name of the tool that flipped the pill on — for debug/telemetry. */
|
|
22
|
+
activeTool: string;
|
|
23
|
+
}>) => boolean;
|
|
24
|
+
}, {}>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { defineStore as e } from "pinia";
|
|
2
|
+
const s = e("guidoAiStatus", {
|
|
3
|
+
state: () => ({
|
|
4
|
+
/** True while a qmechanics tool_call is in flight and no terminal segment seen. */
|
|
5
|
+
isGenerating: !1,
|
|
6
|
+
/** Best-effort name of the tool that flipped the pill on — for debug/telemetry. */
|
|
7
|
+
activeTool: ""
|
|
8
|
+
}),
|
|
9
|
+
getters: {
|
|
10
|
+
isBusy: (t) => t.isGenerating
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
export {
|
|
14
|
+
s as useAiStatusStore
|
|
15
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@useinsider/guido",
|
|
3
|
-
"version": "3.9.0-beta.
|
|
3
|
+
"version": "3.9.0-beta.fd95a10",
|
|
4
4
|
"description": "Guido is a Vue + TypeScript wrapper for Email Plugin. Easily embed the email editor in your Vue applications.",
|
|
5
5
|
"main": "./dist/guido.umd.cjs",
|
|
6
6
|
"module": "./dist/library.js",
|