@helpai/elements 0.56.1 → 0.56.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/package.json CHANGED
@@ -80,5 +80,5 @@
80
80
  ],
81
81
  "type": "module",
82
82
  "types": "./index.d.ts",
83
- "version": "0.56.1"
83
+ "version": "0.56.2"
84
84
  }
package/schema.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { A as Asset, B as BlocksConfig, C as ConnectionConfig, a as ConnectionConfigPartial, E as Endpoints, H as HandshakeResponse, L as Link, P as PAGE_AREA_SUGGESTIONS, f as PageContext, S as ServerConfig, b as SiteConfig, U as UserContext, W as WidgetConfig, c as WidgetConfigPartial, d as WidgetSettings, e as WidgetSettingsPartial, g as assetSchema, h as blocksConfigSchema, i as connectionConfigPartialSchema, j as connectionConfigSchema, k as cssColorSchema, l as cssLengthSchema, m as endpointsSchema, n as handshakeResponseSchema, o as linkSchema, p as localeSchema, q as pageContextSchema, s as serverConfigSchema, r as siteConfigSchema, u as userContextSchema, t as uuid7Schema, w as widgetConfigPartialSchema, v as widgetConfigSchema, x as widgetSettingsPartialSchema, y as widgetSettingsSchema } from './deployment-ChnfF0YP.js';
1
+ export { A as Asset, B as BlocksConfig, C as ConnectionConfig, a as ConnectionConfigPartial, E as Endpoints, H as HandshakeResponse, L as Link, P as PAGE_AREA_SUGGESTIONS, f as PageContext, S as ServerConfig, b as SiteConfig, U as UserContext, W as WidgetConfig, c as WidgetConfigPartial, d as WidgetSettings, e as WidgetSettingsPartial, g as assetSchema, h as blocksConfigSchema, i as connectionConfigPartialSchema, j as connectionConfigSchema, k as cssColorSchema, l as cssLengthSchema, m as endpointsSchema, n as handshakeResponseSchema, o as linkSchema, p as localeSchema, q as pageContextSchema, s as serverConfigSchema, r as siteConfigSchema, u as userContextSchema, t as uuid7Schema, w as widgetConfigPartialSchema, v as widgetConfigSchema, x as widgetSettingsPartialSchema, y as widgetSettingsSchema } from './deployment-Daefe1g1.js';
2
2
  import { z } from 'zod';
3
3
 
4
4
  /**
@@ -56,9 +56,9 @@ declare const presentationSchema: z.ZodObject<{
56
56
  inset: z.ZodOptional<z.ZodString>;
57
57
  initialSize: z.ZodDefault<z.ZodEnum<{
58
58
  fullscreen: "fullscreen";
59
- normal: "normal";
60
59
  expanded: "expanded";
61
60
  auto: "auto";
61
+ normal: "normal";
62
62
  }>>;
63
63
  autoSizeBreakpoint: z.ZodDefault<z.ZodNumber>;
64
64
  }, z.core.$loose>>;
@@ -75,11 +75,6 @@ declare const responseModeSchema: z.ZodEnum<{
75
75
  buffered: "buffered";
76
76
  }>;
77
77
  type ResponseMode = z.infer<typeof responseModeSchema>;
78
- declare const scrollAnchorSchema: z.ZodEnum<{
79
- bottom: "bottom";
80
- turn: "turn";
81
- }>;
82
- type ScrollAnchor = z.infer<typeof scrollAnchorSchema>;
83
78
  declare const behaviorSchema: z.ZodObject<{
84
79
  startMinimized: z.ZodDefault<z.ZodBoolean>;
85
80
  responseMode: z.ZodDefault<z.ZodEnum<{
@@ -90,10 +85,6 @@ declare const behaviorSchema: z.ZodObject<{
90
85
  showToolCalls: z.ZodDefault<z.ZodBoolean>;
91
86
  showSources: z.ZodDefault<z.ZodBoolean>;
92
87
  scrollFade: z.ZodDefault<z.ZodBoolean>;
93
- scrollAnchor: z.ZodDefault<z.ZodEnum<{
94
- bottom: "bottom";
95
- turn: "turn";
96
- }>>;
97
88
  enableMessageFeedback: z.ZodDefault<z.ZodBoolean>;
98
89
  }, z.core.$loose>;
99
90
  type Behavior = z.infer<typeof behaviorSchema>;
@@ -251,9 +242,9 @@ type LauncherOptions = z.infer<typeof launcherOptionsSchema>;
251
242
 
252
243
  declare const initialSizeSchema: z.ZodEnum<{
253
244
  fullscreen: "fullscreen";
254
- normal: "normal";
255
245
  expanded: "expanded";
256
246
  auto: "auto";
247
+ normal: "normal";
257
248
  }>;
258
249
  declare const resizeOptionsSchema: z.ZodObject<{
259
250
  enabled: z.ZodDefault<z.ZodBoolean>;
@@ -280,9 +271,9 @@ declare const sizeOptionsSchema: z.ZodObject<{
280
271
  inset: z.ZodOptional<z.ZodString>;
281
272
  initialSize: z.ZodDefault<z.ZodEnum<{
282
273
  fullscreen: "fullscreen";
283
- normal: "normal";
284
274
  expanded: "expanded";
285
275
  auto: "auto";
276
+ normal: "normal";
286
277
  }>>;
287
278
  autoSizeBreakpoint: z.ZodDefault<z.ZodNumber>;
288
279
  }, z.core.$loose>;
@@ -334,40 +325,40 @@ type FeatureFlags = z.infer<typeof featureFlagsSchema>;
334
325
  */
335
326
 
336
327
  declare const actionNameSchema: z.ZodEnum<{
328
+ close: "close";
337
329
  expand: "expand";
338
330
  fullscreen: "fullscreen";
339
- close: "close";
340
- language: "language";
331
+ clear: "clear";
341
332
  theme: "theme";
333
+ language: "language";
342
334
  textSize: "textSize";
343
335
  history: "history";
344
- clear: "clear";
345
336
  sound: "sound";
346
337
  }>;
347
338
  type ActionName = z.infer<typeof actionNameSchema>;
348
339
  declare const headerActionsSchema: z.ZodArray<z.ZodEnum<{
340
+ close: "close";
349
341
  expand: "expand";
350
342
  fullscreen: "fullscreen";
351
- close: "close";
352
- language: "language";
343
+ clear: "clear";
353
344
  theme: "theme";
345
+ language: "language";
354
346
  textSize: "textSize";
355
347
  history: "history";
356
- clear: "clear";
357
348
  sound: "sound";
358
349
  }>>;
359
350
  type HeaderActions = z.infer<typeof headerActionsSchema>;
360
351
  /** Section wrapper — `actions` list wrapped under `header` in the dashboard form. */
361
352
  declare const headerSchema: z.ZodObject<{
362
353
  actions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
354
+ close: "close";
363
355
  expand: "expand";
364
356
  fullscreen: "fullscreen";
365
- close: "close";
366
- language: "language";
357
+ clear: "clear";
367
358
  theme: "theme";
359
+ language: "language";
368
360
  textSize: "textSize";
369
361
  history: "history";
370
- clear: "clear";
371
362
  sound: "sound";
372
363
  }>>>;
373
364
  }, z.core.$loose>;
@@ -383,33 +374,33 @@ type HeaderOptions = z.infer<typeof headerSchema>;
383
374
  */
384
375
 
385
376
  declare const feedbackEventSchema: z.ZodEnum<{
377
+ voiceStart: "voiceStart";
378
+ voiceStop: "voiceStop";
386
379
  error: "error";
387
380
  messageReceived: "messageReceived";
388
381
  messageSent: "messageSent";
389
- voiceStart: "voiceStart";
390
- voiceStop: "voiceStop";
391
382
  }>;
392
383
  type FeedbackEvent = z.infer<typeof feedbackEventSchema>;
393
384
  declare const soundOptionsSchema: z.ZodObject<{
394
385
  enabled: z.ZodDefault<z.ZodBoolean>;
395
386
  volume: z.ZodDefault<z.ZodNumber>;
396
387
  events: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
388
+ voiceStart: "voiceStart";
389
+ voiceStop: "voiceStop";
397
390
  error: "error";
398
391
  messageReceived: "messageReceived";
399
392
  messageSent: "messageSent";
400
- voiceStart: "voiceStart";
401
- voiceStop: "voiceStop";
402
393
  }> & z.core.$partial, z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>>;
403
394
  }, z.core.$loose>;
404
395
  type SoundOptions = z.infer<typeof soundOptionsSchema>;
405
396
  declare const hapticsOptionsSchema: z.ZodObject<{
406
397
  enabled: z.ZodDefault<z.ZodBoolean>;
407
398
  events: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
399
+ voiceStart: "voiceStart";
400
+ voiceStop: "voiceStop";
408
401
  error: "error";
409
402
  messageReceived: "messageReceived";
410
403
  messageSent: "messageSent";
411
- voiceStart: "voiceStart";
412
- voiceStop: "voiceStop";
413
404
  }> & z.core.$partial, z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
414
405
  }, z.core.$loose>;
415
406
  type HapticsOptions = z.infer<typeof hapticsOptionsSchema>;
@@ -418,21 +409,21 @@ declare const feedbackSchema: z.ZodObject<{
418
409
  enabled: z.ZodDefault<z.ZodBoolean>;
419
410
  volume: z.ZodDefault<z.ZodNumber>;
420
411
  events: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
412
+ voiceStart: "voiceStart";
413
+ voiceStop: "voiceStop";
421
414
  error: "error";
422
415
  messageReceived: "messageReceived";
423
416
  messageSent: "messageSent";
424
- voiceStart: "voiceStart";
425
- voiceStop: "voiceStop";
426
417
  }> & z.core.$partial, z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>>;
427
418
  }, z.core.$loose>>;
428
419
  haptics: z.ZodOptional<z.ZodObject<{
429
420
  enabled: z.ZodDefault<z.ZodBoolean>;
430
421
  events: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
422
+ voiceStart: "voiceStart";
423
+ voiceStop: "voiceStop";
431
424
  error: "error";
432
425
  messageReceived: "messageReceived";
433
426
  messageSent: "messageSent";
434
- voiceStart: "voiceStart";
435
- voiceStop: "voiceStop";
436
427
  }> & z.core.$partial, z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
437
428
  }, z.core.$loose>>;
438
429
  }, z.core.$loose>;
@@ -867,18 +858,18 @@ type I18nOptions = z.infer<typeof i18nSchema>;
867
858
  */
868
859
 
869
860
  declare const moduleLayoutSchema: z.ZodEnum<{
861
+ home: "home";
870
862
  chat: "chat";
871
863
  help: "help";
872
- home: "home";
873
864
  news: "news";
874
865
  }>;
875
866
  type ModuleLayout = z.infer<typeof moduleLayoutSchema>;
876
867
  declare const moduleSchema: z.ZodObject<{
877
868
  label: z.ZodString;
878
869
  layout: z.ZodEnum<{
870
+ home: "home";
879
871
  chat: "chat";
880
872
  help: "help";
881
- home: "home";
882
873
  news: "news";
883
874
  }>;
884
875
  contentTags: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -904,9 +895,9 @@ type ModuleOptions = z.infer<typeof moduleSchema>;
904
895
  declare const modulesSchema: z.ZodArray<z.ZodObject<{
905
896
  label: z.ZodString;
906
897
  layout: z.ZodEnum<{
898
+ home: "home";
907
899
  chat: "chat";
908
900
  help: "help";
909
- home: "home";
910
901
  news: "news";
911
902
  }>;
912
903
  contentTags: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -988,4 +979,4 @@ declare const ALL_MODES: readonly Mode[];
988
979
  */
989
980
  declare function emitJsonSchema(): unknown;
990
981
 
991
- export { ALL_MODES, type ActionName, type AttachmentLimits, type Behavior, type CalloutPosition, type CalloutShape, type ComposerOptions, type FeatureFlags, type FeedbackEvent, type FeedbackOptions, type FieldOption, type FieldType, type FieldValidation, type FooterOptions, type FormCondition, type FormDef, type FormField, type FormTranslation, type Forms, type HapticsOptions, type HeaderActions, type HeaderOptions, type I18nOptions, type LauncherCallout, type LauncherOptions, type LauncherSize, type LauncherVariant, type Mode, type ModuleLayout, type ModuleOptions, type ModulesOptions, type Position, type PoweredBy, type Presentation, type ResizeOptions, type ResponseMode, type ScrollAnchor, type SendButtonOptions, type SizeOptions, type SoundOptions, type StringsOverride, type ThemeOverrides, type ThemePreference, type TrackingSettings, type VoiceMode, actionNameSchema, attachmentLimitsSchema, behaviorSchema, calloutPositionSchema, calloutShapeSchema, composerOptionsSchema, emitJsonSchema, featureFlagsSchema, feedbackEventSchema, feedbackSchema, fieldOptionSchema, fieldOptionTranslationSchema, fieldTypeSchema, fieldValidationSchema, footerSchema, formConditionSchema, formDefSchema, formFieldSchema, formFieldTranslationSchema, formTranslationSchema, formTriggerSchema, formsSchema, hapticsOptionsSchema, headerActionsSchema, headerSchema, i18nSchema, initialSizeSchema, launcherCalloutSchema, launcherOptionsSchema, launcherSizeSchema, launcherVariantSchema, modeSchema, moduleLayoutSchema, moduleSchema, modulesSchema, positionSchema, poweredBySchema, presentationSchema, resizeOptionsSchema, responseModeSchema, scrollAnchorSchema, sendButtonIconSchema, sendButtonOptionsSchema, sendButtonShapeSchema, sendButtonVariantSchema, sizeOptionsSchema, soundOptionsSchema, stringsOverrideSchema, themeFieldSchema, themeOverridesSchema, themePreferenceSchema, toolRefSchema, trackingSchema, voiceModeSchema, widgetSettingsSchemaForMode };
982
+ export { ALL_MODES, type ActionName, type AttachmentLimits, type Behavior, type CalloutPosition, type CalloutShape, type ComposerOptions, type FeatureFlags, type FeedbackEvent, type FeedbackOptions, type FieldOption, type FieldType, type FieldValidation, type FooterOptions, type FormCondition, type FormDef, type FormField, type FormTranslation, type Forms, type HapticsOptions, type HeaderActions, type HeaderOptions, type I18nOptions, type LauncherCallout, type LauncherOptions, type LauncherSize, type LauncherVariant, type Mode, type ModuleLayout, type ModuleOptions, type ModulesOptions, type Position, type PoweredBy, type Presentation, type ResizeOptions, type ResponseMode, type SendButtonOptions, type SizeOptions, type SoundOptions, type StringsOverride, type ThemeOverrides, type ThemePreference, type TrackingSettings, type VoiceMode, actionNameSchema, attachmentLimitsSchema, behaviorSchema, calloutPositionSchema, calloutShapeSchema, composerOptionsSchema, emitJsonSchema, featureFlagsSchema, feedbackEventSchema, feedbackSchema, fieldOptionSchema, fieldOptionTranslationSchema, fieldTypeSchema, fieldValidationSchema, footerSchema, formConditionSchema, formDefSchema, formFieldSchema, formFieldTranslationSchema, formTranslationSchema, formTriggerSchema, formsSchema, hapticsOptionsSchema, headerActionsSchema, headerSchema, i18nSchema, initialSizeSchema, launcherCalloutSchema, launcherOptionsSchema, launcherSizeSchema, launcherVariantSchema, modeSchema, moduleLayoutSchema, moduleSchema, modulesSchema, positionSchema, poweredBySchema, presentationSchema, resizeOptionsSchema, responseModeSchema, sendButtonIconSchema, sendButtonOptionsSchema, sendButtonShapeSchema, sendButtonVariantSchema, sizeOptionsSchema, soundOptionsSchema, stringsOverrideSchema, themeFieldSchema, themeOverridesSchema, themePreferenceSchema, toolRefSchema, trackingSchema, voiceModeSchema, widgetSettingsSchemaForMode };
package/schema.json CHANGED
@@ -490,15 +490,6 @@
490
490
  "description": "Fade the message list at its scroll edges with a soft gradient mask (the fade lifts at the very top/bottom). `true` (default) enables it; `false` shows hard edges.",
491
491
  "type": "boolean"
492
492
  },
493
- "scrollAnchor": {
494
- "default": "bottom",
495
- "description": "How the list anchors a new turn. `bottom` (default) sticks to the newest content and follows the streamed reply; `turn` pins the visitor's question to the top of the viewport (ChatGPT-style) so the answer streams into the space below.",
496
- "type": "string",
497
- "enum": [
498
- "bottom",
499
- "turn"
500
- ]
501
- },
502
493
  "enableMessageFeedback": {
503
494
  "default": true,
504
495
  "description": "Show 👍/👎 feedback controls under each assistant reply. `true` (default) shows them. A choice fires the `messageFeedback` event and is POSTed best-effort to `/pai/message-feedback`.",
@@ -512,7 +503,6 @@
512
503
  "showToolCalls",
513
504
  "showSources",
514
505
  "scrollFade",
515
- "scrollAnchor",
516
506
  "enableMessageFeedback"
517
507
  ],
518
508
  "additionalProperties": {},
@@ -525,7 +515,7 @@
525
515
  {
526
516
  "startMinimized": false,
527
517
  "responseMode": "buffered",
528
- "scrollAnchor": "turn",
518
+ "scrollFade": false,
529
519
  "enableMessageFeedback": false
530
520
  }
531
521
  ]
@@ -2372,15 +2362,6 @@
2372
2362
  "description": "Fade the message list at its scroll edges with a soft gradient mask (the fade lifts at the very top/bottom). `true` (default) enables it; `false` shows hard edges.",
2373
2363
  "type": "boolean"
2374
2364
  },
2375
- "scrollAnchor": {
2376
- "default": "bottom",
2377
- "description": "How the list anchors a new turn. `bottom` (default) sticks to the newest content and follows the streamed reply; `turn` pins the visitor's question to the top of the viewport (ChatGPT-style) so the answer streams into the space below.",
2378
- "type": "string",
2379
- "enum": [
2380
- "bottom",
2381
- "turn"
2382
- ]
2383
- },
2384
2365
  "enableMessageFeedback": {
2385
2366
  "default": true,
2386
2367
  "description": "Show 👍/👎 feedback controls under each assistant reply. `true` (default) shows them. A choice fires the `messageFeedback` event and is POSTed best-effort to `/pai/message-feedback`.",
@@ -2394,7 +2375,6 @@
2394
2375
  "showToolCalls",
2395
2376
  "showSources",
2396
2377
  "scrollFade",
2397
- "scrollAnchor",
2398
2378
  "enableMessageFeedback"
2399
2379
  ],
2400
2380
  "additionalProperties": {},
@@ -2407,7 +2387,7 @@
2407
2387
  {
2408
2388
  "startMinimized": false,
2409
2389
  "responseMode": "buffered",
2410
- "scrollAnchor": "turn",
2390
+ "scrollFade": false,
2411
2391
  "enableMessageFeedback": false
2412
2392
  }
2413
2393
  ]
package/schema.mjs CHANGED
@@ -115,7 +115,6 @@ var presentationSchema = z3.object({
115
115
  // src/schema/widget/behavior.ts
116
116
  import { z as z4 } from "zod";
117
117
  var responseModeSchema = z4.enum(["streaming", "buffered"]);
118
- var scrollAnchorSchema = z4.enum(["bottom", "turn"]);
119
118
  var behaviorSchema = z4.object({
120
119
  startMinimized: z4.boolean().default(true).describe(
121
120
  "Don't auto-open the floating panel on first visit. `true` (default) shows the FAB collapsed; `false` opens the panel on mount."
@@ -135,16 +134,13 @@ var behaviorSchema = z4.object({
135
134
  scrollFade: z4.boolean().default(true).describe(
136
135
  "Fade the message list at its scroll edges with a soft gradient mask (the fade lifts at the very top/bottom). `true` (default) enables it; `false` shows hard edges."
137
136
  ),
138
- scrollAnchor: scrollAnchorSchema.default("bottom").describe(
139
- "How the list anchors a new turn. `bottom` (default) sticks to the newest content and follows the streamed reply; `turn` pins the visitor's question to the top of the viewport (ChatGPT-style) so the answer streams into the space below."
140
- ),
141
137
  enableMessageFeedback: z4.boolean().default(true).describe(
142
138
  "Show \u{1F44D}/\u{1F44E} feedback controls under each assistant reply. `true` (default) shows them. A choice fires the `messageFeedback` event and is POSTed best-effort to `/pai/message-feedback`."
143
139
  )
144
140
  }).loose().describe("Conversation behaviour \u2014 lifecycle, streaming, and the transcript surface (scroll, feedback).").meta({
145
141
  examples: [
146
142
  { startMinimized: true, responseMode: "streaming" },
147
- { startMinimized: false, responseMode: "buffered", scrollAnchor: "turn", enableMessageFeedback: false }
143
+ { startMinimized: false, responseMode: "buffered", scrollFade: false, enableMessageFeedback: false }
148
144
  ]
149
145
  });
150
146
 
@@ -938,7 +934,6 @@ export {
938
934
  presentationSchema,
939
935
  resizeOptionsSchema,
940
936
  responseModeSchema,
941
- scrollAnchorSchema,
942
937
  sendButtonIconSchema,
943
938
  sendButtonOptionsSchema,
944
939
  sendButtonShapeSchema,