@helpai/elements 0.12.0 → 0.12.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/configurator.mjs +7 -18
- package/elements-web-component.esm.js +26 -26
- package/elements-web-component.esm.js.map +3 -3
- package/elements.cjs.js +21 -21
- package/elements.cjs.js.map +3 -3
- package/elements.esm.js +21 -21
- package/elements.esm.js.map +3 -3
- package/elements.js +27 -27
- package/elements.js.map +3 -3
- package/index.d.ts +18 -22
- package/index.mjs +41 -40
- package/package.json +1 -1
- package/schema.d.ts +22 -47
- package/schema.json +84 -234
- package/schema.mjs +7 -18
- package/style.css +1 -1
- package/web-component.mjs +43 -51
package/configurator.mjs
CHANGED
|
@@ -250,30 +250,19 @@ var actionNameSchema = z8.enum([
|
|
|
250
250
|
"theme",
|
|
251
251
|
"close"
|
|
252
252
|
]);
|
|
253
|
-
var headerActionsSchema = z8.
|
|
254
|
-
|
|
255
|
-
"Actions rendered as icon buttons in the panel's top bar (left-to-right). Always visible. Order is preserved. Pick from: `clear`, `expand`, `fullscreen`, `popOut`, `sound`, `history`, `language`, `theme`, `close`. Anything not listed in `main` or `overflow` is hidden."
|
|
256
|
-
).meta({
|
|
257
|
-
examples: [["theme", "history", "close"], ["language", "theme", "close"], ["close"]]
|
|
258
|
-
}),
|
|
259
|
-
overflow: z8.array(actionNameSchema).max(8).default([]).describe(
|
|
260
|
-
"Actions tucked under the 3-dot \u22EF menu (icon + label rows). Same list of ids as `main`. Promote items to `main` to make them always-visible icons; demote them back here to hide them behind the menu."
|
|
261
|
-
).meta({
|
|
262
|
-
examples: [["clear", "expand", "fullscreen", "popOut", "sound", "language"], ["clear", "popOut", "sound"], []]
|
|
263
|
-
})
|
|
264
|
-
}).loose().describe(
|
|
265
|
-
"Which actions appear in the panel header and where. `main` = always-visible icon buttons; `overflow` = items under the \u22EF menu. Anything not listed is hidden. Per-mode defaults live in `DEFAULT_ACTIONS_BY_MODE`."
|
|
253
|
+
var headerActionsSchema = z8.array(actionNameSchema).max(9).describe(
|
|
254
|
+
"Which actions the header exposes. `history` + `close` are dedicated buttons; the rest appear in the \u22EF menu. Unlisted actions are hidden; order is irrelevant. Pick from: `clear`, `expand`, `fullscreen`, `popOut`, `sound`, `history`, `language`, `theme`, `close`. Per-mode defaults live in `DEFAULT_ACTIONS_BY_MODE`."
|
|
266
255
|
).meta({
|
|
267
256
|
examples: [
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
257
|
+
["theme", "history", "close", "clear", "fullscreen", "popOut", "sound", "language"],
|
|
258
|
+
["theme", "history", "clear", "language"],
|
|
259
|
+
["close"]
|
|
271
260
|
]
|
|
272
261
|
});
|
|
273
262
|
var headerSchema = z8.object({
|
|
274
|
-
actions: headerActionsSchema.optional().describe("
|
|
263
|
+
actions: headerActionsSchema.optional().describe("Which header actions are enabled (history/\u2715 buttons + \u22EF menu).")
|
|
275
264
|
}).loose().describe("Panel-header configuration.").meta({
|
|
276
|
-
examples: [{ actions:
|
|
265
|
+
examples: [{ actions: ["theme", "history", "close", "clear", "fullscreen"] }]
|
|
277
266
|
});
|
|
278
267
|
|
|
279
268
|
// src/schema/widget/feedback.ts
|