@aparte/core 0.25.0 → 0.27.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/client/agent-runner.d.ts.map +1 -1
- package/dist/client/aparte-client.d.ts +37 -76
- package/dist/client/aparte-client.d.ts.map +1 -1
- package/dist/client/stream-adapter.d.ts.map +1 -1
- package/dist/client/wire-history.d.ts +78 -0
- package/dist/client/wire-history.d.ts.map +1 -1
- package/dist/components/bubble/aparte-chat-bubble.d.ts +90 -4
- package/dist/components/bubble/aparte-chat-bubble.d.ts.map +1 -1
- package/dist/components/bubble/bubble-sync.d.ts +5 -1
- package/dist/components/bubble/bubble-sync.d.ts.map +1 -1
- package/dist/components/bubble/checkpoint-separator.d.ts +40 -0
- package/dist/components/bubble/checkpoint-separator.d.ts.map +1 -0
- package/dist/components/composer/accepts-file.d.ts +10 -0
- package/dist/components/composer/accepts-file.d.ts.map +1 -0
- package/dist/components/composer/aparte-composer-add-attachment.d.ts +5 -1
- package/dist/components/composer/aparte-composer-add-attachment.d.ts.map +1 -1
- package/dist/components/composer/aparte-composer-attachments.d.ts +9 -4
- package/dist/components/composer/aparte-composer-attachments.d.ts.map +1 -1
- package/dist/components/composer/aparte-composer-input.d.ts.map +1 -1
- package/dist/components/context/aparte-context.d.ts +172 -25
- package/dist/components/context/aparte-context.d.ts.map +1 -1
- package/dist/components/elicitation/aparte-elicitation.d.ts +2 -2
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/launcher/aparte-launcher.d.ts +167 -0
- package/dist/components/launcher/aparte-launcher.d.ts.map +1 -0
- package/dist/components/launcher/index.d.ts +3 -0
- package/dist/components/launcher/index.d.ts.map +1 -0
- package/dist/components/viewport/aparte-chat-viewport.d.ts +7 -0
- package/dist/components/viewport/aparte-chat-viewport.d.ts.map +1 -1
- package/dist/config/aparte-config.d.ts +23 -1
- package/dist/config/aparte-config.d.ts.map +1 -1
- package/dist/config/error-renderer.d.ts +21 -10
- package/dist/config/error-renderer.d.ts.map +1 -1
- package/dist/config/icon-provider.d.ts +2 -0
- package/dist/config/icon-provider.d.ts.map +1 -1
- package/dist/config/locale.d.ts +85 -5
- package/dist/config/locale.d.ts.map +1 -1
- package/dist/context/checkpoint-state.d.ts +70 -0
- package/dist/context/checkpoint-state.d.ts.map +1 -0
- package/dist/context/checkpoint.d.ts +28 -0
- package/dist/context/checkpoint.d.ts.map +1 -0
- package/dist/context/measure.d.ts +148 -0
- package/dist/context/measure.d.ts.map +1 -0
- package/dist/context/restore.d.ts +24 -0
- package/dist/context/restore.d.ts.map +1 -0
- package/dist/conversations/conversation-controller.d.ts +13 -4
- package/dist/conversations/conversation-controller.d.ts.map +1 -1
- package/dist/conversations/conversation-manager.d.ts +6 -0
- package/dist/conversations/conversation-manager.d.ts.map +1 -1
- package/dist/custom-elements.json +13893 -11714
- package/dist/{defer-hydration-BwMqeRHq.js → defer-hydration-DSZE-bKi.js} +788 -269
- package/dist/defer-hydration-DSZE-bKi.js.map +1 -0
- package/dist/generated/element-attributes.d.ts +21 -3
- package/dist/generated/element-attributes.d.ts.map +1 -1
- package/dist/{glyphs-2bym5jl5.js → glyphs-DFp-825O.js} +33 -30
- package/dist/{glyphs-2bym5jl5.js.map → glyphs-DFp-825O.js.map} +1 -1
- package/dist/host/aparte-chat-host.d.ts +19 -2
- package/dist/host/aparte-chat-host.d.ts.map +1 -1
- package/dist/icons/extended.d.ts +2 -2
- package/dist/icons/extended.d.ts.map +1 -1
- package/dist/icons/glyphs.d.ts +3 -0
- package/dist/icons/glyphs.d.ts.map +1 -1
- package/dist/icons.js +29 -30
- package/dist/icons.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1140 -95
- package/dist/index.js.map +1 -1
- package/dist/index.node.d.ts +6 -2
- package/dist/index.node.d.ts.map +1 -1
- package/dist/index.node.js +33 -29
- package/dist/index.node.js.map +1 -1
- package/dist/interop/element-props.d.ts +1 -1
- package/dist/interop/element-props.d.ts.map +1 -1
- package/dist/renderers/segments/error.d.ts.map +1 -1
- package/dist/renderers/segments/tool-call.d.ts.map +1 -1
- package/dist/transport/agent-handler.d.ts.map +1 -1
- package/dist/transport/backend-handler.d.ts.map +1 -1
- package/dist/transport/types.d.ts +24 -4
- package/dist/transport/types.d.ts.map +1 -1
- package/dist/types/chat.d.ts +16 -1
- package/dist/types/chat.d.ts.map +1 -1
- package/dist/types/compactor.d.ts +104 -0
- package/dist/types/compactor.d.ts.map +1 -0
- package/dist/types/element-map.d.ts +2 -0
- package/dist/types/element-map.d.ts.map +1 -1
- package/dist/types/errors.d.ts +9 -0
- package/dist/types/errors.d.ts.map +1 -1
- package/dist/types/event-map.d.ts +2 -0
- package/dist/types/event-map.d.ts.map +1 -1
- package/dist/types/events.d.ts +50 -3
- package/dist/types/events.d.ts.map +1 -1
- package/dist/types/index.d.ts +4 -3
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/model-provider.d.ts +3 -0
- package/dist/types/model-provider.d.ts.map +1 -1
- package/dist/types/models.d.ts +43 -3
- package/dist/types/models.d.ts.map +1 -1
- package/dist/types/segments.d.ts +13 -5
- package/dist/types/segments.d.ts.map +1 -1
- package/dist/types/tools.d.ts +6 -1
- package/dist/types/tools.d.ts.map +1 -1
- package/dist/utils/error-sentence.d.ts +21 -0
- package/dist/utils/error-sentence.d.ts.map +1 -0
- package/package.json +2 -2
- package/dist/defer-hydration-BwMqeRHq.js.map +0 -1
|
@@ -33,6 +33,10 @@ export interface AparteChatBubbleAttributes {
|
|
|
33
33
|
streaming?: boolean;
|
|
34
34
|
/** Who wrote the message: shown in the header, and the message's accessible name ("Message from {name}"). Leave it out for the reader and the assistant, whose names come from the locale. */
|
|
35
35
|
name?: string;
|
|
36
|
+
/** `pending` or `failed`: what a compaction is doing to this message, which it will carry as a checkpoint. The viewport and the framework host set it from `aparte-compact-start` / `-error` and take it off again; the bubble draws the separator's "Summarising the context…" or Retry from it. Read it, do not write it. */
|
|
37
|
+
'data-checkpoint'?: string;
|
|
38
|
+
/** Why the compaction failed, beside `data-checkpoint="failed"`: the separator gives it as the failure's tooltip and to screen readers. Set and cleared with `data-checkpoint`; read it, do not write it. */
|
|
39
|
+
'data-checkpoint-reason'?: string;
|
|
36
40
|
}
|
|
37
41
|
/** `<aparte-chat-status>` — A standalone status line — a light-DOM indicator the APP owns. Nothing in core turns it on: the framework host only ever flips it back OFF (on the first streamed token), and the four wrappers render one inside the viewport driven by their own `isTyping` prop. */
|
|
38
42
|
export interface AparteChatStatusAttributes {
|
|
@@ -84,7 +88,7 @@ export interface AparteComposerActionAttributes {
|
|
|
84
88
|
}
|
|
85
89
|
/** `<aparte-composer-add-attachment>` — File picker button for `<aparte-composer>`. */
|
|
86
90
|
export interface AparteComposerAddAttachmentAttributes {
|
|
87
|
-
/** MIME types / extensions
|
|
91
|
+
/** MIME types / extensions the composer admits (e.g. "image/*,.pdf"): the file input's filter, and checked again on a pick, a drop and a pasted image, so a file outside it is not attached however it arrives. */
|
|
88
92
|
accept?: string;
|
|
89
93
|
/** Allow multiple file selection (default: true) */
|
|
90
94
|
multiple?: boolean | 'false';
|
|
@@ -107,7 +111,7 @@ export interface AparteComposerToolbarAttributes {
|
|
|
107
111
|
/** Reflected BY the element while it holds neither a visible element child nor non-whitespace text; the stylesheet hides it then. A child that hides itself — `hidden`, or its own `data-empty` the way `<aparte-context>` does before its first usage — does not count: a row whose only child shows nothing is an empty band with a border. Read-only, do not set it yourself. */
|
|
108
112
|
'data-empty'?: boolean;
|
|
109
113
|
}
|
|
110
|
-
/** `<aparte-context>` — A gauge of the model's context window: how much of it the conversation uses. */
|
|
114
|
+
/** `<aparte-context>` — A gauge of the model's context window: how much of it the conversation uses, and what fills it. */
|
|
111
115
|
export interface AparteContextAttributes {
|
|
112
116
|
/** The context window, in tokens. Overrides the current model's `contextWindow`. */
|
|
113
117
|
window?: number;
|
|
@@ -121,12 +125,14 @@ export interface AparteContextAttributes {
|
|
|
121
125
|
variant?: string;
|
|
122
126
|
/** Tokens in use before a turn of this page has reported any: a restored conversation's last usage. The next turn's usage replaces it. */
|
|
123
127
|
used?: number;
|
|
124
|
-
/** Dispatch `aparte-compact` on each turn that ends in `danger`, one request at a time. */
|
|
128
|
+
/** Deprecated, still works. Dispatch `aparte-compact` (with `auto: true`) on each turn that ends in `danger`, one request at a time. `@aparte/plugin-compaction` decides when to compact by itself now, so leave this off. */
|
|
125
129
|
'auto-compact'?: boolean;
|
|
126
130
|
/** Reflected BY the element: `ok`, `warn` or `danger`. Read-only. */
|
|
127
131
|
'data-level'?: string;
|
|
128
132
|
/** Reflected BY the element while it has nothing to show. Read-only. */
|
|
129
133
|
'data-empty'?: boolean;
|
|
134
|
+
/** Reflected BY the element while this chat is being compacted (`running`) and after a compaction failed (`failed`). Read-only. */
|
|
135
|
+
'data-compact'?: string;
|
|
130
136
|
}
|
|
131
137
|
/** `<aparte-conversation-list>` — Conversation-history sidebar — a framework-agnostic web component. The host sets the `conversations` JS property and the `active-id` attribute; this renders the rows and fires the user's intent. Acting on it is the host's, unless `manage` hands the row menu's writes to the registered conversation manager. */
|
|
132
138
|
export interface AparteConversationListAttributes {
|
|
@@ -146,6 +152,17 @@ export interface AparteIconAttributes {
|
|
|
146
152
|
/** Which glyph to draw. One of the names `setIconProvider` accepts; an unknown name draws nothing rather than a broken-image box. */
|
|
147
153
|
name?: string;
|
|
148
154
|
}
|
|
155
|
+
/** `<aparte-launcher>` — A chat that floats in a corner of the page — the support widget every product site has, as an element. A round button sits at the bottom of the window, on the inline-end side; a click opens the chat above it as a card, and a second click, Escape or any control marked `data-aparte-launcher-close` inside closes it again. */
|
|
156
|
+
export interface AparteLauncherAttributes {
|
|
157
|
+
/** The chat is open. Reflected; set it to start open. */
|
|
158
|
+
open?: boolean;
|
|
159
|
+
/** Text shown beside the bubble on the closed button, which then reads as a pill. Without it the button is round and named by the locale. */
|
|
160
|
+
label?: string;
|
|
161
|
+
/** The window width under which the open chat fills the window: a length, or `none` for a card at any size. Unset, a window under 30rem wide or 30rem high. */
|
|
162
|
+
breakpoint?: string;
|
|
163
|
+
/** Reflected BY the element while the window is narrower than `breakpoint` (30rem unless you set it). Read-only. */
|
|
164
|
+
'data-sheet'?: boolean;
|
|
165
|
+
}
|
|
149
166
|
/** `<aparte-optgroup>` — AparteOptgroup */
|
|
150
167
|
export interface AparteOptgroupAttributes {
|
|
151
168
|
/** Group label */
|
|
@@ -269,6 +286,7 @@ export interface AparteElementAttributes {
|
|
|
269
286
|
'aparte-conversation-list': AparteConversationListAttributes;
|
|
270
287
|
'aparte-elicitation': AparteNoAttributes;
|
|
271
288
|
'aparte-icon': AparteIconAttributes;
|
|
289
|
+
'aparte-launcher': AparteLauncherAttributes;
|
|
272
290
|
'aparte-optgroup': AparteOptgroupAttributes;
|
|
273
291
|
'aparte-option': AparteOptionAttributes;
|
|
274
292
|
'aparte-progress-spinner': AparteProgressSpinnerAttributes;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"element-attributes.d.ts","sourceRoot":"","sources":["../../src/generated/element-attributes.ts"],"names":[],"mappings":"AAIA,+CAA+C;AAC/C,MAAM,WAAW,oBAAoB;IACjC,+DAA+D;IAC/D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,4BAA4B;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iPAAiP;IACjP,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,yLAAyL;IACzL,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,sGAAsG;IACtG,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,yWAAyW;IACzW,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,wQAAwQ;IACxQ,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,ueAAue;IACve,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,2YAA2Y;IAC3Y,mBAAmB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED,oGAAoG;AACpG,MAAM,WAAW,0BAA0B;IACvC,oNAAoN;IACpN,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,yDAAyD;IACzD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,qFAAqF;IACrF,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,4DAA4D;IAC5D,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,2EAA2E;IAC3E,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,8LAA8L;IAC9L,IAAI,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"element-attributes.d.ts","sourceRoot":"","sources":["../../src/generated/element-attributes.ts"],"names":[],"mappings":"AAIA,+CAA+C;AAC/C,MAAM,WAAW,oBAAoB;IACjC,+DAA+D;IAC/D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,4BAA4B;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iPAAiP;IACjP,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,yLAAyL;IACzL,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,sGAAsG;IACtG,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,yWAAyW;IACzW,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,wQAAwQ;IACxQ,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,ueAAue;IACve,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,2YAA2Y;IAC3Y,mBAAmB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED,oGAAoG;AACpG,MAAM,WAAW,0BAA0B;IACvC,oNAAoN;IACpN,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,yDAAyD;IACzD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,qFAAqF;IACrF,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,4DAA4D;IAC5D,YAAY,CAAC,EAAE,MAAM,CAAC;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CAAC;IACjD,eAAe,EAAE,sBAAsB,CAAC;IACxC,gBAAgB,EAAE,uBAAuB,CAAC;IAC1C,cAAc,EAAE,qBAAqB,CAAC;IACtC,oBAAoB,EAAE,2BAA2B,CAAC;CACrD;AAED,2FAA2F;AAC3F,MAAM,MAAM,oBAAoB,GAAG,MAAM,uBAAuB,CAAC"}
|
|
@@ -27,6 +27,7 @@ const downloadIcon = `<svg class="aparte-icon" viewBox="0 0 24 24" fill="none" s
|
|
|
27
27
|
const moreIcon = `<svg class="aparte-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="5.5" cy="12" r="1.1"/><circle cx="12" cy="12" r="1.1"/><circle cx="18.5" cy="12" r="1.1"/></svg>`;
|
|
28
28
|
const pinIcon = `<svg class="aparte-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M8.5 3.5h7"/><path d="M10 3.5v5l-3 3.5V14h10v-2l-3-3.5v-5"/><path d="M12 14v6.5"/></svg>`;
|
|
29
29
|
const trashIcon = `<svg class="aparte-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4.5 7h15M8 7V5a1.5 1.5 0 0 1 1.5-1.5h5A1.5 1.5 0 0 1 16 5v2"/><path d="m6.5 7 .8 12a1.5 1.5 0 0 0 1.5 1.5h6.4a1.5 1.5 0 0 0 1.5-1.4L17.5 7"/><path d="M10 11v5.5M14 11v5.5"/></svg>`;
|
|
30
|
+
const messageSquareIcon = `<svg class="aparte-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6.5 4h11A2.5 2.5 0 0 1 20 6.5v8a2.5 2.5 0 0 1-2.5 2.5H9.5L4.5 21V6.5A2.5 2.5 0 0 1 6.5 4Z"/></svg>`;
|
|
30
31
|
const menuIcon = `<svg class="aparte-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4.5 7h15M4.5 12h15M4.5 17h15"/></svg>`;
|
|
31
32
|
const alertTriangleIcon = `<svg class="aparte-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M10.7 4.3 2.9 18a1.5 1.5 0 0 0 1.3 2.3h15.6a1.5 1.5 0 0 0 1.3-2.3L13.3 4.3a1.5 1.5 0 0 0-2.6 0Z"/><path d="M12 9.5V14M12 17.2v.1"/></svg>`;
|
|
32
33
|
const APARTE_ICON_GLYPHS = {
|
|
@@ -60,40 +61,42 @@ const APARTE_ICON_GLYPHS = {
|
|
|
60
61
|
pin: pinIcon,
|
|
61
62
|
trash: trashIcon,
|
|
62
63
|
menu: menuIcon,
|
|
63
|
-
alertTriangle: alertTriangleIcon
|
|
64
|
+
alertTriangle: alertTriangleIcon,
|
|
65
|
+
messageSquare: messageSquareIcon
|
|
64
66
|
};
|
|
65
67
|
export {
|
|
66
68
|
APARTE_ICON_GLYPHS as A,
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
69
|
+
stopIcon as B,
|
|
70
|
+
terminalIcon as C,
|
|
71
|
+
thumbDownIcon as D,
|
|
72
|
+
thumbUpIcon as E,
|
|
73
|
+
toolIcon as F,
|
|
74
|
+
unarchiveIcon as G,
|
|
75
|
+
moreIcon as a,
|
|
76
|
+
alertTriangleIcon as b,
|
|
77
|
+
archiveIcon as c,
|
|
78
|
+
checkIcon as d,
|
|
79
|
+
closeIcon as e,
|
|
80
|
+
collapseIcon as f,
|
|
81
|
+
copyIcon as g,
|
|
82
|
+
downloadIcon as h,
|
|
83
|
+
editIcon as i,
|
|
84
|
+
errorIcon as j,
|
|
85
|
+
expandIcon as k,
|
|
86
|
+
fileIcon as l,
|
|
87
|
+
messageSquareIcon as m,
|
|
85
88
|
nextBranchIcon as n,
|
|
86
|
-
|
|
89
|
+
imageIcon as o,
|
|
87
90
|
prevBranchIcon as p,
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
+
infoIcon as q,
|
|
92
|
+
loadingIcon as r,
|
|
93
|
+
menuIcon as s,
|
|
91
94
|
trashIcon as t,
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
95
|
+
paperclipIcon as u,
|
|
96
|
+
pauseIcon as v,
|
|
97
|
+
pinIcon as w,
|
|
98
|
+
retryIcon as x,
|
|
99
|
+
scrollDownIcon as y,
|
|
100
|
+
sendIcon as z
|
|
98
101
|
};
|
|
99
|
-
//# sourceMappingURL=glyphs-
|
|
102
|
+
//# sourceMappingURL=glyphs-DFp-825O.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"glyphs-2bym5jl5.js","sources":["../src/icons/glyphs.ts"],"sourcesContent":["/**\n * The glyphs.\n *\n * ONE place. Every SVG the library draws is declared here and nowhere else, because\n * scattering them did not merely spread the source around — it let them DRIFT. Before\n * this file there were three different ✕ (a filled one on a 12 grid, a stroked one at\n * 2.5, and `close`), two different chevrons, and `paperclip` and `scrollDown` each\n * existed twice, byte for byte, in a component that could have asked for them.\n *\n * Each glyph is a plain string, exported on its own, so a bundler can drop the ones a\n * build never reaches. `APARTE_DEFAULT_ICON_FALLBACKS` in `config/icon-provider.ts`\n * assembles them into the record `getIcon()` reads — that record is indexed by a\n * computed key, so it is retained whole; anything meant to be optional has to stay OUT\n * of it. That is the rule the extended set follows.\n *\n * Drawn here, on the conventions every stroked icon set shares — a 24×24 grid,\n * `currentColor`, a 2px stroke with round caps and joins — so a consumer who swaps in\n * a set of their own under the same names gets the same optical weight. The path data\n * is core's own, which is what lets the package carry no notice and credit no set;\n * a glyph that needs redrawing is redrawn here, never pasted from elsewhere.\n * `icons/extended.ts` is the opt-in set and follows the same rule.\n */\n\n\n/** Copy button icon — two sheets, the front one over the back one's corner. */\nexport const copyIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"8.5\" y=\"8.5\" width=\"12\" height=\"12\" rx=\"2.5\"/><path d=\"M15.5 8.5V6a2.5 2.5 0 0 0-2.5-2.5H6A2.5 2.5 0 0 0 3.5 6v7A2.5 2.5 0 0 0 6 15.5h2.5\"/></svg>`;\n\n/** Success/check icon */\nexport const checkIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M4.5 12.5 9.5 17.5 19.5 7\"/></svg>`;\n\n/** Send message icon — a paper plane with its fold line. */\nexport const sendIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M21 3 3.7 10.4a.9.9 0 0 0 .1 1.7l6.2 2 2 6.2a.9.9 0 0 0 1.7.1L21 3Z\"/><path d=\"M10 14 21 3\"/></svg>`;\n\n/** Loading/spinner indicator */\nexport const loadingIcon = `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"aparte-icon aparte-icon-spin\"><circle cx=\"12\" cy=\"12\" r=\"10\" stroke-opacity=\"0.25\"/><path d=\"M12 2a10 10 0 0 1 10 10\"/></svg>`;\n\n/** Error indicator — a ring with an exclamation. */\nexport const errorIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"12\" r=\"9.5\"/><path d=\"M12 7.75v5\"/><path d=\"M12 16.25h.01\"/></svg>`;\n\n/** Expand/show more icon */\nexport const expandIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M5.5 9.5 12 16l6.5-6.5\"/></svg>`;\n\n/** Collapse/show less icon */\nexport const collapseIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M5.5 14.5 12 8l6.5 6.5\"/></svg>`;\n\n/** Terminal/command prompt icon — a prompt chevron and a cursor line. */\nexport const terminalIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M5 6.5 10.5 12 5 17.5\"/><path d=\"M13 18h6\"/></svg>`;\n\n/** File attachment / paperclip icon */\nexport const paperclipIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M8.4 21a5.2 5.2 0 0 1-3.7-8.9l8.6-8.6a3.5 3.5 0 0 1 4.9 4.9l-8.6 8.6a1.7 1.7 0 0 1-2.5-2.5l7.4-7.4\"/></svg>`;\n\n/** Image file icon — a frame, a sun, a hill. */\nexport const imageIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"3.5\" y=\"4.5\" width=\"17\" height=\"15\" rx=\"2.5\"/><circle cx=\"8.5\" cy=\"9\" r=\"1.5\"/><path d=\"M20.5 15.5l-4-4-8 8\"/></svg>`;\n\n/** Generic file icon — a sheet with a folded corner. */\nexport const fileIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M13.5 3H6.5A1.5 1.5 0 0 0 5 4.5v15A1.5 1.5 0 0 0 6.5 21h11a1.5 1.5 0 0 0 1.5-1.5V8.5Z\"/><path d=\"M13.5 3v5.5H19\"/></svg>`;\n\n/** Scroll to bottom button icon */\nexport const scrollDownIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M12 4.5v15\"/><path d=\"M6 13.5l6 6 6-6\"/></svg>`;\n\n/** Retry / regenerate icon — an arc back onto itself. */\nexport const retryIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M4 12a8 8 0 1 0 2.35-5.65L4 8.5\"/><path d=\"M4 3.5v5h5\"/></svg>`;\n\n/** Edit / pencil icon */\nexport const editIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M12 4.5H6a2 2 0 0 0-2 2v11.5a2 2 0 0 0 2 2h11.5a2 2 0 0 0 2-2V13\"/><path d=\"M17.75 3.25a2.05 2.05 0 0 1 2.9 2.9l-9.15 9.15-3.9 1 1-3.9Z\"/></svg>`;\n\n/** Thumbs up / positive feedback icon */\nexport const thumbUpIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M6.5 10.5v10\"/><path d=\"M6.5 10.5h3l3.2-6.4a1.75 1.75 0 0 1 3.3.8V9h4a2 2 0 0 1 2 2.35l-1.3 7.3a2 2 0 0 1-2 1.6H9.5\"/></svg>`;\n\n/** Thumbs down / negative feedback icon */\nexport const thumbDownIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M17.5 13.5v-10\"/><path d=\"M17.5 13.5h-3l-3.2 6.4a1.75 1.75 0 0 1-3.3-.8V15h-4a2 2 0 0 1-2-2.35l1.3-7.3a2 2 0 0 1 2-1.6h9.1\"/></svg>`;\n\n/** Previous branch arrow */\nexport const prevBranchIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M14.5 6 9 12l5.5 6\"/></svg>`;\n\n/** Next branch arrow */\nexport const nextBranchIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M9.5 6 15 12l-5.5 6\"/></svg>`;\n\n/** Tool call indicator (wrench) */\nexport const toolIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M14.5 3.5a5.5 5.5 0 0 0-5.1 7.6L3.5 17l3.5 3.5 5.9-5.9a5.5 5.5 0 0 0 7.6-5.1l-3.1 3.1-2.7-.8-.8-2.7 3.1-3.1Z\"/></svg>`;\n\n/** Close / failed / rejected / remove (✕) */\nexport const closeIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M6.5 6.5l11 11\"/><path d=\"M17.5 6.5l-11 11\"/></svg>`;\n\n/** Stop / halt streaming (■) */\nexport const stopIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><rect x=\"5\" y=\"5\" width=\"14\" height=\"14\" rx=\"2.5\"/></svg>`;\n\n/** Paused — two bars, filled like the stop square it sits beside in the tool row's vocabulary */\nexport const pauseIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><rect x=\"6\" y=\"5\" width=\"4.5\" height=\"14\" rx=\"1.5\"/><rect x=\"13.5\" y=\"5\" width=\"4.5\" height=\"14\" rx=\"1.5\"/></svg>`;\n\n/** Informational notice (ⓘ) */\nexport const infoIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"12\" r=\"9.5\"/><path d=\"M12 11v5.25\"/><path d=\"M12 7.75h.01\"/></svg>`;\n\n/** Archive a conversation */\nexport const archiveIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><polyline points=\"3 8 21 8\"/><path d=\"M5 8v11a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8\"/><polyline points=\"9 14 12 11 15 14\"/><line x1=\"12\" y1=\"11\" x2=\"12\" y2=\"19\"/></svg>`;\n\n/** Restore an archived conversation */\nexport const unarchiveIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><polyline points=\"3 8 21 8\"/><path d=\"M5 8v11a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8\"/><polyline points=\"9 14 12 17 15 14\"/><line x1=\"12\" y1=\"11\" x2=\"12\" y2=\"17\"/></svg>`;\n\n/** Download / save to disk */\nexport const downloadIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M12 3.5v12m0 0-4.5-4.5M12 15.5l4.5-4.5M4.5 20h15\"/></svg>`;\n\n/** Overflow menu of a row (⋯) — the conversation list's actions button. */\nexport const moreIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"5.5\" cy=\"12\" r=\"1.1\"/><circle cx=\"12\" cy=\"12\" r=\"1.1\"/><circle cx=\"18.5\" cy=\"12\" r=\"1.1\"/></svg>`;\n\n/** Pin a conversation to the top of the list — a pushpin: head, body, needle. */\nexport const pinIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M8.5 3.5h7\"/><path d=\"M10 3.5v5l-3 3.5V14h10v-2l-3-3.5v-5\"/><path d=\"M12 14v6.5\"/></svg>`;\n\n/** Delete — a bin with its lid and two slats. */\nexport const trashIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M4.5 7h15M8 7V5a1.5 1.5 0 0 1 1.5-1.5h5A1.5 1.5 0 0 1 16 5v2\"/><path d=\"m6.5 7 .8 12a1.5 1.5 0 0 0 1.5 1.5h6.4a1.5 1.5 0 0 0 1.5-1.4L17.5 7\"/><path d=\"M10 11v5.5M14 11v5.5\"/></svg>`;\n\n/** Every glyph, by name — the map `APARTE_DEFAULT_ICON_FALLBACKS` is built from. */\n/** Open a navigation drawer (☰) */\nexport const menuIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M4.5 7h15M4.5 12h15M4.5 17h15\"/></svg>`;\n\n/** A warning (triangle) */\nexport const alertTriangleIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M10.7 4.3 2.9 18a1.5 1.5 0 0 0 1.3 2.3h15.6a1.5 1.5 0 0 0 1.3-2.3L13.3 4.3a1.5 1.5 0 0 0-2.6 0Z\"/><path d=\"M12 9.5V14M12 17.2v.1\"/></svg>`;\n\nexport const APARTE_ICON_GLYPHS = {\n copy: copyIcon,\n check: checkIcon,\n send: sendIcon,\n loading: loadingIcon,\n error: errorIcon,\n expand: expandIcon,\n collapse: collapseIcon,\n terminal: terminalIcon,\n paperclip: paperclipIcon,\n image: imageIcon,\n file: fileIcon,\n scrollDown: scrollDownIcon,\n retry: retryIcon,\n edit: editIcon,\n thumbUp: thumbUpIcon,\n thumbDown: thumbDownIcon,\n prevBranch: prevBranchIcon,\n nextBranch: nextBranchIcon,\n tool: toolIcon,\n close: closeIcon,\n stop: stopIcon,\n pause: pauseIcon,\n info: infoIcon,\n archive: archiveIcon,\n unarchive: unarchiveIcon,\n download: downloadIcon,\n more: moreIcon,\n pin: pinIcon,\n trash: trashIcon,\n menu: menuIcon,\n alertTriangle: alertTriangleIcon,\n} as const;\n"],"names":[],"mappings":"AAyBO,MAAM,WAAW;AAGjB,MAAM,YAAY;AAGlB,MAAM,WAAW;AAGjB,MAAM,cAAc;AAGpB,MAAM,YAAY;AAGlB,MAAM,aAAa;AAGnB,MAAM,eAAe;AAGrB,MAAM,eAAe;AAGrB,MAAM,gBAAgB;AAGtB,MAAM,YAAY;AAGlB,MAAM,WAAW;AAGjB,MAAM,iBAAiB;AAGvB,MAAM,YAAY;AAGlB,MAAM,WAAW;AAGjB,MAAM,cAAc;AAGpB,MAAM,gBAAgB;AAGtB,MAAM,iBAAiB;AAGvB,MAAM,iBAAiB;AAGvB,MAAM,WAAW;AAGjB,MAAM,YAAY;AAGlB,MAAM,WAAW;AAGjB,MAAM,YAAY;AAGlB,MAAM,WAAW;AAGjB,MAAM,cAAc;AAGpB,MAAM,gBAAgB;AAGtB,MAAM,eAAe;AAGrB,MAAM,WAAW;AAGjB,MAAM,UAAU;AAGhB,MAAM,YAAY;AAIlB,MAAM,WAAW;AAGjB,MAAM,oBAAoB;AAE1B,MAAM,qBAAqB;AAAA,EAC9B,MAAM;AAAA,EACN,OAAO;AAAA,EACP,MAAM;AAAA,EACN,SAAS;AAAA,EACT,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,UAAU;AAAA,EACV,WAAW;AAAA,EACX,OAAO;AAAA,EACP,MAAM;AAAA,EACN,YAAY;AAAA,EACZ,OAAO;AAAA,EACP,MAAM;AAAA,EACN,SAAS;AAAA,EACT,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,MAAM;AAAA,EACN,OAAO;AAAA,EACP,MAAM;AAAA,EACN,OAAO;AAAA,EACP,MAAM;AAAA,EACN,SAAS;AAAA,EACT,WAAW;AAAA,EACX,UAAU;AAAA,EACV,MAAM;AAAA,EACN,KAAK;AAAA,EACL,OAAO;AAAA,EACP,MAAM;AAAA,EACN,eAAe;AACnB;"}
|
|
1
|
+
{"version":3,"file":"glyphs-DFp-825O.js","sources":["../src/icons/glyphs.ts"],"sourcesContent":["/**\n * The glyphs.\n *\n * ONE place. Every SVG the library draws is declared here and nowhere else, because\n * scattering them did not merely spread the source around — it let them DRIFT. Before\n * this file there were three different ✕ (a filled one on a 12 grid, a stroked one at\n * 2.5, and `close`), two different chevrons, and `paperclip` and `scrollDown` each\n * existed twice, byte for byte, in a component that could have asked for them.\n *\n * Each glyph is a plain string, exported on its own, so a bundler can drop the ones a\n * build never reaches. `APARTE_DEFAULT_ICON_FALLBACKS` in `config/icon-provider.ts`\n * assembles them into the record `getIcon()` reads — that record is indexed by a\n * computed key, so it is retained whole; anything meant to be optional has to stay OUT\n * of it. That is the rule the extended set follows.\n *\n * Drawn here, on the conventions every stroked icon set shares — a 24×24 grid,\n * `currentColor`, a 2px stroke with round caps and joins — so a consumer who swaps in\n * a set of their own under the same names gets the same optical weight. The path data\n * is core's own, which is what lets the package carry no notice and credit no set;\n * a glyph that needs redrawing is redrawn here, never pasted from elsewhere.\n * `icons/extended.ts` is the opt-in set and follows the same rule.\n */\n\n\n/** Copy button icon — two sheets, the front one over the back one's corner. */\nexport const copyIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"8.5\" y=\"8.5\" width=\"12\" height=\"12\" rx=\"2.5\"/><path d=\"M15.5 8.5V6a2.5 2.5 0 0 0-2.5-2.5H6A2.5 2.5 0 0 0 3.5 6v7A2.5 2.5 0 0 0 6 15.5h2.5\"/></svg>`;\n\n/** Success/check icon */\nexport const checkIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M4.5 12.5 9.5 17.5 19.5 7\"/></svg>`;\n\n/** Send message icon — a paper plane with its fold line. */\nexport const sendIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M21 3 3.7 10.4a.9.9 0 0 0 .1 1.7l6.2 2 2 6.2a.9.9 0 0 0 1.7.1L21 3Z\"/><path d=\"M10 14 21 3\"/></svg>`;\n\n/** Loading/spinner indicator */\nexport const loadingIcon = `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"aparte-icon aparte-icon-spin\"><circle cx=\"12\" cy=\"12\" r=\"10\" stroke-opacity=\"0.25\"/><path d=\"M12 2a10 10 0 0 1 10 10\"/></svg>`;\n\n/** Error indicator — a ring with an exclamation. */\nexport const errorIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"12\" r=\"9.5\"/><path d=\"M12 7.75v5\"/><path d=\"M12 16.25h.01\"/></svg>`;\n\n/** Expand/show more icon */\nexport const expandIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M5.5 9.5 12 16l6.5-6.5\"/></svg>`;\n\n/** Collapse/show less icon */\nexport const collapseIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M5.5 14.5 12 8l6.5 6.5\"/></svg>`;\n\n/** Terminal/command prompt icon — a prompt chevron and a cursor line. */\nexport const terminalIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M5 6.5 10.5 12 5 17.5\"/><path d=\"M13 18h6\"/></svg>`;\n\n/** File attachment / paperclip icon */\nexport const paperclipIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M8.4 21a5.2 5.2 0 0 1-3.7-8.9l8.6-8.6a3.5 3.5 0 0 1 4.9 4.9l-8.6 8.6a1.7 1.7 0 0 1-2.5-2.5l7.4-7.4\"/></svg>`;\n\n/** Image file icon — a frame, a sun, a hill. */\nexport const imageIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"3.5\" y=\"4.5\" width=\"17\" height=\"15\" rx=\"2.5\"/><circle cx=\"8.5\" cy=\"9\" r=\"1.5\"/><path d=\"M20.5 15.5l-4-4-8 8\"/></svg>`;\n\n/** Generic file icon — a sheet with a folded corner. */\nexport const fileIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M13.5 3H6.5A1.5 1.5 0 0 0 5 4.5v15A1.5 1.5 0 0 0 6.5 21h11a1.5 1.5 0 0 0 1.5-1.5V8.5Z\"/><path d=\"M13.5 3v5.5H19\"/></svg>`;\n\n/** Scroll to bottom button icon */\nexport const scrollDownIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M12 4.5v15\"/><path d=\"M6 13.5l6 6 6-6\"/></svg>`;\n\n/** Retry / regenerate icon — an arc back onto itself. */\nexport const retryIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M4 12a8 8 0 1 0 2.35-5.65L4 8.5\"/><path d=\"M4 3.5v5h5\"/></svg>`;\n\n/** Edit / pencil icon */\nexport const editIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M12 4.5H6a2 2 0 0 0-2 2v11.5a2 2 0 0 0 2 2h11.5a2 2 0 0 0 2-2V13\"/><path d=\"M17.75 3.25a2.05 2.05 0 0 1 2.9 2.9l-9.15 9.15-3.9 1 1-3.9Z\"/></svg>`;\n\n/** Thumbs up / positive feedback icon */\nexport const thumbUpIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M6.5 10.5v10\"/><path d=\"M6.5 10.5h3l3.2-6.4a1.75 1.75 0 0 1 3.3.8V9h4a2 2 0 0 1 2 2.35l-1.3 7.3a2 2 0 0 1-2 1.6H9.5\"/></svg>`;\n\n/** Thumbs down / negative feedback icon */\nexport const thumbDownIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M17.5 13.5v-10\"/><path d=\"M17.5 13.5h-3l-3.2 6.4a1.75 1.75 0 0 1-3.3-.8V15h-4a2 2 0 0 1-2-2.35l1.3-7.3a2 2 0 0 1 2-1.6h9.1\"/></svg>`;\n\n/** Previous branch arrow */\nexport const prevBranchIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M14.5 6 9 12l5.5 6\"/></svg>`;\n\n/** Next branch arrow */\nexport const nextBranchIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M9.5 6 15 12l-5.5 6\"/></svg>`;\n\n/** Tool call indicator (wrench) */\nexport const toolIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M14.5 3.5a5.5 5.5 0 0 0-5.1 7.6L3.5 17l3.5 3.5 5.9-5.9a5.5 5.5 0 0 0 7.6-5.1l-3.1 3.1-2.7-.8-.8-2.7 3.1-3.1Z\"/></svg>`;\n\n/** Close / failed / rejected / remove (✕) */\nexport const closeIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M6.5 6.5l11 11\"/><path d=\"M17.5 6.5l-11 11\"/></svg>`;\n\n/** Stop / halt streaming (■) */\nexport const stopIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><rect x=\"5\" y=\"5\" width=\"14\" height=\"14\" rx=\"2.5\"/></svg>`;\n\n/** Paused — two bars, filled like the stop square it sits beside in the tool row's vocabulary */\nexport const pauseIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><rect x=\"6\" y=\"5\" width=\"4.5\" height=\"14\" rx=\"1.5\"/><rect x=\"13.5\" y=\"5\" width=\"4.5\" height=\"14\" rx=\"1.5\"/></svg>`;\n\n/** Informational notice (ⓘ) */\nexport const infoIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"12\" r=\"9.5\"/><path d=\"M12 11v5.25\"/><path d=\"M12 7.75h.01\"/></svg>`;\n\n/** Archive a conversation */\nexport const archiveIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><polyline points=\"3 8 21 8\"/><path d=\"M5 8v11a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8\"/><polyline points=\"9 14 12 11 15 14\"/><line x1=\"12\" y1=\"11\" x2=\"12\" y2=\"19\"/></svg>`;\n\n/** Restore an archived conversation */\nexport const unarchiveIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><polyline points=\"3 8 21 8\"/><path d=\"M5 8v11a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8\"/><polyline points=\"9 14 12 17 15 14\"/><line x1=\"12\" y1=\"11\" x2=\"12\" y2=\"17\"/></svg>`;\n\n/** Download / save to disk */\nexport const downloadIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M12 3.5v12m0 0-4.5-4.5M12 15.5l4.5-4.5M4.5 20h15\"/></svg>`;\n\n/** Overflow menu of a row (⋯) — the conversation list's actions button. */\nexport const moreIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"5.5\" cy=\"12\" r=\"1.1\"/><circle cx=\"12\" cy=\"12\" r=\"1.1\"/><circle cx=\"18.5\" cy=\"12\" r=\"1.1\"/></svg>`;\n\n/** Pin a conversation to the top of the list — a pushpin: head, body, needle. */\nexport const pinIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M8.5 3.5h7\"/><path d=\"M10 3.5v5l-3 3.5V14h10v-2l-3-3.5v-5\"/><path d=\"M12 14v6.5\"/></svg>`;\n\n/** Delete — a bin with its lid and two slats. */\nexport const trashIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M4.5 7h15M8 7V5a1.5 1.5 0 0 1 1.5-1.5h5A1.5 1.5 0 0 1 16 5v2\"/><path d=\"m6.5 7 .8 12a1.5 1.5 0 0 0 1.5 1.5h6.4a1.5 1.5 0 0 0 1.5-1.4L17.5 7\"/><path d=\"M10 11v5.5M14 11v5.5\"/></svg>`;\n\n/** A conversation — a speech bubble. `<aparte-launcher>`'s button draws it. */\nexport const messageSquareIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M6.5 4h11A2.5 2.5 0 0 1 20 6.5v8a2.5 2.5 0 0 1-2.5 2.5H9.5L4.5 21V6.5A2.5 2.5 0 0 1 6.5 4Z\"/></svg>`;\n\n/** Every glyph, by name — the map `APARTE_DEFAULT_ICON_FALLBACKS` is built from. */\n/** Open a navigation drawer (☰) */\nexport const menuIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M4.5 7h15M4.5 12h15M4.5 17h15\"/></svg>`;\n\n/** A warning (triangle) */\nexport const alertTriangleIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M10.7 4.3 2.9 18a1.5 1.5 0 0 0 1.3 2.3h15.6a1.5 1.5 0 0 0 1.3-2.3L13.3 4.3a1.5 1.5 0 0 0-2.6 0Z\"/><path d=\"M12 9.5V14M12 17.2v.1\"/></svg>`;\n\nexport const APARTE_ICON_GLYPHS = {\n copy: copyIcon,\n check: checkIcon,\n send: sendIcon,\n loading: loadingIcon,\n error: errorIcon,\n expand: expandIcon,\n collapse: collapseIcon,\n terminal: terminalIcon,\n paperclip: paperclipIcon,\n image: imageIcon,\n file: fileIcon,\n scrollDown: scrollDownIcon,\n retry: retryIcon,\n edit: editIcon,\n thumbUp: thumbUpIcon,\n thumbDown: thumbDownIcon,\n prevBranch: prevBranchIcon,\n nextBranch: nextBranchIcon,\n tool: toolIcon,\n close: closeIcon,\n stop: stopIcon,\n pause: pauseIcon,\n info: infoIcon,\n archive: archiveIcon,\n unarchive: unarchiveIcon,\n download: downloadIcon,\n more: moreIcon,\n pin: pinIcon,\n trash: trashIcon,\n menu: menuIcon,\n alertTriangle: alertTriangleIcon,\n messageSquare: messageSquareIcon,\n} as const;\n"],"names":[],"mappings":"AAyBO,MAAM,WAAW;AAGjB,MAAM,YAAY;AAGlB,MAAM,WAAW;AAGjB,MAAM,cAAc;AAGpB,MAAM,YAAY;AAGlB,MAAM,aAAa;AAGnB,MAAM,eAAe;AAGrB,MAAM,eAAe;AAGrB,MAAM,gBAAgB;AAGtB,MAAM,YAAY;AAGlB,MAAM,WAAW;AAGjB,MAAM,iBAAiB;AAGvB,MAAM,YAAY;AAGlB,MAAM,WAAW;AAGjB,MAAM,cAAc;AAGpB,MAAM,gBAAgB;AAGtB,MAAM,iBAAiB;AAGvB,MAAM,iBAAiB;AAGvB,MAAM,WAAW;AAGjB,MAAM,YAAY;AAGlB,MAAM,WAAW;AAGjB,MAAM,YAAY;AAGlB,MAAM,WAAW;AAGjB,MAAM,cAAc;AAGpB,MAAM,gBAAgB;AAGtB,MAAM,eAAe;AAGrB,MAAM,WAAW;AAGjB,MAAM,UAAU;AAGhB,MAAM,YAAY;AAGlB,MAAM,oBAAoB;AAI1B,MAAM,WAAW;AAGjB,MAAM,oBAAoB;AAE1B,MAAM,qBAAqB;AAAA,EAC9B,MAAM;AAAA,EACN,OAAO;AAAA,EACP,MAAM;AAAA,EACN,SAAS;AAAA,EACT,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,UAAU;AAAA,EACV,WAAW;AAAA,EACX,OAAO;AAAA,EACP,MAAM;AAAA,EACN,YAAY;AAAA,EACZ,OAAO;AAAA,EACP,MAAM;AAAA,EACN,SAAS;AAAA,EACT,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,MAAM;AAAA,EACN,OAAO;AAAA,EACP,MAAM;AAAA,EACN,OAAO;AAAA,EACP,MAAM;AAAA,EACN,SAAS;AAAA,EACT,WAAW;AAAA,EACX,UAAU;AAAA,EACV,MAAM;AAAA,EACN,KAAK;AAAA,EACL,OAAO;AAAA,EACP,MAAM;AAAA,EACN,eAAe;AAAA,EACf,eAAe;AACnB;"}
|
|
@@ -62,8 +62,24 @@ export declare class AparteChatHost {
|
|
|
62
62
|
private readonly options;
|
|
63
63
|
/** Id of the assistant message currently streaming (null when idle). */
|
|
64
64
|
private _streamingId;
|
|
65
|
-
/**
|
|
65
|
+
/**
|
|
66
|
+
* The message object each bubble was last drawn from, by id (skip-rerender cache).
|
|
67
|
+
*
|
|
68
|
+
* An id alone could not say whether the list had changed under a bubble: a framework
|
|
69
|
+
* that owns the transcript (a controlled `messages` prop, a v-model, a store behind a
|
|
70
|
+
* compaction target) never goes through {@link updateMessage}, it hands over a list
|
|
71
|
+
* with a NEW object for the message it changed, and a checkpoint written that way to a
|
|
72
|
+
* message that was not the last never reached its bubble. Immutable updates always
|
|
73
|
+
* produce a new object, so the reference is the signal; the same object again means
|
|
74
|
+
* nothing changed and the bubble is left alone.
|
|
75
|
+
*/
|
|
66
76
|
private readonly _renderedIds;
|
|
77
|
+
/**
|
|
78
|
+
* Says on the bubble what a compaction is doing to the message it will sit on. The
|
|
79
|
+
* viewport answers for this in a chat with no framework; here the framework owns the
|
|
80
|
+
* list and the host is the one that knows which bubble is whose.
|
|
81
|
+
*/
|
|
82
|
+
private readonly _checkpointState;
|
|
67
83
|
/** Sibling info from the last path-change, applied after the next render. */
|
|
68
84
|
private _pendingSiblings?;
|
|
69
85
|
/** How many render passes the sibling write has waited for — see `_applyPendingSiblings`. */
|
|
@@ -230,7 +246,8 @@ export declare class AparteChatHost {
|
|
|
230
246
|
/**
|
|
231
247
|
* Reconcile rendered bubbles with the current message list. The framework
|
|
232
248
|
* calls this from its reactive message-change hook after rendering; the
|
|
233
|
-
* last message is always re-synced (streaming), others
|
|
249
|
+
* last message is always re-synced (streaming), the others whenever the list
|
|
250
|
+
* holds a different object for them than the one they were drawn from.
|
|
234
251
|
*/
|
|
235
252
|
syncBubbles(): void;
|
|
236
253
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aparte-chat-host.d.ts","sourceRoot":"","sources":["../../src/host/aparte-chat-host.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,aAAa,EACb,aAAa,EAIhB,MAAM,mBAAmB,CAAC;AAI3B,OAAO,EACH,4BAA4B,EAE/B,MAAM,6CAA6C,CAAC;AACrD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"aparte-chat-host.d.ts","sourceRoot":"","sources":["../../src/host/aparte-chat-host.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,aAAa,EACb,aAAa,EAIhB,MAAM,mBAAmB,CAAC;AAI3B,OAAO,EACH,4BAA4B,EAE/B,MAAM,6CAA6C,CAAC;AACrD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AA8D/D;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC,6EAA6E;IAC7E,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,4EAA4E;IAC5E,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,gFAAgF;IAChF,QAAQ,CAAC,QAAQ,EAAE,WAAW,GAAG,IAAI,CAAC;IAEtC,kDAAkD;IAClD,WAAW,IAAI,aAAa,EAAE,CAAC;IAC/B,qEAAqE;IACrE,WAAW,CAAC,QAAQ,EAAE,aAAa,EAAE,GAAG,IAAI,CAAC;IAE7C,2EAA2E;IAC3E,gBAAgB,CAAC,CAAC,QAAQ,EAAE,aAAa,EAAE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,eAAe,IAAI,IAAI;IAavB;;;;;OAKG;IACH,WAAW,IAAI,IAAI;IAcnB;;;OAGG;IACH,oBAAoB,IAAI,IAAI;IAmC5B;;;;;;;;;;;;OAYG;IACH,OAAO,CAAC,qBAAqB;IAuB7B,4EAA4E;IAC5E,OAAO,CAAC,SAAS;IAIjB,OAAO,CAAC,GAAG;IAIX,OAAO,CAAC,WAAW;IAQnB;;;;;;;;;;;;;;;OAeG;IACH,OAAO,CAAC,aAAa;IAKrB,OAAO,CAAC,WAAW;IAOnB,OAAO,CAAC,mBAAmB;IA2B3B,OAAO,CAAC,0BAA0B;IAqDlC,OAAO,CAAC,yBAAyB;CAqCpC"}
|
package/dist/icons/extended.d.ts
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
*
|
|
24
24
|
* aparteGlobalConfig.setIconProvider({ retry: () => historyIcon });
|
|
25
25
|
*/
|
|
26
|
-
import { trashIcon } from './glyphs.js';
|
|
26
|
+
import { trashIcon, messageSquareIcon } from './glyphs.js';
|
|
27
27
|
/** Add */
|
|
28
28
|
export declare const plusIcon = "<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M12 4.5v15M4.5 12h15\"/></svg>";
|
|
29
29
|
/** Remove */
|
|
@@ -99,7 +99,7 @@ export declare const checkCircleIcon = "<svg class=\"aparte-icon\" viewBox=\"0 0
|
|
|
99
99
|
/** Failed, emphatically */
|
|
100
100
|
export declare const xCircleIcon = "<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"12\" r=\"9\"/><path d=\"m9.2 9.2 5.6 5.6M14.8 9.2l-5.6 5.6\"/></svg>";
|
|
101
101
|
/** A conversation */
|
|
102
|
-
export
|
|
102
|
+
export { messageSquareIcon };
|
|
103
103
|
/** Light theme */
|
|
104
104
|
export declare const sunIcon = "<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"12\" r=\"3.5\"/><path d=\"M12 3v2M12 19v2M3 12h2M19 12h2M5.6 5.6 7 7M17 17l1.4 1.4M5.6 18.4 7 17M17 7l1.4-1.4\"/></svg>";
|
|
105
105
|
/** Dark theme */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extended.d.ts","sourceRoot":"","sources":["../../src/icons/extended.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,EAA4C,SAAS,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"extended.d.ts","sourceRoot":"","sources":["../../src/icons/extended.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,EAA4C,SAAS,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAErG,UAAU;AACV,eAAO,MAAM,QAAQ,0MAA0L,CAAC;AAEhN,aAAa;AACb,eAAO,MAAM,SAAS,gMAAgL,CAAC;AAEvM,oCAAoC;AACpC,eAAO,MAAM,UAAU,6OAAuN,CAAC;AAE/O,oBAAoB;AACpB,eAAO,MAAM,UAAU,uNAAuM,CAAC;AAE/N;yFACyF;AACzF,eAAO,MAAM,kBAAkB,gSAAW,CAAC;AAE3C,iCAAiC;AACjC,eAAO,MAAM,gBAAgB,gSAAgQ,CAAC;AAE9R;6DAC6D;AAC7D,eAAO,MAAM,eAAe,wMAAiB,CAAC;AAE9C,oEAAoE;AACpE,eAAO,MAAM,gBAAgB,yMAAiB,CAAC;AAE/C,4BAA4B;AAC5B,eAAO,MAAM,WAAW,wNAAwM,CAAC;AAEjO,uBAAuB;AACvB,eAAO,MAAM,cAAc,uNAAuM,CAAC;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0P,CAAC;AAEhR,qBAAqB;AACrB,eAAO,MAAM,SAAS,+UAA6S,CAAC;AAEpU,yBAAyB;AACzB,eAAO,MAAM,eAAe,kPAA4N,CAAC;AAEzP,2BAA2B;AAC3B,eAAO,MAAM,WAAW,6PAAuO,CAAC;AAEhQ,qBAAqB;AAGrB,OAAO,EAAE,iBAAiB,EAAE,CAAC;AAE7B,kBAAkB;AAClB,eAAO,MAAM,OAAO,gTAA0R,CAAC;AAE/S,iBAAiB;AACjB,eAAO,MAAM,QAAQ,kOAAkN,CAAC;AAExO;sEACsE;AACtE,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwC9B,CAAC"}
|
package/dist/icons/glyphs.d.ts
CHANGED
|
@@ -78,6 +78,8 @@ export declare const moreIcon = "<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\
|
|
|
78
78
|
export declare const pinIcon = "<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M8.5 3.5h7\"/><path d=\"M10 3.5v5l-3 3.5V14h10v-2l-3-3.5v-5\"/><path d=\"M12 14v6.5\"/></svg>";
|
|
79
79
|
/** Delete — a bin with its lid and two slats. */
|
|
80
80
|
export declare const trashIcon = "<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M4.5 7h15M8 7V5a1.5 1.5 0 0 1 1.5-1.5h5A1.5 1.5 0 0 1 16 5v2\"/><path d=\"m6.5 7 .8 12a1.5 1.5 0 0 0 1.5 1.5h6.4a1.5 1.5 0 0 0 1.5-1.4L17.5 7\"/><path d=\"M10 11v5.5M14 11v5.5\"/></svg>";
|
|
81
|
+
/** A conversation — a speech bubble. `<aparte-launcher>`'s button draws it. */
|
|
82
|
+
export declare const messageSquareIcon = "<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M6.5 4h11A2.5 2.5 0 0 1 20 6.5v8a2.5 2.5 0 0 1-2.5 2.5H9.5L4.5 21V6.5A2.5 2.5 0 0 1 6.5 4Z\"/></svg>";
|
|
81
83
|
/** Every glyph, by name — the map `APARTE_DEFAULT_ICON_FALLBACKS` is built from. */
|
|
82
84
|
/** Open a navigation drawer (☰) */
|
|
83
85
|
export declare const menuIcon = "<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M4.5 7h15M4.5 12h15M4.5 17h15\"/></svg>";
|
|
@@ -115,5 +117,6 @@ export declare const APARTE_ICON_GLYPHS: {
|
|
|
115
117
|
readonly trash: "<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M4.5 7h15M8 7V5a1.5 1.5 0 0 1 1.5-1.5h5A1.5 1.5 0 0 1 16 5v2\"/><path d=\"m6.5 7 .8 12a1.5 1.5 0 0 0 1.5 1.5h6.4a1.5 1.5 0 0 0 1.5-1.4L17.5 7\"/><path d=\"M10 11v5.5M14 11v5.5\"/></svg>";
|
|
116
118
|
readonly menu: "<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M4.5 7h15M4.5 12h15M4.5 17h15\"/></svg>";
|
|
117
119
|
readonly alertTriangle: "<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M10.7 4.3 2.9 18a1.5 1.5 0 0 0 1.3 2.3h15.6a1.5 1.5 0 0 0 1.3-2.3L13.3 4.3a1.5 1.5 0 0 0-2.6 0Z\"/><path d=\"M12 9.5V14M12 17.2v.1\"/></svg>";
|
|
120
|
+
readonly messageSquare: "<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M6.5 4h11A2.5 2.5 0 0 1 20 6.5v8a2.5 2.5 0 0 1-2.5 2.5H9.5L4.5 21V6.5A2.5 2.5 0 0 1 6.5 4Z\"/></svg>";
|
|
118
121
|
};
|
|
119
122
|
//# sourceMappingURL=glyphs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"glyphs.d.ts","sourceRoot":"","sources":["../../src/icons/glyphs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,+EAA+E;AAC/E,eAAO,MAAM,QAAQ,yUAA+S,CAAC;AAErU,yBAAyB;AACzB,eAAO,MAAM,SAAS,+MAA+L,CAAC;AAEtN,4DAA4D;AAC5D,eAAO,MAAM,QAAQ,kRAAgQ,CAAC;AAEtR,gCAAgC;AAChC,eAAO,MAAM,WAAW,4RAAoQ,CAAC;AAE7R,oDAAoD;AACpD,eAAO,MAAM,SAAS,kQAA0O,CAAC;AAEjQ,4BAA4B;AAC5B,eAAO,MAAM,UAAU,4MAA4L,CAAC;AAEpN,8BAA8B;AAC9B,eAAO,MAAM,YAAY,4MAA4L,CAAC;AAEtN,yEAAyE;AACzE,eAAO,MAAM,YAAY,iOAA+M,CAAC;AAEzO,uCAAuC;AACvC,eAAO,MAAM,aAAa,wRAAwQ,CAAC;AAEnS,gDAAgD;AAChD,eAAO,MAAM,SAAS,iTAAiR,CAAC;AAExS,wDAAwD;AACxD,eAAO,MAAM,QAAQ,uSAAqR,CAAC;AAE3S,mCAAmC;AACnC,eAAO,MAAM,cAAc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Q,kQAA0O,CAAC;AAEhQ,6BAA6B;AAC7B,eAAO,MAAM,WAAW,mVAAuT,CAAC;AAEhV,uCAAuC;AACvC,eAAO,MAAM,aAAa,mVAAuT,CAAC;AAElV,8BAA8B;AAC9B,eAAO,MAAM,YAAY,sOAAsN,CAAC;AAEhP,2EAA2E;AAC3E,eAAO,MAAM,QAAQ,gSAAgQ,CAAC;AAEtR,iFAAiF;AACjF,eAAO,MAAM,OAAO,yQAAqP,CAAC;AAE1Q,iDAAiD;AACjD,eAAO,MAAM,SAAS,qWAAiV,CAAC;AAExW,+EAA+E;AAC/E,eAAO,MAAM,iBAAiB,gRAAgQ,CAAC;AAE/R,oFAAoF;AACpF,mCAAmC;AACnC,eAAO,MAAM,QAAQ,mNAAmM,CAAC;AAEzN,2BAA2B;AAC3B,eAAO,MAAM,iBAAiB,wTAAsS,CAAC;AAErU,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCrB,CAAC"}
|
package/dist/icons.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as trashIcon, n as nextBranchIcon, p as prevBranchIcon,
|
|
2
|
-
import { A,
|
|
1
|
+
import { m as messageSquareIcon, t as trashIcon, n as nextBranchIcon, p as prevBranchIcon, a as moreIcon } from "./glyphs-DFp-825O.js";
|
|
2
|
+
import { A, b, c, d, e, f, g, h, i, j, k, l, o, q, r, s, u, v, w, x, y, z, B, C, D, E, F, G } from "./glyphs-DFp-825O.js";
|
|
3
3
|
const plusIcon = `<svg class="aparte-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 4.5v15M4.5 12h15"/></svg>`;
|
|
4
4
|
const minusIcon = `<svg class="aparte-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4.5 12h15"/></svg>`;
|
|
5
5
|
const searchIcon = `<svg class="aparte-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="10.5" cy="10.5" r="7"/><path d="m16 16 5.5 5.5"/></svg>`;
|
|
@@ -35,7 +35,6 @@ const starIcon = `<svg class="aparte-icon" viewBox="0 0 24 24" fill="none" strok
|
|
|
35
35
|
const shareIcon = `<svg class="aparte-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="18" cy="5.5" r="2.5"/><circle cx="6" cy="12" r="2.5"/><circle cx="18" cy="18.5" r="2.5"/><path d="m8.2 10.8 7.6-4.1M8.2 13.2l7.6 4.1"/></svg>`;
|
|
36
36
|
const checkCircleIcon = `<svg class="aparte-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="9"/><path d="m8 12.2 2.8 2.8 5.7-5.5"/></svg>`;
|
|
37
37
|
const xCircleIcon = `<svg class="aparte-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="9"/><path d="m9.2 9.2 5.6 5.6M14.8 9.2l-5.6 5.6"/></svg>`;
|
|
38
|
-
const messageSquareIcon = `<svg class="aparte-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6.5 4h11A2.5 2.5 0 0 1 20 6.5v8a2.5 2.5 0 0 1-2.5 2.5H9.5L4.5 21V6.5A2.5 2.5 0 0 1 6.5 4Z"/></svg>`;
|
|
39
38
|
const sunIcon = `<svg class="aparte-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="3.5"/><path d="M12 3v2M12 19v2M3 12h2M19 12h2M5.6 5.6 7 7M17 17l1.4 1.4M5.6 18.4 7 17M17 7l1.4-1.4"/></svg>`;
|
|
40
39
|
const moonIcon = `<svg class="aparte-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8Z"/></svg>`;
|
|
41
40
|
const APARTE_EXTENDED_ICON_GLYPHS = {
|
|
@@ -82,41 +81,41 @@ const APARTE_EXTENDED_ICON_GLYPHS = {
|
|
|
82
81
|
export {
|
|
83
82
|
APARTE_EXTENDED_ICON_GLYPHS,
|
|
84
83
|
A as APARTE_ICON_GLYPHS,
|
|
85
|
-
|
|
86
|
-
|
|
84
|
+
b as alertTriangleIcon,
|
|
85
|
+
c as archiveIcon,
|
|
87
86
|
arrowRightIcon,
|
|
88
87
|
arrowUpIcon,
|
|
89
88
|
botIcon,
|
|
90
89
|
checkCircleIcon,
|
|
91
|
-
|
|
90
|
+
d as checkIcon,
|
|
92
91
|
chevronLeftIcon,
|
|
93
92
|
chevronRightIcon,
|
|
94
93
|
clipboardIcon,
|
|
95
94
|
clockIcon,
|
|
96
|
-
|
|
95
|
+
e as closeIcon,
|
|
97
96
|
codeIcon,
|
|
98
|
-
|
|
99
|
-
|
|
97
|
+
f as collapseIcon,
|
|
98
|
+
g as copyIcon,
|
|
100
99
|
cpuIcon,
|
|
101
100
|
databaseIcon,
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
101
|
+
h as downloadIcon,
|
|
102
|
+
i as editIcon,
|
|
103
|
+
j as errorIcon,
|
|
104
|
+
k as expandIcon,
|
|
106
105
|
externalLinkIcon,
|
|
107
106
|
eyeIcon,
|
|
108
107
|
eyeOffIcon,
|
|
109
|
-
|
|
108
|
+
l as fileIcon,
|
|
110
109
|
filterIcon,
|
|
111
110
|
folderIcon,
|
|
112
111
|
globeIcon,
|
|
113
112
|
historyIcon,
|
|
114
|
-
|
|
115
|
-
|
|
113
|
+
o as imageIcon,
|
|
114
|
+
q as infoIcon,
|
|
116
115
|
keyIcon,
|
|
117
116
|
linkIcon,
|
|
118
|
-
|
|
119
|
-
|
|
117
|
+
r as loadingIcon,
|
|
118
|
+
s as menuIcon,
|
|
120
119
|
messageSquareIcon,
|
|
121
120
|
micIcon,
|
|
122
121
|
micOffIcon,
|
|
@@ -126,28 +125,28 @@ export {
|
|
|
126
125
|
moreIcon,
|
|
127
126
|
moreVerticalIcon,
|
|
128
127
|
nextBranchIcon,
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
128
|
+
u as paperclipIcon,
|
|
129
|
+
v as pauseIcon,
|
|
130
|
+
w as pinIcon,
|
|
132
131
|
plusIcon,
|
|
133
132
|
prevBranchIcon,
|
|
134
|
-
|
|
133
|
+
x as retryIcon,
|
|
135
134
|
saveIcon,
|
|
136
|
-
|
|
135
|
+
y as scrollDownIcon,
|
|
137
136
|
searchIcon,
|
|
138
|
-
|
|
137
|
+
z as sendIcon,
|
|
139
138
|
settingsIcon,
|
|
140
139
|
shareIcon,
|
|
141
140
|
sparklesIcon,
|
|
142
141
|
starIcon,
|
|
143
|
-
|
|
142
|
+
B as stopIcon,
|
|
144
143
|
sunIcon,
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
144
|
+
C as terminalIcon,
|
|
145
|
+
D as thumbDownIcon,
|
|
146
|
+
E as thumbUpIcon,
|
|
147
|
+
F as toolIcon,
|
|
149
148
|
trashIcon,
|
|
150
|
-
|
|
149
|
+
G as unarchiveIcon,
|
|
151
150
|
uploadIcon,
|
|
152
151
|
userIcon,
|
|
153
152
|
xCircleIcon
|