@cntrl-site/sdk 1.22.9-alpha.0 → 1.22.9-alpha.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.
package/dist/index.js
CHANGED
|
@@ -536,7 +536,7 @@ const SectionSchema = zod.z.object({
|
|
|
536
536
|
offsetX: zod.z.number().nullable()
|
|
537
537
|
})).optional()
|
|
538
538
|
});
|
|
539
|
-
const
|
|
539
|
+
const ItemTriggerSchema = zod.z.object({
|
|
540
540
|
itemId: zod.z.string(),
|
|
541
541
|
type: zod.z.enum(["hover-in", "hover-out", "click"]),
|
|
542
542
|
from: zod.z.string(),
|
|
@@ -558,7 +558,7 @@ const StateSchema = zod.z.object({
|
|
|
558
558
|
});
|
|
559
559
|
const InteractionSchema = zod.z.object({
|
|
560
560
|
id: zod.z.string(),
|
|
561
|
-
triggers: zod.z.array(zod.z.union([
|
|
561
|
+
triggers: zod.z.array(zod.z.union([ItemTriggerSchema, ScrollTriggerSchema])),
|
|
562
562
|
states: zod.z.array(StateSchema),
|
|
563
563
|
startStateId: zod.z.string()
|
|
564
564
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -517,7 +517,7 @@ const SectionSchema = z.object({
|
|
|
517
517
|
offsetX: z.number().nullable()
|
|
518
518
|
})).optional()
|
|
519
519
|
});
|
|
520
|
-
const
|
|
520
|
+
const ItemTriggerSchema = z.object({
|
|
521
521
|
itemId: z.string(),
|
|
522
522
|
type: z.enum(["hover-in", "hover-out", "click"]),
|
|
523
523
|
from: z.string(),
|
|
@@ -539,7 +539,7 @@ const StateSchema = z.object({
|
|
|
539
539
|
});
|
|
540
540
|
const InteractionSchema = z.object({
|
|
541
541
|
id: z.string(),
|
|
542
|
-
triggers: z.array(z.union([
|
|
542
|
+
triggers: z.array(z.union([ItemTriggerSchema, ScrollTriggerSchema])),
|
|
543
543
|
states: z.array(StateSchema),
|
|
544
544
|
startStateId: z.string()
|
|
545
545
|
});
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.InteractionSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const
|
|
5
|
+
const ItemTriggerSchema = zod_1.z.object({
|
|
6
6
|
itemId: zod_1.z.string(),
|
|
7
7
|
type: zod_1.z.enum(['hover-in', 'hover-out', 'click']),
|
|
8
8
|
from: zod_1.z.string(),
|
|
@@ -24,7 +24,7 @@ const StateSchema = zod_1.z.object({
|
|
|
24
24
|
});
|
|
25
25
|
exports.InteractionSchema = zod_1.z.object({
|
|
26
26
|
id: zod_1.z.string(),
|
|
27
|
-
triggers: zod_1.z.array(zod_1.z.union([
|
|
27
|
+
triggers: zod_1.z.array(zod_1.z.union([ItemTriggerSchema, ScrollTriggerSchema])),
|
|
28
28
|
states: zod_1.z.array(StateSchema),
|
|
29
29
|
startStateId: zod_1.z.string(),
|
|
30
30
|
});
|