@vielzeug/refine 2.2.5 → 2.3.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/carousel.cjs +1 -1
- package/dist/carousel.cjs.map +1 -1
- package/dist/carousel.js +1 -1
- package/dist/carousel.js.map +1 -1
- package/dist/chat-message.cjs +9 -9
- package/dist/chat-message.cjs.map +1 -1
- package/dist/chat-message.js +40 -37
- package/dist/chat-message.js.map +1 -1
- package/dist/command-palette.cjs +1 -1
- package/dist/command-palette.cjs.map +1 -1
- package/dist/command-palette.js +1 -1
- package/dist/command-palette.js.map +1 -1
- package/dist/core/announcer.cjs +1 -1
- package/dist/core/announcer.cjs.map +1 -1
- package/dist/core/announcer.d.ts +13 -3
- package/dist/core/announcer.d.ts.map +1 -1
- package/dist/core/announcer.js +16 -9
- package/dist/core/announcer.js.map +1 -1
- package/dist/custom-elements.json +4328 -4328
- package/dist/feedback/typing-indicator/typing-indicator.d.ts +2 -2
- package/dist/file-input.cjs +49 -49
- package/dist/file-input.cjs.map +1 -1
- package/dist/file-input.js +128 -127
- package/dist/file-input.js.map +1 -1
- package/dist/inputs/file-input/file-input-upload.cjs +1 -1
- package/dist/inputs/file-input/file-input-upload.cjs.map +1 -1
- package/dist/inputs/file-input/file-input-upload.d.ts +2 -0
- package/dist/inputs/file-input/file-input-upload.d.ts.map +1 -1
- package/dist/inputs/file-input/file-input-upload.js +5 -2
- package/dist/inputs/file-input/file-input-upload.js.map +1 -1
- package/dist/inputs/file-input/file-input.d.ts.map +1 -1
- package/dist/refine.cjs +62 -62
- package/dist/refine.cjs.map +1 -1
- package/dist/refine.iife.js +62 -62
- package/dist/refine.iife.js.map +1 -1
- package/dist/refine.js +62 -62
- package/dist/refine.js.map +1 -1
- package/dist/typing-indicator.cjs +1 -1
- package/dist/typing-indicator.cjs.map +1 -1
- package/dist/typing-indicator.js +8 -7
- package/dist/typing-indicator.js.map +1 -1
- package/package.json +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./styles/mixins/accessibility.css.cjs"),t=require("./styles/mixins/shape.css.cjs"),n=require("./styles/mixins/theme.css.cjs"),r=require("./core/announcer.cjs"),i=require("./shared/prop-bundles.cjs"),a=require("./feedback/typing-indicator/typing-indicator.css.cjs");let o=require("@vielzeug/ore"),s=require("@vielzeug/ripple");var c=`ore-typing-indicator`;(0,o.define)(c,{props:{...i.themableBundle,...i.sizableBundle,label:o.prop.string(`Typing…`)},setup(e){return(0,s.watch)(()=>e.label.value,e=>r.announce(e
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./styles/mixins/accessibility.css.cjs"),t=require("./styles/mixins/shape.css.cjs"),n=require("./styles/mixins/theme.css.cjs"),r=require("./core/announcer.cjs"),i=require("./shared/prop-bundles.cjs"),a=require("./feedback/typing-indicator/typing-indicator.css.cjs");let o=require("@vielzeug/ore"),s=require("@vielzeug/ripple");var c=`ore-typing-indicator`;(0,o.define)(c,{props:{...i.themableBundle,...i.sizableBundle,label:o.prop.string(`Typing…`)},setup(e){let t=(0,o.getHost)();return(0,s.watch)(()=>e.label.value,e=>r.announce(e??``,{document:t.ownerDocument}),{immediate:!0}),o.html`
|
|
2
2
|
<span class="dots" part="dots" aria-hidden="true">
|
|
3
3
|
<span class="dot" part="dot"></span>
|
|
4
4
|
<span class="dot" part="dot"></span>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typing-indicator.cjs","names":[],"sources":["../src/feedback/typing-indicator/typing-indicator.ts"],"sourcesContent":["import { define, html, prop } from '@vielzeug/ore';\nimport { watch } from '@vielzeug/ripple';\nimport { announce } from '../../core';\nimport { sizableBundle, themableBundle } from '../../shared';\nimport { colorThemeMixin, reducedMotionMixin, sizeVariantMixin } from '../../styles';\nimport type { ComponentSize, ThemeColor } from '../../types';\nimport componentStyles from './typing-indicator.css?inline';\n\n/** Typing indicator component properties */\nexport type OreTypingIndicatorProps = {\n /** Theme color for the dots */\n color?: ThemeColor;\n /** Accessible label announced once via a polite live region (default: `\"Typing…\"`) */\n label?: string;\n /** Dot size preset */\n size?: ComponentSize;\n};\n\n/**\n * Three bouncing dots signaling that the other side of a conversation is composing a reply —\n * the moment before any content exists. For a message whose content is already streaming in,\n * use `ore-chat-message`'s `streaming` attribute (a blinking cursor) instead.\n *\n * The dots are decorative (`aria-hidden`) — `label` is the entire accessibility contract,\n * announced through the shared singleton live region (`core/announcer.ts`) rather than a\n * static `aria-live` element in the template. A live region populated in the same paint as\n * its own insertion is unreliable across browsers/screen readers; routing through the shared\n * announcer (pre-existing region, clear-then-set) is the same pattern already used for other
|
|
1
|
+
{"version":3,"file":"typing-indicator.cjs","names":[],"sources":["../src/feedback/typing-indicator/typing-indicator.ts"],"sourcesContent":["import { define, getHost, html, prop } from '@vielzeug/ore';\nimport { watch } from '@vielzeug/ripple';\nimport { announce } from '../../core';\nimport { sizableBundle, themableBundle } from '../../shared';\nimport { colorThemeMixin, reducedMotionMixin, sizeVariantMixin } from '../../styles';\nimport type { ComponentSize, ThemeColor } from '../../types';\nimport componentStyles from './typing-indicator.css?inline';\n\n/** Typing indicator component properties */\nexport type OreTypingIndicatorProps = {\n /** Theme color for the dots */\n color?: ThemeColor;\n /** Accessible label announced once via a polite live region (default: `\"Typing…\"`) */\n label?: string;\n /** Dot size preset */\n size?: ComponentSize;\n};\n\n/**\n * Three bouncing dots signaling that the other side of a conversation is composing a reply —\n * the moment before any content exists. For a message whose content is already streaming in,\n * use `ore-chat-message`'s `streaming` attribute (a blinking cursor) instead.\n *\n * The dots are decorative (`aria-hidden`) — `label` is the entire accessibility contract,\n * announced through the shared singleton live region (`core/announcer.ts`) rather than a\n * static `aria-live` element in the template. A live region populated in the same paint as\n * its own insertion is unreliable across browsers/screen readers; routing through the shared\n * announcer (pre-existing region, clear-then-set, document-scoped) is the same pattern\n * already used for other transient status messages across this package.\n *\n * @element ore-typing-indicator\n *\n * @attr {string} label - Accessible label announced once via a polite live region (default: \"Typing…\")\n * @attr {string} color - Theme color: 'primary' | 'secondary' | 'info' | 'success' | 'warning' | 'error'\n * @attr {string} size - 'sm' | 'md' | 'lg'\n *\n * @cssprop --typing-indicator-color - Dot color\n * @cssprop --typing-indicator-size - Dot diameter\n * @cssprop --typing-indicator-gap - Gap between dots\n *\n * @part dots - Dots container.\n * @part dot - Individual dot element.\n * @example\n * ```html\n * <ore-typing-indicator></ore-typing-indicator>\n * <ore-typing-indicator label=\"Assistant is typing…\" color=\"primary\"></ore-typing-indicator>\n * ```\n */\nexport const TYPING_INDICATOR_TAG = 'ore-typing-indicator' as const;\ndefine<OreTypingIndicatorProps>(TYPING_INDICATOR_TAG, {\n props: {\n ...themableBundle,\n ...sizableBundle,\n label: prop.string('Typing…'),\n },\n setup(props) {\n const el = getHost();\n\n watch(\n () => props.label.value,\n (label) => announce(label ?? '', { document: el.ownerDocument }),\n { immediate: true },\n );\n\n return html`\n <span class=\"dots\" part=\"dots\" aria-hidden=\"true\">\n <span class=\"dot\" part=\"dot\"></span>\n <span class=\"dot\" part=\"dot\"></span>\n <span class=\"dot\" part=\"dot\"></span>\n </span>\n `;\n },\n styles: [\n colorThemeMixin,\n reducedMotionMixin,\n sizeVariantMixin({\n lg: {\n gap: 'var(--typing-indicator-gap, var(--size-1-5))',\n size: 'var(--typing-indicator-size, var(--size-2-5))',\n },\n md: { gap: 'var(--typing-indicator-gap, var(--size-1))', size: 'var(--typing-indicator-size, var(--size-2))' },\n sm: {\n gap: 'var(--typing-indicator-gap, var(--size-1))',\n size: 'var(--typing-indicator-size, var(--size-1-5))',\n },\n }),\n componentStyles,\n ],\n});\n"],"mappings":"0ZAgDA,IAAa,EAAuB,wBACpC,EAAA,EAAA,OAAA,CAAgC,EAAsB,CACpD,MAAO,CACL,GAAG,EAAA,eACH,GAAG,EAAA,cACH,MAAO,EAAA,KAAK,OAAO,SAAS,CAC9B,EACA,MAAM,EAAO,CACX,IAAM,GAAA,EAAK,EAAA,QAAA,CAAQ,EAQnB,OANA,EAAA,EAAA,MAAA,KACQ,EAAM,MAAM,MACjB,GAAU,EAAA,SAAS,GAAS,GAAI,CAAE,SAAU,EAAG,aAAc,CAAC,EAC/D,CAAE,UAAW,EAAK,CACpB,EAEO,EAAA,IAAI;;;;;;KAOb,EACA,OAAQ,CACN,EAAA,gBACA,EAAA,mBACA,EAAA,iBAAiB,CACf,GAAI,CACF,IAAK,+CACL,KAAM,+CACR,EACA,GAAI,CAAE,IAAK,6CAA8C,KAAM,6CAA8C,EAC7G,GAAI,CACF,IAAK,6CACL,KAAM,+CACR,CACF,CAAC,EACD,EAAA,OACF,CACF,CAAC"}
|
package/dist/typing-indicator.js
CHANGED
|
@@ -4,18 +4,19 @@ import { colorThemeMixin as n } from "./styles/mixins/theme.css.js";
|
|
|
4
4
|
import { announce as r } from "./core/announcer.js";
|
|
5
5
|
import { sizableBundle as i, themableBundle as a } from "./shared/prop-bundles.js";
|
|
6
6
|
import o from "./feedback/typing-indicator/typing-indicator.css.js";
|
|
7
|
-
import { define as s,
|
|
8
|
-
import { watch as
|
|
7
|
+
import { define as s, getHost as c, html as l, prop as u } from "@vielzeug/ore";
|
|
8
|
+
import { watch as d } from "@vielzeug/ripple";
|
|
9
9
|
//#region src/feedback/typing-indicator/typing-indicator.ts
|
|
10
|
-
var
|
|
11
|
-
s(
|
|
10
|
+
var f = "ore-typing-indicator";
|
|
11
|
+
s(f, {
|
|
12
12
|
props: {
|
|
13
13
|
...a,
|
|
14
14
|
...i,
|
|
15
|
-
label:
|
|
15
|
+
label: u.string("Typing…")
|
|
16
16
|
},
|
|
17
17
|
setup(e) {
|
|
18
|
-
|
|
18
|
+
let t = c();
|
|
19
|
+
return d(() => e.label.value, (e) => r(e ?? "", { document: t.ownerDocument }), { immediate: !0 }), l`
|
|
19
20
|
<span class="dots" part="dots" aria-hidden="true">
|
|
20
21
|
<span class="dot" part="dot"></span>
|
|
21
22
|
<span class="dot" part="dot"></span>
|
|
@@ -44,6 +45,6 @@ s(d, {
|
|
|
44
45
|
]
|
|
45
46
|
});
|
|
46
47
|
//#endregion
|
|
47
|
-
export {
|
|
48
|
+
export { f as TYPING_INDICATOR_TAG };
|
|
48
49
|
|
|
49
50
|
//# sourceMappingURL=typing-indicator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typing-indicator.js","names":[],"sources":["../src/feedback/typing-indicator/typing-indicator.ts"],"sourcesContent":["import { define, html, prop } from '@vielzeug/ore';\nimport { watch } from '@vielzeug/ripple';\nimport { announce } from '../../core';\nimport { sizableBundle, themableBundle } from '../../shared';\nimport { colorThemeMixin, reducedMotionMixin, sizeVariantMixin } from '../../styles';\nimport type { ComponentSize, ThemeColor } from '../../types';\nimport componentStyles from './typing-indicator.css?inline';\n\n/** Typing indicator component properties */\nexport type OreTypingIndicatorProps = {\n /** Theme color for the dots */\n color?: ThemeColor;\n /** Accessible label announced once via a polite live region (default: `\"Typing…\"`) */\n label?: string;\n /** Dot size preset */\n size?: ComponentSize;\n};\n\n/**\n * Three bouncing dots signaling that the other side of a conversation is composing a reply —\n * the moment before any content exists. For a message whose content is already streaming in,\n * use `ore-chat-message`'s `streaming` attribute (a blinking cursor) instead.\n *\n * The dots are decorative (`aria-hidden`) — `label` is the entire accessibility contract,\n * announced through the shared singleton live region (`core/announcer.ts`) rather than a\n * static `aria-live` element in the template. A live region populated in the same paint as\n * its own insertion is unreliable across browsers/screen readers; routing through the shared\n * announcer (pre-existing region, clear-then-set) is the same pattern already used for other
|
|
1
|
+
{"version":3,"file":"typing-indicator.js","names":[],"sources":["../src/feedback/typing-indicator/typing-indicator.ts"],"sourcesContent":["import { define, getHost, html, prop } from '@vielzeug/ore';\nimport { watch } from '@vielzeug/ripple';\nimport { announce } from '../../core';\nimport { sizableBundle, themableBundle } from '../../shared';\nimport { colorThemeMixin, reducedMotionMixin, sizeVariantMixin } from '../../styles';\nimport type { ComponentSize, ThemeColor } from '../../types';\nimport componentStyles from './typing-indicator.css?inline';\n\n/** Typing indicator component properties */\nexport type OreTypingIndicatorProps = {\n /** Theme color for the dots */\n color?: ThemeColor;\n /** Accessible label announced once via a polite live region (default: `\"Typing…\"`) */\n label?: string;\n /** Dot size preset */\n size?: ComponentSize;\n};\n\n/**\n * Three bouncing dots signaling that the other side of a conversation is composing a reply —\n * the moment before any content exists. For a message whose content is already streaming in,\n * use `ore-chat-message`'s `streaming` attribute (a blinking cursor) instead.\n *\n * The dots are decorative (`aria-hidden`) — `label` is the entire accessibility contract,\n * announced through the shared singleton live region (`core/announcer.ts`) rather than a\n * static `aria-live` element in the template. A live region populated in the same paint as\n * its own insertion is unreliable across browsers/screen readers; routing through the shared\n * announcer (pre-existing region, clear-then-set, document-scoped) is the same pattern\n * already used for other transient status messages across this package.\n *\n * @element ore-typing-indicator\n *\n * @attr {string} label - Accessible label announced once via a polite live region (default: \"Typing…\")\n * @attr {string} color - Theme color: 'primary' | 'secondary' | 'info' | 'success' | 'warning' | 'error'\n * @attr {string} size - 'sm' | 'md' | 'lg'\n *\n * @cssprop --typing-indicator-color - Dot color\n * @cssprop --typing-indicator-size - Dot diameter\n * @cssprop --typing-indicator-gap - Gap between dots\n *\n * @part dots - Dots container.\n * @part dot - Individual dot element.\n * @example\n * ```html\n * <ore-typing-indicator></ore-typing-indicator>\n * <ore-typing-indicator label=\"Assistant is typing…\" color=\"primary\"></ore-typing-indicator>\n * ```\n */\nexport const TYPING_INDICATOR_TAG = 'ore-typing-indicator' as const;\ndefine<OreTypingIndicatorProps>(TYPING_INDICATOR_TAG, {\n props: {\n ...themableBundle,\n ...sizableBundle,\n label: prop.string('Typing…'),\n },\n setup(props) {\n const el = getHost();\n\n watch(\n () => props.label.value,\n (label) => announce(label ?? '', { document: el.ownerDocument }),\n { immediate: true },\n );\n\n return html`\n <span class=\"dots\" part=\"dots\" aria-hidden=\"true\">\n <span class=\"dot\" part=\"dot\"></span>\n <span class=\"dot\" part=\"dot\"></span>\n <span class=\"dot\" part=\"dot\"></span>\n </span>\n `;\n },\n styles: [\n colorThemeMixin,\n reducedMotionMixin,\n sizeVariantMixin({\n lg: {\n gap: 'var(--typing-indicator-gap, var(--size-1-5))',\n size: 'var(--typing-indicator-size, var(--size-2-5))',\n },\n md: { gap: 'var(--typing-indicator-gap, var(--size-1))', size: 'var(--typing-indicator-size, var(--size-2))' },\n sm: {\n gap: 'var(--typing-indicator-gap, var(--size-1))',\n size: 'var(--typing-indicator-size, var(--size-1-5))',\n },\n }),\n componentStyles,\n ],\n});\n"],"mappings":";;;;;;;;;AAgDA,IAAa,IAAuB;AACpC,EAAgC,GAAsB;CACpD,OAAO;EACL,GAAG;EACH,GAAG;EACH,OAAO,EAAK,OAAO,SAAS;CAC9B;CACA,MAAM,GAAO;EACX,IAAM,IAAK,EAAQ;EAQnB,OANA,QACQ,EAAM,MAAM,QACjB,MAAU,EAAS,KAAS,IAAI,EAAE,UAAU,EAAG,cAAc,CAAC,GAC/D,EAAE,WAAW,GAAK,CACpB,GAEO,CAAI;;;;;;;CAOb;CACA,QAAQ;EACN;EACA;EACA,EAAiB;GACf,IAAI;IACF,KAAK;IACL,MAAM;GACR;GACA,IAAI;IAAE,KAAK;IAA8C,MAAM;GAA8C;GAC7G,IAAI;IACF,KAAK;IACL,MAAM;GACR;EACF,CAAC;EACD;CACF;AACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vielzeug/refine",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"description": "Accessible, themeable web components built on Ore custom element primitives",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web-components",
|
|
@@ -629,13 +629,13 @@
|
|
|
629
629
|
},
|
|
630
630
|
"dependencies": {
|
|
631
631
|
"@vielzeug/arsenal": "2.1.0",
|
|
632
|
-
"@vielzeug/assay": "2.
|
|
633
|
-
"@vielzeug/dnd": "2.
|
|
632
|
+
"@vielzeug/assay": "2.2.0",
|
|
633
|
+
"@vielzeug/dnd": "2.2.0",
|
|
634
634
|
"@vielzeug/focus": "2.1.1",
|
|
635
635
|
"@vielzeug/gesture": "1.1.1",
|
|
636
636
|
"@vielzeug/keymap": "2.2.0",
|
|
637
637
|
"@vielzeug/orbit": "2.1.3",
|
|
638
|
-
"@vielzeug/ore": "2.1.
|
|
638
|
+
"@vielzeug/ore": "2.1.1",
|
|
639
639
|
"@vielzeug/ripple": "2.2.4",
|
|
640
640
|
"@vielzeug/sentinel": "2.0.2",
|
|
641
641
|
"@vielzeug/tempo": "2.1.2",
|