@aparte/core 0.27.0 → 0.27.2
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/components/bubble/aparte-chat-bubble.d.ts +3 -1
- package/dist/components/bubble/aparte-chat-bubble.d.ts.map +1 -1
- package/dist/config/aparte-config.d.ts +14 -12
- package/dist/config/aparte-config.d.ts.map +1 -1
- package/dist/custom-elements.json +15689 -15670
- package/dist/{defer-hydration-DSZE-bKi.js → defer-hydration-CcKxPqNM.js} +10 -8
- package/dist/defer-hydration-CcKxPqNM.js.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.js +17 -10
- package/dist/index.js.map +1 -1
- package/dist/index.node.js +1 -1
- package/dist/types/events.d.ts +7 -4
- package/dist/types/events.d.ts.map +1 -1
- package/dist/types/models.d.ts +15 -5
- package/dist/types/models.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/defer-hydration-DSZE-bKi.js.map +0 -1
|
@@ -1971,14 +1971,15 @@ class ToolTable {
|
|
|
1971
1971
|
}
|
|
1972
1972
|
}
|
|
1973
1973
|
const APARTE_DEFAULT_BUBBLE_ACTIONS = {
|
|
1974
|
-
copy:
|
|
1974
|
+
copy: false,
|
|
1975
1975
|
retry: false,
|
|
1976
1976
|
edit: false,
|
|
1977
1977
|
feedback: false,
|
|
1978
1978
|
info: false
|
|
1979
1979
|
};
|
|
1980
1980
|
const APARTE_DEFAULT_HOST_HANDLERS = {
|
|
1981
|
-
attachmentPreview: false
|
|
1981
|
+
attachmentPreview: false,
|
|
1982
|
+
filePreview: false
|
|
1982
1983
|
};
|
|
1983
1984
|
const NOOP = () => {
|
|
1984
1985
|
};
|
|
@@ -2174,13 +2175,13 @@ class AparteConfig {
|
|
|
2174
2175
|
}
|
|
2175
2176
|
/**
|
|
2176
2177
|
* Configure which action buttons appear in message bubbles.
|
|
2177
|
-
* Unset keys keep their defaults — see {@link APARTE_DEFAULT_BUBBLE_ACTIONS}:
|
|
2178
|
-
*
|
|
2178
|
+
* Unset keys keep their defaults — see {@link APARTE_DEFAULT_BUBBLE_ACTIONS}: none, so
|
|
2179
|
+
* a message carries no button until you turn one on.
|
|
2179
2180
|
*
|
|
2180
2181
|
* @example
|
|
2182
|
+
* aparteGlobalConfig.setBubbleActions({ copy: true }) // core copies on its own
|
|
2181
2183
|
* aparteGlobalConfig.setBubbleActions({ retry: true, edit: true }) // you run AparteClient
|
|
2182
|
-
* aparteGlobalConfig.setBubbleActions({ feedback: true }) // you listen for aparte-feedback
|
|
2183
|
-
* aparteGlobalConfig.setBubbleActions({ copy: false }) // hides copy; calls merge, so anything turned on above stays on
|
|
2184
|
+
* aparteGlobalConfig.setBubbleActions({ feedback: true }) // you listen for aparte-feedback; calls merge, so copy stays on
|
|
2184
2185
|
* // Explicit per-role ordered sets (replace the flag defaults for that role):
|
|
2185
2186
|
* aparteGlobalConfig.setBubbleActions({ user: ['edit', 'copy'], assistant: ['copy', 'thumbUp', 'thumbDown', 'retry'] })
|
|
2186
2187
|
*/
|
|
@@ -2207,7 +2208,8 @@ class AparteConfig {
|
|
|
2207
2208
|
// forgotten here.
|
|
2208
2209
|
getHostHandlers() {
|
|
2209
2210
|
return {
|
|
2210
|
-
attachmentPreview: this._hostHandlers.attachmentPreview ?? APARTE_DEFAULT_HOST_HANDLERS.attachmentPreview
|
|
2211
|
+
attachmentPreview: this._hostHandlers.attachmentPreview ?? APARTE_DEFAULT_HOST_HANDLERS.attachmentPreview,
|
|
2212
|
+
filePreview: this._hostHandlers.filePreview ?? APARTE_DEFAULT_HOST_HANDLERS.filePreview
|
|
2211
2213
|
};
|
|
2212
2214
|
}
|
|
2213
2215
|
/** Returns the resolved bubble actions config (flag defaults applied; per-role sets passed through). */
|
|
@@ -9340,4 +9342,4 @@ export {
|
|
|
9340
9342
|
collectRendererStyles as y,
|
|
9341
9343
|
contentToText as z
|
|
9342
9344
|
};
|
|
9343
|
-
//# sourceMappingURL=defer-hydration-
|
|
9345
|
+
//# sourceMappingURL=defer-hydration-CcKxPqNM.js.map
|