@optiaxiom/proteus 0.1.17 → 0.1.19

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.
@@ -14,6 +14,7 @@ function ProteusDocumentShell({
14
14
  defaultOpen = true,
15
15
  element,
16
16
  onDataChange,
17
+ onDownload,
17
18
  onInteraction,
18
19
  onMessage,
19
20
  onOpenChange,
@@ -50,20 +51,24 @@ function ProteusDocumentShell({
50
51
  } else if ("message" in event) {
51
52
  await onMessage?.(event.message);
52
53
  } else if (event.action === "download") {
54
+ const urls = [];
53
55
  if (typeof event.url === "string") {
54
- await downloadFile(event.url);
56
+ urls.push(event.url);
55
57
  } else if (Array.isArray(event.url)) {
56
- await Promise.all(
57
- event.url.map((u) => {
58
- if (typeof u !== "string") {
59
- throw new Error("Invalid URL in download array");
60
- }
61
- return downloadFile(u);
62
- })
63
- );
58
+ for (const u of event.url) {
59
+ if (typeof u !== "string") {
60
+ throw new Error("Invalid URL in download array");
61
+ }
62
+ urls.push(u);
63
+ }
64
64
  } else {
65
65
  throw new Error("Invalid URL for download action");
66
66
  }
67
+ if (onDownload) {
68
+ await onDownload(urls);
69
+ } else {
70
+ await Promise.all(urls.map((u) => downloadFile(u)));
71
+ }
67
72
  }
68
73
  }),
69
74
  readOnly,
@@ -2,9 +2,12 @@
2
2
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
3
3
  import { Box, Spinner, Dialog, DialogTrigger, DialogContent, DialogHeader, DialogBody, DialogFooter, DialogClose, Button } from '@optiaxiom/react';
4
4
  import { useState } from 'react';
5
- import { downloadFile } from './downloadFile.js';
5
+ import { useProteusDocumentContext } from '../proteus-document/ProteusDocumentContext.js';
6
6
 
7
7
  function ProteusImage(props) {
8
+ const { onEvent } = useProteusDocumentContext(
9
+ "@optiaxiom/proteus/ProteusImage"
10
+ );
8
11
  const [open, setOpen] = useState(false);
9
12
  const [isDownloading, setIsDownloading] = useState(false);
10
13
  const [isLoaded, setIsLoaded] = useState(false);
@@ -87,7 +90,10 @@ function ProteusImage(props) {
87
90
  }
88
91
  setIsDownloading(true);
89
92
  try {
90
- await downloadFile(String(props.src));
93
+ await onEvent({
94
+ action: "download",
95
+ url: String(props.src)
96
+ });
91
97
  } finally {
92
98
  setIsDownloading(false);
93
99
  }
@@ -5,15 +5,17 @@ import useEmblaCarousel from 'embla-carousel-react';
5
5
  import { useState, useCallback, useEffect } from 'react';
6
6
  import { IconAngleLeft } from '../icons/IconAngleLeft.js';
7
7
  import { IconAngleRight } from '../icons/IconAngleRight.js';
8
- import { downloadFile } from '../proteus-image/downloadFile.js';
8
+ import { useProteusDocumentContext } from '../proteus-document/ProteusDocumentContext.js';
9
9
  import { ProteusImage } from '../proteus-image/ProteusImage.js';
10
10
  import { carousel, content, viewport, slideContainer, slide, navButton, thumbnail } from './ProteusImageCarousel-css.js';
11
11
 
12
12
  function ProteusImageCarousel({
13
- downloadAll,
14
13
  images,
15
14
  title
16
15
  }) {
16
+ const { onEvent } = useProteusDocumentContext(
17
+ "@optiaxiom/proteus/ProteusImageCarousel"
18
+ );
17
19
  const [emblaMainRef, emblaMainApi] = useEmblaCarousel({ loop: false });
18
20
  const [emblaThumbsRef, emblaThumbsApi] = useEmblaCarousel({
19
21
  containScroll: "keepSnaps",
@@ -124,19 +126,17 @@ function ProteusImageCarousel({
124
126
  {
125
127
  options: [
126
128
  {
127
- execute: () => downloadFile(images[selectedIndex].src),
129
+ execute: () => onEvent({
130
+ action: "download",
131
+ url: images[selectedIndex].src
132
+ }),
128
133
  label: "Download this image"
129
134
  },
130
135
  {
131
- execute: () => {
132
- if (downloadAll) {
133
- window.open(downloadAll, "_blank");
134
- } else {
135
- for (const image of images) {
136
- void downloadFile(image.src);
137
- }
138
- }
139
- },
136
+ execute: () => onEvent({
137
+ action: "download",
138
+ url: images.map((image) => image.src)
139
+ }),
140
140
  label: "Download all images"
141
141
  }
142
142
  ],
@@ -150,7 +150,7 @@ function ProteusImageCarousel({
150
150
  {
151
151
  appearance: "primary",
152
152
  ml: "auto",
153
- onClick: () => downloadFile(images[0].src),
153
+ onClick: () => onEvent({ action: "download", url: images[0].src }),
154
154
  children: "Download"
155
155
  }
156
156
  )
@@ -5840,17 +5840,6 @@ var definitions = {
5840
5840
  $type: {
5841
5841
  "const": "ImageCarousel"
5842
5842
  },
5843
- downloadAll: {
5844
- anyOf: [
5845
- {
5846
- $ref: "#/definitions/ProteusExpression"
5847
- },
5848
- {
5849
- type: "string"
5850
- }
5851
- ],
5852
- description: "URL to download all images (e.g. as a zip file). Falls back to downloading each image individually."
5853
- },
5854
5843
  images: {
5855
5844
  anyOf: [
5856
5845
  {
@@ -5805,17 +5805,6 @@ var definitions = {
5805
5805
  $type: {
5806
5806
  "const": "ImageCarousel"
5807
5807
  },
5808
- downloadAll: {
5809
- anyOf: [
5810
- {
5811
- $ref: "#/definitions/ProteusExpression"
5812
- },
5813
- {
5814
- type: "string"
5815
- }
5816
- ],
5817
- description: "URL to download all images (e.g. as a zip file). Falls back to downloading each image individually."
5818
- },
5819
5808
  images: {
5820
5809
  anyOf: [
5821
5810
  {
package/dist/index.d.ts CHANGED
@@ -67,10 +67,6 @@ declare const ProteusDataTable: {
67
67
  };
68
68
 
69
69
  type ProteusImageCarouselProps = {
70
- /**
71
- * URL to download all images (e.g. as a zip file).
72
- */
73
- downloadAll?: string;
74
70
  /**
75
71
  * Array of image data to display in the carousel.
76
72
  */
@@ -93,7 +89,7 @@ type ProteusImageCarouselProps = {
93
89
  */
94
90
  title?: string;
95
91
  };
96
- declare function ProteusImageCarousel({ downloadAll, images, title, }: ProteusImageCarouselProps): react_jsx_runtime.JSX.Element | null;
92
+ declare function ProteusImageCarousel({ images, title, }: ProteusImageCarouselProps): react_jsx_runtime.JSX.Element | null;
97
93
  declare namespace ProteusImageCarousel {
98
94
  var displayName: string;
99
95
  }
@@ -223,6 +219,12 @@ type ProteusDocumentShellProps = Pick<ComponentPropsWithoutRef<typeof Disclosure
223
219
  * Callback when form fields change
224
220
  */
225
221
  onDataChange?: (data: Record<string, unknown>) => void;
222
+ /**
223
+ * Callback when user triggers a download action; receives the resolved URL(s).
224
+ * When provided, the host is responsible for the actual download/zip.
225
+ * Falls back to built-in window.open behaviour when absent.
226
+ */
227
+ onDownload?: (urls: string[]) => Promise<void> | void;
226
228
  /**
227
229
  * Callback when user clicks a Action button with interaction handler
228
230
  */
@@ -250,7 +252,7 @@ type ProteusDocument$2 = {
250
252
  title?: ReactNode;
251
253
  titleIcon?: string;
252
254
  };
253
- declare function ProteusDocumentShell({ collapsible: collapsibleProp, data, defaultOpen, element, onDataChange, onInteraction, onMessage, onOpenChange, open: openProp, readOnly, strict, }: ProteusDocumentShellProps): react_jsx_runtime.JSX.Element;
255
+ declare function ProteusDocumentShell({ collapsible: collapsibleProp, data, defaultOpen, element, onDataChange, onDownload, onInteraction, onMessage, onOpenChange, open: openProp, readOnly, strict, }: ProteusDocumentShellProps): react_jsx_runtime.JSX.Element;
254
256
  declare namespace ProteusDocumentShell {
255
257
  var displayName: string;
256
258
  }
package/dist/spec.d.ts CHANGED
@@ -5513,20 +5513,8 @@ declare namespace definitions {
5513
5513
  export { _const_17 as const };
5514
5514
  }
5515
5515
  export { $type_17 as $type };
5516
- export namespace downloadAll {
5517
- let anyOf_84: ({
5518
- $ref: string;
5519
- type?: undefined;
5520
- } | {
5521
- type: string;
5522
- $ref?: undefined;
5523
- })[];
5524
- export { anyOf_84 as anyOf };
5525
- let description_111: string;
5526
- export { description_111 as description };
5527
- }
5528
5516
  export namespace images {
5529
- let anyOf_85: ({
5517
+ let anyOf_84: ({
5530
5518
  description: string;
5531
5519
  items: {
5532
5520
  additionalProperties: boolean;
@@ -5555,21 +5543,21 @@ declare namespace definitions {
5555
5543
  items?: undefined;
5556
5544
  type?: undefined;
5557
5545
  })[];
5558
- export { anyOf_85 as anyOf };
5559
- let description_112: string;
5560
- export { description_112 as description };
5546
+ export { anyOf_84 as anyOf };
5547
+ let description_111: string;
5548
+ export { description_111 as description };
5561
5549
  }
5562
5550
  export namespace title_1 {
5563
- let anyOf_86: ({
5551
+ let anyOf_85: ({
5564
5552
  $ref: string;
5565
5553
  type?: undefined;
5566
5554
  } | {
5567
5555
  type: string;
5568
5556
  $ref?: undefined;
5569
5557
  })[];
5570
- export { anyOf_86 as anyOf };
5571
- let description_113: string;
5572
- export { description_113 as description };
5558
+ export { anyOf_85 as anyOf };
5559
+ let description_112: string;
5560
+ export { description_112 as description };
5573
5561
  }
5574
5562
  export { title_1 as title };
5575
5563
  }
@@ -5597,15 +5585,15 @@ declare namespace definitions {
5597
5585
  export namespace addonAfter_1 {
5598
5586
  let $ref_712: string;
5599
5587
  export { $ref_712 as $ref };
5600
- let description_114: string;
5601
- export { description_114 as description };
5588
+ let description_113: string;
5589
+ export { description_113 as description };
5602
5590
  }
5603
5591
  export { addonAfter_1 as addonAfter };
5604
5592
  export namespace addonBefore_1 {
5605
5593
  let $ref_713: string;
5606
5594
  export { $ref_713 as $ref };
5607
- let description_115: string;
5608
- export { description_115 as description };
5595
+ let description_114: string;
5596
+ export { description_114 as description };
5609
5597
  }
5610
5598
  export { addonBefore_1 as addonBefore };
5611
5599
  export namespace alignItems_12 {
@@ -5624,29 +5612,29 @@ declare namespace definitions {
5624
5612
  }
5625
5613
  export { animation_12 as animation };
5626
5614
  export namespace appearance_1 {
5627
- let anyOf_87: ({
5615
+ let anyOf_86: ({
5628
5616
  const: string;
5629
5617
  $ref?: undefined;
5630
5618
  } | {
5631
5619
  $ref: string;
5632
5620
  const?: undefined;
5633
5621
  })[];
5634
- export { anyOf_87 as anyOf };
5635
- let description_116: string;
5636
- export { description_116 as description };
5622
+ export { anyOf_86 as anyOf };
5623
+ let description_115: string;
5624
+ export { description_115 as description };
5637
5625
  }
5638
5626
  export { appearance_1 as appearance };
5639
5627
  export namespace autoFocus {
5640
- let anyOf_88: ({
5628
+ let anyOf_87: ({
5641
5629
  type: string;
5642
5630
  $ref?: undefined;
5643
5631
  } | {
5644
5632
  $ref: string;
5645
5633
  type?: undefined;
5646
5634
  })[];
5647
- export { anyOf_88 as anyOf };
5648
- let description_117: string;
5649
- export { description_117 as description };
5635
+ export { anyOf_87 as anyOf };
5636
+ let description_116: string;
5637
+ export { description_116 as description };
5650
5638
  }
5651
5639
  export namespace backgroundImage_12 {
5652
5640
  let $ref_717: string;
@@ -5814,16 +5802,16 @@ declare namespace definitions {
5814
5802
  }
5815
5803
  export { my_12 as my };
5816
5804
  export namespace name_2 {
5817
- let anyOf_89: ({
5805
+ let anyOf_88: ({
5818
5806
  type: string;
5819
5807
  $ref?: undefined;
5820
5808
  } | {
5821
5809
  $ref: string;
5822
5810
  type?: undefined;
5823
5811
  })[];
5824
- export { anyOf_89 as anyOf };
5825
- let description_118: string;
5826
- export { description_118 as description };
5812
+ export { anyOf_88 as anyOf };
5813
+ let description_117: string;
5814
+ export { description_117 as description };
5827
5815
  }
5828
5816
  export { name_2 as name };
5829
5817
  export namespace objectFit_12 {
@@ -5862,16 +5850,16 @@ declare namespace definitions {
5862
5850
  }
5863
5851
  export { pl_12 as pl };
5864
5852
  export namespace placeholder_1 {
5865
- let anyOf_90: ({
5853
+ let anyOf_89: ({
5866
5854
  type: string;
5867
5855
  $ref?: undefined;
5868
5856
  } | {
5869
5857
  $ref: string;
5870
5858
  type?: undefined;
5871
5859
  })[];
5872
- export { anyOf_90 as anyOf };
5873
- let description_119: string;
5874
- export { description_119 as description };
5860
+ export { anyOf_89 as anyOf };
5861
+ let description_118: string;
5862
+ export { description_118 as description };
5875
5863
  }
5876
5864
  export { placeholder_1 as placeholder };
5877
5865
  export namespace placeItems_12 {
@@ -5905,16 +5893,16 @@ declare namespace definitions {
5905
5893
  }
5906
5894
  export { py_12 as py };
5907
5895
  export namespace required_21 {
5908
- let anyOf_91: ({
5896
+ let anyOf_90: ({
5909
5897
  type: string;
5910
5898
  $ref?: undefined;
5911
5899
  } | {
5912
5900
  $ref: string;
5913
5901
  type?: undefined;
5914
5902
  })[];
5915
- export { anyOf_91 as anyOf };
5916
- let description_120: string;
5917
- export { description_120 as description };
5903
+ export { anyOf_90 as anyOf };
5904
+ let description_119: string;
5905
+ export { description_119 as description };
5918
5906
  }
5919
5907
  export { required_21 as required };
5920
5908
  export namespace rounded_12 {
@@ -5943,7 +5931,7 @@ declare namespace definitions {
5943
5931
  }
5944
5932
  export { transition_12 as transition };
5945
5933
  export namespace type_37 {
5946
- let anyOf_92: ({
5934
+ let anyOf_91: ({
5947
5935
  const: string;
5948
5936
  type?: undefined;
5949
5937
  $ref?: undefined;
@@ -5956,9 +5944,9 @@ declare namespace definitions {
5956
5944
  const?: undefined;
5957
5945
  type?: undefined;
5958
5946
  })[];
5959
- export { anyOf_92 as anyOf };
5960
- let description_121: string;
5961
- export { description_121 as description };
5947
+ export { anyOf_91 as anyOf };
5948
+ let description_120: string;
5949
+ export { description_120 as description };
5962
5950
  }
5963
5951
  export { type_37 as type };
5964
5952
  export namespace w_12 {
@@ -6129,16 +6117,16 @@ declare namespace definitions {
6129
6117
  }
6130
6118
  export { h_13 as h };
6131
6119
  export namespace href_1 {
6132
- let anyOf_93: ({
6120
+ let anyOf_92: ({
6133
6121
  type: string;
6134
6122
  $ref?: undefined;
6135
6123
  } | {
6136
6124
  $ref: string;
6137
6125
  type?: undefined;
6138
6126
  })[];
6139
- export { anyOf_93 as anyOf };
6140
- let description_122: string;
6141
- export { description_122 as description };
6127
+ export { anyOf_92 as anyOf };
6128
+ let description_121: string;
6129
+ export { description_121 as description };
6142
6130
  }
6143
6131
  export { href_1 as href };
6144
6132
  export namespace justifyContent_13 {
@@ -6334,21 +6322,21 @@ declare namespace definitions {
6334
6322
  export namespace children_12 {
6335
6323
  let $ref_830: string;
6336
6324
  export { $ref_830 as $ref };
6337
- let description_123: string;
6338
- export { description_123 as description };
6325
+ let description_122: string;
6326
+ export { description_122 as description };
6339
6327
  }
6340
6328
  export { children_12 as children };
6341
6329
  export namespace path {
6342
- let description_124: string;
6343
- export { description_124 as description };
6330
+ let description_123: string;
6331
+ export { description_123 as description };
6344
6332
  let type_40: string;
6345
6333
  export { type_40 as type };
6346
6334
  }
6347
6335
  export namespace separator {
6348
6336
  let $ref_831: string;
6349
6337
  export { $ref_831 as $ref };
6350
- let description_125: string;
6351
- export { description_125 as description };
6338
+ let description_124: string;
6339
+ export { description_124 as description };
6352
6340
  }
6353
6341
  }
6354
6342
  export { properties_22 as properties };
@@ -6389,8 +6377,8 @@ declare namespace definitions {
6389
6377
  export namespace questions {
6390
6378
  let $ref_832: string;
6391
6379
  export { $ref_832 as $ref };
6392
- let description_126: string;
6393
- export { description_126 as description };
6380
+ let description_125: string;
6381
+ export { description_125 as description };
6394
6382
  }
6395
6383
  }
6396
6384
  export { properties_24 as properties };
@@ -6556,10 +6544,10 @@ declare namespace definitions {
6556
6544
  }
6557
6545
  export { m_14 as m };
6558
6546
  export namespace marks {
6559
- let description_127: string;
6560
- export { description_127 as description };
6547
+ let description_126: string;
6548
+ export { description_126 as description };
6561
6549
  export namespace items_3 {
6562
- let anyOf_94: ({
6550
+ let anyOf_93: ({
6563
6551
  type: string;
6564
6552
  additionalProperties?: undefined;
6565
6553
  properties?: undefined;
@@ -6579,23 +6567,23 @@ declare namespace definitions {
6579
6567
  required: string[];
6580
6568
  type: string;
6581
6569
  })[];
6582
- export { anyOf_94 as anyOf };
6570
+ export { anyOf_93 as anyOf };
6583
6571
  }
6584
6572
  export { items_3 as items };
6585
6573
  let type_44: string;
6586
6574
  export { type_44 as type };
6587
6575
  }
6588
6576
  export namespace max {
6589
- let anyOf_95: ({
6577
+ let anyOf_94: ({
6590
6578
  type: string;
6591
6579
  $ref?: undefined;
6592
6580
  } | {
6593
6581
  $ref: string;
6594
6582
  type?: undefined;
6595
6583
  })[];
6596
- export { anyOf_95 as anyOf };
6597
- let description_128: string;
6598
- export { description_128 as description };
6584
+ export { anyOf_94 as anyOf };
6585
+ let description_127: string;
6586
+ export { description_127 as description };
6599
6587
  }
6600
6588
  export namespace maxH_14 {
6601
6589
  let $ref_861: string;
@@ -6613,16 +6601,16 @@ declare namespace definitions {
6613
6601
  }
6614
6602
  export { mb_14 as mb };
6615
6603
  export namespace min {
6616
- let anyOf_96: ({
6604
+ let anyOf_95: ({
6617
6605
  type: string;
6618
6606
  $ref?: undefined;
6619
6607
  } | {
6620
6608
  $ref: string;
6621
6609
  type?: undefined;
6622
6610
  })[];
6623
- export { anyOf_96 as anyOf };
6624
- let description_129: string;
6625
- export { description_129 as description };
6611
+ export { anyOf_95 as anyOf };
6612
+ let description_128: string;
6613
+ export { description_128 as description };
6626
6614
  }
6627
6615
  export namespace ml_14 {
6628
6616
  let $ref_864: string;
@@ -6725,16 +6713,16 @@ declare namespace definitions {
6725
6713
  }
6726
6714
  export { shadow_14 as shadow };
6727
6715
  export namespace step {
6728
- let anyOf_97: ({
6716
+ let anyOf_96: ({
6729
6717
  type: string;
6730
6718
  $ref?: undefined;
6731
6719
  } | {
6732
6720
  $ref: string;
6733
6721
  type?: undefined;
6734
6722
  })[];
6735
- export { anyOf_97 as anyOf };
6736
- let description_130: string;
6737
- export { description_130 as description };
6723
+ export { anyOf_96 as anyOf };
6724
+ let description_129: string;
6725
+ export { description_129 as description };
6738
6726
  }
6739
6727
  export namespace textAlign_14 {
6740
6728
  let $ref_884: string;
@@ -6804,35 +6792,35 @@ declare namespace definitions {
6804
6792
  }
6805
6793
  export { children_13 as children };
6806
6794
  export namespace name_3 {
6807
- let anyOf_98: ({
6795
+ let anyOf_97: ({
6808
6796
  type: string;
6809
6797
  $ref?: undefined;
6810
6798
  } | {
6811
6799
  $ref: string;
6812
6800
  type?: undefined;
6813
6801
  })[];
6814
- export { anyOf_98 as anyOf };
6815
- let description_131: string;
6816
- export { description_131 as description };
6802
+ export { anyOf_97 as anyOf };
6803
+ let description_130: string;
6804
+ export { description_130 as description };
6817
6805
  }
6818
6806
  export { name_3 as name };
6819
6807
  export namespace options {
6820
- let description_132: string;
6821
- export { description_132 as description };
6808
+ let description_131: string;
6809
+ export { description_131 as description };
6822
6810
  export namespace items_4 {
6823
6811
  let additionalProperties_28: boolean;
6824
6812
  export { additionalProperties_28 as additionalProperties };
6825
6813
  export namespace properties_27 {
6826
6814
  export namespace label_1 {
6827
- let description_133: string;
6828
- export { description_133 as description };
6815
+ let description_132: string;
6816
+ export { description_132 as description };
6829
6817
  let type_46: string;
6830
6818
  export { type_46 as type };
6831
6819
  }
6832
6820
  export { label_1 as label };
6833
6821
  export namespace value {
6834
- let description_134: string;
6835
- export { description_134 as description };
6822
+ let description_133: string;
6823
+ export { description_133 as description };
6836
6824
  let type_47: string;
6837
6825
  export { type_47 as type };
6838
6826
  }
@@ -6848,16 +6836,16 @@ declare namespace definitions {
6848
6836
  export { type_49 as type };
6849
6837
  }
6850
6838
  export namespace required_29 {
6851
- let anyOf_99: ({
6839
+ let anyOf_98: ({
6852
6840
  type: string;
6853
6841
  $ref?: undefined;
6854
6842
  } | {
6855
6843
  $ref: string;
6856
6844
  type?: undefined;
6857
6845
  })[];
6858
- export { anyOf_99 as anyOf };
6859
- let description_135: string;
6860
- export { description_135 as description };
6846
+ export { anyOf_98 as anyOf };
6847
+ let description_134: string;
6848
+ export { description_134 as description };
6861
6849
  }
6862
6850
  export { required_29 as required };
6863
6851
  }
@@ -7806,12 +7794,12 @@ declare namespace definitions {
7806
7794
  export namespace children_15 {
7807
7795
  let $ref_1064: string;
7808
7796
  export { $ref_1064 as $ref };
7809
- let description_136: string;
7810
- export { description_136 as description };
7797
+ let description_135: string;
7798
+ export { description_135 as description };
7811
7799
  }
7812
7800
  export { children_15 as children };
7813
7801
  export namespace when {
7814
- let anyOf_100: ({
7802
+ let anyOf_99: ({
7815
7803
  $ref: string;
7816
7804
  items?: undefined;
7817
7805
  type?: undefined;
@@ -7822,9 +7810,9 @@ declare namespace definitions {
7822
7810
  type: string;
7823
7811
  $ref?: undefined;
7824
7812
  })[];
7825
- export { anyOf_100 as anyOf };
7826
- let description_137: string;
7827
- export { description_137 as description };
7813
+ export { anyOf_99 as anyOf };
7814
+ let description_136: string;
7815
+ export { description_136 as description };
7828
7816
  }
7829
7817
  }
7830
7818
  export { properties_31 as properties };
@@ -7917,13 +7905,13 @@ declare namespace definitions {
7917
7905
  export { $ref_1078 as $ref };
7918
7906
  }
7919
7907
  export { cursor_18 as cursor };
7920
- export namespace description_138 {
7908
+ export namespace description_137 {
7921
7909
  let $ref_1079: string;
7922
7910
  export { $ref_1079 as $ref };
7923
- let description_139: string;
7924
- export { description_139 as description };
7911
+ let description_138: string;
7912
+ export { description_138 as description };
7925
7913
  }
7926
- export { description_138 as description };
7914
+ export { description_137 as description };
7927
7915
  export namespace display_18 {
7928
7916
  let $ref_1080: string;
7929
7917
  export { $ref_1080 as $ref };
@@ -8040,16 +8028,16 @@ declare namespace definitions {
8040
8028
  }
8041
8029
  export { my_18 as my };
8042
8030
  export namespace name_4 {
8043
- let anyOf_101: ({
8031
+ let anyOf_100: ({
8044
8032
  type: string;
8045
8033
  $ref?: undefined;
8046
8034
  } | {
8047
8035
  $ref: string;
8048
8036
  type?: undefined;
8049
8037
  })[];
8050
- export { anyOf_101 as anyOf };
8051
- let description_140: string;
8052
- export { description_140 as description };
8038
+ export { anyOf_100 as anyOf };
8039
+ let description_139: string;
8040
+ export { description_139 as description };
8053
8041
  }
8054
8042
  export { name_4 as name };
8055
8043
  export namespace objectFit_18 {
@@ -8118,16 +8106,16 @@ declare namespace definitions {
8118
8106
  }
8119
8107
  export { py_18 as py };
8120
8108
  export namespace required_35 {
8121
- let anyOf_102: ({
8109
+ let anyOf_101: ({
8122
8110
  type: string;
8123
8111
  $ref?: undefined;
8124
8112
  } | {
8125
8113
  $ref: string;
8126
8114
  type?: undefined;
8127
8115
  })[];
8128
- export { anyOf_102 as anyOf };
8129
- let description_141: string;
8130
- export { description_141 as description };
8116
+ export { anyOf_101 as anyOf };
8117
+ let description_140: string;
8118
+ export { description_140 as description };
8131
8119
  }
8132
8120
  export { required_35 as required };
8133
8121
  export namespace rounded_18 {
@@ -8332,16 +8320,16 @@ declare namespace definitions {
8332
8320
  }
8333
8321
  export { justifyItems_19 as justifyItems };
8334
8322
  export namespace lineClamp_1 {
8335
- let anyOf_103: ({
8323
+ let anyOf_102: ({
8336
8324
  const: string;
8337
8325
  $ref?: undefined;
8338
8326
  } | {
8339
8327
  $ref: string;
8340
8328
  const?: undefined;
8341
8329
  })[];
8342
- export { anyOf_103 as anyOf };
8343
- let description_142: string;
8344
- export { description_142 as description };
8330
+ export { anyOf_102 as anyOf };
8331
+ let description_141: string;
8332
+ export { description_141 as description };
8345
8333
  }
8346
8334
  export { lineClamp_1 as lineClamp };
8347
8335
  export namespace m_19 {
@@ -8485,16 +8473,16 @@ declare namespace definitions {
8485
8473
  }
8486
8474
  export { transition_19 as transition };
8487
8475
  export namespace truncate {
8488
- let anyOf_104: ({
8476
+ let anyOf_103: ({
8489
8477
  type: string;
8490
8478
  $ref?: undefined;
8491
8479
  } | {
8492
8480
  $ref: string;
8493
8481
  type?: undefined;
8494
8482
  })[];
8495
- export { anyOf_104 as anyOf };
8496
- let description_143: string;
8497
- export { description_143 as description };
8483
+ export { anyOf_103 as anyOf };
8484
+ let description_142: string;
8485
+ export { description_142 as description };
8498
8486
  }
8499
8487
  export namespace w_19 {
8500
8488
  let $ref_1180: string;
@@ -8679,16 +8667,16 @@ declare namespace definitions {
8679
8667
  }
8680
8668
  export { maxH_19 as maxH };
8681
8669
  export namespace maxRows {
8682
- let anyOf_105: ({
8670
+ let anyOf_104: ({
8683
8671
  const: number;
8684
8672
  $ref?: undefined;
8685
8673
  } | {
8686
8674
  $ref: string;
8687
8675
  const?: undefined;
8688
8676
  })[];
8689
- export { anyOf_105 as anyOf };
8690
- let description_144: string;
8691
- export { description_144 as description };
8677
+ export { anyOf_104 as anyOf };
8678
+ let description_143: string;
8679
+ export { description_143 as description };
8692
8680
  }
8693
8681
  export namespace maxW_20 {
8694
8682
  let $ref_1212: string;
@@ -8726,16 +8714,16 @@ declare namespace definitions {
8726
8714
  }
8727
8715
  export { my_20 as my };
8728
8716
  export namespace name_5 {
8729
- let anyOf_106: ({
8717
+ let anyOf_105: ({
8730
8718
  type: string;
8731
8719
  $ref?: undefined;
8732
8720
  } | {
8733
8721
  $ref: string;
8734
8722
  type?: undefined;
8735
8723
  })[];
8736
- export { anyOf_106 as anyOf };
8737
- let description_145: string;
8738
- export { description_145 as description };
8724
+ export { anyOf_105 as anyOf };
8725
+ let description_144: string;
8726
+ export { description_144 as description };
8739
8727
  }
8740
8728
  export { name_5 as name };
8741
8729
  export namespace objectFit_20 {
@@ -8774,16 +8762,16 @@ declare namespace definitions {
8774
8762
  }
8775
8763
  export { pl_20 as pl };
8776
8764
  export namespace placeholder_2 {
8777
- let anyOf_107: ({
8765
+ let anyOf_106: ({
8778
8766
  type: string;
8779
8767
  $ref?: undefined;
8780
8768
  } | {
8781
8769
  $ref: string;
8782
8770
  type?: undefined;
8783
8771
  })[];
8784
- export { anyOf_107 as anyOf };
8785
- let description_146: string;
8786
- export { description_146 as description };
8772
+ export { anyOf_106 as anyOf };
8773
+ let description_145: string;
8774
+ export { description_145 as description };
8787
8775
  }
8788
8776
  export { placeholder_2 as placeholder };
8789
8777
  export namespace placeItems_20 {
@@ -8817,29 +8805,29 @@ declare namespace definitions {
8817
8805
  }
8818
8806
  export { py_20 as py };
8819
8807
  export namespace required_38 {
8820
- let anyOf_108: ({
8808
+ let anyOf_107: ({
8821
8809
  type: string;
8822
8810
  $ref?: undefined;
8823
8811
  } | {
8824
8812
  $ref: string;
8825
8813
  type?: undefined;
8826
8814
  })[];
8827
- export { anyOf_108 as anyOf };
8828
- let description_147: string;
8829
- export { description_147 as description };
8815
+ export { anyOf_107 as anyOf };
8816
+ let description_146: string;
8817
+ export { description_146 as description };
8830
8818
  }
8831
8819
  export { required_38 as required };
8832
8820
  export namespace resize {
8833
- let anyOf_109: ({
8821
+ let anyOf_108: ({
8834
8822
  const: string;
8835
8823
  $ref?: undefined;
8836
8824
  } | {
8837
8825
  $ref: string;
8838
8826
  const?: undefined;
8839
8827
  })[];
8840
- export { anyOf_109 as anyOf };
8841
- let description_148: string;
8842
- export { description_148 as description };
8828
+ export { anyOf_108 as anyOf };
8829
+ let description_147: string;
8830
+ export { description_147 as description };
8843
8831
  }
8844
8832
  export namespace rounded_20 {
8845
8833
  let $ref_1232: string;
@@ -8847,16 +8835,16 @@ declare namespace definitions {
8847
8835
  }
8848
8836
  export { rounded_20 as rounded };
8849
8837
  export namespace rows {
8850
- let anyOf_110: ({
8838
+ let anyOf_109: ({
8851
8839
  type: string;
8852
8840
  $ref?: undefined;
8853
8841
  } | {
8854
8842
  $ref: string;
8855
8843
  type?: undefined;
8856
8844
  })[];
8857
- export { anyOf_110 as anyOf };
8858
- let description_149: string;
8859
- export { description_149 as description };
8845
+ export { anyOf_109 as anyOf };
8846
+ let description_148: string;
8847
+ export { description_148 as description };
8860
8848
  }
8861
8849
  export namespace shadow_20 {
8862
8850
  let $ref_1233: string;
@@ -8980,16 +8968,16 @@ declare namespace definitions {
8980
8968
  }
8981
8969
  export { cursor_21 as cursor };
8982
8970
  export namespace date {
8983
- let anyOf_111: ({
8971
+ let anyOf_110: ({
8984
8972
  type: string;
8985
8973
  $ref?: undefined;
8986
8974
  } | {
8987
8975
  $ref: string;
8988
8976
  type?: undefined;
8989
8977
  })[];
8990
- export { anyOf_111 as anyOf };
8991
- let description_150: string;
8992
- export { description_150 as description };
8978
+ export { anyOf_110 as anyOf };
8979
+ let description_149: string;
8980
+ export { description_149 as description };
8993
8981
  }
8994
8982
  export namespace display_21 {
8995
8983
  let $ref_1253: string;
@@ -9182,28 +9170,28 @@ declare namespace definitions {
9182
9170
  }
9183
9171
  export { shadow_21 as shadow };
9184
9172
  export namespace showDate {
9185
- let anyOf_112: ({
9173
+ let anyOf_111: ({
9186
9174
  type: string;
9187
9175
  $ref?: undefined;
9188
9176
  } | {
9189
9177
  $ref: string;
9190
9178
  type?: undefined;
9191
9179
  })[];
9192
- export { anyOf_112 as anyOf };
9193
- let description_151: string;
9194
- export { description_151 as description };
9180
+ export { anyOf_111 as anyOf };
9181
+ let description_150: string;
9182
+ export { description_150 as description };
9195
9183
  }
9196
9184
  export namespace showTime {
9197
- let anyOf_113: ({
9185
+ let anyOf_112: ({
9198
9186
  type: string;
9199
9187
  $ref?: undefined;
9200
9188
  } | {
9201
9189
  $ref: string;
9202
9190
  type?: undefined;
9203
9191
  })[];
9204
- export { anyOf_113 as anyOf };
9205
- let description_152: string;
9206
- export { description_152 as description };
9192
+ export { anyOf_112 as anyOf };
9193
+ let description_151: string;
9194
+ export { description_151 as description };
9207
9195
  }
9208
9196
  export namespace size_15 {
9209
9197
  let $ref_1291: string;
@@ -9262,7 +9250,7 @@ declare namespace definitions {
9262
9250
  }
9263
9251
  export { $type_33 as $type };
9264
9252
  export namespace formatter {
9265
- let anyOf_114: ({
9253
+ let anyOf_113: ({
9266
9254
  description: string;
9267
9255
  enum: string[];
9268
9256
  type: string;
@@ -9287,13 +9275,13 @@ declare namespace definitions {
9287
9275
  type: string;
9288
9276
  enum?: undefined;
9289
9277
  })[];
9290
- export { anyOf_114 as anyOf };
9291
- let description_153: string;
9292
- export { description_153 as description };
9278
+ export { anyOf_113 as anyOf };
9279
+ let description_152: string;
9280
+ export { description_152 as description };
9293
9281
  }
9294
9282
  export namespace path_1 {
9295
- let description_154: string;
9296
- export { description_154 as description };
9283
+ let description_153: string;
9284
+ export { description_153 as description };
9297
9285
  let type_59: string;
9298
9286
  export { type_59 as type };
9299
9287
  }
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "url": "git+https://github.com/optimizely-axiom/optiaxiom.git"
8
8
  },
9
9
  "type": "module",
10
- "version": "0.1.17",
10
+ "version": "0.1.19",
11
11
  "files": [
12
12
  "dist/**",
13
13
  "LICENSE"