@danielgenarog/shared-contracts 1.0.91 → 1.1.1

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,187 @@
1
+ import z from "zod";
2
+ export declare const ScalinkyLogoPropsSchema: z.ZodObject<{
3
+ logo: z.ZodString;
4
+ styles: z.ZodObject<{
5
+ width: z.ZodOptional<z.ZodNumber>;
6
+ height: z.ZodOptional<z.ZodNumber>;
7
+ noborder: z.ZodOptional<z.ZodBoolean>;
8
+ centered: z.ZodOptional<z.ZodBoolean>;
9
+ variant: z.ZodOptional<z.ZodEnum<{
10
+ default: "default";
11
+ surface: "surface";
12
+ outline: "outline";
13
+ noborder: "noborder";
14
+ }>>;
15
+ }, z.core.$strip>;
16
+ }, z.core.$strip>;
17
+ export type ScalinkyLogoProps = z.infer<typeof ScalinkyLogoPropsSchema>;
18
+ /** =========================
19
+ * Name
20
+ * ========================= */
21
+ export declare const ScalinkyNamePropsSchema: z.ZodObject<{
22
+ name: z.ZodString;
23
+ style: z.ZodObject<{
24
+ color: z.ZodOptional<z.ZodString>;
25
+ backgroundColor: z.ZodOptional<z.ZodString>;
26
+ noborder: z.ZodOptional<z.ZodBoolean>;
27
+ text_position: z.ZodOptional<z.ZodString>;
28
+ className: z.ZodOptional<z.ZodString>;
29
+ }, z.core.$strip>;
30
+ }, z.core.$strip>;
31
+ export type ScalinkyNameProps = z.infer<typeof ScalinkyNamePropsSchema>;
32
+ /** =========================
33
+ * Description
34
+ * ========================= */
35
+ export declare const ScalinkyDescriptionPropsSchema: z.ZodObject<{
36
+ description: z.ZodString;
37
+ style: z.ZodObject<{
38
+ color: z.ZodOptional<z.ZodString>;
39
+ backgroundColor: z.ZodOptional<z.ZodString>;
40
+ noborder: z.ZodOptional<z.ZodBoolean>;
41
+ text_position: z.ZodOptional<z.ZodString>;
42
+ className: z.ZodOptional<z.ZodString>;
43
+ }, z.core.$strip>;
44
+ }, z.core.$strip>;
45
+ export type ScalinkyDescriptionProps = z.infer<typeof ScalinkyDescriptionPropsSchema>;
46
+ /** =========================
47
+ * Li
48
+ * ========================= */
49
+ export declare const ScalinkyLiPropsSchema: z.ZodObject<{
50
+ meta: z.ZodObject<{
51
+ kind: z.ZodOptional<z.ZodEnum<{
52
+ whatsapp: "whatsapp";
53
+ instagram: "instagram";
54
+ menu: "menu";
55
+ maps: "maps";
56
+ website: "website";
57
+ phone: "phone";
58
+ appointments: "appointments";
59
+ reservations: "reservations";
60
+ orders: "orders";
61
+ }>>;
62
+ }, z.core.$strip>;
63
+ visible: z.ZodBoolean;
64
+ options: z.ZodOptional<z.ZodObject<{
65
+ variant: z.ZodOptional<z.ZodEnum<{
66
+ default: "default";
67
+ surface: "surface";
68
+ outline: "outline";
69
+ noborder: "noborder";
70
+ }>>;
71
+ style: z.ZodOptional<z.ZodType<import("csstype").Properties<0 | (string & {}), string & {}>, unknown, z.core.$ZodTypeInternals<import("csstype").Properties<0 | (string & {}), string & {}>, unknown>>>;
72
+ className: z.ZodOptional<z.ZodString>;
73
+ }, z.core.$strip>>;
74
+ data: z.ZodObject<{
75
+ label: z.ZodOptional<z.ZodString>;
76
+ }, z.core.$strip>;
77
+ type: z.ZodLiteral<"info">;
78
+ }, z.core.$strip>;
79
+ export type ScalinkyLiProps = z.infer<typeof ScalinkyLiPropsSchema>;
80
+ /** =========================
81
+ * Links
82
+ * ========================= */
83
+ export declare const ScalinkyLinkPropsSchema: z.ZodObject<{
84
+ data: z.ZodObject<{
85
+ label: z.ZodOptional<z.ZodString>;
86
+ href: z.ZodOptional<z.ZodString>;
87
+ }, z.core.$strip>;
88
+ meta: z.ZodObject<{
89
+ kind: z.ZodOptional<z.ZodEnum<{
90
+ whatsapp: "whatsapp";
91
+ instagram: "instagram";
92
+ menu: "menu";
93
+ maps: "maps";
94
+ website: "website";
95
+ phone: "phone";
96
+ appointments: "appointments";
97
+ reservations: "reservations";
98
+ orders: "orders";
99
+ }>>;
100
+ }, z.core.$strip>;
101
+ visible: z.ZodBoolean;
102
+ options: z.ZodOptional<z.ZodObject<{
103
+ variant: z.ZodOptional<z.ZodEnum<{
104
+ default: "default";
105
+ surface: "surface";
106
+ outline: "outline";
107
+ noborder: "noborder";
108
+ }>>;
109
+ style: z.ZodOptional<z.ZodType<import("csstype").Properties<0 | (string & {}), string & {}>, unknown, z.core.$ZodTypeInternals<import("csstype").Properties<0 | (string & {}), string & {}>, unknown>>>;
110
+ className: z.ZodOptional<z.ZodString>;
111
+ }, z.core.$strip>>;
112
+ type: z.ZodLiteral<"link">;
113
+ }, z.core.$strip>;
114
+ export type ScalinkyLinkProps = z.infer<typeof ScalinkyLinkPropsSchema>;
115
+ /** =========================
116
+ * Social
117
+ * ========================= */
118
+ export declare const ScalinkyElementListPropsSchema: z.ZodObject<{
119
+ items: z.ZodArray<z.ZodObject<{
120
+ type: z.ZodEnum<{
121
+ link: "link";
122
+ info: "info";
123
+ }>;
124
+ order: z.ZodNumber;
125
+ visible: z.ZodBoolean;
126
+ data: z.ZodObject<{
127
+ label: z.ZodOptional<z.ZodString>;
128
+ href: z.ZodOptional<z.ZodString>;
129
+ }, z.core.$strip>;
130
+ meta: z.ZodObject<{
131
+ kind: z.ZodOptional<z.ZodEnum<{
132
+ whatsapp: "whatsapp";
133
+ instagram: "instagram";
134
+ menu: "menu";
135
+ maps: "maps";
136
+ website: "website";
137
+ phone: "phone";
138
+ appointments: "appointments";
139
+ reservations: "reservations";
140
+ orders: "orders";
141
+ }>>;
142
+ }, z.core.$strip>;
143
+ options: z.ZodOptional<z.ZodObject<{
144
+ variant: z.ZodOptional<z.ZodEnum<{
145
+ default: "default";
146
+ surface: "surface";
147
+ outline: "outline";
148
+ noborder: "noborder";
149
+ }>>;
150
+ style: z.ZodOptional<z.ZodType<import("csstype").Properties<0 | (string & {}), string & {}>, unknown, z.core.$ZodTypeInternals<import("csstype").Properties<0 | (string & {}), string & {}>, unknown>>>;
151
+ className: z.ZodOptional<z.ZodString>;
152
+ }, z.core.$strip>>;
153
+ disabled: z.ZodBoolean;
154
+ }, z.core.$strip>>;
155
+ }, z.core.$strip>;
156
+ export type ScalinkyElementListProps = z.infer<typeof ScalinkyElementListPropsSchema>;
157
+ export declare const MockupSizeSchema: z.ZodEnum<{
158
+ sm: "sm";
159
+ md: "md";
160
+ lg: "lg";
161
+ }>;
162
+ export type MockupSize = z.infer<typeof MockupSizeSchema>;
163
+ export declare const ScalinkyPropsSchema: z.ZodObject<{
164
+ id: z.ZodOptional<z.ZodString>;
165
+ theme: z.ZodOptional<z.ZodEnum<{
166
+ default: "default";
167
+ minimalist: "minimalist";
168
+ borderless: "borderless";
169
+ light: "light";
170
+ dark: "dark";
171
+ }>>;
172
+ className: z.ZodOptional<z.ZodString>;
173
+ children: z.ZodAny;
174
+ mockup: z.ZodOptional<z.ZodBoolean>;
175
+ mockupSize: z.ZodOptional<z.ZodEnum<{
176
+ sm: "sm";
177
+ md: "md";
178
+ lg: "lg";
179
+ }>>;
180
+ imageUrl: z.ZodOptional<z.ZodString>;
181
+ imageOverlay: z.ZodOptional<z.ZodBoolean>;
182
+ imageOpacity: z.ZodOptional<z.ZodNumber>;
183
+ imageCover: z.ZodOptional<z.ZodBoolean>;
184
+ imagePosition: z.ZodOptional<z.ZodString>;
185
+ }, z.core.$strip>;
186
+ export type ScalinkyProps = z.infer<typeof ScalinkyPropsSchema>;
187
+ //# sourceMappingURL=scalinky.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scalinky.schema.d.ts","sourceRoot":"","sources":["../../../../src/core/business/scalinky/scalinky.schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAKpB,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;iBAGlC,CAAA;AAEF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAA;AACvE;;gCAEgC;AAEhC,eAAO,MAAM,uBAAuB;;;;;;;;;iBAGlC,CAAA;AACF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAEvE;;gCAEgC;AAChC,eAAO,MAAM,8BAA8B;;;;;;;;;iBAGzC,CAAA;AACF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAA;AAKrF;;gCAEgC;AAChC,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGhC,CAAA;AACF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEnE;;gCAEgC;AAChC,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAElC,CAAA;AACF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAGvE;;gCAEgC;AAChC,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMzC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAA;AAErF,eAAO,MAAM,gBAAgB;;;;EAA6B,CAAC;AAC3D,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA;AACzD,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;iBAY9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA"}
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ScalinkyPropsSchema = exports.MockupSizeSchema = exports.ScalinkyElementListPropsSchema = exports.ScalinkyLinkPropsSchema = exports.ScalinkyLiPropsSchema = exports.ScalinkyDescriptionPropsSchema = exports.ScalinkyNamePropsSchema = exports.ScalinkyLogoPropsSchema = void 0;
7
+ const zod_1 = __importDefault(require("zod"));
8
+ const style_schema_1 = require("../style/style.schema");
9
+ const elements_schema_1 = require("../elements/elements.schema");
10
+ const theme_schema_1 = require("../theme/theme.schema");
11
+ exports.ScalinkyLogoPropsSchema = zod_1.default.object({
12
+ logo: zod_1.default.string(),
13
+ styles: style_schema_1.StyleLogoSchema,
14
+ });
15
+ /** =========================
16
+ * Name
17
+ * ========================= */
18
+ exports.ScalinkyNamePropsSchema = zod_1.default.object({
19
+ name: zod_1.default.string(),
20
+ style: style_schema_1.textOptionsSchema,
21
+ });
22
+ /** =========================
23
+ * Description
24
+ * ========================= */
25
+ exports.ScalinkyDescriptionPropsSchema = zod_1.default.object({
26
+ description: zod_1.default.string(),
27
+ style: style_schema_1.textOptionsSchema,
28
+ });
29
+ /** =========================
30
+ * Li
31
+ * ========================= */
32
+ exports.ScalinkyLiPropsSchema = elements_schema_1.ElementSchema.omit({ data: true, type: true, order: true }).extend({
33
+ data: elements_schema_1.ElementDataSchema.omit({ href: true }),
34
+ type: zod_1.default.literal("info"),
35
+ });
36
+ /** =========================
37
+ * Links
38
+ * ========================= */
39
+ exports.ScalinkyLinkPropsSchema = elements_schema_1.ElementSchema.omit({ type: true, order: true }).extend({
40
+ type: zod_1.default.literal("link"),
41
+ });
42
+ /** =========================
43
+ * Social
44
+ * ========================= */
45
+ exports.ScalinkyElementListPropsSchema = zod_1.default.object({
46
+ items: zod_1.default.array(elements_schema_1.ElementSchema.extend({
47
+ disabled: zod_1.default.boolean(),
48
+ })),
49
+ });
50
+ exports.MockupSizeSchema = zod_1.default.enum(["sm", "md", "lg"]);
51
+ exports.ScalinkyPropsSchema = zod_1.default.object({
52
+ id: zod_1.default.string().optional(),
53
+ theme: theme_schema_1.ThemeOptionSchema.optional(),
54
+ className: zod_1.default.string().optional(),
55
+ children: zod_1.default.any(),
56
+ mockup: zod_1.default.boolean().optional(),
57
+ mockupSize: exports.MockupSizeSchema.optional(),
58
+ imageUrl: zod_1.default.string().optional(),
59
+ imageOverlay: zod_1.default.boolean().optional(),
60
+ imageOpacity: zod_1.default.number().optional(),
61
+ imageCover: zod_1.default.boolean().optional(),
62
+ imagePosition: zod_1.default.string().optional(),
63
+ });
64
+ //# sourceMappingURL=scalinky.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scalinky.schema.js","sourceRoot":"","sources":["../../../../src/core/business/scalinky/scalinky.schema.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAoB;AACpB,wDAAwF;AACxF,iEAA+E;AAC/E,wDAA0D;AAE7C,QAAA,uBAAuB,GAAG,aAAC,CAAC,MAAM,CAAC;IAC9C,IAAI,EAAE,aAAC,CAAC,MAAM,EAAE;IAChB,MAAM,EAAE,8BAAe;CACxB,CAAC,CAAA;AAGF;;gCAEgC;AAEnB,QAAA,uBAAuB,GAAG,aAAC,CAAC,MAAM,CAAC;IAC9C,IAAI,EAAE,aAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,gCAAiB;CACzB,CAAC,CAAA;AAGF;;gCAEgC;AACnB,QAAA,8BAA8B,GAAG,aAAC,CAAC,MAAM,CAAC;IACrD,WAAW,EAAE,aAAC,CAAC,MAAM,EAAE;IACvB,KAAK,EAAE,gCAAiB;CACzB,CAAC,CAAA;AAMF;;gCAEgC;AACnB,QAAA,qBAAqB,GAAG,+BAAa,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,EAAC,IAAI,EAAE,IAAI,EAAC,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;IACrG,IAAI,EAAE,mCAAiB,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC5C,IAAI,EAAC,aAAC,CAAC,OAAO,CAAC,MAAM,CAAC;CACtB,CAAC,CAAA;AA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
package/dist/index.d.ts CHANGED
@@ -1,9 +1,10 @@
1
1
  export * from "./core/business/business/business.schema";
2
2
  export * from "./core/business/modules/modules.constants";
3
3
  export * from "./core/business/modules/modules.schema";
4
- export * from "./core/business/social-kind/social-kind.schema";
5
- export * from "./core/business/style/style.schema";
6
4
  export * from "./core/business/elements/elements.schema";
5
+ export * from "./core/business/scalinky/scalinky.schema";
6
+ export * from "./core/business/style/style.schema";
7
+ export * from "./core/business/social-kind/social-kind.schema";
7
8
  export * from "./core/business/theme/theme.schema";
8
9
  export * from "./core/business/variants/variants.schema";
9
10
  export * from "./core/users/role/role.schema";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,0CAA0C,CAAC;AACzD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,wCAAwC,CAAC;AACvD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,oCAAoC,CAAC;AACnD,cAAc,0CAA0C,CAAC;AACzD,cAAc,oCAAoC,CAAC;AACnD,cAAc,0CAA0C,CAAC;AACzD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,0CAA0C,CAAC;AACzD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,wCAAwC,CAAC;AACvD,cAAc,0CAA0C,CAAC;AACzD,cAAc,0CAA0C,CAAC;AACzD,cAAc,oCAAoC,CAAC;AACnD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,oCAAoC,CAAC;AACnD,cAAc,0CAA0C,CAAC;AACzD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC"}
package/dist/index.js CHANGED
@@ -17,9 +17,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./core/business/business/business.schema"), exports);
18
18
  __exportStar(require("./core/business/modules/modules.constants"), exports);
19
19
  __exportStar(require("./core/business/modules/modules.schema"), exports);
20
- __exportStar(require("./core/business/social-kind/social-kind.schema"), exports);
21
- __exportStar(require("./core/business/style/style.schema"), exports);
22
20
  __exportStar(require("./core/business/elements/elements.schema"), exports);
21
+ __exportStar(require("./core/business/scalinky/scalinky.schema"), exports);
22
+ __exportStar(require("./core/business/style/style.schema"), exports);
23
+ __exportStar(require("./core/business/social-kind/social-kind.schema"), exports);
23
24
  __exportStar(require("./core/business/theme/theme.schema"), exports);
24
25
  __exportStar(require("./core/business/variants/variants.schema"), exports);
25
26
  __exportStar(require("./core/users/role/role.schema"), exports);
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2EAAyD;AACzD,4EAA0D;AAC1D,yEAAuD;AACvD,iFAA+D;AAC/D,qEAAmD;AACnD,2EAAyD;AACzD,qEAAmD;AACnD,2EAAyD;AACzD,gEAA8C;AAC9C,gEAA8C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2EAAyD;AACzD,4EAA0D;AAC1D,yEAAuD;AACvD,2EAAyD;AACzD,2EAAyD;AACzD,qEAAmD;AACnD,iFAA+D;AAC/D,qEAAmD;AACnD,2EAAyD;AACzD,gEAA8C;AAC9C,gEAA8C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danielgenarog/shared-contracts",
3
- "version": "1.0.91",
3
+ "version": "1.1.1",
4
4
  "type": "commonjs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",