@stina/extension-api 0.28.1 → 0.29.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.
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/runtime.d.cts +2 -2
- package/dist/runtime.d.ts +2 -2
- package/dist/schemas/index.cjs +30 -0
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +387 -1
- package/dist/schemas/index.d.ts +387 -1
- package/dist/schemas/index.js +26 -0
- package/dist/schemas/index.js.map +1 -1
- package/dist/{types.tools-ymsggUiN.d.cts → types.tools-DnJGW5Qi.d.cts} +40 -8
- package/dist/{types.tools-ymsggUiN.d.ts → types.tools-DnJGW5Qi.d.ts} +40 -8
- package/package.json +1 -1
- package/src/index.ts +6 -0
- package/src/schemas/components.schema.ts +41 -0
- package/src/schemas/index.ts +8 -0
- package/src/types.components.ts +48 -7
package/dist/schemas/index.d.ts
CHANGED
|
@@ -4490,6 +4490,22 @@ declare const MarkdownPropsSchema: z.ZodObject<{
|
|
|
4490
4490
|
content: z.ZodString;
|
|
4491
4491
|
style: z.ZodOptional<z.ZodRecord<z.ZodEnum<["color", "background-color", "background", "border-color", "border", "border-width", "border-style", "border-radius", "border-top", "border-right", "border-bottom", "border-left", "border-top-left-radius", "border-top-right-radius", "border-bottom-left-radius", "border-bottom-right-radius", "padding", "padding-top", "padding-right", "padding-bottom", "padding-left", "margin", "margin-top", "margin-right", "margin-bottom", "margin-left", "gap", "row-gap", "column-gap", "font-size", "font-weight", "font-style", "text-align", "text-decoration", "line-height", "letter-spacing", "white-space", "word-break", "overflow-wrap", "width", "height", "min-width", "min-height", "max-width", "max-height", "flex", "flex-grow", "flex-shrink", "flex-basis", "flex-wrap", "align-self", "justify-self", "align-items", "justify-content", "opacity", "visibility", "overflow", "overflow-x", "overflow-y", "box-shadow", "outline", "cursor", "border-collapse", "border-spacing"]>, z.ZodString>>;
|
|
4492
4492
|
}, z.ZodTypeAny, "passthrough">>;
|
|
4493
|
+
declare const TextPreviewPropsSchema: z.ZodObject<{
|
|
4494
|
+
component: z.ZodLiteral<"TextPreview">;
|
|
4495
|
+
content: z.ZodString;
|
|
4496
|
+
maxLines: z.ZodOptional<z.ZodNumber>;
|
|
4497
|
+
style: z.ZodOptional<z.ZodRecord<z.ZodEnum<["color", "background-color", "background", "border-color", "border", "border-width", "border-style", "border-radius", "border-top", "border-right", "border-bottom", "border-left", "border-top-left-radius", "border-top-right-radius", "border-bottom-left-radius", "border-bottom-right-radius", "padding", "padding-top", "padding-right", "padding-bottom", "padding-left", "margin", "margin-top", "margin-right", "margin-bottom", "margin-left", "gap", "row-gap", "column-gap", "font-size", "font-weight", "font-style", "text-align", "text-decoration", "line-height", "letter-spacing", "white-space", "word-break", "overflow-wrap", "width", "height", "min-width", "min-height", "max-width", "max-height", "flex", "flex-grow", "flex-shrink", "flex-basis", "flex-wrap", "align-self", "justify-self", "align-items", "justify-content", "opacity", "visibility", "overflow", "overflow-x", "overflow-y", "box-shadow", "outline", "cursor", "border-collapse", "border-spacing"]>, z.ZodString>>;
|
|
4498
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
4499
|
+
component: z.ZodLiteral<"TextPreview">;
|
|
4500
|
+
content: z.ZodString;
|
|
4501
|
+
maxLines: z.ZodOptional<z.ZodNumber>;
|
|
4502
|
+
style: z.ZodOptional<z.ZodRecord<z.ZodEnum<["color", "background-color", "background", "border-color", "border", "border-width", "border-style", "border-radius", "border-top", "border-right", "border-bottom", "border-left", "border-top-left-radius", "border-top-right-radius", "border-bottom-left-radius", "border-bottom-right-radius", "padding", "padding-top", "padding-right", "padding-bottom", "padding-left", "margin", "margin-top", "margin-right", "margin-bottom", "margin-left", "gap", "row-gap", "column-gap", "font-size", "font-weight", "font-style", "text-align", "text-decoration", "line-height", "letter-spacing", "white-space", "word-break", "overflow-wrap", "width", "height", "min-width", "min-height", "max-width", "max-height", "flex", "flex-grow", "flex-shrink", "flex-basis", "flex-wrap", "align-self", "justify-self", "align-items", "justify-content", "opacity", "visibility", "overflow", "overflow-x", "overflow-y", "box-shadow", "outline", "cursor", "border-collapse", "border-spacing"]>, z.ZodString>>;
|
|
4503
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
4504
|
+
component: z.ZodLiteral<"TextPreview">;
|
|
4505
|
+
content: z.ZodString;
|
|
4506
|
+
maxLines: z.ZodOptional<z.ZodNumber>;
|
|
4507
|
+
style: z.ZodOptional<z.ZodRecord<z.ZodEnum<["color", "background-color", "background", "border-color", "border", "border-width", "border-style", "border-radius", "border-top", "border-right", "border-bottom", "border-left", "border-top-left-radius", "border-top-right-radius", "border-bottom-left-radius", "border-bottom-right-radius", "padding", "padding-top", "padding-right", "padding-bottom", "padding-left", "margin", "margin-top", "margin-right", "margin-bottom", "margin-left", "gap", "row-gap", "column-gap", "font-size", "font-weight", "font-style", "text-align", "text-decoration", "line-height", "letter-spacing", "white-space", "word-break", "overflow-wrap", "width", "height", "min-width", "min-height", "max-width", "max-height", "flex", "flex-grow", "flex-shrink", "flex-basis", "flex-wrap", "align-self", "justify-self", "align-items", "justify-content", "opacity", "visibility", "overflow", "overflow-x", "overflow-y", "box-shadow", "outline", "cursor", "border-collapse", "border-spacing"]>, z.ZodString>>;
|
|
4508
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
4493
4509
|
declare const ModalPropsSchema: z.ZodObject<{
|
|
4494
4510
|
component: z.ZodLiteral<"Modal">;
|
|
4495
4511
|
title: z.ZodString;
|
|
@@ -4717,6 +4733,372 @@ declare const ConditionalGroupPropsSchema: z.ZodObject<{
|
|
|
4717
4733
|
}>]>;
|
|
4718
4734
|
style: z.ZodOptional<z.ZodRecord<z.ZodEnum<["color", "background-color", "background", "border-color", "border", "border-width", "border-style", "border-radius", "border-top", "border-right", "border-bottom", "border-left", "border-top-left-radius", "border-top-right-radius", "border-bottom-left-radius", "border-bottom-right-radius", "padding", "padding-top", "padding-right", "padding-bottom", "padding-left", "margin", "margin-top", "margin-right", "margin-bottom", "margin-left", "gap", "row-gap", "column-gap", "font-size", "font-weight", "font-style", "text-align", "text-decoration", "line-height", "letter-spacing", "white-space", "word-break", "overflow-wrap", "width", "height", "min-width", "min-height", "max-width", "max-height", "flex", "flex-grow", "flex-shrink", "flex-basis", "flex-wrap", "align-self", "justify-self", "align-items", "justify-content", "opacity", "visibility", "overflow", "overflow-x", "overflow-y", "box-shadow", "outline", "cursor", "border-collapse", "border-spacing"]>, z.ZodString>>;
|
|
4719
4735
|
}, z.ZodTypeAny, "passthrough">>;
|
|
4736
|
+
declare const FrameVariantSchema: z.ZodEnum<["border", "solid"]>;
|
|
4737
|
+
declare const FramePropsSchema: z.ZodObject<{
|
|
4738
|
+
component: z.ZodLiteral<"Frame">;
|
|
4739
|
+
title: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodArray<z.ZodType<{
|
|
4740
|
+
[key: string]: unknown;
|
|
4741
|
+
component: string;
|
|
4742
|
+
style?: Record<string, string>;
|
|
4743
|
+
}, z.ZodTypeDef, {
|
|
4744
|
+
[key: string]: unknown;
|
|
4745
|
+
component: string;
|
|
4746
|
+
style?: Record<string, string>;
|
|
4747
|
+
}>, "many">, z.ZodObject<{
|
|
4748
|
+
each: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnknown, "many">]>;
|
|
4749
|
+
as: z.ZodString;
|
|
4750
|
+
items: z.ZodArray<z.ZodType<{
|
|
4751
|
+
[key: string]: unknown;
|
|
4752
|
+
component: string;
|
|
4753
|
+
style?: Record<string, string>;
|
|
4754
|
+
}, z.ZodTypeDef, {
|
|
4755
|
+
[key: string]: unknown;
|
|
4756
|
+
component: string;
|
|
4757
|
+
style?: Record<string, string>;
|
|
4758
|
+
}>, "many">;
|
|
4759
|
+
}, "strip", z.ZodTypeAny, {
|
|
4760
|
+
each: string | unknown[];
|
|
4761
|
+
as: string;
|
|
4762
|
+
items: {
|
|
4763
|
+
[key: string]: unknown;
|
|
4764
|
+
component: string;
|
|
4765
|
+
style?: Record<string, string>;
|
|
4766
|
+
}[];
|
|
4767
|
+
}, {
|
|
4768
|
+
each: string | unknown[];
|
|
4769
|
+
as: string;
|
|
4770
|
+
items: {
|
|
4771
|
+
[key: string]: unknown;
|
|
4772
|
+
component: string;
|
|
4773
|
+
style?: Record<string, string>;
|
|
4774
|
+
}[];
|
|
4775
|
+
}>]>]>>;
|
|
4776
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
4777
|
+
collapsible: z.ZodOptional<z.ZodBoolean>;
|
|
4778
|
+
defaultExpanded: z.ZodOptional<z.ZodBoolean>;
|
|
4779
|
+
variant: z.ZodOptional<z.ZodEnum<["border", "solid"]>>;
|
|
4780
|
+
children: z.ZodUnion<[z.ZodArray<z.ZodType<{
|
|
4781
|
+
[key: string]: unknown;
|
|
4782
|
+
component: string;
|
|
4783
|
+
style?: Record<string, string>;
|
|
4784
|
+
}, z.ZodTypeDef, {
|
|
4785
|
+
[key: string]: unknown;
|
|
4786
|
+
component: string;
|
|
4787
|
+
style?: Record<string, string>;
|
|
4788
|
+
}>, "many">, z.ZodObject<{
|
|
4789
|
+
each: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnknown, "many">]>;
|
|
4790
|
+
as: z.ZodString;
|
|
4791
|
+
items: z.ZodArray<z.ZodType<{
|
|
4792
|
+
[key: string]: unknown;
|
|
4793
|
+
component: string;
|
|
4794
|
+
style?: Record<string, string>;
|
|
4795
|
+
}, z.ZodTypeDef, {
|
|
4796
|
+
[key: string]: unknown;
|
|
4797
|
+
component: string;
|
|
4798
|
+
style?: Record<string, string>;
|
|
4799
|
+
}>, "many">;
|
|
4800
|
+
}, "strip", z.ZodTypeAny, {
|
|
4801
|
+
each: string | unknown[];
|
|
4802
|
+
as: string;
|
|
4803
|
+
items: {
|
|
4804
|
+
[key: string]: unknown;
|
|
4805
|
+
component: string;
|
|
4806
|
+
style?: Record<string, string>;
|
|
4807
|
+
}[];
|
|
4808
|
+
}, {
|
|
4809
|
+
each: string | unknown[];
|
|
4810
|
+
as: string;
|
|
4811
|
+
items: {
|
|
4812
|
+
[key: string]: unknown;
|
|
4813
|
+
component: string;
|
|
4814
|
+
style?: Record<string, string>;
|
|
4815
|
+
}[];
|
|
4816
|
+
}>]>;
|
|
4817
|
+
style: z.ZodOptional<z.ZodRecord<z.ZodEnum<["color", "background-color", "background", "border-color", "border", "border-width", "border-style", "border-radius", "border-top", "border-right", "border-bottom", "border-left", "border-top-left-radius", "border-top-right-radius", "border-bottom-left-radius", "border-bottom-right-radius", "padding", "padding-top", "padding-right", "padding-bottom", "padding-left", "margin", "margin-top", "margin-right", "margin-bottom", "margin-left", "gap", "row-gap", "column-gap", "font-size", "font-weight", "font-style", "text-align", "text-decoration", "line-height", "letter-spacing", "white-space", "word-break", "overflow-wrap", "width", "height", "min-width", "min-height", "max-width", "max-height", "flex", "flex-grow", "flex-shrink", "flex-basis", "flex-wrap", "align-self", "justify-self", "align-items", "justify-content", "opacity", "visibility", "overflow", "overflow-x", "overflow-y", "box-shadow", "outline", "cursor", "border-collapse", "border-spacing"]>, z.ZodString>>;
|
|
4818
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
4819
|
+
component: z.ZodLiteral<"Frame">;
|
|
4820
|
+
title: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodArray<z.ZodType<{
|
|
4821
|
+
[key: string]: unknown;
|
|
4822
|
+
component: string;
|
|
4823
|
+
style?: Record<string, string>;
|
|
4824
|
+
}, z.ZodTypeDef, {
|
|
4825
|
+
[key: string]: unknown;
|
|
4826
|
+
component: string;
|
|
4827
|
+
style?: Record<string, string>;
|
|
4828
|
+
}>, "many">, z.ZodObject<{
|
|
4829
|
+
each: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnknown, "many">]>;
|
|
4830
|
+
as: z.ZodString;
|
|
4831
|
+
items: z.ZodArray<z.ZodType<{
|
|
4832
|
+
[key: string]: unknown;
|
|
4833
|
+
component: string;
|
|
4834
|
+
style?: Record<string, string>;
|
|
4835
|
+
}, z.ZodTypeDef, {
|
|
4836
|
+
[key: string]: unknown;
|
|
4837
|
+
component: string;
|
|
4838
|
+
style?: Record<string, string>;
|
|
4839
|
+
}>, "many">;
|
|
4840
|
+
}, "strip", z.ZodTypeAny, {
|
|
4841
|
+
each: string | unknown[];
|
|
4842
|
+
as: string;
|
|
4843
|
+
items: {
|
|
4844
|
+
[key: string]: unknown;
|
|
4845
|
+
component: string;
|
|
4846
|
+
style?: Record<string, string>;
|
|
4847
|
+
}[];
|
|
4848
|
+
}, {
|
|
4849
|
+
each: string | unknown[];
|
|
4850
|
+
as: string;
|
|
4851
|
+
items: {
|
|
4852
|
+
[key: string]: unknown;
|
|
4853
|
+
component: string;
|
|
4854
|
+
style?: Record<string, string>;
|
|
4855
|
+
}[];
|
|
4856
|
+
}>]>]>>;
|
|
4857
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
4858
|
+
collapsible: z.ZodOptional<z.ZodBoolean>;
|
|
4859
|
+
defaultExpanded: z.ZodOptional<z.ZodBoolean>;
|
|
4860
|
+
variant: z.ZodOptional<z.ZodEnum<["border", "solid"]>>;
|
|
4861
|
+
children: z.ZodUnion<[z.ZodArray<z.ZodType<{
|
|
4862
|
+
[key: string]: unknown;
|
|
4863
|
+
component: string;
|
|
4864
|
+
style?: Record<string, string>;
|
|
4865
|
+
}, z.ZodTypeDef, {
|
|
4866
|
+
[key: string]: unknown;
|
|
4867
|
+
component: string;
|
|
4868
|
+
style?: Record<string, string>;
|
|
4869
|
+
}>, "many">, z.ZodObject<{
|
|
4870
|
+
each: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnknown, "many">]>;
|
|
4871
|
+
as: z.ZodString;
|
|
4872
|
+
items: z.ZodArray<z.ZodType<{
|
|
4873
|
+
[key: string]: unknown;
|
|
4874
|
+
component: string;
|
|
4875
|
+
style?: Record<string, string>;
|
|
4876
|
+
}, z.ZodTypeDef, {
|
|
4877
|
+
[key: string]: unknown;
|
|
4878
|
+
component: string;
|
|
4879
|
+
style?: Record<string, string>;
|
|
4880
|
+
}>, "many">;
|
|
4881
|
+
}, "strip", z.ZodTypeAny, {
|
|
4882
|
+
each: string | unknown[];
|
|
4883
|
+
as: string;
|
|
4884
|
+
items: {
|
|
4885
|
+
[key: string]: unknown;
|
|
4886
|
+
component: string;
|
|
4887
|
+
style?: Record<string, string>;
|
|
4888
|
+
}[];
|
|
4889
|
+
}, {
|
|
4890
|
+
each: string | unknown[];
|
|
4891
|
+
as: string;
|
|
4892
|
+
items: {
|
|
4893
|
+
[key: string]: unknown;
|
|
4894
|
+
component: string;
|
|
4895
|
+
style?: Record<string, string>;
|
|
4896
|
+
}[];
|
|
4897
|
+
}>]>;
|
|
4898
|
+
style: z.ZodOptional<z.ZodRecord<z.ZodEnum<["color", "background-color", "background", "border-color", "border", "border-width", "border-style", "border-radius", "border-top", "border-right", "border-bottom", "border-left", "border-top-left-radius", "border-top-right-radius", "border-bottom-left-radius", "border-bottom-right-radius", "padding", "padding-top", "padding-right", "padding-bottom", "padding-left", "margin", "margin-top", "margin-right", "margin-bottom", "margin-left", "gap", "row-gap", "column-gap", "font-size", "font-weight", "font-style", "text-align", "text-decoration", "line-height", "letter-spacing", "white-space", "word-break", "overflow-wrap", "width", "height", "min-width", "min-height", "max-width", "max-height", "flex", "flex-grow", "flex-shrink", "flex-basis", "flex-wrap", "align-self", "justify-self", "align-items", "justify-content", "opacity", "visibility", "overflow", "overflow-x", "overflow-y", "box-shadow", "outline", "cursor", "border-collapse", "border-spacing"]>, z.ZodString>>;
|
|
4899
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
4900
|
+
component: z.ZodLiteral<"Frame">;
|
|
4901
|
+
title: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodArray<z.ZodType<{
|
|
4902
|
+
[key: string]: unknown;
|
|
4903
|
+
component: string;
|
|
4904
|
+
style?: Record<string, string>;
|
|
4905
|
+
}, z.ZodTypeDef, {
|
|
4906
|
+
[key: string]: unknown;
|
|
4907
|
+
component: string;
|
|
4908
|
+
style?: Record<string, string>;
|
|
4909
|
+
}>, "many">, z.ZodObject<{
|
|
4910
|
+
each: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnknown, "many">]>;
|
|
4911
|
+
as: z.ZodString;
|
|
4912
|
+
items: z.ZodArray<z.ZodType<{
|
|
4913
|
+
[key: string]: unknown;
|
|
4914
|
+
component: string;
|
|
4915
|
+
style?: Record<string, string>;
|
|
4916
|
+
}, z.ZodTypeDef, {
|
|
4917
|
+
[key: string]: unknown;
|
|
4918
|
+
component: string;
|
|
4919
|
+
style?: Record<string, string>;
|
|
4920
|
+
}>, "many">;
|
|
4921
|
+
}, "strip", z.ZodTypeAny, {
|
|
4922
|
+
each: string | unknown[];
|
|
4923
|
+
as: string;
|
|
4924
|
+
items: {
|
|
4925
|
+
[key: string]: unknown;
|
|
4926
|
+
component: string;
|
|
4927
|
+
style?: Record<string, string>;
|
|
4928
|
+
}[];
|
|
4929
|
+
}, {
|
|
4930
|
+
each: string | unknown[];
|
|
4931
|
+
as: string;
|
|
4932
|
+
items: {
|
|
4933
|
+
[key: string]: unknown;
|
|
4934
|
+
component: string;
|
|
4935
|
+
style?: Record<string, string>;
|
|
4936
|
+
}[];
|
|
4937
|
+
}>]>]>>;
|
|
4938
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
4939
|
+
collapsible: z.ZodOptional<z.ZodBoolean>;
|
|
4940
|
+
defaultExpanded: z.ZodOptional<z.ZodBoolean>;
|
|
4941
|
+
variant: z.ZodOptional<z.ZodEnum<["border", "solid"]>>;
|
|
4942
|
+
children: z.ZodUnion<[z.ZodArray<z.ZodType<{
|
|
4943
|
+
[key: string]: unknown;
|
|
4944
|
+
component: string;
|
|
4945
|
+
style?: Record<string, string>;
|
|
4946
|
+
}, z.ZodTypeDef, {
|
|
4947
|
+
[key: string]: unknown;
|
|
4948
|
+
component: string;
|
|
4949
|
+
style?: Record<string, string>;
|
|
4950
|
+
}>, "many">, z.ZodObject<{
|
|
4951
|
+
each: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnknown, "many">]>;
|
|
4952
|
+
as: z.ZodString;
|
|
4953
|
+
items: z.ZodArray<z.ZodType<{
|
|
4954
|
+
[key: string]: unknown;
|
|
4955
|
+
component: string;
|
|
4956
|
+
style?: Record<string, string>;
|
|
4957
|
+
}, z.ZodTypeDef, {
|
|
4958
|
+
[key: string]: unknown;
|
|
4959
|
+
component: string;
|
|
4960
|
+
style?: Record<string, string>;
|
|
4961
|
+
}>, "many">;
|
|
4962
|
+
}, "strip", z.ZodTypeAny, {
|
|
4963
|
+
each: string | unknown[];
|
|
4964
|
+
as: string;
|
|
4965
|
+
items: {
|
|
4966
|
+
[key: string]: unknown;
|
|
4967
|
+
component: string;
|
|
4968
|
+
style?: Record<string, string>;
|
|
4969
|
+
}[];
|
|
4970
|
+
}, {
|
|
4971
|
+
each: string | unknown[];
|
|
4972
|
+
as: string;
|
|
4973
|
+
items: {
|
|
4974
|
+
[key: string]: unknown;
|
|
4975
|
+
component: string;
|
|
4976
|
+
style?: Record<string, string>;
|
|
4977
|
+
}[];
|
|
4978
|
+
}>]>;
|
|
4979
|
+
style: z.ZodOptional<z.ZodRecord<z.ZodEnum<["color", "background-color", "background", "border-color", "border", "border-width", "border-style", "border-radius", "border-top", "border-right", "border-bottom", "border-left", "border-top-left-radius", "border-top-right-radius", "border-bottom-left-radius", "border-bottom-right-radius", "padding", "padding-top", "padding-right", "padding-bottom", "padding-left", "margin", "margin-top", "margin-right", "margin-bottom", "margin-left", "gap", "row-gap", "column-gap", "font-size", "font-weight", "font-style", "text-align", "text-decoration", "line-height", "letter-spacing", "white-space", "word-break", "overflow-wrap", "width", "height", "min-width", "min-height", "max-width", "max-height", "flex", "flex-grow", "flex-shrink", "flex-basis", "flex-wrap", "align-self", "justify-self", "align-items", "justify-content", "opacity", "visibility", "overflow", "overflow-x", "overflow-y", "box-shadow", "outline", "cursor", "border-collapse", "border-spacing"]>, z.ZodString>>;
|
|
4980
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
4981
|
+
declare const ListPropsSchema: z.ZodObject<{
|
|
4982
|
+
component: z.ZodLiteral<"List">;
|
|
4983
|
+
children: z.ZodUnion<[z.ZodArray<z.ZodType<{
|
|
4984
|
+
[key: string]: unknown;
|
|
4985
|
+
component: string;
|
|
4986
|
+
style?: Record<string, string>;
|
|
4987
|
+
}, z.ZodTypeDef, {
|
|
4988
|
+
[key: string]: unknown;
|
|
4989
|
+
component: string;
|
|
4990
|
+
style?: Record<string, string>;
|
|
4991
|
+
}>, "many">, z.ZodObject<{
|
|
4992
|
+
each: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnknown, "many">]>;
|
|
4993
|
+
as: z.ZodString;
|
|
4994
|
+
items: z.ZodArray<z.ZodType<{
|
|
4995
|
+
[key: string]: unknown;
|
|
4996
|
+
component: string;
|
|
4997
|
+
style?: Record<string, string>;
|
|
4998
|
+
}, z.ZodTypeDef, {
|
|
4999
|
+
[key: string]: unknown;
|
|
5000
|
+
component: string;
|
|
5001
|
+
style?: Record<string, string>;
|
|
5002
|
+
}>, "many">;
|
|
5003
|
+
}, "strip", z.ZodTypeAny, {
|
|
5004
|
+
each: string | unknown[];
|
|
5005
|
+
as: string;
|
|
5006
|
+
items: {
|
|
5007
|
+
[key: string]: unknown;
|
|
5008
|
+
component: string;
|
|
5009
|
+
style?: Record<string, string>;
|
|
5010
|
+
}[];
|
|
5011
|
+
}, {
|
|
5012
|
+
each: string | unknown[];
|
|
5013
|
+
as: string;
|
|
5014
|
+
items: {
|
|
5015
|
+
[key: string]: unknown;
|
|
5016
|
+
component: string;
|
|
5017
|
+
style?: Record<string, string>;
|
|
5018
|
+
}[];
|
|
5019
|
+
}>]>;
|
|
5020
|
+
style: z.ZodOptional<z.ZodRecord<z.ZodEnum<["color", "background-color", "background", "border-color", "border", "border-width", "border-style", "border-radius", "border-top", "border-right", "border-bottom", "border-left", "border-top-left-radius", "border-top-right-radius", "border-bottom-left-radius", "border-bottom-right-radius", "padding", "padding-top", "padding-right", "padding-bottom", "padding-left", "margin", "margin-top", "margin-right", "margin-bottom", "margin-left", "gap", "row-gap", "column-gap", "font-size", "font-weight", "font-style", "text-align", "text-decoration", "line-height", "letter-spacing", "white-space", "word-break", "overflow-wrap", "width", "height", "min-width", "min-height", "max-width", "max-height", "flex", "flex-grow", "flex-shrink", "flex-basis", "flex-wrap", "align-self", "justify-self", "align-items", "justify-content", "opacity", "visibility", "overflow", "overflow-x", "overflow-y", "box-shadow", "outline", "cursor", "border-collapse", "border-spacing"]>, z.ZodString>>;
|
|
5021
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
5022
|
+
component: z.ZodLiteral<"List">;
|
|
5023
|
+
children: z.ZodUnion<[z.ZodArray<z.ZodType<{
|
|
5024
|
+
[key: string]: unknown;
|
|
5025
|
+
component: string;
|
|
5026
|
+
style?: Record<string, string>;
|
|
5027
|
+
}, z.ZodTypeDef, {
|
|
5028
|
+
[key: string]: unknown;
|
|
5029
|
+
component: string;
|
|
5030
|
+
style?: Record<string, string>;
|
|
5031
|
+
}>, "many">, z.ZodObject<{
|
|
5032
|
+
each: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnknown, "many">]>;
|
|
5033
|
+
as: z.ZodString;
|
|
5034
|
+
items: z.ZodArray<z.ZodType<{
|
|
5035
|
+
[key: string]: unknown;
|
|
5036
|
+
component: string;
|
|
5037
|
+
style?: Record<string, string>;
|
|
5038
|
+
}, z.ZodTypeDef, {
|
|
5039
|
+
[key: string]: unknown;
|
|
5040
|
+
component: string;
|
|
5041
|
+
style?: Record<string, string>;
|
|
5042
|
+
}>, "many">;
|
|
5043
|
+
}, "strip", z.ZodTypeAny, {
|
|
5044
|
+
each: string | unknown[];
|
|
5045
|
+
as: string;
|
|
5046
|
+
items: {
|
|
5047
|
+
[key: string]: unknown;
|
|
5048
|
+
component: string;
|
|
5049
|
+
style?: Record<string, string>;
|
|
5050
|
+
}[];
|
|
5051
|
+
}, {
|
|
5052
|
+
each: string | unknown[];
|
|
5053
|
+
as: string;
|
|
5054
|
+
items: {
|
|
5055
|
+
[key: string]: unknown;
|
|
5056
|
+
component: string;
|
|
5057
|
+
style?: Record<string, string>;
|
|
5058
|
+
}[];
|
|
5059
|
+
}>]>;
|
|
5060
|
+
style: z.ZodOptional<z.ZodRecord<z.ZodEnum<["color", "background-color", "background", "border-color", "border", "border-width", "border-style", "border-radius", "border-top", "border-right", "border-bottom", "border-left", "border-top-left-radius", "border-top-right-radius", "border-bottom-left-radius", "border-bottom-right-radius", "padding", "padding-top", "padding-right", "padding-bottom", "padding-left", "margin", "margin-top", "margin-right", "margin-bottom", "margin-left", "gap", "row-gap", "column-gap", "font-size", "font-weight", "font-style", "text-align", "text-decoration", "line-height", "letter-spacing", "white-space", "word-break", "overflow-wrap", "width", "height", "min-width", "min-height", "max-width", "max-height", "flex", "flex-grow", "flex-shrink", "flex-basis", "flex-wrap", "align-self", "justify-self", "align-items", "justify-content", "opacity", "visibility", "overflow", "overflow-x", "overflow-y", "box-shadow", "outline", "cursor", "border-collapse", "border-spacing"]>, z.ZodString>>;
|
|
5061
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
5062
|
+
component: z.ZodLiteral<"List">;
|
|
5063
|
+
children: z.ZodUnion<[z.ZodArray<z.ZodType<{
|
|
5064
|
+
[key: string]: unknown;
|
|
5065
|
+
component: string;
|
|
5066
|
+
style?: Record<string, string>;
|
|
5067
|
+
}, z.ZodTypeDef, {
|
|
5068
|
+
[key: string]: unknown;
|
|
5069
|
+
component: string;
|
|
5070
|
+
style?: Record<string, string>;
|
|
5071
|
+
}>, "many">, z.ZodObject<{
|
|
5072
|
+
each: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnknown, "many">]>;
|
|
5073
|
+
as: z.ZodString;
|
|
5074
|
+
items: z.ZodArray<z.ZodType<{
|
|
5075
|
+
[key: string]: unknown;
|
|
5076
|
+
component: string;
|
|
5077
|
+
style?: Record<string, string>;
|
|
5078
|
+
}, z.ZodTypeDef, {
|
|
5079
|
+
[key: string]: unknown;
|
|
5080
|
+
component: string;
|
|
5081
|
+
style?: Record<string, string>;
|
|
5082
|
+
}>, "many">;
|
|
5083
|
+
}, "strip", z.ZodTypeAny, {
|
|
5084
|
+
each: string | unknown[];
|
|
5085
|
+
as: string;
|
|
5086
|
+
items: {
|
|
5087
|
+
[key: string]: unknown;
|
|
5088
|
+
component: string;
|
|
5089
|
+
style?: Record<string, string>;
|
|
5090
|
+
}[];
|
|
5091
|
+
}, {
|
|
5092
|
+
each: string | unknown[];
|
|
5093
|
+
as: string;
|
|
5094
|
+
items: {
|
|
5095
|
+
[key: string]: unknown;
|
|
5096
|
+
component: string;
|
|
5097
|
+
style?: Record<string, string>;
|
|
5098
|
+
}[];
|
|
5099
|
+
}>]>;
|
|
5100
|
+
style: z.ZodOptional<z.ZodRecord<z.ZodEnum<["color", "background-color", "background", "border-color", "border", "border-width", "border-style", "border-radius", "border-top", "border-right", "border-bottom", "border-left", "border-top-left-radius", "border-top-right-radius", "border-bottom-left-radius", "border-bottom-right-radius", "padding", "padding-top", "padding-right", "padding-bottom", "padding-left", "margin", "margin-top", "margin-right", "margin-bottom", "margin-left", "gap", "row-gap", "column-gap", "font-size", "font-weight", "font-style", "text-align", "text-decoration", "line-height", "letter-spacing", "white-space", "word-break", "overflow-wrap", "width", "height", "min-width", "min-height", "max-width", "max-height", "flex", "flex-grow", "flex-shrink", "flex-basis", "flex-wrap", "align-self", "justify-self", "align-items", "justify-content", "opacity", "visibility", "overflow", "overflow-x", "overflow-y", "box-shadow", "outline", "cursor", "border-collapse", "border-spacing"]>, z.ZodString>>;
|
|
5101
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
4720
5102
|
type AllowedCSSProperty = z.infer<typeof AllowedCSSPropertySchema>;
|
|
4721
5103
|
type ExtensionComponentStyle = z.infer<typeof ExtensionComponentStyleSchema>;
|
|
4722
5104
|
type ExtensionComponentData = z.infer<typeof ExtensionComponentDataSchema>;
|
|
@@ -4748,7 +5130,11 @@ type CollapsibleProps = z.infer<typeof CollapsiblePropsSchema>;
|
|
|
4748
5130
|
type PillProps = z.infer<typeof PillPropsSchema>;
|
|
4749
5131
|
type CheckboxProps = z.infer<typeof CheckboxPropsSchema>;
|
|
4750
5132
|
type MarkdownProps = z.infer<typeof MarkdownPropsSchema>;
|
|
5133
|
+
type TextPreviewProps = z.infer<typeof TextPreviewPropsSchema>;
|
|
4751
5134
|
type ModalProps = z.infer<typeof ModalPropsSchema>;
|
|
4752
5135
|
type ConditionalGroupProps = z.infer<typeof ConditionalGroupPropsSchema>;
|
|
5136
|
+
type FrameVariant = z.infer<typeof FrameVariantSchema>;
|
|
5137
|
+
type FrameProps = z.infer<typeof FramePropsSchema>;
|
|
5138
|
+
type ListProps = z.infer<typeof ListPropsSchema>;
|
|
4753
5139
|
|
|
4754
|
-
export { type AllowedCSSProperty, AllowedCSSPropertySchema, type Author, AuthorSchema, type ButtonProps, ButtonPropsSchema, type CapabilityPermission, CapabilityPermissionSchema, type CheckboxProps, CheckboxPropsSchema, type CollapsibleProps, CollapsiblePropsSchema, type CommandDefinition, CommandDefinitionSchema, type ConditionalGroupProps, ConditionalGroupPropsSchema, type DateTimeInputProps, DateTimeInputPropsSchema, type DividerProps, DividerPropsSchema, type Engines, EnginesSchema, type ExtensionActionCall, ExtensionActionCallSchema, type ExtensionActionRef, ExtensionActionRefSchema, type ExtensionComponentChildren, ExtensionComponentChildrenSchema, type ExtensionComponentData, ExtensionComponentDataSchema, type ExtensionComponentIterator, ExtensionComponentIteratorSchema, type ExtensionComponentStyle, ExtensionComponentStyleSchema, type ExtensionContributions, ExtensionContributionsSchema, type ExtensionDataSource, ExtensionDataSourceSchema, type ExtensionManifest, ExtensionManifestSchema, type GridProps, GridPropsSchema, type HeaderProps, HeaderPropsSchema, type HorizontalStackProps, HorizontalStackPropsSchema, type IconButtonProps, IconButtonPropsSchema, type IconButtonType, IconButtonTypeSchema, type IconPickerProps, IconPickerPropsSchema, type IconProps, IconPropsSchema, type LabelProps, LabelPropsSchema, type LocalizedString, LocalizedStringSchema, type MarkdownProps, MarkdownPropsSchema, type ModalProps, ModalPropsSchema, type NetworkPermission, NetworkPermissionSchema, PERMISSION_PATTERNS, type PanelAction, type PanelActionDataSource, PanelActionDataSourceSchema, PanelActionSchema, type PanelComponentView, PanelComponentViewSchema, type PanelDefinition, PanelDefinitionSchema, type PanelProps, PanelPropsSchema, type PanelUnknownView, PanelUnknownViewSchema, type PanelView, PanelViewSchema, type ParagraphProps, ParagraphPropsSchema, type Permission, PermissionSchema, type PillProps, PillPropsSchema, type PillVariant, PillVariantSchema, type Platform, PlatformSchema, type PromptContribution, PromptContributionSchema, type PromptSection, PromptSectionSchema, type ProviderConfigProperty, ProviderConfigPropertySchema, type ProviderConfigPropertyType, ProviderConfigPropertyTypeSchema, type ProviderConfigSchema, ProviderConfigSchemaSchema, type ProviderConfigSelectOption, ProviderConfigSelectOptionSchema, type ProviderConfigValidation, ProviderConfigValidationSchema, type ProviderDefinition, ProviderDefinitionSchema, type SelectProps, SelectPropsSchema, type SettingCreateMapping, SettingCreateMappingSchema, type SettingDefinition, SettingDefinitionSchema, type SettingOptionsMapping, SettingOptionsMappingSchema, type SettingValidation, SettingValidationSchema, type StoragePermission, StoragePermissionSchema, type SystemPermission, SystemPermissionSchema, type TextInputProps, TextInputPropsSchema, type ToggleProps, TogglePropsSchema, type ToolDefinition, ToolDefinitionSchema, type ToolSettingsActionDataSource, ToolSettingsActionDataSourceSchema, type ToolSettingsComponentView, ToolSettingsComponentViewSchema, type ToolSettingsListMapping, ToolSettingsListMappingSchema, type ToolSettingsListView, ToolSettingsListViewSchema, type ToolSettingsView, type ToolSettingsViewDefinition, ToolSettingsViewDefinitionSchema, ToolSettingsViewSchema, type UserDataPermission, UserDataPermissionSchema, VALID_PERMISSIONS, type VerticalStackProps, VerticalStackPropsSchema, isValidPermission };
|
|
5140
|
+
export { type AllowedCSSProperty, AllowedCSSPropertySchema, type Author, AuthorSchema, type ButtonProps, ButtonPropsSchema, type CapabilityPermission, CapabilityPermissionSchema, type CheckboxProps, CheckboxPropsSchema, type CollapsibleProps, CollapsiblePropsSchema, type CommandDefinition, CommandDefinitionSchema, type ConditionalGroupProps, ConditionalGroupPropsSchema, type DateTimeInputProps, DateTimeInputPropsSchema, type DividerProps, DividerPropsSchema, type Engines, EnginesSchema, type ExtensionActionCall, ExtensionActionCallSchema, type ExtensionActionRef, ExtensionActionRefSchema, type ExtensionComponentChildren, ExtensionComponentChildrenSchema, type ExtensionComponentData, ExtensionComponentDataSchema, type ExtensionComponentIterator, ExtensionComponentIteratorSchema, type ExtensionComponentStyle, ExtensionComponentStyleSchema, type ExtensionContributions, ExtensionContributionsSchema, type ExtensionDataSource, ExtensionDataSourceSchema, type ExtensionManifest, ExtensionManifestSchema, type FrameProps, FramePropsSchema, type FrameVariant, FrameVariantSchema, type GridProps, GridPropsSchema, type HeaderProps, HeaderPropsSchema, type HorizontalStackProps, HorizontalStackPropsSchema, type IconButtonProps, IconButtonPropsSchema, type IconButtonType, IconButtonTypeSchema, type IconPickerProps, IconPickerPropsSchema, type IconProps, IconPropsSchema, type LabelProps, LabelPropsSchema, type ListProps, ListPropsSchema, type LocalizedString, LocalizedStringSchema, type MarkdownProps, MarkdownPropsSchema, type ModalProps, ModalPropsSchema, type NetworkPermission, NetworkPermissionSchema, PERMISSION_PATTERNS, type PanelAction, type PanelActionDataSource, PanelActionDataSourceSchema, PanelActionSchema, type PanelComponentView, PanelComponentViewSchema, type PanelDefinition, PanelDefinitionSchema, type PanelProps, PanelPropsSchema, type PanelUnknownView, PanelUnknownViewSchema, type PanelView, PanelViewSchema, type ParagraphProps, ParagraphPropsSchema, type Permission, PermissionSchema, type PillProps, PillPropsSchema, type PillVariant, PillVariantSchema, type Platform, PlatformSchema, type PromptContribution, PromptContributionSchema, type PromptSection, PromptSectionSchema, type ProviderConfigProperty, ProviderConfigPropertySchema, type ProviderConfigPropertyType, ProviderConfigPropertyTypeSchema, type ProviderConfigSchema, ProviderConfigSchemaSchema, type ProviderConfigSelectOption, ProviderConfigSelectOptionSchema, type ProviderConfigValidation, ProviderConfigValidationSchema, type ProviderDefinition, ProviderDefinitionSchema, type SelectProps, SelectPropsSchema, type SettingCreateMapping, SettingCreateMappingSchema, type SettingDefinition, SettingDefinitionSchema, type SettingOptionsMapping, SettingOptionsMappingSchema, type SettingValidation, SettingValidationSchema, type StoragePermission, StoragePermissionSchema, type SystemPermission, SystemPermissionSchema, type TextInputProps, TextInputPropsSchema, type TextPreviewProps, TextPreviewPropsSchema, type ToggleProps, TogglePropsSchema, type ToolDefinition, ToolDefinitionSchema, type ToolSettingsActionDataSource, ToolSettingsActionDataSourceSchema, type ToolSettingsComponentView, ToolSettingsComponentViewSchema, type ToolSettingsListMapping, ToolSettingsListMappingSchema, type ToolSettingsListView, ToolSettingsListViewSchema, type ToolSettingsView, type ToolSettingsViewDefinition, ToolSettingsViewDefinitionSchema, ToolSettingsViewSchema, type UserDataPermission, UserDataPermissionSchema, VALID_PERMISSIONS, type VerticalStackProps, VerticalStackPropsSchema, isValidPermission };
|
package/dist/schemas/index.js
CHANGED
|
@@ -319,6 +319,12 @@ var MarkdownPropsSchema = z2.object({
|
|
|
319
319
|
content: z2.string().describe("Markdown content"),
|
|
320
320
|
style: ExtensionComponentStyleSchema.optional()
|
|
321
321
|
}).passthrough().describe("Markdown component");
|
|
322
|
+
var TextPreviewPropsSchema = z2.object({
|
|
323
|
+
component: z2.literal("TextPreview"),
|
|
324
|
+
content: z2.string().describe("Markdown content"),
|
|
325
|
+
maxLines: z2.number().optional().describe("Max visible lines before truncating (default 5)"),
|
|
326
|
+
style: ExtensionComponentStyleSchema.optional()
|
|
327
|
+
}).passthrough().describe("TextPreview component");
|
|
322
328
|
var ModalPropsSchema = z2.object({
|
|
323
329
|
component: z2.literal("Modal"),
|
|
324
330
|
title: z2.string().describe("Modal title"),
|
|
@@ -335,6 +341,22 @@ var ConditionalGroupPropsSchema = z2.object({
|
|
|
335
341
|
children: ExtensionComponentChildrenSchema.describe("Children to render when condition is true"),
|
|
336
342
|
style: ExtensionComponentStyleSchema.optional()
|
|
337
343
|
}).passthrough().describe("ConditionalGroup component");
|
|
344
|
+
var FrameVariantSchema = z2.enum(["border", "solid"]).describe("Frame visual variant");
|
|
345
|
+
var FramePropsSchema = z2.object({
|
|
346
|
+
component: z2.literal("Frame"),
|
|
347
|
+
title: z2.union([z2.string(), ExtensionComponentChildrenSchema]).optional().describe("Optional title (string or components)"),
|
|
348
|
+
icon: z2.string().optional().describe("Icon name"),
|
|
349
|
+
collapsible: z2.boolean().optional().describe("Whether content can be toggled"),
|
|
350
|
+
defaultExpanded: z2.boolean().optional().describe("Whether expanded by default"),
|
|
351
|
+
variant: FrameVariantSchema.optional().describe("Visual variant"),
|
|
352
|
+
children: ExtensionComponentChildrenSchema.describe("Child components"),
|
|
353
|
+
style: ExtensionComponentStyleSchema.optional()
|
|
354
|
+
}).passthrough().describe("Frame container component");
|
|
355
|
+
var ListPropsSchema = z2.object({
|
|
356
|
+
component: z2.literal("List"),
|
|
357
|
+
children: ExtensionComponentChildrenSchema.describe("Child components rendered as list items"),
|
|
358
|
+
style: ExtensionComponentStyleSchema.optional()
|
|
359
|
+
}).passthrough().describe("List component");
|
|
338
360
|
|
|
339
361
|
// src/schemas/contributions.schema.ts
|
|
340
362
|
var LocalizedStringSchema = z3.union([z3.string(), z3.record(z3.string())]).describe("String or localized string map");
|
|
@@ -566,6 +588,8 @@ export {
|
|
|
566
588
|
ExtensionContributionsSchema,
|
|
567
589
|
ExtensionDataSourceSchema,
|
|
568
590
|
ExtensionManifestSchema,
|
|
591
|
+
FramePropsSchema,
|
|
592
|
+
FrameVariantSchema,
|
|
569
593
|
GridPropsSchema,
|
|
570
594
|
HeaderPropsSchema,
|
|
571
595
|
HorizontalStackPropsSchema,
|
|
@@ -574,6 +598,7 @@ export {
|
|
|
574
598
|
IconPickerPropsSchema,
|
|
575
599
|
IconPropsSchema,
|
|
576
600
|
LabelPropsSchema,
|
|
601
|
+
ListPropsSchema,
|
|
577
602
|
LocalizedStringSchema,
|
|
578
603
|
MarkdownPropsSchema,
|
|
579
604
|
ModalPropsSchema,
|
|
@@ -607,6 +632,7 @@ export {
|
|
|
607
632
|
StoragePermissionSchema,
|
|
608
633
|
SystemPermissionSchema,
|
|
609
634
|
TextInputPropsSchema,
|
|
635
|
+
TextPreviewPropsSchema,
|
|
610
636
|
TogglePropsSchema,
|
|
611
637
|
ToolDefinitionSchema,
|
|
612
638
|
ToolSettingsActionDataSourceSchema,
|