@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.
@@ -1971,14 +1971,15 @@ class ToolTable {
1971
1971
  }
1972
1972
  }
1973
1973
  const APARTE_DEFAULT_BUBBLE_ACTIONS = {
1974
- copy: true,
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}: `copy`
2178
- * only, because every other button needs a host to honor it.
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-DSZE-bKi.js.map
9345
+ //# sourceMappingURL=defer-hydration-CcKxPqNM.js.map