@quirekit/ui 0.0.2 → 0.0.3
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/{chat-DaOlDJNQ.mjs → chat-BSVF78Hu.mjs} +5 -5
- package/dist/chat-BSVF78Hu.mjs.map +1 -0
- package/dist/chat.mjs +1 -1
- package/dist/{code-block-D1kd-gAB.mjs → code-block-pXaSN9eY.mjs} +2 -2
- package/dist/{code-block-D1kd-gAB.mjs.map → code-block-pXaSN9eY.mjs.map} +1 -1
- package/dist/{html-sandbox-BYIni0q6.mjs → html-sandbox-CMsenGYi.mjs} +2 -2
- package/dist/{html-sandbox-BYIni0q6.mjs.map → html-sandbox-CMsenGYi.mjs.map} +1 -1
- package/dist/html-sandbox.mjs +1 -1
- package/dist/vue.d.mts +101 -101
- package/dist/vue.d.mts.map +1 -1
- package/dist/vue.mjs +11 -11
- package/dist/vue.mjs.map +1 -1
- package/package.json +2 -2
- package/src/vue/code-block/theme-surface.vue +4 -1
- package/src/vue/file-upload/file-upload.vue +1 -1
- package/src/vue/image-preview/theme-surface.vue +4 -1
- package/src/vue/prose/mapping/native.ts +1 -1
- package/src/vue/prose/mapping/rich.ts +2 -1
- package/src/vue/schema-form/controls/registry.ts +1 -1
- package/src/vue/schema-form/tree.ts +1 -1
- package/src/vue/shared/task/trigger.vue +1 -1
- package/src/vue/tags-input/tags-input.vue +1 -1
- package/src/vue/theme-provider/portal.vue +4 -1
- package/src/vue/theme-provider/surface.vue +4 -1
- package/dist/chat-DaOlDJNQ.mjs.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quirekit/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"@internationalized/date": "3.12.3",
|
|
67
67
|
"@tanstack/vue-table": "8.21.3",
|
|
68
68
|
"vee-validate": "4.15.1",
|
|
69
|
-
"@quirekit/html-sandbox": "0.0.
|
|
69
|
+
"@quirekit/html-sandbox": "0.0.3"
|
|
70
70
|
},
|
|
71
71
|
"scripts": {
|
|
72
72
|
"build": "pnpm icons:generate && tsdown --config tsdown.config.ts",
|
|
@@ -14,7 +14,8 @@ function sameValue(previous: unknown, next: unknown): boolean {
|
|
|
14
14
|
return previous.every((value, index) => Object.is(value, next[index]));
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
export default
|
|
17
|
+
// The SFC compiler drops an annotation on `export default`, so the pure call is on its own declaration.
|
|
18
|
+
const CodeBlockThemeSurface = /* @__PURE__ */ defineComponent({
|
|
18
19
|
name: "QuireCodeBlockThemeSurface",
|
|
19
20
|
inheritAttrs: false,
|
|
20
21
|
props: {
|
|
@@ -53,4 +54,6 @@ export default defineComponent({
|
|
|
53
54
|
};
|
|
54
55
|
}
|
|
55
56
|
});
|
|
57
|
+
|
|
58
|
+
export default CodeBlockThemeSurface;
|
|
56
59
|
</script>
|
|
@@ -7,7 +7,8 @@ const styles = Object.freeze({
|
|
|
7
7
|
dark: Object.freeze({ ...previewColors.dark, display: "contents" })
|
|
8
8
|
});
|
|
9
9
|
|
|
10
|
-
export default
|
|
10
|
+
// The SFC compiler drops an annotation on `export default`, so the pure call is on its own declaration.
|
|
11
|
+
const ImagePreviewThemeSurface = /* @__PURE__ */ defineComponent({
|
|
11
12
|
name: "QuireImagePreviewThemeSurface",
|
|
12
13
|
inheritAttrs: false,
|
|
13
14
|
props: {
|
|
@@ -24,4 +25,6 @@ export default defineComponent({
|
|
|
24
25
|
return () => h("div", { style: styles[props.scheme] }, context.slots.default?.());
|
|
25
26
|
}
|
|
26
27
|
});
|
|
28
|
+
|
|
29
|
+
export default ImagePreviewThemeSurface;
|
|
27
30
|
</script>
|
|
@@ -7,7 +7,7 @@ import { QuireProseImg, QuireProseFigure, QuireProseFigcaption } from "../media"
|
|
|
7
7
|
import type { QuireKitProseComponentMap } from "../types";
|
|
8
8
|
|
|
9
9
|
/** Immutable native tag defaults. Spread into the host renderer map before applying local overrides. */
|
|
10
|
-
export const quireProseComponents = Object.freeze({
|
|
10
|
+
export const quireProseComponents = /* @__PURE__ */ Object.freeze({
|
|
11
11
|
h1: QuireProseH1,
|
|
12
12
|
h2: QuireProseH2,
|
|
13
13
|
h3: QuireProseH3,
|
|
@@ -3,4 +3,5 @@ import { QuireProseImage } from "../image";
|
|
|
3
3
|
import { QuireProseSource } from "../source";
|
|
4
4
|
|
|
5
5
|
/** QuireKit reading defaults: interactive images and full code display, with every other native element retained. */
|
|
6
|
-
|
|
6
|
+
// A spread counts as a side effect for bundlers, so it sits inside a pure call that can be dropped when unused.
|
|
7
|
+
export const quireRichProseComponents = /* @__PURE__ */ (() => Object.freeze({ ...quireProseComponents, img: QuireProseImage, pre: QuireProseSource }))();
|
|
@@ -12,7 +12,7 @@ import type { QuireKitSchemaRegistry } from "../types";
|
|
|
12
12
|
function textValue(value: unknown): string { return value == null ? "" : String(value); }
|
|
13
13
|
|
|
14
14
|
/** Built-in controls reuse existing QuireKit recipes and headless adapters. */
|
|
15
|
-
export const schemaControls: QuireKitSchemaRegistry = Object.freeze({
|
|
15
|
+
export const schemaControls: QuireKitSchemaRegistry = /* @__PURE__ */ Object.freeze({
|
|
16
16
|
input: { component: Input, toControl: textValue },
|
|
17
17
|
textarea: { component: Textarea, toControl: textValue },
|
|
18
18
|
// NumberInput owns localized strings; numerical payload conversion belongs to the consumer.
|
|
@@ -9,7 +9,7 @@ import type { QuireKitFormFieldSlotProps } from "../form-field/types";
|
|
|
9
9
|
import type { QuireKitSchemaCondition, QuireKitSchemaNode, QuireKitSchemaRegistry } from "./types";
|
|
10
10
|
|
|
11
11
|
/** Internal recursive renderer: identity, conditions and semantic grouping only. */
|
|
12
|
-
export default defineComponent({
|
|
12
|
+
export default /* @__PURE__ */ defineComponent({
|
|
13
13
|
name: "QuireSchemaFields",
|
|
14
14
|
props: {
|
|
15
15
|
nodes: { type: Array as PropType<readonly QuireKitSchemaNode[]>, required: true },
|
|
@@ -94,7 +94,7 @@ function findButton(nodes: readonly VNode[]): VNode | undefined {
|
|
|
94
94
|
|
|
95
95
|
// As-child normally lets child attributes win. This component has no DOM of its
|
|
96
96
|
// own; cloning keeps the original button while making task identity authoritative.
|
|
97
|
-
const SlotButton = defineComponent({
|
|
97
|
+
const SlotButton = /* @__PURE__ */ defineComponent({
|
|
98
98
|
name: "TaskTriggerSlot",
|
|
99
99
|
inheritAttrs: false,
|
|
100
100
|
setup(_props, { attrs }) {
|
|
@@ -9,7 +9,8 @@ import {
|
|
|
9
9
|
} from "./context";
|
|
10
10
|
import QuireThemeSurface from "./surface.vue";
|
|
11
11
|
|
|
12
|
-
export default
|
|
12
|
+
// The SFC compiler drops an annotation on `export default`, so the pure call is on its own declaration.
|
|
13
|
+
const ThemePortal = /* @__PURE__ */ defineComponent({
|
|
13
14
|
name: "QuireThemePortal",
|
|
14
15
|
inheritAttrs: false,
|
|
15
16
|
/**
|
|
@@ -33,4 +34,6 @@ export default defineComponent({
|
|
|
33
34
|
: h(QuireThemeSurface, { layout: "bridge" }, context.slots);
|
|
34
35
|
},
|
|
35
36
|
});
|
|
37
|
+
|
|
38
|
+
export default ThemePortal;
|
|
36
39
|
</script>
|
|
@@ -4,7 +4,8 @@ import { trackQuireKitInputModality } from "../../components/control/modality";
|
|
|
4
4
|
import { quireKitThemeKey } from "./context";
|
|
5
5
|
import { resolveThemeSurfaceStyle } from "./styles";
|
|
6
6
|
|
|
7
|
-
export default
|
|
7
|
+
// The SFC compiler drops an annotation on `export default`, so the pure call is on its own declaration.
|
|
8
|
+
const ThemeSurface = /* @__PURE__ */ defineComponent({
|
|
8
9
|
name: "QuireThemeSurface",
|
|
9
10
|
inheritAttrs: false,
|
|
10
11
|
props: {
|
|
@@ -33,4 +34,6 @@ export default defineComponent({
|
|
|
33
34
|
}, context.slots.default?.()) : context.slots.default?.();
|
|
34
35
|
},
|
|
35
36
|
});
|
|
37
|
+
|
|
38
|
+
export default ThemeSurface;
|
|
36
39
|
</script>
|