@8wave/ai-elements 0.119.0-beta.63 → 0.119.0-beta.64
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/_chunks/Agent-DPTgo63y.js.map +1 -1
- package/dist/ai-elements.es.js +2 -0
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/_chunks/Agent-C-XFKXuI.js.map +1 -1
- package/dist-vue/composables.js +2 -0
- package/dist-vue/composables.js.map +1 -1
- package/dist-vue/index.js +51 -38
- package/dist-vue/index.js.map +1 -1
- package/dist-vue/packages/components/src/PkEditorMarkdown.d.ts +9 -0
- package/dist-vue/packages/models/src/schema/AgentApiTool.d.ts +3 -4
- package/dist-vue/packages/models/src/schema/AgentEndpoint.d.ts +8 -0
- package/dist-vue/packages/models/src/utils.d.ts +9 -0
- package/dist-vue/style.css +1 -1
- package/package.json +1 -1
package/dist-vue/index.js
CHANGED
|
@@ -15685,12 +15685,13 @@ xC.install = (e) => (e.component(xC.name, xC), e.use(xh).use(rc).use(bh).use(Fc)
|
|
|
15685
15685
|
//#endregion
|
|
15686
15686
|
//#region ../../packages/components/src/PkEditorMarkdown.vue?vue&type=script&setup=true&lang.ts
|
|
15687
15687
|
var SC = {
|
|
15688
|
-
ref: "root",
|
|
15689
|
-
class: "pk-editor-markdown"
|
|
15690
|
-
}, CC = {
|
|
15691
15688
|
key: 0,
|
|
15692
15689
|
class: "pk-editor-markdown__label"
|
|
15693
|
-
},
|
|
15690
|
+
}, CC = { class: "pk-editor-markdown__wrapper" }, wC = {
|
|
15691
|
+
key: 1,
|
|
15692
|
+
class: "pk-editor-markdown__invalid-label",
|
|
15693
|
+
role: "alert"
|
|
15694
|
+
}, TC = 480, EC = /* @__PURE__ */ L({
|
|
15694
15695
|
__name: "PkEditorMarkdown",
|
|
15695
15696
|
props: {
|
|
15696
15697
|
modelValue: { default: "" },
|
|
@@ -15700,6 +15701,11 @@ var SC = {
|
|
|
15700
15701
|
type: Boolean,
|
|
15701
15702
|
default: !1
|
|
15702
15703
|
},
|
|
15704
|
+
invalid: {
|
|
15705
|
+
type: Boolean,
|
|
15706
|
+
default: !1
|
|
15707
|
+
},
|
|
15708
|
+
invalidLabel: { default: void 0 },
|
|
15703
15709
|
language: { default: void 0 },
|
|
15704
15710
|
height: { default: void 0 },
|
|
15705
15711
|
minHeight: { default: "400px" },
|
|
@@ -15790,40 +15796,47 @@ var SC = {
|
|
|
15790
15796
|
}, p = `md-editor-${Math.random().toString(36).slice(2, 11)}`, m = ({ index: e }) => `${p}-h${e}`, h = ci("root"), g = ci("editor"), { width: _ } = yi(h), v = G(_, (e) => {
|
|
15791
15797
|
e && (v(), c.preview && !c.readonly && e < TC && g.value?.togglePreview(!1));
|
|
15792
15798
|
});
|
|
15793
|
-
return (t, n) => (z(), N("div",
|
|
15794
|
-
|
|
15795
|
-
|
|
15796
|
-
|
|
15797
|
-
"
|
|
15798
|
-
"
|
|
15799
|
-
|
|
15800
|
-
|
|
15801
|
-
|
|
15802
|
-
|
|
15803
|
-
|
|
15804
|
-
|
|
15805
|
-
|
|
15806
|
-
|
|
15807
|
-
|
|
15808
|
-
|
|
15809
|
-
|
|
15810
|
-
|
|
15811
|
-
|
|
15812
|
-
|
|
15813
|
-
|
|
15814
|
-
|
|
15815
|
-
|
|
15816
|
-
|
|
15817
|
-
|
|
15818
|
-
|
|
15819
|
-
|
|
15820
|
-
|
|
15821
|
-
|
|
15822
|
-
|
|
15823
|
-
|
|
15824
|
-
|
|
15825
|
-
|
|
15826
|
-
|
|
15799
|
+
return (t, n) => (z(), N("div", {
|
|
15800
|
+
ref: "root",
|
|
15801
|
+
class: Gr(["pk-editor-markdown", { "pk-editor-markdown--invalid": e.invalid }])
|
|
15802
|
+
}, [
|
|
15803
|
+
e.label ? (z(), N("span", SC, H(e.label), 1)) : M("", !0),
|
|
15804
|
+
P("div", CC, [I(U(xC), {
|
|
15805
|
+
id: p,
|
|
15806
|
+
ref: "editor",
|
|
15807
|
+
class: "wysiwyg",
|
|
15808
|
+
"md-heading-id": m,
|
|
15809
|
+
"model-value": d.value,
|
|
15810
|
+
placeholder: e.placeholder,
|
|
15811
|
+
language: e.language ?? s.value,
|
|
15812
|
+
preview: e.preview,
|
|
15813
|
+
toolbars: e.toolbars,
|
|
15814
|
+
"show-code-row-number": e.showCodeRowNumber,
|
|
15815
|
+
"auto-focus": e.autoFocus,
|
|
15816
|
+
"read-only": e.readonly,
|
|
15817
|
+
theme: U(l) ? "dark" : "light",
|
|
15818
|
+
"preview-theme": e.previewTheme,
|
|
15819
|
+
style: qr({
|
|
15820
|
+
height: e.height,
|
|
15821
|
+
minHeight: e.minHeight,
|
|
15822
|
+
maxHeight: e.maxHeight
|
|
15823
|
+
}),
|
|
15824
|
+
"onUpdate:modelValue": f
|
|
15825
|
+
}, null, 8, [
|
|
15826
|
+
"model-value",
|
|
15827
|
+
"placeholder",
|
|
15828
|
+
"language",
|
|
15829
|
+
"preview",
|
|
15830
|
+
"toolbars",
|
|
15831
|
+
"show-code-row-number",
|
|
15832
|
+
"auto-focus",
|
|
15833
|
+
"read-only",
|
|
15834
|
+
"theme",
|
|
15835
|
+
"preview-theme",
|
|
15836
|
+
"style"
|
|
15837
|
+
])]),
|
|
15838
|
+
e.invalid && e.invalidLabel?.length ? (z(), N("small", wC, H(Array.isArray(e.invalidLabel) ? e.invalidLabel.join(", ") : e.invalidLabel), 1)) : M("", !0)
|
|
15839
|
+
], 2));
|
|
15827
15840
|
}
|
|
15828
15841
|
}), DC = /* @__PURE__ */ L({
|
|
15829
15842
|
__name: "PkEditorMedia",
|