@makeswift/prop-controllers 0.3.0-canary.1 → 0.3.0-canary.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"social-links.d.ts","sourceRoot":"","sources":["../../../src/social-links/social-links.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAsB,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAA;AA6DxE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAGhC,CAAA;AAEF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEnE,QAAA,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAwB,CAAA;AAEnE,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CACnD,OAAO,qCAAqC,CAC7C,CAAA;AAED,eAAO,MAAM,mCAAmC,uCACV,CAAA;AAEtC,QAAA,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGzC,CAAA;AAEF,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CACnD,OAAO,qCAAqC,CAC7C,CAAA;AAED,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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SAAS,GAC9C,eAAe,GAAG,SAAS,CAO7B;AAED,wBAAgB,sDAAsD,CACpE,IAAI,EAAE,eAAe,EACrB,UAAU,EAAE,qBAAqB,GAChC,6BAA6B,CAW/B"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=social-links.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"social-links.test.d.ts","sourceRoot":"","sources":["../../../src/social-links/social-links.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export * from './text-input';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/text-input/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
@@ -0,0 +1,52 @@
1
+ import { z } from 'zod';
2
+ import { Options, Types } from '../prop-controllers';
3
+ declare const textInputPropControllerDataV0Schema: z.ZodString;
4
+ export type TextInputPropControllerDataV0 = z.infer<typeof textInputPropControllerDataV0Schema>;
5
+ export declare const TextInputPropControllerDataV1Type = "prop-controllers::text-input::v1";
6
+ declare const textInputPropControllerDataV1Schema: z.ZodObject<{
7
+ "@@makeswift/type": z.ZodLiteral<"prop-controllers::text-input::v1">;
8
+ value: z.ZodString;
9
+ }, "strip", z.ZodTypeAny, {
10
+ "@@makeswift/type": "prop-controllers::text-input::v1";
11
+ value: string;
12
+ }, {
13
+ "@@makeswift/type": "prop-controllers::text-input::v1";
14
+ value: string;
15
+ }>;
16
+ export type TextInputPropControllerDataV1 = z.infer<typeof textInputPropControllerDataV1Schema>;
17
+ export declare const textInputPropControllerDataSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
18
+ "@@makeswift/type": z.ZodLiteral<"prop-controllers::text-input::v1">;
19
+ value: z.ZodString;
20
+ }, "strip", z.ZodTypeAny, {
21
+ "@@makeswift/type": "prop-controllers::text-input::v1";
22
+ value: string;
23
+ }, {
24
+ "@@makeswift/type": "prop-controllers::text-input::v1";
25
+ value: string;
26
+ }>]>;
27
+ export type TextInputPropControllerData = z.infer<typeof textInputPropControllerDataSchema>;
28
+ export type TextInputOptions = Options<{
29
+ label?: string;
30
+ placeholder?: string;
31
+ hidden?: boolean;
32
+ }>;
33
+ type TextInputDescriptorV0<_T = TextInputPropControllerDataV0> = {
34
+ type: typeof Types.TextInput;
35
+ options: TextInputOptions;
36
+ };
37
+ type TextInputDescriptorV1<_T = TextInputPropControllerData, U extends TextInputOptions = TextInputOptions> = {
38
+ type: typeof Types.TextInput;
39
+ version: 1;
40
+ options: U;
41
+ };
42
+ export type TextInputDescriptor<_T = TextInputPropControllerData> = TextInputDescriptorV0 | TextInputDescriptorV1;
43
+ export type ResolveTextInputPropControllerValue<T extends TextInputDescriptor> = T extends TextInputDescriptor ? string | undefined : never;
44
+ /**
45
+ * @deprecated Imports from @makeswift/prop-controllers are deprecated. Use
46
+ * @makeswift/runtime/controls instead.
47
+ */
48
+ export declare function TextInput(options?: TextInputOptions): TextInputDescriptorV1;
49
+ export declare function getTextInputPropControllerDataString(data: TextInputPropControllerData | undefined): string | undefined;
50
+ export declare function createTextInputPropControllerDataFromString(value: string, definition: TextInputDescriptor): TextInputPropControllerData;
51
+ export {};
52
+ //# sourceMappingURL=text-input.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-input.d.ts","sourceRoot":"","sources":["../../../src/text-input/text-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAsB,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAA;AAGxE,QAAA,MAAM,mCAAmC,aAAa,CAAA;AAEtD,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CACjD,OAAO,mCAAmC,CAC3C,CAAA;AAED,eAAO,MAAM,iCAAiC,qCACV,CAAA;AAEpC,QAAA,MAAM,mCAAmC;;;;;;;;;EAGvC,CAAA;AAEF,MAAM,MAAM,6BAA6B,GA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
+ //# sourceMappingURL=text-input.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-input.test.d.ts","sourceRoot":"","sources":["../../../src/text-input/text-input.test.ts"],"names":[],"mappings":""}
@@ -36,7 +36,7 @@ type FillPresetType<RawOptions, Preset> = RawOptions extends {
36
36
  preset?: Preset;
37
37
  } : RawOptions;
38
38
  type IfNullable<Opts extends Options<any>, R> = Opts extends Options<infer T> ? {} extends NonNullable<T> ? R : 'non-empty options are required' : never;
39
- export declare const versionedPropDef: <RawOptions>() => <Type extends "Backgrounds" | "Border" | "BorderRadius" | "Checkbox" | "Date" | "ElementID" | "Font" | "GapX" | "GapY" | "Grid" | "Image" | "Images" | "Link" | "Margin" | "NavigationLinks" | "Padding" | "Number" | "Shadows" | "ResponsiveColor" | "ResponsiveLength" | "ResponsiveNumber" | "ResponsiveOpacity" | "TextArea" | "Table" | "TableFormFields" | "TextStyle" | "Width" | "Video", ValueSchema extends z.ZodTypeAny, Version extends number, Key extends string>(type: Type, valueSchema: ValueSchema, discriminator: VersionDiscriminator<Version, Key>) => {
39
+ export declare const versionedPropDef: <RawOptions>() => <Type extends "Backgrounds" | "Border" | "BorderRadius" | "Checkbox" | "Date" | "ElementID" | "Font" | "GapX" | "GapY" | "Grid" | "Image" | "Images" | "Link" | "Margin" | "NavigationLinks" | "Padding" | "Number" | "Shadows" | "ResponsiveColor" | "ResponsiveLength" | "ResponsiveNumber" | "ResponsiveOpacity" | "SocialLinks" | "TextArea" | "TextInput" | "Table" | "TableFormFields" | "TextStyle" | "Width" | "Video", ValueSchema extends z.ZodTypeAny, Version extends number, Key extends string>(type: Type, valueSchema: ValueSchema, discriminator: VersionDiscriminator<Version, Key>) => {
40
40
  (options: Options<FillPresetType<RawOptions, (ValueSchema | z.ZodObject<{
41
41
  "@@makeswift/type": z.ZodLiteral<Key>;
42
42
  value: ValueSchema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@makeswift/prop-controllers",
3
- "version": "0.3.0-canary.1",
3
+ "version": "0.3.0-canary.2",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "files": [