@optiaxiom/proteus 0.1.15 → 0.1.16
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/dist/esm/assets/src/proteus-chart/{ProteusChart.css.ts.vanilla-DIh5iVZ2.css → ProteusChart.css.ts.vanilla-CK0mlfvQ.css} +2 -2
- package/dist/esm/assets/src/proteus-chart/{ProteusChartTooltipContent.css.ts.vanilla-RKpsJzZl.css → ProteusChartTooltipContent.css.ts.vanilla-VEKfizml.css} +2 -2
- package/dist/esm/assets/src/proteus-image-carousel/ProteusImageCarousel.css.ts.vanilla-DV3O-VwO.css +72 -0
- package/dist/esm/assets/src/proteus-question/{ProteusQuestion.css.ts.vanilla-BRuBo7tD.css → ProteusQuestion.css.ts.vanilla-0cQoAJ0-.css} +2 -2
- package/dist/esm/index.js +1 -0
- package/dist/esm/proteus-chart/ProteusChart-css.js +1 -1
- package/dist/esm/proteus-chart/ProteusChartTooltipContent-css.js +1 -1
- package/dist/esm/proteus-document/ProteusDocumentShell.js +19 -1
- package/dist/esm/proteus-element/ProteusElement.js +10 -2
- package/dist/esm/proteus-image-carousel/ProteusImageCarousel-css.js +12 -0
- package/dist/esm/proteus-image-carousel/ProteusImageCarousel.js +164 -0
- package/dist/esm/proteus-question/ProteusQuestion-css.js +2 -2
- package/dist/esm/proteus-question/ProteusQuestion.js +15 -15
- package/dist/esm/schema/public-schema.json.js +106 -0
- package/dist/esm/schema/runtime-schema.json.js +104 -0
- package/dist/index.d.ts +33 -1
- package/dist/spec.d.ts +532 -436
- package/package.json +4 -3
|
@@ -2703,6 +2703,9 @@ var definitions = {
|
|
|
2703
2703
|
{
|
|
2704
2704
|
$ref: "#/definitions/ProteusImage"
|
|
2705
2705
|
},
|
|
2706
|
+
{
|
|
2707
|
+
$ref: "#/definitions/ProteusImageCarousel"
|
|
2708
|
+
},
|
|
2706
2709
|
{
|
|
2707
2710
|
$ref: "#/definitions/ProteusInput"
|
|
2708
2711
|
},
|
|
@@ -4145,6 +4148,26 @@ var definitions = {
|
|
|
4145
4148
|
justifyItems: {
|
|
4146
4149
|
$ref: "#/definitions/SprinkleProp_justifyItems"
|
|
4147
4150
|
},
|
|
4151
|
+
lineClamp: {
|
|
4152
|
+
anyOf: [
|
|
4153
|
+
{
|
|
4154
|
+
"const": "2"
|
|
4155
|
+
},
|
|
4156
|
+
{
|
|
4157
|
+
"const": "4"
|
|
4158
|
+
},
|
|
4159
|
+
{
|
|
4160
|
+
"const": "1"
|
|
4161
|
+
},
|
|
4162
|
+
{
|
|
4163
|
+
"const": "3"
|
|
4164
|
+
},
|
|
4165
|
+
{
|
|
4166
|
+
$ref: "#/definitions/ProteusValue"
|
|
4167
|
+
}
|
|
4168
|
+
],
|
|
4169
|
+
description: "Truncate the text at specific number of lines."
|
|
4170
|
+
},
|
|
4148
4171
|
m: {
|
|
4149
4172
|
$ref: "#/definitions/SprinkleProp_m"
|
|
4150
4173
|
},
|
|
@@ -5724,6 +5747,87 @@ var definitions = {
|
|
|
5724
5747
|
],
|
|
5725
5748
|
type: "object"
|
|
5726
5749
|
},
|
|
5750
|
+
ProteusImageCarousel: {
|
|
5751
|
+
examples: [
|
|
5752
|
+
{
|
|
5753
|
+
$type: "ImageCarousel",
|
|
5754
|
+
images: [
|
|
5755
|
+
{
|
|
5756
|
+
alt: "Image 1",
|
|
5757
|
+
src: "https://placehold.co/600x400"
|
|
5758
|
+
},
|
|
5759
|
+
{
|
|
5760
|
+
alt: "Image 2",
|
|
5761
|
+
src: "https://placehold.co/600x400"
|
|
5762
|
+
}
|
|
5763
|
+
]
|
|
5764
|
+
}
|
|
5765
|
+
],
|
|
5766
|
+
properties: {
|
|
5767
|
+
$type: {
|
|
5768
|
+
"const": "ImageCarousel"
|
|
5769
|
+
},
|
|
5770
|
+
downloadAll: {
|
|
5771
|
+
anyOf: [
|
|
5772
|
+
{
|
|
5773
|
+
$ref: "#/definitions/ProteusValue"
|
|
5774
|
+
},
|
|
5775
|
+
{
|
|
5776
|
+
type: "string"
|
|
5777
|
+
}
|
|
5778
|
+
],
|
|
5779
|
+
description: "URL to download all images (e.g. as a zip file). Falls back to downloading each image individually."
|
|
5780
|
+
},
|
|
5781
|
+
images: {
|
|
5782
|
+
anyOf: [
|
|
5783
|
+
{
|
|
5784
|
+
description: "Inline array of image objects",
|
|
5785
|
+
items: {
|
|
5786
|
+
properties: {
|
|
5787
|
+
alt: {
|
|
5788
|
+
description: "Alternative text for the image",
|
|
5789
|
+
type: "string"
|
|
5790
|
+
},
|
|
5791
|
+
src: {
|
|
5792
|
+
description: "The image source URL",
|
|
5793
|
+
type: "string"
|
|
5794
|
+
},
|
|
5795
|
+
thumb: {
|
|
5796
|
+
description: "The URL to the image thumbnail. Falls back to src if not provided.",
|
|
5797
|
+
type: "string"
|
|
5798
|
+
}
|
|
5799
|
+
},
|
|
5800
|
+
required: [
|
|
5801
|
+
"src"
|
|
5802
|
+
],
|
|
5803
|
+
type: "object"
|
|
5804
|
+
},
|
|
5805
|
+
type: "array"
|
|
5806
|
+
},
|
|
5807
|
+
{
|
|
5808
|
+
$ref: "#/definitions/ProteusValue"
|
|
5809
|
+
}
|
|
5810
|
+
],
|
|
5811
|
+
description: "Array of image data to display in the carousel"
|
|
5812
|
+
},
|
|
5813
|
+
title: {
|
|
5814
|
+
anyOf: [
|
|
5815
|
+
{
|
|
5816
|
+
$ref: "#/definitions/ProteusValue"
|
|
5817
|
+
},
|
|
5818
|
+
{
|
|
5819
|
+
type: "string"
|
|
5820
|
+
}
|
|
5821
|
+
],
|
|
5822
|
+
description: "Accessible label for the carousel region."
|
|
5823
|
+
}
|
|
5824
|
+
},
|
|
5825
|
+
required: [
|
|
5826
|
+
"$type",
|
|
5827
|
+
"images"
|
|
5828
|
+
],
|
|
5829
|
+
type: "object"
|
|
5830
|
+
},
|
|
5727
5831
|
ProteusInput: {
|
|
5728
5832
|
examples: [
|
|
5729
5833
|
{
|
package/dist/index.d.ts
CHANGED
|
@@ -66,6 +66,38 @@ declare const ProteusDataTable: {
|
|
|
66
66
|
displayName: string;
|
|
67
67
|
};
|
|
68
68
|
|
|
69
|
+
type ProteusImageCarouselProps = {
|
|
70
|
+
/**
|
|
71
|
+
* URL to download all images (e.g. as a zip file).
|
|
72
|
+
*/
|
|
73
|
+
downloadAll?: string;
|
|
74
|
+
/**
|
|
75
|
+
* Array of image data to display in the carousel.
|
|
76
|
+
*/
|
|
77
|
+
images: Array<{
|
|
78
|
+
/**
|
|
79
|
+
* Alternative text for the image.
|
|
80
|
+
*/
|
|
81
|
+
alt?: string;
|
|
82
|
+
/**
|
|
83
|
+
* The URL to the full image.
|
|
84
|
+
*/
|
|
85
|
+
src: string;
|
|
86
|
+
/**
|
|
87
|
+
* The URL to the image thumbnail.
|
|
88
|
+
*/
|
|
89
|
+
thumb?: string;
|
|
90
|
+
}>;
|
|
91
|
+
/**
|
|
92
|
+
* Accessible label for the carousel region.
|
|
93
|
+
*/
|
|
94
|
+
title?: string;
|
|
95
|
+
};
|
|
96
|
+
declare function ProteusImageCarousel({ downloadAll, images, title, }: ProteusImageCarouselProps): react_jsx_runtime.JSX.Element | null;
|
|
97
|
+
declare namespace ProteusImageCarousel {
|
|
98
|
+
var displayName: string;
|
|
99
|
+
}
|
|
100
|
+
|
|
69
101
|
type ProteusImageProps = BoxProps<"img">;
|
|
70
102
|
declare function ProteusImage(props: ProteusImageProps): react_jsx_runtime.JSX.Element;
|
|
71
103
|
declare namespace ProteusImage {
|
|
@@ -292,5 +324,5 @@ declare namespace ProteusTextarea {
|
|
|
292
324
|
|
|
293
325
|
declare function useProteusValue(element: ProteusValueProps): any;
|
|
294
326
|
|
|
295
|
-
export { ProteusAction, ProteusCancelAction, ProteusChart, ProteusDataTable, ProteusDocumentRenderer, ProteusDocumentShell, ProteusImage, ProteusInput, ProteusMap, ProteusSelect, ProteusShow, ProteusTextarea, safeParseDocument, useProteusValue };
|
|
327
|
+
export { ProteusAction, ProteusCancelAction, ProteusChart, ProteusDataTable, ProteusDocumentRenderer, ProteusDocumentShell, ProteusImage, ProteusImageCarousel, ProteusInput, ProteusMap, ProteusSelect, ProteusShow, ProteusTextarea, safeParseDocument, useProteusValue };
|
|
296
328
|
export type { ProteusDocumentRendererProps, ProteusDocumentShellProps };
|