@aparte/core 1.9.0 → 1.10.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/aparte-client.d.ts +48 -11
- package/dist/client/aparte-client.d.ts.map +1 -1
- package/dist/client/stream-adapter.d.ts +5 -0
- package/dist/client/stream-adapter.d.ts.map +1 -1
- package/dist/client/wire-history.d.ts +21 -1
- package/dist/client/wire-history.d.ts.map +1 -1
- package/dist/components/bubble/aparte-chat-bubble.d.ts.map +1 -1
- package/dist/components/composer/aparte-composer-action.d.ts +2 -1
- package/dist/components/composer/aparte-composer-action.d.ts.map +1 -1
- package/dist/components/composer/aparte-composer-add-attachment.d.ts.map +1 -1
- 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/composer/aparte-composer.d.ts +2 -1
- package/dist/components/composer/aparte-composer.d.ts.map +1 -1
- package/dist/components/context/aparte-context.d.ts +1 -1
- package/dist/components/context/aparte-context.d.ts.map +1 -1
- package/dist/components/conversation-list/aparte-conversation-list.d.ts +43 -1
- package/dist/components/conversation-list/aparte-conversation-list.d.ts.map +1 -1
- package/dist/components/conversation-list/index.d.ts +1 -1
- package/dist/components/conversation-list/index.d.ts.map +1 -1
- package/dist/components/elicitation/aparte-elicitation.d.ts.map +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/launcher/aparte-launcher.d.ts.map +1 -1
- package/dist/components/scroll-rail/aparte-scroll-rail.d.ts +1 -1
- package/dist/components/scroll-rail/aparte-scroll-rail.d.ts.map +1 -1
- package/dist/components/sidebar/aparte-sidebar.d.ts +14 -1
- package/dist/components/sidebar/aparte-sidebar.d.ts.map +1 -1
- package/dist/components/split/aparte-split.d.ts +1 -1
- package/dist/components/split/aparte-split.d.ts.map +1 -1
- package/dist/components/suggestions/aparte-suggestions.d.ts +3 -2
- package/dist/components/suggestions/aparte-suggestions.d.ts.map +1 -1
- package/dist/components/viewport/aparte-chat-viewport.d.ts +3 -0
- package/dist/components/viewport/aparte-chat-viewport.d.ts.map +1 -1
- package/dist/config/aparte-config.d.ts +24 -3
- package/dist/config/aparte-config.d.ts.map +1 -1
- package/dist/context/checkpoint-state.d.ts +0 -7
- package/dist/context/checkpoint-state.d.ts.map +1 -1
- package/dist/context/measure.d.ts +3 -1
- package/dist/context/measure.d.ts.map +1 -1
- package/dist/conversations/conversation-controller.d.ts +48 -6
- package/dist/conversations/conversation-controller.d.ts.map +1 -1
- package/dist/custom-elements.json +1553 -671
- package/dist/{defer-hydration-Ch3TOEJC.js → defer-hydration-OFqdbk3O.js} +647 -248
- package/dist/defer-hydration-OFqdbk3O.js.map +1 -0
- package/dist/elicitation/approval-panel.d.ts +1 -1
- package/dist/elicitation/approval-panel.d.ts.map +1 -1
- package/dist/elicitation/option-keys.d.ts +26 -0
- package/dist/elicitation/option-keys.d.ts.map +1 -0
- package/dist/elicitation/types.d.ts +16 -0
- package/dist/elicitation/types.d.ts.map +1 -1
- package/dist/generated/element-attributes.d.ts +2 -2
- package/dist/generated/element-attributes.d.ts.map +1 -1
- package/dist/{glyphs-LolG04CC.js → glyphs-BgKFtByg.js} +10 -10
- package/dist/{glyphs-LolG04CC.js.map → glyphs-BgKFtByg.js.map} +1 -1
- package/dist/host/aparte-chat-host.d.ts +42 -1
- package/dist/host/aparte-chat-host.d.ts.map +1 -1
- package/dist/icons/extended.d.ts +9 -0
- package/dist/icons/extended.d.ts.map +1 -1
- package/dist/icons.js +20 -11
- package/dist/icons.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +8 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +271 -190
- package/dist/index.js.map +1 -1
- package/dist/index.node.d.ts +7 -2
- package/dist/index.node.d.ts.map +1 -1
- package/dist/index.node.js +61 -58
- package/dist/index.node.js.map +1 -1
- package/dist/interop/chat-events.d.ts +64 -0
- package/dist/interop/chat-events.d.ts.map +1 -0
- package/dist/interop/element-props.d.ts +6 -0
- package/dist/interop/element-props.d.ts.map +1 -1
- package/dist/interop/element-spec.d.ts +85 -0
- package/dist/interop/element-spec.d.ts.map +1 -0
- package/dist/primitives/progress-spinner/aparte-progress-spinner.d.ts +1 -1
- package/dist/primitives/progress-spinner/aparte-progress-spinner.d.ts.map +1 -1
- package/dist/primitives/select/aparte-option.d.ts +1 -1
- package/dist/primitives/select/aparte-option.d.ts.map +1 -1
- package/dist/primitives/select/aparte-select.d.ts.map +1 -1
- package/dist/renderers/citations.d.ts.map +1 -1
- package/dist/transport/agent-handler.d.ts +8 -4
- package/dist/transport/agent-handler.d.ts.map +1 -1
- package/dist/types/events.d.ts +11 -10
- package/dist/types/events.d.ts.map +1 -1
- package/dist/types/imperative-api.d.ts +11 -0
- package/dist/types/imperative-api.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/models.d.ts +26 -0
- package/dist/types/models.d.ts.map +1 -1
- package/dist/types/segments.d.ts +2 -1
- package/dist/types/segments.d.ts.map +1 -1
- package/dist/types/tools.d.ts +51 -5
- package/dist/types/tools.d.ts.map +1 -1
- package/dist/utils/segments.d.ts +1 -0
- package/dist/utils/segments.d.ts.map +1 -1
- package/dist/utils/tool-line.d.ts +9 -8
- package/dist/utils/tool-line.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/defer-hydration-Ch3TOEJC.js.map +0 -1
|
@@ -38,5 +38,5 @@ export interface BuiltApprovalPanel {
|
|
|
38
38
|
/** Re-apply every string taken from the locale, in place. */
|
|
39
39
|
relabel(): void;
|
|
40
40
|
}
|
|
41
|
-
export declare function buildApprovalPanel(message: string | (() => string), options: readonly AparteApprovalOption[], onChange: () => void, details?: string, allowOther?: boolean): BuiltApprovalPanel;
|
|
41
|
+
export declare function buildApprovalPanel(message: string | (() => string), options: readonly AparteApprovalOption[], onChange: () => void, details?: string, allowOther?: boolean, preview?: HTMLElement | string): BuiltApprovalPanel;
|
|
42
42
|
//# sourceMappingURL=approval-panel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"approval-panel.d.ts","sourceRoot":"","sources":["../../src/elicitation/approval-panel.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAI7E,iFAAiF;AACjF,MAAM,WAAW,kBAAkB;IAC/B,QAAQ,CAAC,EAAE,EAAE,WAAW,CAAC;IACzB,gFAAgF;IAChF,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC;IAC9B,4DAA4D;IAC5D,QAAQ,CAAC,EAAE,EAAE,CAAC,MAAM,EAAE,oBAAoB,KAAK,IAAI,GAAG,IAAI,CAAC;IAC3D,oEAAoE;IACpE,UAAU,IAAI,oBAAoB,CAAC;IACnC,uDAAuD;IACvD,UAAU,IAAI,OAAO,CAAC;IACtB,KAAK,IAAI,IAAI,CAAC;IACd,6DAA6D;IAC7D,OAAO,IAAI,IAAI,CAAC;CACnB;AAeD,wBAAgB,kBAAkB,CAC9B,OAAO,EAAE,MAAM,GAAG,CAAC,MAAM,MAAM,CAAC,EAChC,OAAO,EAAE,SAAS,oBAAoB,EAAE,EACxC,QAAQ,EAAE,MAAM,IAAI,EACpB,OAAO,CAAC,EAAE,MAAM,EAChB,UAAU,UAAO,
|
|
1
|
+
{"version":3,"file":"approval-panel.d.ts","sourceRoot":"","sources":["../../src/elicitation/approval-panel.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAI7E,iFAAiF;AACjF,MAAM,WAAW,kBAAkB;IAC/B,QAAQ,CAAC,EAAE,EAAE,WAAW,CAAC;IACzB,gFAAgF;IAChF,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC;IAC9B,4DAA4D;IAC5D,QAAQ,CAAC,EAAE,EAAE,CAAC,MAAM,EAAE,oBAAoB,KAAK,IAAI,GAAG,IAAI,CAAC;IAC3D,oEAAoE;IACpE,UAAU,IAAI,oBAAoB,CAAC;IACnC,uDAAuD;IACvD,UAAU,IAAI,OAAO,CAAC;IACtB,KAAK,IAAI,IAAI,CAAC;IACd,6DAA6D;IAC7D,OAAO,IAAI,IAAI,CAAC;CACnB;AAeD,wBAAgB,kBAAkB,CAC9B,OAAO,EAAE,MAAM,GAAG,CAAC,MAAM,MAAM,CAAC,EAChC,OAAO,EAAE,SAAS,oBAAoB,EAAE,EACxC,QAAQ,EAAE,MAAM,IAAI,EACpB,OAAO,CAAC,EAAE,MAAM,EAChB,UAAU,UAAO,EACjB,OAAO,CAAC,EAAE,WAAW,GAAG,MAAM,GAC/B,kBAAkB,CA6KpB"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The keyboard for a panel whose options are buttons: a single-choice question
|
|
3
|
+
* (`.aparte-elic-option--command`) and an approval (`.aparte-approval-option`).
|
|
4
|
+
*
|
|
5
|
+
* Two keys, one handler, because both panels are the same act (a click that settles):
|
|
6
|
+
*
|
|
7
|
+
* - **1 to 9** press the n-th option, and only while an option has the focus. The panel
|
|
8
|
+
* deliberately focuses its own container while the person is typing in the composer
|
|
9
|
+
* (so Enter is never "Approve"), and a digit typed then belongs to the sentence, not to
|
|
10
|
+
* the list: "I have 2…" must not pick option 2.
|
|
11
|
+
* - **Escape** is "Skip" on a question, and on an approval the option whose tone is
|
|
12
|
+
* `deny` — only when there is exactly one, because with two a key cannot know which
|
|
13
|
+
* refusal was meant. It is always `preventDefault()`ed once it acted: the launcher
|
|
14
|
+
* closes on an Escape nobody handled.
|
|
15
|
+
*
|
|
16
|
+
* Inert in a text field (the "Other" field, the instruction), on a repeated key, with a
|
|
17
|
+
* modifier, and during IME composition — a digit or Escape there means something else.
|
|
18
|
+
*/
|
|
19
|
+
/** Number the options (at most nine) and say so to assistive technology. Call after the panel is built. */
|
|
20
|
+
export declare function numberOptions(panel: HTMLElement): void;
|
|
21
|
+
/**
|
|
22
|
+
* Listen on `panel` for the keys above. Returns the function that stops listening (the panel
|
|
23
|
+
* is removed on close, so a caller may ignore it).
|
|
24
|
+
*/
|
|
25
|
+
export declare function bindOptionKeys(panel: HTMLElement): () => void;
|
|
26
|
+
//# sourceMappingURL=option-keys.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"option-keys.d.ts","sourceRoot":"","sources":["../../src/elicitation/option-keys.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAMH,2GAA2G;AAC3G,wBAAgB,aAAa,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI,CAOtD;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,WAAW,GAAG,MAAM,IAAI,CA8B7D"}
|
|
@@ -115,6 +115,13 @@ export interface AparteElicitationRequest {
|
|
|
115
115
|
* Ignored on `kind: 'question'` — a question's body is its schema.
|
|
116
116
|
*/
|
|
117
117
|
details?: string;
|
|
118
|
+
/**
|
|
119
|
+
* What the call would do, drawn — mounted between the question and the options of an
|
|
120
|
+
* approval. An element is mounted as it is; a string goes through the config's HTML
|
|
121
|
+
* sanitizer. For a tool it is what its display's `approvalPreview` returns. Ignored on
|
|
122
|
+
* `kind: 'question'`.
|
|
123
|
+
*/
|
|
124
|
+
preview?: HTMLElement | string;
|
|
118
125
|
/** What to ask for. */
|
|
119
126
|
/**
|
|
120
127
|
* What value to collect. Required on a `'question'`, absent on an `'approval'` —
|
|
@@ -152,6 +159,15 @@ export interface AparteElicitationRequest {
|
|
|
152
159
|
* @default true
|
|
153
160
|
*/
|
|
154
161
|
allowOther?: boolean;
|
|
162
|
+
/**
|
|
163
|
+
* The conversation the request belongs to: the one open in the chat when the person
|
|
164
|
+
* acted, which a presenter of the app's own files the request under. Core's approval
|
|
165
|
+
* question carries it, and so does a tool handler that passes its context's
|
|
166
|
+
* `conversationId`. Absent when the chat has none.
|
|
167
|
+
*/
|
|
168
|
+
conversationId?: string;
|
|
169
|
+
/** The reply the request belongs to, when a turn asks it — core's approval question carries it. */
|
|
170
|
+
messageId?: string;
|
|
155
171
|
/**
|
|
156
172
|
* Aborts the request — the panel closes and the promise REJECTS with
|
|
157
173
|
* {@link AparteElicitationAbortError}. Pass a tool handler's signal so a
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/elicitation/types.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,0EAA0E;AAC1E,MAAM,WAAW,0BAA0B;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;IAC/F,mDAAmD;IACnD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,yDAAyD;IACzD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,uDAAuD;IACvD,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CAC/B;AAED,+CAA+C;AAC/C,MAAM,WAAW,6BAA6B;IAC1C,IAAI,EAAE,SAAS,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,mEAAmE;IACnE,SAAS,CAA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;GASG;AACH,MAAM,WAAW,oBAAoB;IACjC,gFAAgF;IAChF,KAAK,EAAE,MAAM,CAAC;IACd;;;;;;;;;;;;OAYG;IACH,KAAK,EAAE,MAAM,GAAG,CAAC,MAAM,MAAM,CAAC,CAAC;IAC/B;;;;;;;;;;;OAWG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,MAAM,CAAC,CAAC;IACtC;;;OAGG;IACH,IAAI,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;CAC5B;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,oBAAoB;IACjC,iFAAiF;IACjF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,2DAA2D;IAC3D,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;GAIG;AACH,MAAM,MAAM,uBAAuB,GAC7B;IAAE,MAAM,EAAE,QAAQ,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,GACtC;IAAE,MAAM,EAAE,SAAS,CAAA;CAAE,CAAC;AAE5B;;;;;;;;;;;GAWG;AACH,qBAAa,2BAA4B,SAAQ,YAAY;IACzD;;;;;;OAMG;IACH,QAAQ,CAAC,MAAM,EAAE,SAAS,GAAG,cAAc,CAAC;gBAEhC,MAAM,GAAE,SAAS,GAAG,cAA0B;CAS7D;AAED;;;;;GAKG;AACH,MAAM,MAAM,0BAA0B,GAAG,CAAC,OAAO,EAAE,wBAAwB,KAAK,OAAO,CAAC,uBAAuB,CAAC,CAAC"}
|
|
@@ -235,8 +235,8 @@ export interface AparteSelectAttributes {
|
|
|
235
235
|
}
|
|
236
236
|
/** `<aparte-sidebar>` — The column beside the chat — conversations, a new-chat button, a search field, an account row — as an element, because it has behaviour: it collapses, it becomes a drawer on a narrow window, and its search field filters the conversation list. */
|
|
237
237
|
export interface AparteSidebarAttributes {
|
|
238
|
-
/** Hidden (in the flow) or closed (as a drawer). Reflected; set it to start closed. */
|
|
239
|
-
collapsed?: boolean;
|
|
238
|
+
/** Hidden (in the flow) or closed (as a drawer). `collapsed="rail"` folds the column to a narrow rail that stays usable instead of to nothing. Reflected; set it to start closed. */
|
|
239
|
+
collapsed?: boolean | "rail";
|
|
240
240
|
/** The window width under which the sidebar becomes a drawer: a length (default `48rem`), or `none` for a column that never does, in a floating chat's card included. */
|
|
241
241
|
breakpoint?: string;
|
|
242
242
|
/** Reflected BY the element while the window is narrower than `breakpoint` (48rem unless you set it), and in the card of an `<aparte-launcher>` when it is the direct child of the card's `.aparte-app-shell`. Read-only. */
|
|
@@ -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,oQAAoQ;IACpQ,eAAe,CAAC,EAAE,MAAM,GAAC,MAAM,GAAC,KAAK,CAAC;IACtC,6YAA6Y;IAC7Y,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,sGAAsG;IACtG,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,yWAAyW;IACzW,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,wQAAwQ;IACxQ,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,seAAse;IACte,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,qFAA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0BAA0B,EAAE,gCAAgC,CAAC;IAC7D,oBAAoB,EAAE,kBAAkB,CAAC;IACzC,aAAa,EAAE,oBAAoB,CAAC;IACpC,iBAAiB,EAAE,wBAAwB,CAAC;IAC5C,iBAAiB,EAAE,wBAAwB,CAAC;IAC5C,eAAe,EAAE,sBAAsB,CAAC;IACxC,yBAAyB,EAAE,+BAA+B,CAAC;IAC3D,oBAAoB,EAAE,0BAA0B,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"}
|
|
@@ -80,15 +80,15 @@ export {
|
|
|
80
80
|
unarchiveIcon as I,
|
|
81
81
|
moreIcon as a,
|
|
82
82
|
alertTriangleIcon as b,
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
83
|
+
collapseIcon as c,
|
|
84
|
+
archiveIcon as d,
|
|
85
|
+
expandIcon as e,
|
|
86
|
+
checkIcon as f,
|
|
87
|
+
closeIcon as g,
|
|
88
|
+
copyIcon as h,
|
|
89
|
+
downloadIcon as i,
|
|
90
|
+
editIcon as j,
|
|
91
|
+
errorIcon as k,
|
|
92
92
|
fileIcon as l,
|
|
93
93
|
messageSquareIcon as m,
|
|
94
94
|
nextBranchIcon as n,
|
|
@@ -105,4 +105,4 @@ export {
|
|
|
105
105
|
pinIcon as y,
|
|
106
106
|
retryIcon as z
|
|
107
107
|
};
|
|
108
|
-
//# sourceMappingURL=glyphs-
|
|
108
|
+
//# sourceMappingURL=glyphs-BgKFtByg.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"glyphs-LolG04CC.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/** Maximize — two corners pulled outward, along the diagonal. */\nexport const maximizeIcon = `<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 4.5h5.5V10\"/><path d=\"M10 19.5H4.5V14\"/><path d=\"m19.5 4.5-6 6\"/><path d=\"m4.5 19.5 6-6\"/></svg>`;\n\n/** Minimize — the same two corners pushed back in, the inverse of `maximize`. */\nexport const minimizeIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M19.5 10H14V4.5\"/><path d=\"M4.5 14H10v5.5\"/><path d=\"m14 10 5.5-5.5\"/><path d=\"m10 14-5.5 5.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 maximize: maximizeIcon,\n minimize: minimizeIcon,\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,MAA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tByg.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/** Maximize — two corners pulled outward, along the diagonal. */\nexport const maximizeIcon = `<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 4.5h5.5V10\"/><path d=\"M10 19.5H4.5V14\"/><path d=\"m19.5 4.5-6 6\"/><path d=\"m4.5 19.5 6-6\"/></svg>`;\n\n/** Minimize — the same two corners pushed back in, the inverse of `maximize`. */\nexport const minimizeIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M19.5 10H14V4.5\"/><path d=\"M4.5 14H10v5.5\"/><path d=\"m14 10 5.5-5.5\"/><path d=\"m10 14-5.5 5.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 maximize: maximizeIcon,\n minimize: minimizeIcon,\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;AAGj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115,6 +115,8 @@ export declare class AparteChatHost {
|
|
|
115
115
|
private _controller?;
|
|
116
116
|
private _teardown;
|
|
117
117
|
private _bound;
|
|
118
|
+
/** A config given while a turn was in flight, applied when it ends — see {@link setConfig}. */
|
|
119
|
+
private _nextConfig;
|
|
118
120
|
constructor(binding: AparteChatHostBinding, options?: AparteChatHostOptions);
|
|
119
121
|
/** Every report goes through here, so {@link takeEcho} knows what the parent may hand back. */
|
|
120
122
|
private _report;
|
|
@@ -146,8 +148,47 @@ export declare class AparteChatHost {
|
|
|
146
148
|
/** Clear the bubble-render cache (e.g. when the host clears messages externally). */
|
|
147
149
|
clearRenderCache(): void;
|
|
148
150
|
private _setStreamingId;
|
|
149
|
-
/**
|
|
151
|
+
/**
|
|
152
|
+
* Give the chat another instance config, or none (`undefined`: the page's). A wrapper
|
|
153
|
+
* calls it when its `config` prop changes: the boundary on the host moves, and every
|
|
154
|
+
* element inside re-resolves its config. The config it already has changes nothing, so a
|
|
155
|
+
* wrapper may hand it on every render — a NEW object each render is a new config each time.
|
|
156
|
+
*
|
|
157
|
+
* The messages stay. When the new config's conversation manager is another one, the open
|
|
158
|
+
* conversation is opened again from it if it holds that conversation; otherwise the chat
|
|
159
|
+
* keeps saving it to the manager it had, until it opens another one.
|
|
160
|
+
*
|
|
161
|
+
* Not in the middle of a turn: a reply half-drawn with one configuration's renderers and
|
|
162
|
+
* finished with another's is worse than a change that waits. The last config given
|
|
163
|
+
* during the turn is applied when the turn ends.
|
|
164
|
+
*/
|
|
165
|
+
setConfig(config: AparteConfig | undefined): void;
|
|
166
|
+
private _applyConfig;
|
|
167
|
+
/**
|
|
168
|
+
* Load / switch the active conversation via the controller. The same id again re-reads
|
|
169
|
+
* it from the manager: this is the imperative call, the one that means "open this now".
|
|
170
|
+
* A `conversationId` prop goes through {@link syncConversationId}.
|
|
171
|
+
*/
|
|
150
172
|
setConversationId(id: string | null): Promise<void>;
|
|
173
|
+
/**
|
|
174
|
+
* Follow a wrapper's `conversationId` prop: open `id`, unless it is the conversation this
|
|
175
|
+
* chat already shows or is creating.
|
|
176
|
+
*
|
|
177
|
+
* The documented pattern gives the created conversation back to the chat — the prop set
|
|
178
|
+
* from `onConversationCreated`, or bound to the manager's `activeId`, which names the new
|
|
179
|
+
* conversation before the creation even resolves. That id arrives while the first reply
|
|
180
|
+
* streams, and opening it then re-read a conversation the manager did not hold the reply
|
|
181
|
+
* of yet: the transcript was replaced under the stream. Compared with the controller, not
|
|
182
|
+
* with the last prop: the person opens other conversations from the list without the prop
|
|
183
|
+
* hearing of it.
|
|
184
|
+
*/
|
|
185
|
+
syncConversationId(id: string | null): Promise<void>;
|
|
186
|
+
/**
|
|
187
|
+
* The conversation this chat shows: the one it opened, or the one its first message is
|
|
188
|
+
* creating; `null` for a chat with none yet. Per chat, which the manager's single
|
|
189
|
+
* `activeId` cannot say once several chats share it.
|
|
190
|
+
*/
|
|
191
|
+
getConversationId(): string | null;
|
|
151
192
|
private _unbindController?;
|
|
152
193
|
private _createController;
|
|
153
194
|
/** Drop transient streaming state so a new conversation starts clean. */
|
|
@@ -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;AA+D/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,C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IAC1E,SAAS,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM;IAKpC,iEAAiE;IACjE,YAAY,CAAC,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,aAAa,GAAG,MAAM,GAAG,IAAI;IAK1E,wDAAwD;IACxD,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;IASrC,6EAA6E;IAC7E,sBAAsB,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI;IAWnD;;;;;;;;;;;OAWG;IACG,YAAY,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAwEnF;;;;OAIG;IACH,OAAO,CAAC,YAAY;IAQpB,oDAAoD;IACpD,eAAe,IAAI,IAAI;IAavB;;;;;OAKG;IACH,WAAW,IAAI,IAAI;IAenB;;;OAGG;IACH,oBAAoB,IAAI,IAAI;IAwC5B;;;;;;;;;;;;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;IA4B3B,OAAO,CAAC,0BAA0B;IAqDlC,OAAO,CAAC,yBAAyB;CAqCpC"}
|
package/dist/icons/extended.d.ts
CHANGED
|
@@ -42,6 +42,12 @@ export declare const moreVerticalIcon = "<svg class=\"aparte-icon\" viewBox=\"0
|
|
|
42
42
|
export declare const chevronLeftIcon = "<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>";
|
|
43
43
|
/** Next. Alias of the branch picker glyph — see chevronLeftIcon. */
|
|
44
44
|
export declare const chevronRightIcon = "<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>";
|
|
45
|
+
/** Down. Alias of the expand glyph, named by direction rather than state. */
|
|
46
|
+
export declare const chevronDownIcon = "<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>";
|
|
47
|
+
/** Up. Alias of the collapse glyph, named by direction rather than state. */
|
|
48
|
+
export declare const chevronUpIcon = "<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>";
|
|
49
|
+
/** Sidebar panel: toggles a desktop sidebar. */
|
|
50
|
+
export declare const panelLeftIcon = "<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\" y=\"3\" width=\"18\" height=\"18\" rx=\"2\"/><path d=\"M9 3v18\"/></svg>";
|
|
45
51
|
/** Send upward / move up */
|
|
46
52
|
export declare const arrowUpIcon = "<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 19.5v-15M5.5 11 12 4.5l6.5 6.5\"/></svg>";
|
|
47
53
|
/** Continue / go to */
|
|
@@ -115,6 +121,9 @@ export declare const APARTE_EXTENDED_ICON_GLYPHS: {
|
|
|
115
121
|
readonly moreVertical: "<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=\"5.5\" r=\"1.1\"/><circle cx=\"12\" cy=\"12\" r=\"1.1\"/><circle cx=\"12\" cy=\"18.5\" r=\"1.1\"/></svg>";
|
|
116
122
|
readonly chevronLeft: "<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>";
|
|
117
123
|
readonly chevronRight: "<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>";
|
|
124
|
+
readonly chevronDown: "<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>";
|
|
125
|
+
readonly chevronUp: "<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>";
|
|
126
|
+
readonly panelLeft: "<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\" y=\"3\" width=\"18\" height=\"18\" rx=\"2\"/><path d=\"M9 3v18\"/></svg>";
|
|
118
127
|
readonly arrowUp: "<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 19.5v-15M5.5 11 12 4.5l6.5 6.5\"/></svg>";
|
|
119
128
|
readonly arrowRight: "<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 12h15M13 5.5l6.5 6.5-6.5 6.5\"/></svg>";
|
|
120
129
|
readonly externalLink: "<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M11 4.5H6.5a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2V13\"/><path d=\"M14.5 4.5h5v5M19.5 4.5 11 13\"/></svg>";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extended.d.ts","sourceRoot":"","sources":["../../src/icons/extended.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"extended.d.ts","sourceRoot":"","sources":["../../src/icons/extended.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,EAAsE,SAAS,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAE/H,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/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V,CAAC;AAEnX,YAAY;AACZ,eAAO,MAAM,OAAO,oTAA8R,CAAC;AAEnT,aAAa;AACb,eAAO,MAAM,UAAU,wYAAoX,CAAC;AAE5Y,yBAAyB;AACzB,eAAO,MAAM,SAAS,2OAAqN,CAAC;AAE5O,yBAAyB;AACzB,eAAO,MAAM,WAAW,yPAAuO,CAAC;AAEhQ,gBAAgB;AAChB,eAAO,MAAM,QAAQ,0QAA0P,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2C9B,CAAC"}
|
package/dist/icons.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { m as messageSquareIcon, t as trashIcon, n as nextBranchIcon, p as prevBranchIcon, a as moreIcon } from "./glyphs-
|
|
2
|
-
import { A, b,
|
|
1
|
+
import { m as messageSquareIcon, t as trashIcon, c as collapseIcon, e as expandIcon, n as nextBranchIcon, p as prevBranchIcon, a as moreIcon } from "./glyphs-BgKFtByg.js";
|
|
2
|
+
import { A, b, d, f, g, h, i, j, k, l, o, q, r, s, u, v, w, x, y, z, B, C, D, E, F, G, H, I } from "./glyphs-BgKFtByg.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>`;
|
|
@@ -8,6 +8,9 @@ const moreHorizontalIcon = moreIcon;
|
|
|
8
8
|
const moreVerticalIcon = `<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="5.5" r="1.1"/><circle cx="12" cy="12" r="1.1"/><circle cx="12" cy="18.5" r="1.1"/></svg>`;
|
|
9
9
|
const chevronLeftIcon = prevBranchIcon;
|
|
10
10
|
const chevronRightIcon = nextBranchIcon;
|
|
11
|
+
const chevronDownIcon = expandIcon;
|
|
12
|
+
const chevronUpIcon = collapseIcon;
|
|
13
|
+
const panelLeftIcon = `<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" y="3" width="18" height="18" rx="2"/><path d="M9 3v18"/></svg>`;
|
|
11
14
|
const arrowUpIcon = `<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 19.5v-15M5.5 11 12 4.5l6.5 6.5"/></svg>`;
|
|
12
15
|
const arrowRightIcon = `<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 12h15M13 5.5l6.5 6.5-6.5 6.5"/></svg>`;
|
|
13
16
|
const externalLinkIcon = `<svg class="aparte-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M11 4.5H6.5a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2V13"/><path d="M14.5 4.5h5v5M19.5 4.5 11 13"/></svg>`;
|
|
@@ -46,6 +49,9 @@ const APARTE_EXTENDED_ICON_GLYPHS = {
|
|
|
46
49
|
moreVertical: moreVerticalIcon,
|
|
47
50
|
chevronLeft: chevronLeftIcon,
|
|
48
51
|
chevronRight: chevronRightIcon,
|
|
52
|
+
chevronDown: chevronDownIcon,
|
|
53
|
+
chevronUp: chevronUpIcon,
|
|
54
|
+
panelLeft: panelLeftIcon,
|
|
49
55
|
arrowUp: arrowUpIcon,
|
|
50
56
|
arrowRight: arrowRightIcon,
|
|
51
57
|
externalLink: externalLinkIcon,
|
|
@@ -82,26 +88,28 @@ export {
|
|
|
82
88
|
APARTE_EXTENDED_ICON_GLYPHS,
|
|
83
89
|
A as APARTE_ICON_GLYPHS,
|
|
84
90
|
b as alertTriangleIcon,
|
|
85
|
-
|
|
91
|
+
d as archiveIcon,
|
|
86
92
|
arrowRightIcon,
|
|
87
93
|
arrowUpIcon,
|
|
88
94
|
botIcon,
|
|
89
95
|
checkCircleIcon,
|
|
90
|
-
|
|
96
|
+
f as checkIcon,
|
|
97
|
+
chevronDownIcon,
|
|
91
98
|
chevronLeftIcon,
|
|
92
99
|
chevronRightIcon,
|
|
100
|
+
chevronUpIcon,
|
|
93
101
|
clipboardIcon,
|
|
94
102
|
clockIcon,
|
|
95
|
-
|
|
103
|
+
g as closeIcon,
|
|
96
104
|
codeIcon,
|
|
97
|
-
|
|
98
|
-
|
|
105
|
+
collapseIcon,
|
|
106
|
+
h as copyIcon,
|
|
99
107
|
cpuIcon,
|
|
100
108
|
databaseIcon,
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
109
|
+
i as downloadIcon,
|
|
110
|
+
j as editIcon,
|
|
111
|
+
k as errorIcon,
|
|
112
|
+
expandIcon,
|
|
105
113
|
externalLinkIcon,
|
|
106
114
|
eyeIcon,
|
|
107
115
|
eyeOffIcon,
|
|
@@ -127,6 +135,7 @@ export {
|
|
|
127
135
|
moreIcon,
|
|
128
136
|
moreVerticalIcon,
|
|
129
137
|
nextBranchIcon,
|
|
138
|
+
panelLeftIcon,
|
|
130
139
|
w as paperclipIcon,
|
|
131
140
|
x as pauseIcon,
|
|
132
141
|
y as pinIcon,
|
package/dist/icons.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icons.js","sources":["../src/icons/extended.ts"],"sourcesContent":["/**\n * The extended set — glyphs core itself never draws.\n *\n * SEPARATE ON PURPOSE, and the reason is mechanical rather than editorial.\n * `APARTE_DEFAULT_ICON_FALLBACKS` is read by a computed key (`getIcon(name)`), so a\n * bundler cannot tell which of its entries a build reaches and keeps the object whole.\n * Anything added there ships to every consumer, used or not. These are individual\n * exports behind their own entry point instead:\n *\n * import { searchIcon, trashIcon } from '@aparte/core/icons';\n *\n * Import three, pay for three. Nothing here is loaded by `@aparte/core` itself, so a\n * consumer who never opens this module pays nothing at all — the same lever as\n * `@aparte/plugin-shiki/core`: weight is controlled by an entry point, never by a flag.\n *\n * Drawn here, like `glyphs.ts`: a 24-unit grid, a 2-unit round-capped stroke,\n * `currentColor`, no size (the container declares `--aparte-icon-size`). The names are\n * the plain words for what each one shows — search, trash, folder — so a consumer can\n * find one without a legend. Nothing is imported from anywhere: core has no\n * dependencies, and the path data is ours.\n *\n * To wire one to a name core knows, pass it through an icon provider:\n *\n * aparteGlobalConfig.setIconProvider({ retry: () => historyIcon });\n */\n\nimport { prevBranchIcon, nextBranchIcon, moreIcon, trashIcon, messageSquareIcon } from './glyphs.js';\n\n/** Add */\nexport 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>`;\n\n/** Remove */\nexport 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>`;\n\n/** Search a list or a transcript */\nexport 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>`;\n\n/** Filter a list */\nexport const filterIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M3.5 4.5h17l-6.5 8v6.5l-4 2v-8.5Z\"/></svg>`;\n\n/** Overflow menu, in a row. The conversation list draws it, so the path lives in\n * `glyphs.ts` as `more` — this is the alias under its shape name, like the chevrons. */\nexport const moreHorizontalIcon = moreIcon;\n\n/** Overflow menu, in a column */\nexport const moreVerticalIcon = `<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=\"5.5\" r=\"1.1\"/><circle cx=\"12\" cy=\"12\" r=\"1.1\"/><circle cx=\"12\" cy=\"18.5\" r=\"1.1\"/></svg>`;\n\n/** Previous. The same drawing the branch picker uses, under its shape name rather\n * than its role name — an alias, so the path ships once. */\nexport const chevronLeftIcon = prevBranchIcon;\n\n/** Next. Alias of the branch picker glyph — see chevronLeftIcon. */\nexport const chevronRightIcon = nextBranchIcon;\n\n/** Send upward / move up */\nexport const arrowUpIcon = `<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 19.5v-15M5.5 11 12 4.5l6.5 6.5\"/></svg>`;\n\n/** Continue / go to */\nexport const arrowRightIcon = `<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 12h15M13 5.5l6.5 6.5-6.5 6.5\"/></svg>`;\n\n/** Opens outside the app */\nexport const externalLinkIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M11 4.5H6.5a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2V13\"/><path d=\"M14.5 4.5h5v5M19.5 4.5 11 13\"/></svg>`;\n\n/** A hyperlink */\nexport const linkIcon = `<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.5 13.5a4 4 0 0 0 5.66 0l2.83-2.83a4 4 0 0 0-5.66-5.66L12 6.34\"/><path d=\"M13.5 10.5a4 4 0 0 0-5.66 0l-2.83 2.83a4 4 0 0 0 5.66 5.66L12 17.66\"/></svg>`;\n\n/** A directory */\nexport const folderIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M3.5 7.5a2 2 0 0 1 2-2h4.2l2 2h7.8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-14a2 2 0 0 1-2-2Z\"/></svg>`;\n\n/** Source code */\nexport const codeIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"m15.5 7.5 4.5 4.5-4.5 4.5M8.5 7.5 4 12l4.5 4.5\"/></svg>`;\n\n/** Paste / a clipboard */\nexport const clipboardIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"5\" y=\"4.5\" width=\"14\" height=\"16\" rx=\"2.5\"/><path d=\"M9 4.5V4a1.5 1.5 0 0 1 1.5-1.5h3A1.5 1.5 0 0 1 15 4v.5M9 11h6M9 15h4\"/></svg>`;\n\n/** Delete for good */\n/* `trashIcon` moved to `glyphs.ts` when the conversation list's menu started drawing\n it; it is re-exported below so `import { trashIcon } from '@aparte/core/icons'` holds. */\nexport { trashIcon };\n\n/** Save to disk */\nexport const saveIcon = `<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 4.5h11l3.5 3.5v11a1.5 1.5 0 0 1-1.5 1.5H5a1.5 1.5 0 0 1-1.5-1.5V6A1.5 1.5 0 0 1 5 4.5Z\"/><path d=\"M8 20.5v-6h8v6M8 4.5v4h5\"/></svg>`;\n\n/** Send a file up */\nexport const uploadIcon = `<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 15.5v3a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2v-3\"/><path d=\"M12 15V4M7.5 8.5 12 4l4.5 4.5\"/></svg>`;\n\n/** Preferences */\nexport const settingsIcon = `<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\"/><circle cx=\"12\" cy=\"12\" r=\"7\"/><path d=\"M12 2.5V5M12 19v2.5M2.5 12H5M19 12h2.5M5.3 5.3l1.8 1.8M16.9 16.9l1.8 1.8M5.3 18.7l1.8-1.8M16.9 7.1l1.8-1.8\"/></svg>`;\n\n/** A person */\nexport const userIcon = `<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=\"8\" r=\"3.5\"/><path d=\"M5 20.5a7 7 0 0 1 14 0\"/></svg>`;\n\n/** The assistant */\nexport const botIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"4\" y=\"8.5\" width=\"16\" height=\"11\" rx=\"3\"/><path d=\"M12 8.5V5.5M8.5 13.5V15M15.5 13.5V15\"/><circle cx=\"12\" cy=\"4.5\" r=\"1\"/></svg>`;\n\n/** Generated by a model */\nexport const sparklesIcon = `<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.5c.6 4.6 3.4 7.4 8 8-4.6.6-7.4 3.4-8 8-.6-4.6-3.4-7.4-8-8 4.6-.6 7.4-3.4 8-8Z\"/><path d=\"M19 16.5c.25 1.6 1.15 2.5 2.75 2.75-1.6.25-2.5 1.15-2.75 2.75-.25-1.6-1.15-2.5-2.75-2.75 1.6-.25 2.5-1.15 2.75-2.75Z\"/></svg>`;\n\n/** Local / on-device compute */\nexport const cpuIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"5\" y=\"5\" width=\"14\" height=\"14\" rx=\"2.5\"/><rect x=\"9.5\" y=\"9.5\" width=\"5\" height=\"5\" rx=\"1\"/><path d=\"M9 2.5V5M15 2.5V5M9 19v2.5M15 19v2.5M2.5 9H5M2.5 15H5M19 9h2.5M19 15h2.5\"/></svg>`;\n\n/** A store */\nexport const databaseIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><ellipse cx=\"12\" cy=\"6\" rx=\"7.5\" ry=\"3\"/><path d=\"M4.5 6v12c0 1.66 3.36 3 7.5 3s7.5-1.34 7.5-3V6\"/><path d=\"M4.5 12c0 1.66 3.36 3 7.5 3s7.5-1.34 7.5-3\"/></svg>`;\n\n/** Remote / the network */\nexport const globeIcon = `<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=\"M3 12h18M12 3a13 13 0 0 1 0 18a13 13 0 0 1 0-18\"/></svg>`;\n\n/** A credential */\nexport const keyIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"8\" cy=\"15\" r=\"4\"/><path d=\"M10.8 12.2 20 3M17 6l2.5 2.5M14.5 8.5l2 2\"/></svg>`;\n\n/** Speak */\nexport const micIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"9\" y=\"3\" width=\"6\" height=\"11\" rx=\"3\"/><path d=\"M5.5 11.5a6.5 6.5 0 0 0 13 0M12 18v3.5M9 21.5h6\"/></svg>`;\n\n/** Muted */\nexport const micOffIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M15 10.5V6a3 3 0 0 0-5.7-1.3\"/><path d=\"M9 9.5V11a3 3 0 0 0 4.9 2.3\"/><path d=\"M5.5 11.5a6.5 6.5 0 0 0 10.2 5.3M18.5 11.5a6.4 6.4 0 0 1-.3 2\"/><path d=\"M12 18v3.5M9 21.5h6M4 4l16 16\"/></svg>`;\n\n/** Shown */\nexport const eyeIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M2.5 12c2.2-4.2 5.4-6.5 9.5-6.5s7.3 2.3 9.5 6.5c-2.2 4.2-5.4 6.5-9.5 6.5S4.7 16.2 2.5 12Z\"/><circle cx=\"12\" cy=\"12\" r=\"3\"/></svg>`;\n\n/** Hidden */\nexport const eyeOffIcon = `<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 6.1A9.6 9.6 0 0 1 12 5.5c4.1 0 7.3 2.3 9.5 6.5a15.7 15.7 0 0 1-2.7 3.6\"/><path d=\"M6.3 7.7A14 14 0 0 0 2.5 12c2.2 4.2 5.4 6.5 9.5 6.5a9.6 9.6 0 0 0 3.4-.6\"/><path d=\"M9.9 9.9a3 3 0 0 0 4.2 4.2M4 4l16 16\"/></svg>`;\n\n/** Duration / pending */\nexport const clockIcon = `<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=\"M12 7.5V12l3.5 2\"/></svg>`;\n\n/** Past conversations */\nexport const historyIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M3.5 12a8.5 8.5 0 1 0 2.5-6\"/><path d=\"M3.5 4v5h5M12 7.5V12l3 1.8\"/></svg>`;\n\n/** Favourite */\nexport const starIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><polygon points=\"12 3 14.5 9.1 21 9.6 16 13.8 17.6 20.2 12 16.7 6.4 20.2 8 13.8 3 9.6 9.5 9.1\"/></svg>`;\n\n/** Send elsewhere */\nexport 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>`;\n\n/** Done, emphatically */\nexport 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>`;\n\n/** Failed, emphatically */\nexport 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>`;\n\n/** A conversation */\n/* `messageSquareIcon` moved to `glyphs.ts` when `<aparte-launcher>` started drawing it;\n it is re-exported below so `import { messageSquareIcon } from '@aparte/core/icons'` holds. */\nexport { messageSquareIcon };\n\n/** Light theme */\nexport 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>`;\n\n/** Dark theme */\nexport 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>`;\n\n/** Every extended glyph, by name. Importing this object defeats tree-shaking:\n * it is here for a gallery or a picker, not for drawing one icon. */\nexport const APARTE_EXTENDED_ICON_GLYPHS = {\n plus: plusIcon,\n minus: minusIcon,\n search: searchIcon,\n filter: filterIcon,\n moreHorizontal: moreHorizontalIcon,\n moreVertical: moreVerticalIcon,\n chevronLeft: chevronLeftIcon,\n chevronRight: chevronRightIcon,\n arrowUp: arrowUpIcon,\n arrowRight: arrowRightIcon,\n externalLink: externalLinkIcon,\n link: linkIcon,\n folder: folderIcon,\n code: codeIcon,\n clipboard: clipboardIcon,\n trash: trashIcon,\n save: saveIcon,\n upload: uploadIcon,\n settings: settingsIcon,\n user: userIcon,\n bot: botIcon,\n sparkles: sparklesIcon,\n cpu: cpuIcon,\n database: databaseIcon,\n globe: globeIcon,\n key: keyIcon,\n mic: micIcon,\n micOff: micOffIcon,\n eye: eyeIcon,\n eyeOff: eyeOffIcon,\n clock: clockIcon,\n history: historyIcon,\n star: starIcon,\n share: shareIcon,\n checkCircle: checkCircleIcon,\n xCircle: xCircleIcon,\n messageSquare: messageSquareIcon,\n sun: sunIcon,\n moon: moonIcon,\n} as const;\n"],"names":[],"mappings":";;AA6BO,MAAM,WAAW;AAGjB,MAAM,YAAY;AAGlB,MAAM,aAAa;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AA,EACP,SAAS;AAAA,EACT,MAAM;AAAA,EACN,OAAO;AAAA,EACP,aAAa;AAAA,EACb,SAAS;AAAA,EACT,eAAe;AAAA,EACf,KAAK;AAAA,EACL,MAAM;AACV;"}
|
|
1
|
+
{"version":3,"file":"icons.js","sources":["../src/icons/extended.ts"],"sourcesContent":["/**\n * The extended set — glyphs core itself never draws.\n *\n * SEPARATE ON PURPOSE, and the reason is mechanical rather than editorial.\n * `APARTE_DEFAULT_ICON_FALLBACKS` is read by a computed key (`getIcon(name)`), so a\n * bundler cannot tell which of its entries a build reaches and keeps the object whole.\n * Anything added there ships to every consumer, used or not. These are individual\n * exports behind their own entry point instead:\n *\n * import { searchIcon, trashIcon } from '@aparte/core/icons';\n *\n * Import three, pay for three. Nothing here is loaded by `@aparte/core` itself, so a\n * consumer who never opens this module pays nothing at all — the same lever as\n * `@aparte/plugin-shiki/core`: weight is controlled by an entry point, never by a flag.\n *\n * Drawn here, like `glyphs.ts`: a 24-unit grid, a 2-unit round-capped stroke,\n * `currentColor`, no size (the container declares `--aparte-icon-size`). The names are\n * the plain words for what each one shows — search, trash, folder — so a consumer can\n * find one without a legend. Nothing is imported from anywhere: core has no\n * dependencies, and the path data is ours.\n *\n * To wire one to a name core knows, pass it through an icon provider:\n *\n * aparteGlobalConfig.setIconProvider({ retry: () => historyIcon });\n */\n\nimport { prevBranchIcon, nextBranchIcon, expandIcon, collapseIcon, moreIcon, trashIcon, messageSquareIcon } from './glyphs.js';\n\n/** Add */\nexport 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>`;\n\n/** Remove */\nexport 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>`;\n\n/** Search a list or a transcript */\nexport 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>`;\n\n/** Filter a list */\nexport const filterIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M3.5 4.5h17l-6.5 8v6.5l-4 2v-8.5Z\"/></svg>`;\n\n/** Overflow menu, in a row. The conversation list draws it, so the path lives in\n * `glyphs.ts` as `more` — this is the alias under its shape name, like the chevrons. */\nexport const moreHorizontalIcon = moreIcon;\n\n/** Overflow menu, in a column */\nexport const moreVerticalIcon = `<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=\"5.5\" r=\"1.1\"/><circle cx=\"12\" cy=\"12\" r=\"1.1\"/><circle cx=\"12\" cy=\"18.5\" r=\"1.1\"/></svg>`;\n\n/** Previous. The same drawing the branch picker uses, under its shape name rather\n * than its role name — an alias, so the path ships once. */\nexport const chevronLeftIcon = prevBranchIcon;\n\n/** Next. Alias of the branch picker glyph — see chevronLeftIcon. */\nexport const chevronRightIcon = nextBranchIcon;\n\n/** Down. Alias of the expand glyph, named by direction rather than state. */\nexport const chevronDownIcon = expandIcon;\n\n/** Up. Alias of the collapse glyph, named by direction rather than state. */\nexport const chevronUpIcon = collapseIcon;\n\n/** Sidebar panel: toggles a desktop sidebar. */\nexport const panelLeftIcon = `<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\" y=\"3\" width=\"18\" height=\"18\" rx=\"2\"/><path d=\"M9 3v18\"/></svg>`;\n\n/** Send upward / move up */\nexport const arrowUpIcon = `<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 19.5v-15M5.5 11 12 4.5l6.5 6.5\"/></svg>`;\n\n/** Continue / go to */\nexport const arrowRightIcon = `<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 12h15M13 5.5l6.5 6.5-6.5 6.5\"/></svg>`;\n\n/** Opens outside the app */\nexport const externalLinkIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M11 4.5H6.5a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2V13\"/><path d=\"M14.5 4.5h5v5M19.5 4.5 11 13\"/></svg>`;\n\n/** A hyperlink */\nexport const linkIcon = `<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.5 13.5a4 4 0 0 0 5.66 0l2.83-2.83a4 4 0 0 0-5.66-5.66L12 6.34\"/><path d=\"M13.5 10.5a4 4 0 0 0-5.66 0l-2.83 2.83a4 4 0 0 0 5.66 5.66L12 17.66\"/></svg>`;\n\n/** A directory */\nexport const folderIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M3.5 7.5a2 2 0 0 1 2-2h4.2l2 2h7.8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-14a2 2 0 0 1-2-2Z\"/></svg>`;\n\n/** Source code */\nexport const codeIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"m15.5 7.5 4.5 4.5-4.5 4.5M8.5 7.5 4 12l4.5 4.5\"/></svg>`;\n\n/** Paste / a clipboard */\nexport const clipboardIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"5\" y=\"4.5\" width=\"14\" height=\"16\" rx=\"2.5\"/><path d=\"M9 4.5V4a1.5 1.5 0 0 1 1.5-1.5h3A1.5 1.5 0 0 1 15 4v.5M9 11h6M9 15h4\"/></svg>`;\n\n/** Delete for good */\n/* `trashIcon` moved to `glyphs.ts` when the conversation list's menu started drawing\n it; it is re-exported below so `import { trashIcon } from '@aparte/core/icons'` holds. */\nexport { trashIcon };\n\n/** Save to disk */\nexport const saveIcon = `<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 4.5h11l3.5 3.5v11a1.5 1.5 0 0 1-1.5 1.5H5a1.5 1.5 0 0 1-1.5-1.5V6A1.5 1.5 0 0 1 5 4.5Z\"/><path d=\"M8 20.5v-6h8v6M8 4.5v4h5\"/></svg>`;\n\n/** Send a file up */\nexport const uploadIcon = `<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 15.5v3a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2v-3\"/><path d=\"M12 15V4M7.5 8.5 12 4l4.5 4.5\"/></svg>`;\n\n/** Preferences */\nexport const settingsIcon = `<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\"/><circle cx=\"12\" cy=\"12\" r=\"7\"/><path d=\"M12 2.5V5M12 19v2.5M2.5 12H5M19 12h2.5M5.3 5.3l1.8 1.8M16.9 16.9l1.8 1.8M5.3 18.7l1.8-1.8M16.9 7.1l1.8-1.8\"/></svg>`;\n\n/** A person */\nexport const userIcon = `<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=\"8\" r=\"3.5\"/><path d=\"M5 20.5a7 7 0 0 1 14 0\"/></svg>`;\n\n/** The assistant */\nexport const botIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"4\" y=\"8.5\" width=\"16\" height=\"11\" rx=\"3\"/><path d=\"M12 8.5V5.5M8.5 13.5V15M15.5 13.5V15\"/><circle cx=\"12\" cy=\"4.5\" r=\"1\"/></svg>`;\n\n/** Generated by a model */\nexport const sparklesIcon = `<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.5c.6 4.6 3.4 7.4 8 8-4.6.6-7.4 3.4-8 8-.6-4.6-3.4-7.4-8-8 4.6-.6 7.4-3.4 8-8Z\"/><path d=\"M19 16.5c.25 1.6 1.15 2.5 2.75 2.75-1.6.25-2.5 1.15-2.75 2.75-.25-1.6-1.15-2.5-2.75-2.75 1.6-.25 2.5-1.15 2.75-2.75Z\"/></svg>`;\n\n/** Local / on-device compute */\nexport const cpuIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"5\" y=\"5\" width=\"14\" height=\"14\" rx=\"2.5\"/><rect x=\"9.5\" y=\"9.5\" width=\"5\" height=\"5\" rx=\"1\"/><path d=\"M9 2.5V5M15 2.5V5M9 19v2.5M15 19v2.5M2.5 9H5M2.5 15H5M19 9h2.5M19 15h2.5\"/></svg>`;\n\n/** A store */\nexport const databaseIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><ellipse cx=\"12\" cy=\"6\" rx=\"7.5\" ry=\"3\"/><path d=\"M4.5 6v12c0 1.66 3.36 3 7.5 3s7.5-1.34 7.5-3V6\"/><path d=\"M4.5 12c0 1.66 3.36 3 7.5 3s7.5-1.34 7.5-3\"/></svg>`;\n\n/** Remote / the network */\nexport const globeIcon = `<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=\"M3 12h18M12 3a13 13 0 0 1 0 18a13 13 0 0 1 0-18\"/></svg>`;\n\n/** A credential */\nexport const keyIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"8\" cy=\"15\" r=\"4\"/><path d=\"M10.8 12.2 20 3M17 6l2.5 2.5M14.5 8.5l2 2\"/></svg>`;\n\n/** Speak */\nexport const micIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"9\" y=\"3\" width=\"6\" height=\"11\" rx=\"3\"/><path d=\"M5.5 11.5a6.5 6.5 0 0 0 13 0M12 18v3.5M9 21.5h6\"/></svg>`;\n\n/** Muted */\nexport const micOffIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M15 10.5V6a3 3 0 0 0-5.7-1.3\"/><path d=\"M9 9.5V11a3 3 0 0 0 4.9 2.3\"/><path d=\"M5.5 11.5a6.5 6.5 0 0 0 10.2 5.3M18.5 11.5a6.4 6.4 0 0 1-.3 2\"/><path d=\"M12 18v3.5M9 21.5h6M4 4l16 16\"/></svg>`;\n\n/** Shown */\nexport const eyeIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M2.5 12c2.2-4.2 5.4-6.5 9.5-6.5s7.3 2.3 9.5 6.5c-2.2 4.2-5.4 6.5-9.5 6.5S4.7 16.2 2.5 12Z\"/><circle cx=\"12\" cy=\"12\" r=\"3\"/></svg>`;\n\n/** Hidden */\nexport const eyeOffIcon = `<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 6.1A9.6 9.6 0 0 1 12 5.5c4.1 0 7.3 2.3 9.5 6.5a15.7 15.7 0 0 1-2.7 3.6\"/><path d=\"M6.3 7.7A14 14 0 0 0 2.5 12c2.2 4.2 5.4 6.5 9.5 6.5a9.6 9.6 0 0 0 3.4-.6\"/><path d=\"M9.9 9.9a3 3 0 0 0 4.2 4.2M4 4l16 16\"/></svg>`;\n\n/** Duration / pending */\nexport const clockIcon = `<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=\"M12 7.5V12l3.5 2\"/></svg>`;\n\n/** Past conversations */\nexport const historyIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M3.5 12a8.5 8.5 0 1 0 2.5-6\"/><path d=\"M3.5 4v5h5M12 7.5V12l3 1.8\"/></svg>`;\n\n/** Favourite */\nexport const starIcon = `<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><polygon points=\"12 3 14.5 9.1 21 9.6 16 13.8 17.6 20.2 12 16.7 6.4 20.2 8 13.8 3 9.6 9.5 9.1\"/></svg>`;\n\n/** Send elsewhere */\nexport 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>`;\n\n/** Done, emphatically */\nexport 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>`;\n\n/** Failed, emphatically */\nexport 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>`;\n\n/** A conversation */\n/* `messageSquareIcon` moved to `glyphs.ts` when `<aparte-launcher>` started drawing it;\n it is re-exported below so `import { messageSquareIcon } from '@aparte/core/icons'` holds. */\nexport { messageSquareIcon };\n\n/** Light theme */\nexport 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>`;\n\n/** Dark theme */\nexport 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>`;\n\n/** Every extended glyph, by name. Importing this object defeats tree-shaking:\n * it is here for a gallery or a picker, not for drawing one icon. */\nexport const APARTE_EXTENDED_ICON_GLYPHS = {\n plus: plusIcon,\n minus: minusIcon,\n search: searchIcon,\n filter: filterIcon,\n moreHorizontal: moreHorizontalIcon,\n moreVertical: moreVerticalIcon,\n chevronLeft: chevronLeftIcon,\n chevronRight: chevronRightIcon,\n chevronDown: chevronDownIcon,\n chevronUp: chevronUpIcon,\n panelLeft: panelLeftIcon,\n arrowUp: arrowUpIcon,\n arrowRight: arrowRightIcon,\n externalLink: externalLinkIcon,\n link: linkIcon,\n folder: folderIcon,\n code: codeIcon,\n clipboard: clipboardIcon,\n trash: trashIcon,\n save: saveIcon,\n upload: uploadIcon,\n settings: settingsIcon,\n user: userIcon,\n bot: botIcon,\n sparkles: sparklesIcon,\n cpu: cpuIcon,\n database: databaseIcon,\n globe: globeIcon,\n key: keyIcon,\n mic: micIcon,\n micOff: micOffIcon,\n eye: eyeIcon,\n eyeOff: eyeOffIcon,\n clock: clockIcon,\n history: historyIcon,\n star: starIcon,\n share: shareIcon,\n checkCircle: checkCircleIcon,\n xCircle: xCircleIcon,\n messageSquare: messageSquareIcon,\n sun: sunIcon,\n moon: moonIcon,\n} as const;\n"],"names":[],"mappings":";;AA6BO,MAAM,WAAW;AAGjB,MAAM,YAAY;AAGlB,MAAM,aAAa;AAGnB,MAAM,aAAa;AAInB,MAAM,qBAAqB;AAG3B,MAAM,mBAAmB;AAIzB,MAAM,kBAAkB;AAGxB,MAAM,mBAAmB;AAGzB,MAAM,kBAAkB;AAGxB,MAAM,gBAAgB;AAGtB,MAAM,gBAAgB;AAGtB,MAAM,cAAc;AAGpB,MAAM,iBAAiB;AAGvB,MAAM,mBAAmB;AAGzB,MAAM,WAAW;AAGjB,MAAM,aAAa;AAGnB,MAAM,WAAW;AAGjB,MAAM,gBAAgB;AAQtB,MAAM,WAAW;AAGjB,MAAM,aAAa;AAGnB,MAAM,eAAe;AAGrB,MAAM,WAAW;AAGjB,MAAM,UAAU;AAGhB,MAAM,eAAe;AAGrB,MAAM,UAAU;AAGhB,MAAM,eAAe;AAGrB,MAAM,YAAY;AAGlB,MAAM,UAAU;AAGhB,MAAM,UAAU;AAGhB,MAAM,aAAa;AAGnB,MAAM,UAAU;AAGhB,MAAM,aAAa;AAGnB,MAAM,YAAY;AAGlB,MAAM,cAAc;AAGpB,MAAM,WAAW;AAGjB,MAAM,YAAY;AAGlB,MAAM,kBAAkB;AAGxB,MAAM,cAAc;AAQpB,MAAM,UAAU;AAGhB,MAAM,WAAW;AAIjB,MAAM,8BAA8B;AAAA,EACvC,MAAM;AAAA,EACN,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,gBAAgB;AAAA,EAChB,cAAc;AAAA,EACd,aAAa;AAAA,EACb,cAAc;AAAA,EACd,aAAa;AAAA,EACb,WAAW;AAAA,EACX,WAAW;AAAA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