@8wave/ai-elements 0.124.0-beta.8 → 0.124.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.
Files changed (95) hide show
  1. package/dist/_chunks/{PkFilePreview-D_piCsAW.js → PkFilePreview-BwHe4-m1.js} +368 -346
  2. package/dist/_chunks/PkFilePreview-BwHe4-m1.js.map +1 -0
  3. package/dist/_chunks/{PkFilePreviewDialog-Bq0ipzrJ.js → PkFilePreviewDialog-LWxNgkzk.js} +2 -2
  4. package/dist/_chunks/{PkFilePreviewDialog-Bq0ipzrJ.js.map → PkFilePreviewDialog-LWxNgkzk.js.map} +1 -1
  5. package/dist/_chunks/{PkStreamingMarkdown-CHwrLP75.js → PkStreamingMarkdown-BvgO6aHe.js} +2 -2
  6. package/dist/_chunks/{PkStreamingMarkdown-CHwrLP75.js.map → PkStreamingMarkdown-BvgO6aHe.js.map} +1 -1
  7. package/dist/_chunks/{PkToolChatFile-DO4zjMJr.js → PkToolChatFile-OuaeZTxw.js} +62 -54
  8. package/dist/_chunks/PkToolChatFile-OuaeZTxw.js.map +1 -0
  9. package/dist/_chunks/{PkToolShowArtifact-B2-3-k2F.js → PkToolShowArtifact-BqgW3E6D.js} +2 -2
  10. package/dist/_chunks/{PkToolShowArtifact-B2-3-k2F.js.map → PkToolShowArtifact-BqgW3E6D.js.map} +1 -1
  11. package/dist/_chunks/{PkToolShowContactForm-DbOZHB_G.js → PkToolShowContactForm-DDDXopZp.js} +2 -2
  12. package/dist/_chunks/{PkToolShowContactForm-DbOZHB_G.js.map → PkToolShowContactForm-DDDXopZp.js.map} +1 -1
  13. package/dist/_chunks/{PkToolShowForm-o2LuWDNq.js → PkToolShowForm-D2LZ8Kkl.js} +3 -3
  14. package/dist/_chunks/{PkToolShowForm-o2LuWDNq.js.map → PkToolShowForm-D2LZ8Kkl.js.map} +1 -1
  15. package/dist/_chunks/{PkToolShowSources-CUNneZCp.js → PkToolShowSources-DA4SOt-H.js} +2 -2
  16. package/dist/_chunks/{PkToolShowSources-CUNneZCp.js.map → PkToolShowSources-DA4SOt-H.js.map} +1 -1
  17. package/dist/_chunks/excelNumberFormat-CIbRUEwQ.js +543 -0
  18. package/dist/_chunks/excelNumberFormat-CIbRUEwQ.js.map +1 -0
  19. package/dist/_chunks/{utils-BHvRrCzW.js → utils-euH8esYP.js} +7 -6
  20. package/dist/_chunks/utils-euH8esYP.js.map +1 -0
  21. package/dist/ai-elements.es.js +8 -8
  22. package/dist-vue/PkChatbot.js +1 -1
  23. package/dist-vue/PkChatbotEmptyState.js +1 -1
  24. package/dist-vue/PkChatbotInput.js +1 -1
  25. package/dist-vue/PkChatbotMessages.js +1 -1
  26. package/dist-vue/PkChatbotStepPayload.js +1 -1
  27. package/dist-vue/PkChatbotStepToolDetail.js +1 -1
  28. package/dist-vue/PkChatbotSteps.js +1 -1
  29. package/dist-vue/PkChatbotViewChat.js +1 -1
  30. package/dist-vue/PkChatbotViewConversations.js +1 -1
  31. package/dist-vue/_chunks/{PkChatbot-DQssgXm3.js → PkChatbot-BRttF7Lo.js} +5 -5
  32. package/dist-vue/_chunks/{PkChatbot-DQssgXm3.js.map → PkChatbot-BRttF7Lo.js.map} +1 -1
  33. package/dist-vue/_chunks/{PkChatbotEmptyState-B6qxJAPT.js → PkChatbotEmptyState-CLOH5Z2d.js} +2 -2
  34. package/dist-vue/_chunks/{PkChatbotEmptyState-B6qxJAPT.js.map → PkChatbotEmptyState-CLOH5Z2d.js.map} +1 -1
  35. package/dist-vue/_chunks/{PkChatbotInput-Bk8OS1xU.js → PkChatbotInput-BK7f1jFE.js} +2 -2
  36. package/dist-vue/_chunks/{PkChatbotInput-Bk8OS1xU.js.map → PkChatbotInput-BK7f1jFE.js.map} +1 -1
  37. package/dist-vue/_chunks/{PkChatbotMessages-D4LJZxv7.js → PkChatbotMessages-Ck0ofhtK.js} +14 -14
  38. package/dist-vue/_chunks/{PkChatbotMessages-D4LJZxv7.js.map → PkChatbotMessages-Ck0ofhtK.js.map} +1 -1
  39. package/dist-vue/_chunks/{PkChatbotStepPayload-_0WRbSR6.js → PkChatbotStepPayload-D682n3VR.js} +2 -2
  40. package/dist-vue/_chunks/{PkChatbotStepPayload-_0WRbSR6.js.map → PkChatbotStepPayload-D682n3VR.js.map} +1 -1
  41. package/dist-vue/_chunks/{PkChatbotStepToolDetail-DiaervF2.js → PkChatbotStepToolDetail-D5c8rqj9.js} +3 -3
  42. package/dist-vue/_chunks/{PkChatbotStepToolDetail-DiaervF2.js.map → PkChatbotStepToolDetail-D5c8rqj9.js.map} +1 -1
  43. package/dist-vue/_chunks/{PkChatbotSteps-BqL-ClgI.js → PkChatbotSteps-CtKRHqaG.js} +5 -5
  44. package/dist-vue/_chunks/{PkChatbotSteps-BqL-ClgI.js.map → PkChatbotSteps-CtKRHqaG.js.map} +1 -1
  45. package/dist-vue/_chunks/{PkChatbotViewChat-BfVLCU_j.js → PkChatbotViewChat-D8depeWQ.js} +6 -6
  46. package/dist-vue/_chunks/{PkChatbotViewChat-BfVLCU_j.js.map → PkChatbotViewChat-D8depeWQ.js.map} +1 -1
  47. package/dist-vue/_chunks/{PkChatbotViewConversations-C32O6SsT.js → PkChatbotViewConversations-B-dmLi-8.js} +2 -2
  48. package/dist-vue/_chunks/{PkChatbotViewConversations-C32O6SsT.js.map → PkChatbotViewConversations-B-dmLi-8.js.map} +1 -1
  49. package/dist-vue/_chunks/PkFilePreview-B54Dp_Rs.js +1149 -0
  50. package/dist-vue/_chunks/PkFilePreview-B54Dp_Rs.js.map +1 -0
  51. package/dist-vue/_chunks/{PkFilePreviewDialog-BSvgiM9A.js → PkFilePreviewDialog-QDPoZh1v.js} +2 -2
  52. package/dist-vue/_chunks/{PkFilePreviewDialog-BSvgiM9A.js.map → PkFilePreviewDialog-QDPoZh1v.js.map} +1 -1
  53. package/dist-vue/_chunks/{PkStreamingMarkdown-Dk3iXhTm.js → PkStreamingMarkdown-qnKwvrCg.js} +2 -2
  54. package/dist-vue/_chunks/{PkStreamingMarkdown-Dk3iXhTm.js.map → PkStreamingMarkdown-qnKwvrCg.js.map} +1 -1
  55. package/dist-vue/_chunks/PkToolChatFile-i0rHgFxB.js +227 -0
  56. package/dist-vue/_chunks/PkToolChatFile-i0rHgFxB.js.map +1 -0
  57. package/dist-vue/_chunks/{PkToolShowArtifact-BtCGilTJ.js → PkToolShowArtifact-Dh4ogn6A.js} +2 -2
  58. package/dist-vue/_chunks/{PkToolShowArtifact-BtCGilTJ.js.map → PkToolShowArtifact-Dh4ogn6A.js.map} +1 -1
  59. package/dist-vue/_chunks/{PkToolShowContactForm-BZNIeJpf.js → PkToolShowContactForm-BGTI1sio.js} +2 -2
  60. package/dist-vue/_chunks/{PkToolShowContactForm-BZNIeJpf.js.map → PkToolShowContactForm-BGTI1sio.js.map} +1 -1
  61. package/dist-vue/_chunks/{PkToolShowDiagram-KD4MfVkP.js → PkToolShowDiagram-xef3wJb0.js} +2 -2
  62. package/dist-vue/_chunks/{PkToolShowDiagram-KD4MfVkP.js.map → PkToolShowDiagram-xef3wJb0.js.map} +1 -1
  63. package/dist-vue/_chunks/{PkToolShowForm-Dtfpi58S.js → PkToolShowForm-Crg4Kl6v.js} +3 -3
  64. package/dist-vue/_chunks/{PkToolShowForm-Dtfpi58S.js.map → PkToolShowForm-Crg4Kl6v.js.map} +1 -1
  65. package/dist-vue/_chunks/{PkToolShowImageGallery-DnS04nTs.js → PkToolShowImageGallery-D9hdGBHK.js} +2 -2
  66. package/dist-vue/_chunks/{PkToolShowImageGallery-DnS04nTs.js.map → PkToolShowImageGallery-D9hdGBHK.js.map} +1 -1
  67. package/dist-vue/_chunks/{PkToolShowProductList-BlFKAtqQ.js → PkToolShowProductList-SC5aKDCw.js} +2 -2
  68. package/dist-vue/_chunks/{PkToolShowProductList-BlFKAtqQ.js.map → PkToolShowProductList-SC5aKDCw.js.map} +1 -1
  69. package/dist-vue/_chunks/{PkToolShowSources-DM177ZlR.js → PkToolShowSources-Bf9_JwFL.js} +2 -2
  70. package/dist-vue/_chunks/{PkToolShowSources-DM177ZlR.js.map → PkToolShowSources-Bf9_JwFL.js.map} +1 -1
  71. package/dist-vue/_chunks/{PkToolShowVideo-DQdVpaWT.js → PkToolShowVideo-C2ITZDNo.js} +2 -2
  72. package/dist-vue/_chunks/{PkToolShowVideo-DQdVpaWT.js.map → PkToolShowVideo-C2ITZDNo.js.map} +1 -1
  73. package/dist-vue/_chunks/{PkToolShowWebPages-Cx2Ft_wN.js → PkToolShowWebPages-BrefGxKQ.js} +2 -2
  74. package/dist-vue/_chunks/{PkToolShowWebPages-Cx2Ft_wN.js.map → PkToolShowWebPages-BrefGxKQ.js.map} +1 -1
  75. package/dist-vue/_chunks/excelNumberFormat-COn5tHoH.js +543 -0
  76. package/dist-vue/_chunks/excelNumberFormat-COn5tHoH.js.map +1 -0
  77. package/dist-vue/_chunks/{utils-BuxgMuKv.js → utils-B0PnU1Rk.js} +7 -6
  78. package/dist-vue/_chunks/utils-B0PnU1Rk.js.map +1 -0
  79. package/dist-vue/composables.js +1 -1
  80. package/dist-vue/index.js +21 -21
  81. package/dist-vue/index.js.map +1 -1
  82. package/dist-vue/packages/components/src/chat/excelNumberFormat.d.ts +34 -0
  83. package/dist-vue/packages/components/src/chat/useChatFilePreview.d.ts +20 -0
  84. package/dist-vue/packages/components/src/chat/utils.d.ts +2 -0
  85. package/dist-vue/packages/models/src/schema/SpreadsheetPreview.d.ts +26 -0
  86. package/dist-vue/packages/models/src/schema/WordPreview.d.ts +11 -0
  87. package/package.json +1 -1
  88. package/dist/_chunks/PkFilePreview-D_piCsAW.js.map +0 -1
  89. package/dist/_chunks/PkToolChatFile-DO4zjMJr.js.map +0 -1
  90. package/dist/_chunks/utils-BHvRrCzW.js.map +0 -1
  91. package/dist-vue/_chunks/PkFilePreview-jeqvHDm7.js +0 -1127
  92. package/dist-vue/_chunks/PkFilePreview-jeqvHDm7.js.map +0 -1
  93. package/dist-vue/_chunks/PkToolChatFile-Bnj-YFLh.js +0 -219
  94. package/dist-vue/_chunks/PkToolChatFile-Bnj-YFLh.js.map +0 -1
  95. package/dist-vue/_chunks/utils-BuxgMuKv.js.map +0 -1
@@ -0,0 +1,34 @@
1
+ /**
2
+ * A number as Excel shows it under a number format code (`#,##0.00 "€"`,
3
+ * `#,##0;[Red](#,##0)`, `0.0,"k"`), with the reader's separators: the
4
+ * section for the value's sign or condition, its literal text, its color,
5
+ * grouping, decimals, percent, thousands scaling, leading zeros, digits
6
+ * mixed with text (`000-000`), fractions and scientific notation; and a date
7
+ * or a time in the order, digits and names its code writes. Checked cell by
8
+ * cell against Excel for Mac (the widget's `excelNumberFormat.test.ts`).
9
+ */
10
+ /**
11
+ * `value` as Excel shows it under `code`, with the separators of `locale`,
12
+ * and the color the section names, if any.
13
+ */
14
+ export declare const formatExcelNumber: (code: string, value: number, locale: string) => {
15
+ text: string;
16
+ color?: string;
17
+ };
18
+ /**
19
+ * A date or a time Excel holds as `serial` (days since its day 0, the time
20
+ * as the fraction), as `code` writes it: the section for the value and its
21
+ * color, the order, digits and names of the format, with the month and day
22
+ * names of the locale it tags or else of the reader. Undefined for a serial
23
+ * Excel cannot show as a date.
24
+ */
25
+ export declare const formatExcelDate: (code: string, serial: number, locale: string, date1904?: boolean) => {
26
+ text: string;
27
+ color?: string;
28
+ } | undefined;
29
+ /**
30
+ * A date or a time written as Excel holds it (`46000.5`), as `YYYY-MM-DD`,
31
+ * `YYYY-MM-DD HH:mm` or `HH:mm`, as its format shows it; undefined for
32
+ * anything else.
33
+ */
34
+ export declare const excelDateText: (raw: string, code: string, locale: string) => string | undefined;
@@ -55,6 +55,7 @@ export declare function useChatFilePreview(read: (storedFileName: string) => Pro
55
55
  lineExact?: number | undefined;
56
56
  lineAtLeast?: number | undefined;
57
57
  pageBreakBefore?: true | undefined;
58
+ keepNext?: true | undefined;
58
59
  shading?: string | undefined;
59
60
  size?: number | undefined;
60
61
  } | undefined;
@@ -102,6 +103,7 @@ export declare function useChatFilePreview(read: (storedFileName: string) => Pro
102
103
  lineExact?: number | undefined;
103
104
  lineAtLeast?: number | undefined;
104
105
  pageBreakBefore?: true | undefined;
106
+ keepNext?: true | undefined;
105
107
  shading?: string | undefined;
106
108
  size?: number | undefined;
107
109
  } | undefined;
@@ -142,6 +144,7 @@ export declare function useChatFilePreview(read: (storedFileName: string) => Pro
142
144
  fill?: string | undefined;
143
145
  align?: "left" | "right" | "center" | "justify" | undefined;
144
146
  size?: number | undefined;
147
+ keepNext?: true | undefined;
145
148
  }[][];
146
149
  borders: boolean;
147
150
  widths?: number[] | undefined;
@@ -235,6 +238,7 @@ export declare function useChatFilePreview(read: (storedFileName: string) => Pro
235
238
  lineExact?: number | undefined;
236
239
  lineAtLeast?: number | undefined;
237
240
  pageBreakBefore?: true | undefined;
241
+ keepNext?: true | undefined;
238
242
  shading?: string | undefined;
239
243
  size?: number | undefined;
240
244
  } | undefined;
@@ -282,6 +286,7 @@ export declare function useChatFilePreview(read: (storedFileName: string) => Pro
282
286
  lineExact?: number | undefined;
283
287
  lineAtLeast?: number | undefined;
284
288
  pageBreakBefore?: true | undefined;
289
+ keepNext?: true | undefined;
285
290
  shading?: string | undefined;
286
291
  size?: number | undefined;
287
292
  } | undefined;
@@ -322,6 +327,7 @@ export declare function useChatFilePreview(read: (storedFileName: string) => Pro
322
327
  fill?: string | undefined;
323
328
  align?: "left" | "right" | "center" | "justify" | undefined;
324
329
  size?: number | undefined;
330
+ keepNext?: true | undefined;
325
331
  }[][];
326
332
  borders: boolean;
327
333
  widths?: number[] | undefined;
@@ -344,6 +350,8 @@ export declare function useChatFilePreview(read: (storedFileName: string) => Pro
344
350
  maxDecimals?: number | undefined;
345
351
  currency?: string | undefined;
346
352
  grouped?: true | undefined;
353
+ numFmt?: number | undefined;
354
+ serial?: number | undefined;
347
355
  missing?: true | undefined;
348
356
  formula?: string | undefined;
349
357
  style?: number | undefined;
@@ -403,6 +411,8 @@ export declare function useChatFilePreview(read: (storedFileName: string) => Pro
403
411
  }[];
404
412
  staleFormulas: boolean;
405
413
  computedFormulas: boolean;
414
+ numberFormats?: string[] | undefined;
415
+ date1904?: true | undefined;
406
416
  } | undefined, {
407
417
  kind: "word";
408
418
  blocks: ({
@@ -449,6 +459,7 @@ export declare function useChatFilePreview(read: (storedFileName: string) => Pro
449
459
  lineExact?: number | undefined;
450
460
  lineAtLeast?: number | undefined;
451
461
  pageBreakBefore?: true | undefined;
462
+ keepNext?: true | undefined;
452
463
  shading?: string | undefined;
453
464
  size?: number | undefined;
454
465
  } | undefined;
@@ -496,6 +507,7 @@ export declare function useChatFilePreview(read: (storedFileName: string) => Pro
496
507
  lineExact?: number | undefined;
497
508
  lineAtLeast?: number | undefined;
498
509
  pageBreakBefore?: true | undefined;
510
+ keepNext?: true | undefined;
499
511
  shading?: string | undefined;
500
512
  size?: number | undefined;
501
513
  } | undefined;
@@ -536,6 +548,7 @@ export declare function useChatFilePreview(read: (storedFileName: string) => Pro
536
548
  fill?: string | undefined;
537
549
  align?: "left" | "right" | "center" | "justify" | undefined;
538
550
  size?: number | undefined;
551
+ keepNext?: true | undefined;
539
552
  }[][];
540
553
  borders: boolean;
541
554
  widths?: number[] | undefined;
@@ -629,6 +642,7 @@ export declare function useChatFilePreview(read: (storedFileName: string) => Pro
629
642
  lineExact?: number | undefined;
630
643
  lineAtLeast?: number | undefined;
631
644
  pageBreakBefore?: true | undefined;
645
+ keepNext?: true | undefined;
632
646
  shading?: string | undefined;
633
647
  size?: number | undefined;
634
648
  } | undefined;
@@ -676,6 +690,7 @@ export declare function useChatFilePreview(read: (storedFileName: string) => Pro
676
690
  lineExact?: number | undefined;
677
691
  lineAtLeast?: number | undefined;
678
692
  pageBreakBefore?: true | undefined;
693
+ keepNext?: true | undefined;
679
694
  shading?: string | undefined;
680
695
  size?: number | undefined;
681
696
  } | undefined;
@@ -716,6 +731,7 @@ export declare function useChatFilePreview(read: (storedFileName: string) => Pro
716
731
  fill?: string | undefined;
717
732
  align?: "left" | "right" | "center" | "justify" | undefined;
718
733
  size?: number | undefined;
734
+ keepNext?: true | undefined;
719
735
  }[][];
720
736
  borders: boolean;
721
737
  widths?: number[] | undefined;
@@ -738,6 +754,8 @@ export declare function useChatFilePreview(read: (storedFileName: string) => Pro
738
754
  maxDecimals?: number | undefined;
739
755
  currency?: string | undefined;
740
756
  grouped?: true | undefined;
757
+ numFmt?: number | undefined;
758
+ serial?: number | undefined;
741
759
  missing?: true | undefined;
742
760
  formula?: string | undefined;
743
761
  style?: number | undefined;
@@ -797,6 +815,8 @@ export declare function useChatFilePreview(read: (storedFileName: string) => Pro
797
815
  }[];
798
816
  staleFormulas: boolean;
799
817
  computedFormulas: boolean;
818
+ numberFormats?: string[] | undefined;
819
+ date1904?: true | undefined;
800
820
  } | undefined>;
801
821
  loading: globalThis.Ref<boolean, boolean>;
802
822
  error: globalThis.Ref<boolean, boolean>;
@@ -300,6 +300,8 @@ export type WordFlowItem = {
300
300
  breakBefore: boolean;
301
301
  /** The section it opens. */
302
302
  section?: number;
303
+ /** Stays on the page of the next piece (Word's "Keep with next"). */
304
+ keepNext?: true;
303
305
  };
304
306
  /**
305
307
  * The pieces of `blocks` in order, as the pages hold them. A paragraph or a
@@ -59,6 +59,8 @@ export declare const SpreadsheetPreviewCellSchema: z.ZodObject<{
59
59
  maxDecimals: z.ZodOptional<z.ZodNumber>;
60
60
  currency: z.ZodOptional<z.ZodString>;
61
61
  grouped: z.ZodOptional<z.ZodLiteral<true>>;
62
+ numFmt: z.ZodOptional<z.ZodNumber>;
63
+ serial: z.ZodOptional<z.ZodNumber>;
62
64
  missing: z.ZodOptional<z.ZodLiteral<true>>;
63
65
  formula: z.ZodOptional<z.ZodString>;
64
66
  style: z.ZodOptional<z.ZodNumber>;
@@ -83,6 +85,8 @@ export declare const SpreadsheetPreviewRowSchema: z.ZodObject<{
83
85
  maxDecimals: z.ZodOptional<z.ZodNumber>;
84
86
  currency: z.ZodOptional<z.ZodString>;
85
87
  grouped: z.ZodOptional<z.ZodLiteral<true>>;
88
+ numFmt: z.ZodOptional<z.ZodNumber>;
89
+ serial: z.ZodOptional<z.ZodNumber>;
86
90
  missing: z.ZodOptional<z.ZodLiteral<true>>;
87
91
  formula: z.ZodOptional<z.ZodString>;
88
92
  style: z.ZodOptional<z.ZodNumber>;
@@ -115,6 +119,8 @@ export declare const SpreadsheetPreviewSheetSchema: z.ZodObject<{
115
119
  maxDecimals: z.ZodOptional<z.ZodNumber>;
116
120
  currency: z.ZodOptional<z.ZodString>;
117
121
  grouped: z.ZodOptional<z.ZodLiteral<true>>;
122
+ numFmt: z.ZodOptional<z.ZodNumber>;
123
+ serial: z.ZodOptional<z.ZodNumber>;
118
124
  missing: z.ZodOptional<z.ZodLiteral<true>>;
119
125
  formula: z.ZodOptional<z.ZodString>;
120
126
  style: z.ZodOptional<z.ZodNumber>;
@@ -160,6 +166,8 @@ export declare const SpreadsheetPreviewSchema: z.ZodObject<{
160
166
  maxDecimals: z.ZodOptional<z.ZodNumber>;
161
167
  currency: z.ZodOptional<z.ZodString>;
162
168
  grouped: z.ZodOptional<z.ZodLiteral<true>>;
169
+ numFmt: z.ZodOptional<z.ZodNumber>;
170
+ serial: z.ZodOptional<z.ZodNumber>;
163
171
  missing: z.ZodOptional<z.ZodLiteral<true>>;
164
172
  formula: z.ZodOptional<z.ZodString>;
165
173
  style: z.ZodOptional<z.ZodNumber>;
@@ -223,6 +231,8 @@ export declare const SpreadsheetPreviewSchema: z.ZodObject<{
223
231
  }, z.core.$strip>>;
224
232
  }, z.core.$strip>>;
225
233
  }, z.core.$strip>>;
234
+ numberFormats: z.ZodOptional<z.ZodArray<z.ZodString>>;
235
+ date1904: z.ZodOptional<z.ZodLiteral<true>>;
226
236
  staleFormulas: z.ZodBoolean;
227
237
  computedFormulas: z.ZodBoolean;
228
238
  }, z.core.$strip>;
@@ -300,6 +310,7 @@ export declare const ChatFilePreviewSchema: z.ZodDiscriminatedUnion<[z.ZodObject
300
310
  lineExact: z.ZodOptional<z.ZodNumber>;
301
311
  lineAtLeast: z.ZodOptional<z.ZodNumber>;
302
312
  pageBreakBefore: z.ZodOptional<z.ZodLiteral<true>>;
313
+ keepNext: z.ZodOptional<z.ZodLiteral<true>>;
303
314
  shading: z.ZodOptional<z.ZodString>;
304
315
  size: z.ZodOptional<z.ZodNumber>;
305
316
  }, z.core.$strip>>;
@@ -374,6 +385,7 @@ export declare const ChatFilePreviewSchema: z.ZodDiscriminatedUnion<[z.ZodObject
374
385
  lineExact: z.ZodOptional<z.ZodNumber>;
375
386
  lineAtLeast: z.ZodOptional<z.ZodNumber>;
376
387
  pageBreakBefore: z.ZodOptional<z.ZodLiteral<true>>;
388
+ keepNext: z.ZodOptional<z.ZodLiteral<true>>;
377
389
  shading: z.ZodOptional<z.ZodString>;
378
390
  size: z.ZodOptional<z.ZodNumber>;
379
391
  }, z.core.$strip>>;
@@ -441,6 +453,7 @@ export declare const ChatFilePreviewSchema: z.ZodDiscriminatedUnion<[z.ZodObject
441
453
  justify: "justify";
442
454
  }>>;
443
455
  size: z.ZodOptional<z.ZodNumber>;
456
+ keepNext: z.ZodOptional<z.ZodLiteral<true>>;
444
457
  }, z.core.$strip>>>;
445
458
  widths: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
446
459
  borders: z.ZodBoolean;
@@ -561,6 +574,7 @@ export declare const ChatFilePreviewSchema: z.ZodDiscriminatedUnion<[z.ZodObject
561
574
  lineExact: z.ZodOptional<z.ZodNumber>;
562
575
  lineAtLeast: z.ZodOptional<z.ZodNumber>;
563
576
  pageBreakBefore: z.ZodOptional<z.ZodLiteral<true>>;
577
+ keepNext: z.ZodOptional<z.ZodLiteral<true>>;
564
578
  shading: z.ZodOptional<z.ZodString>;
565
579
  size: z.ZodOptional<z.ZodNumber>;
566
580
  }, z.core.$strip>>;
@@ -635,6 +649,7 @@ export declare const ChatFilePreviewSchema: z.ZodDiscriminatedUnion<[z.ZodObject
635
649
  lineExact: z.ZodOptional<z.ZodNumber>;
636
650
  lineAtLeast: z.ZodOptional<z.ZodNumber>;
637
651
  pageBreakBefore: z.ZodOptional<z.ZodLiteral<true>>;
652
+ keepNext: z.ZodOptional<z.ZodLiteral<true>>;
638
653
  shading: z.ZodOptional<z.ZodString>;
639
654
  size: z.ZodOptional<z.ZodNumber>;
640
655
  }, z.core.$strip>>;
@@ -702,6 +717,7 @@ export declare const ChatFilePreviewSchema: z.ZodDiscriminatedUnion<[z.ZodObject
702
717
  justify: "justify";
703
718
  }>>;
704
719
  size: z.ZodOptional<z.ZodNumber>;
720
+ keepNext: z.ZodOptional<z.ZodLiteral<true>>;
705
721
  }, z.core.$strip>>>;
706
722
  widths: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
707
723
  borders: z.ZodBoolean;
@@ -730,6 +746,8 @@ export declare const ChatFilePreviewSchema: z.ZodDiscriminatedUnion<[z.ZodObject
730
746
  maxDecimals: z.ZodOptional<z.ZodNumber>;
731
747
  currency: z.ZodOptional<z.ZodString>;
732
748
  grouped: z.ZodOptional<z.ZodLiteral<true>>;
749
+ numFmt: z.ZodOptional<z.ZodNumber>;
750
+ serial: z.ZodOptional<z.ZodNumber>;
733
751
  missing: z.ZodOptional<z.ZodLiteral<true>>;
734
752
  formula: z.ZodOptional<z.ZodString>;
735
753
  style: z.ZodOptional<z.ZodNumber>;
@@ -793,9 +811,17 @@ export declare const ChatFilePreviewSchema: z.ZodDiscriminatedUnion<[z.ZodObject
793
811
  }, z.core.$strip>>;
794
812
  }, z.core.$strip>>;
795
813
  }, z.core.$strip>>;
814
+ numberFormats: z.ZodOptional<z.ZodArray<z.ZodString>>;
815
+ date1904: z.ZodOptional<z.ZodLiteral<true>>;
796
816
  staleFormulas: z.ZodBoolean;
797
817
  computedFormulas: z.ZodBoolean;
798
818
  }, z.core.$strip>], "kind">;
819
+ /**
820
+ * An Excel number format of dates or times: outside its text, its colors
821
+ * and its locale tags it names days, months, years, hours, minutes or
822
+ * seconds (`dd/mm/yyyy`, `hh:mm`, `[h]:mm`).
823
+ */
824
+ export declare const isSpreadsheetDateFormat: (code: string) => boolean;
799
825
  export type SpreadsheetPreviewBorder = z.infer<typeof SpreadsheetPreviewBorderSchema>;
800
826
  export type SpreadsheetPreviewStyle = z.infer<typeof SpreadsheetPreviewStyleSchema>;
801
827
  export type SpreadsheetPreviewCell = z.infer<typeof SpreadsheetPreviewCellSchema>;
@@ -116,6 +116,7 @@ export declare const WordPreviewParagraphStyleSchema: z.ZodObject<{
116
116
  lineExact: z.ZodOptional<z.ZodNumber>;
117
117
  lineAtLeast: z.ZodOptional<z.ZodNumber>;
118
118
  pageBreakBefore: z.ZodOptional<z.ZodLiteral<true>>;
119
+ keepNext: z.ZodOptional<z.ZodLiteral<true>>;
119
120
  shading: z.ZodOptional<z.ZodString>;
120
121
  size: z.ZodOptional<z.ZodNumber>;
121
122
  }, z.core.$strip>;
@@ -180,6 +181,7 @@ export declare const WordPreviewCellSchema: z.ZodObject<{
180
181
  justify: "justify";
181
182
  }>>;
182
183
  size: z.ZodOptional<z.ZodNumber>;
184
+ keepNext: z.ZodOptional<z.ZodLiteral<true>>;
183
185
  }, z.core.$strip>;
184
186
  export declare const WordPreviewBlockSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
185
187
  kind: z.ZodLiteral<"heading">;
@@ -252,6 +254,7 @@ export declare const WordPreviewBlockSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
252
254
  lineExact: z.ZodOptional<z.ZodNumber>;
253
255
  lineAtLeast: z.ZodOptional<z.ZodNumber>;
254
256
  pageBreakBefore: z.ZodOptional<z.ZodLiteral<true>>;
257
+ keepNext: z.ZodOptional<z.ZodLiteral<true>>;
255
258
  shading: z.ZodOptional<z.ZodString>;
256
259
  size: z.ZodOptional<z.ZodNumber>;
257
260
  }, z.core.$strip>>;
@@ -326,6 +329,7 @@ export declare const WordPreviewBlockSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
326
329
  lineExact: z.ZodOptional<z.ZodNumber>;
327
330
  lineAtLeast: z.ZodOptional<z.ZodNumber>;
328
331
  pageBreakBefore: z.ZodOptional<z.ZodLiteral<true>>;
332
+ keepNext: z.ZodOptional<z.ZodLiteral<true>>;
329
333
  shading: z.ZodOptional<z.ZodString>;
330
334
  size: z.ZodOptional<z.ZodNumber>;
331
335
  }, z.core.$strip>>;
@@ -393,6 +397,7 @@ export declare const WordPreviewBlockSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
393
397
  justify: "justify";
394
398
  }>>;
395
399
  size: z.ZodOptional<z.ZodNumber>;
400
+ keepNext: z.ZodOptional<z.ZodLiteral<true>>;
396
401
  }, z.core.$strip>>>;
397
402
  widths: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
398
403
  borders: z.ZodBoolean;
@@ -510,6 +515,7 @@ export declare const WordPreviewSchema: z.ZodObject<{
510
515
  lineExact: z.ZodOptional<z.ZodNumber>;
511
516
  lineAtLeast: z.ZodOptional<z.ZodNumber>;
512
517
  pageBreakBefore: z.ZodOptional<z.ZodLiteral<true>>;
518
+ keepNext: z.ZodOptional<z.ZodLiteral<true>>;
513
519
  shading: z.ZodOptional<z.ZodString>;
514
520
  size: z.ZodOptional<z.ZodNumber>;
515
521
  }, z.core.$strip>>;
@@ -584,6 +590,7 @@ export declare const WordPreviewSchema: z.ZodObject<{
584
590
  lineExact: z.ZodOptional<z.ZodNumber>;
585
591
  lineAtLeast: z.ZodOptional<z.ZodNumber>;
586
592
  pageBreakBefore: z.ZodOptional<z.ZodLiteral<true>>;
593
+ keepNext: z.ZodOptional<z.ZodLiteral<true>>;
587
594
  shading: z.ZodOptional<z.ZodString>;
588
595
  size: z.ZodOptional<z.ZodNumber>;
589
596
  }, z.core.$strip>>;
@@ -651,6 +658,7 @@ export declare const WordPreviewSchema: z.ZodObject<{
651
658
  justify: "justify";
652
659
  }>>;
653
660
  size: z.ZodOptional<z.ZodNumber>;
661
+ keepNext: z.ZodOptional<z.ZodLiteral<true>>;
654
662
  }, z.core.$strip>>>;
655
663
  widths: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
656
664
  borders: z.ZodBoolean;
@@ -771,6 +779,7 @@ export declare const WordPreviewSchema: z.ZodObject<{
771
779
  lineExact: z.ZodOptional<z.ZodNumber>;
772
780
  lineAtLeast: z.ZodOptional<z.ZodNumber>;
773
781
  pageBreakBefore: z.ZodOptional<z.ZodLiteral<true>>;
782
+ keepNext: z.ZodOptional<z.ZodLiteral<true>>;
774
783
  shading: z.ZodOptional<z.ZodString>;
775
784
  size: z.ZodOptional<z.ZodNumber>;
776
785
  }, z.core.$strip>>;
@@ -845,6 +854,7 @@ export declare const WordPreviewSchema: z.ZodObject<{
845
854
  lineExact: z.ZodOptional<z.ZodNumber>;
846
855
  lineAtLeast: z.ZodOptional<z.ZodNumber>;
847
856
  pageBreakBefore: z.ZodOptional<z.ZodLiteral<true>>;
857
+ keepNext: z.ZodOptional<z.ZodLiteral<true>>;
848
858
  shading: z.ZodOptional<z.ZodString>;
849
859
  size: z.ZodOptional<z.ZodNumber>;
850
860
  }, z.core.$strip>>;
@@ -912,6 +922,7 @@ export declare const WordPreviewSchema: z.ZodObject<{
912
922
  justify: "justify";
913
923
  }>>;
914
924
  size: z.ZodOptional<z.ZodNumber>;
925
+ keepNext: z.ZodOptional<z.ZodLiteral<true>>;
915
926
  }, z.core.$strip>>>;
916
927
  widths: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
917
928
  borders: z.ZodBoolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@8wave/ai-elements",
3
3
  "private": false,
4
- "version": "0.124.0-beta.8",
4
+ "version": "0.124.0",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite --port 8082 --open --host",