@cntrl-site/sdk 1.22.21 → 1.23.1-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/LICENSE +21 -21
- package/README.md +2 -2
- package/package.json +79 -79
- package/resources/template.scss.ejs +50 -50
- package/dist/Client/Client.d.ts +0 -32
- package/dist/Client/Client.js +0 -128
- package/dist/Client/Client.test.d.ts +0 -1
- package/dist/Client/__mock__/articleMock.d.ts +0 -2
- package/dist/Client/__mock__/keyframesMock.d.ts +0 -2
- package/dist/Client/__mock__/projectMock.d.ts +0 -2
- package/dist/Components/ControlSlider/ControlSlider.d.ts +0 -90
- package/dist/Components/ControlSlider/ControlSliderComponent.d.ts +0 -500
- package/dist/Components/components.d.ts +0 -2
- package/dist/Components/helpers/RichTextRenderer/RichTextRenderer.d.ts +0 -6
- package/dist/Components/helpers/SvgImage/SvgImage.d.ts +0 -9
- package/dist/Components/utils/scalingValue.d.ts +0 -1
- package/dist/FontFaceGenerator/FontFaceGenerator.d.ts +0 -6
- package/dist/FontFaceGenerator/FontFaceGenerator.test.d.ts +0 -1
- package/dist/ScrollPlaybackVideoManager/ScrollPlaybackVideoManager.d.ts +0 -31
- package/dist/VideoDecoder/VideoDecoder.d.ts +0 -12
- package/dist/cli.d.ts +0 -10
- package/dist/cli.js +0 -64
- package/dist/index.d.ts +0 -23
- package/dist/index.js +0 -2217
- package/dist/index.mjs +0 -2200
- package/dist/schemas/article/Article.schema.d.ts +0 -293
- package/dist/schemas/article/Article.schema.js +0 -11
- package/dist/schemas/article/Interaction.schema.d.ts +0 -78
- package/dist/schemas/article/Interaction.schema.js +0 -24
- package/dist/schemas/article/Item.schema.d.ts +0 -40
- package/dist/schemas/article/Item.schema.js +0 -241
- package/dist/schemas/article/ItemArea.schema.d.ts +0 -36
- package/dist/schemas/article/ItemArea.schema.js +0 -17
- package/dist/schemas/article/ItemBase.schema.d.ts +0 -137
- package/dist/schemas/article/ItemBase.schema.js +0 -23
- package/dist/schemas/article/ItemState.schema.d.ts +0 -13561
- package/dist/schemas/article/ItemState.schema.js +0 -74
- package/dist/schemas/article/RichTextItem.schema.d.ts +0 -1370
- package/dist/schemas/article/RichTextItem.schema.js +0 -60
- package/dist/schemas/article/Section.schema.d.ts +0 -176
- package/dist/schemas/article/Section.schema.js +0 -38
- package/dist/schemas/keyframe/Keyframes.schema.d.ts +0 -934
- package/dist/schemas/keyframe/Keyframes.schema.js +0 -119
- package/dist/schemas/project/Layout.schema.d.ts +0 -17
- package/dist/schemas/project/Layout.schema.js +0 -10
- package/dist/schemas/project/Project.schema.d.ts +0 -253
- package/dist/schemas/project/Project.schema.js +0 -48
- package/dist/sdk.css +0 -1
- package/dist/types/article/Article.d.ts +0 -7
- package/dist/types/article/Article.js +0 -2
- package/dist/types/article/ArticleItemType.d.ts +0 -13
- package/dist/types/article/ArticleItemType.js +0 -17
- package/dist/types/article/CompoundSettings.d.ts +0 -6
- package/dist/types/article/CompoundSettings.js +0 -2
- package/dist/types/article/FX.d.ts +0 -23
- package/dist/types/article/FX.js +0 -2
- package/dist/types/article/Interaction.d.ts +0 -22
- package/dist/types/article/Interaction.js +0 -2
- package/dist/types/article/Item.d.ts +0 -202
- package/dist/types/article/Item.js +0 -3
- package/dist/types/article/ItemArea.d.ts +0 -36
- package/dist/types/article/ItemArea.js +0 -31
- package/dist/types/article/ItemState.d.ts +0 -77
- package/dist/types/article/ItemState.js +0 -3
- package/dist/types/article/RichText.d.ts +0 -40
- package/dist/types/article/RichText.js +0 -27
- package/dist/types/article/Section.d.ts +0 -37
- package/dist/types/article/Section.js +0 -8
- package/dist/types/component/Component.d.ts +0 -15
- package/dist/types/keyframe/Keyframe.d.ts +0 -89
- package/dist/types/keyframe/Keyframe.js +0 -21
- package/dist/types/project/Fonts.d.ts +0 -22
- package/dist/types/project/Fonts.js +0 -11
- package/dist/types/project/Layout.d.ts +0 -6
- package/dist/types/project/Layout.js +0 -2
- package/dist/types/project/Meta.d.ts +0 -9
- package/dist/types/project/Meta.js +0 -2
- package/dist/types/project/Page.d.ts +0 -11
- package/dist/types/project/Page.js +0 -2
- package/dist/types/project/Project.d.ts +0 -17
- package/dist/types/project/Project.js +0 -2
- package/dist/utils.d.ts +0 -3
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.KeyframesSchema = exports.KeyframeSchema = void 0;
|
|
4
|
-
const Keyframe_1 = require("../../types/keyframe/Keyframe");
|
|
5
|
-
const zod_1 = require("zod");
|
|
6
|
-
const KeyframesBaseSchema = zod_1.z.object({
|
|
7
|
-
id: zod_1.z.string().min(1),
|
|
8
|
-
layoutId: zod_1.z.string().min(1),
|
|
9
|
-
itemId: zod_1.z.string().min(1),
|
|
10
|
-
position: zod_1.z.number()
|
|
11
|
-
});
|
|
12
|
-
const DimensionsKeyframeSchema = KeyframesBaseSchema.extend({
|
|
13
|
-
type: zod_1.z.literal(Keyframe_1.KeyframeType.Dimensions),
|
|
14
|
-
value: zod_1.z.object({
|
|
15
|
-
width: zod_1.z.number().nonnegative(),
|
|
16
|
-
height: zod_1.z.number().nonnegative()
|
|
17
|
-
})
|
|
18
|
-
});
|
|
19
|
-
const PositionKeyframeSchema = KeyframesBaseSchema.extend({
|
|
20
|
-
type: zod_1.z.literal(Keyframe_1.KeyframeType.Position),
|
|
21
|
-
value: zod_1.z.object({
|
|
22
|
-
top: zod_1.z.number(),
|
|
23
|
-
left: zod_1.z.number()
|
|
24
|
-
})
|
|
25
|
-
});
|
|
26
|
-
const RotationKeyframeSchema = KeyframesBaseSchema.extend({
|
|
27
|
-
type: zod_1.z.literal(Keyframe_1.KeyframeType.Rotation),
|
|
28
|
-
value: zod_1.z.object({
|
|
29
|
-
angle: zod_1.z.number()
|
|
30
|
-
})
|
|
31
|
-
});
|
|
32
|
-
const BorderRadiusKeyframeSchema = KeyframesBaseSchema.extend({
|
|
33
|
-
type: zod_1.z.literal(Keyframe_1.KeyframeType.BorderRadius),
|
|
34
|
-
value: zod_1.z.object({
|
|
35
|
-
radius: zod_1.z.number().nonnegative()
|
|
36
|
-
})
|
|
37
|
-
});
|
|
38
|
-
const BorderWidthKeyframeSchema = KeyframesBaseSchema.extend({
|
|
39
|
-
type: zod_1.z.literal(Keyframe_1.KeyframeType.BorderWidth),
|
|
40
|
-
value: zod_1.z.object({
|
|
41
|
-
borderWidth: zod_1.z.number().nonnegative()
|
|
42
|
-
})
|
|
43
|
-
});
|
|
44
|
-
const ColorKeyframeSchema = KeyframesBaseSchema.extend({
|
|
45
|
-
type: zod_1.z.literal(Keyframe_1.KeyframeType.Color),
|
|
46
|
-
value: zod_1.z.object({
|
|
47
|
-
color: zod_1.z.string()
|
|
48
|
-
})
|
|
49
|
-
});
|
|
50
|
-
const BorderColorKeyframeSchema = KeyframesBaseSchema.extend({
|
|
51
|
-
type: zod_1.z.literal(Keyframe_1.KeyframeType.BorderColor),
|
|
52
|
-
value: zod_1.z.object({
|
|
53
|
-
color: zod_1.z.string()
|
|
54
|
-
})
|
|
55
|
-
});
|
|
56
|
-
const OpacityKeyframeSchema = KeyframesBaseSchema.extend({
|
|
57
|
-
type: zod_1.z.literal(Keyframe_1.KeyframeType.Opacity),
|
|
58
|
-
value: zod_1.z.object({
|
|
59
|
-
opacity: zod_1.z.number().nonnegative()
|
|
60
|
-
})
|
|
61
|
-
});
|
|
62
|
-
const ScaleKeyframeSchema = KeyframesBaseSchema.extend({
|
|
63
|
-
type: zod_1.z.literal(Keyframe_1.KeyframeType.Scale),
|
|
64
|
-
value: zod_1.z.object({
|
|
65
|
-
scale: zod_1.z.number().nonnegative()
|
|
66
|
-
})
|
|
67
|
-
});
|
|
68
|
-
const BlurKeyframeSchema = KeyframesBaseSchema.extend({
|
|
69
|
-
type: zod_1.z.literal(Keyframe_1.KeyframeType.Blur),
|
|
70
|
-
value: zod_1.z.object({
|
|
71
|
-
blur: zod_1.z.number()
|
|
72
|
-
})
|
|
73
|
-
});
|
|
74
|
-
const BackdropBlurKeyframeSchema = KeyframesBaseSchema.extend({
|
|
75
|
-
type: zod_1.z.literal(Keyframe_1.KeyframeType.BackdropBlur),
|
|
76
|
-
value: zod_1.z.object({
|
|
77
|
-
backdropBlur: zod_1.z.number()
|
|
78
|
-
})
|
|
79
|
-
});
|
|
80
|
-
const TextColorKeyframeSchema = KeyframesBaseSchema.extend({
|
|
81
|
-
type: zod_1.z.literal(Keyframe_1.KeyframeType.TextColor),
|
|
82
|
-
value: zod_1.z.object({
|
|
83
|
-
color: zod_1.z.string()
|
|
84
|
-
})
|
|
85
|
-
});
|
|
86
|
-
const LetterSpacingKeyframeSchema = KeyframesBaseSchema.extend({
|
|
87
|
-
type: zod_1.z.literal(Keyframe_1.KeyframeType.LetterSpacing),
|
|
88
|
-
value: zod_1.z.object({
|
|
89
|
-
letterSpacing: zod_1.z.number()
|
|
90
|
-
})
|
|
91
|
-
});
|
|
92
|
-
const WordSpacingKeyframeSchema = KeyframesBaseSchema.extend({
|
|
93
|
-
type: zod_1.z.literal(Keyframe_1.KeyframeType.WordSpacing),
|
|
94
|
-
value: zod_1.z.object({
|
|
95
|
-
wordSpacing: zod_1.z.number()
|
|
96
|
-
})
|
|
97
|
-
});
|
|
98
|
-
const FXParamsKeyframeSchema = KeyframesBaseSchema.extend({
|
|
99
|
-
type: zod_1.z.literal(Keyframe_1.KeyframeType.FXParams),
|
|
100
|
-
value: zod_1.z.record(zod_1.z.string(), zod_1.z.number())
|
|
101
|
-
});
|
|
102
|
-
exports.KeyframeSchema = zod_1.z.discriminatedUnion('type', [
|
|
103
|
-
DimensionsKeyframeSchema,
|
|
104
|
-
PositionKeyframeSchema,
|
|
105
|
-
RotationKeyframeSchema,
|
|
106
|
-
BorderRadiusKeyframeSchema,
|
|
107
|
-
BorderWidthKeyframeSchema,
|
|
108
|
-
ColorKeyframeSchema,
|
|
109
|
-
BorderColorKeyframeSchema,
|
|
110
|
-
OpacityKeyframeSchema,
|
|
111
|
-
ScaleKeyframeSchema,
|
|
112
|
-
BlurKeyframeSchema,
|
|
113
|
-
BackdropBlurKeyframeSchema,
|
|
114
|
-
TextColorKeyframeSchema,
|
|
115
|
-
LetterSpacingKeyframeSchema,
|
|
116
|
-
WordSpacingKeyframeSchema,
|
|
117
|
-
FXParamsKeyframeSchema
|
|
118
|
-
]);
|
|
119
|
-
exports.KeyframesSchema = zod_1.z.array(exports.KeyframeSchema);
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const LayoutSchema: z.ZodObject<{
|
|
3
|
-
id: z.ZodString;
|
|
4
|
-
title: z.ZodString;
|
|
5
|
-
startsWith: z.ZodNumber;
|
|
6
|
-
exemplary: z.ZodNumber;
|
|
7
|
-
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
id: string;
|
|
9
|
-
startsWith: number;
|
|
10
|
-
title: string;
|
|
11
|
-
exemplary: number;
|
|
12
|
-
}, {
|
|
13
|
-
id: string;
|
|
14
|
-
startsWith: number;
|
|
15
|
-
title: string;
|
|
16
|
-
exemplary: number;
|
|
17
|
-
}>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LayoutSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
exports.LayoutSchema = zod_1.z.object({
|
|
6
|
-
id: zod_1.z.string(),
|
|
7
|
-
title: zod_1.z.string(),
|
|
8
|
-
startsWith: zod_1.z.number().nonnegative(),
|
|
9
|
-
exemplary: zod_1.z.number().positive()
|
|
10
|
-
});
|
|
@@ -1,253 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { FontFileTypes } from '../../types/project/Fonts';
|
|
3
|
-
export declare const ProjectSchema: z.ZodObject<{
|
|
4
|
-
id: z.ZodString;
|
|
5
|
-
html: z.ZodObject<{
|
|
6
|
-
head: z.ZodString;
|
|
7
|
-
afterBodyOpen: z.ZodString;
|
|
8
|
-
beforeBodyClose: z.ZodString;
|
|
9
|
-
}, "strip", z.ZodTypeAny, {
|
|
10
|
-
head: string;
|
|
11
|
-
afterBodyOpen: string;
|
|
12
|
-
beforeBodyClose: string;
|
|
13
|
-
}, {
|
|
14
|
-
head: string;
|
|
15
|
-
afterBodyOpen: string;
|
|
16
|
-
beforeBodyClose: string;
|
|
17
|
-
}>;
|
|
18
|
-
meta: z.ZodObject<{
|
|
19
|
-
title: z.ZodOptional<z.ZodString>;
|
|
20
|
-
description: z.ZodOptional<z.ZodString>;
|
|
21
|
-
opengraphThumbnail: z.ZodOptional<z.ZodString>;
|
|
22
|
-
keywords: z.ZodOptional<z.ZodString>;
|
|
23
|
-
favicon: z.ZodOptional<z.ZodString>;
|
|
24
|
-
}, "strip", z.ZodTypeAny, {
|
|
25
|
-
title?: string | undefined;
|
|
26
|
-
description?: string | undefined;
|
|
27
|
-
opengraphThumbnail?: string | undefined;
|
|
28
|
-
keywords?: string | undefined;
|
|
29
|
-
favicon?: string | undefined;
|
|
30
|
-
}, {
|
|
31
|
-
title?: string | undefined;
|
|
32
|
-
description?: string | undefined;
|
|
33
|
-
opengraphThumbnail?: string | undefined;
|
|
34
|
-
keywords?: string | undefined;
|
|
35
|
-
favicon?: string | undefined;
|
|
36
|
-
}>;
|
|
37
|
-
layouts: z.ZodArray<z.ZodObject<{
|
|
38
|
-
id: z.ZodString;
|
|
39
|
-
title: z.ZodString;
|
|
40
|
-
startsWith: z.ZodNumber;
|
|
41
|
-
exemplary: z.ZodNumber;
|
|
42
|
-
}, "strip", z.ZodTypeAny, {
|
|
43
|
-
id: string;
|
|
44
|
-
startsWith: number;
|
|
45
|
-
title: string;
|
|
46
|
-
exemplary: number;
|
|
47
|
-
}, {
|
|
48
|
-
id: string;
|
|
49
|
-
startsWith: number;
|
|
50
|
-
title: string;
|
|
51
|
-
exemplary: number;
|
|
52
|
-
}>, "many">;
|
|
53
|
-
pages: z.ZodArray<z.ZodObject<{
|
|
54
|
-
title: z.ZodString;
|
|
55
|
-
articleId: z.ZodString;
|
|
56
|
-
slug: z.ZodString;
|
|
57
|
-
meta: z.ZodOptional<z.ZodObject<{
|
|
58
|
-
title: z.ZodOptional<z.ZodString>;
|
|
59
|
-
description: z.ZodOptional<z.ZodString>;
|
|
60
|
-
opengraphThumbnail: z.ZodOptional<z.ZodString>;
|
|
61
|
-
keywords: z.ZodOptional<z.ZodString>;
|
|
62
|
-
enabled: z.ZodBoolean;
|
|
63
|
-
}, "strip", z.ZodTypeAny, {
|
|
64
|
-
enabled: boolean;
|
|
65
|
-
title?: string | undefined;
|
|
66
|
-
description?: string | undefined;
|
|
67
|
-
opengraphThumbnail?: string | undefined;
|
|
68
|
-
keywords?: string | undefined;
|
|
69
|
-
}, {
|
|
70
|
-
enabled: boolean;
|
|
71
|
-
title?: string | undefined;
|
|
72
|
-
description?: string | undefined;
|
|
73
|
-
opengraphThumbnail?: string | undefined;
|
|
74
|
-
keywords?: string | undefined;
|
|
75
|
-
}>>;
|
|
76
|
-
id: z.ZodString;
|
|
77
|
-
}, "strip", z.ZodTypeAny, {
|
|
78
|
-
id: string;
|
|
79
|
-
title: string;
|
|
80
|
-
articleId: string;
|
|
81
|
-
slug: string;
|
|
82
|
-
meta?: {
|
|
83
|
-
enabled: boolean;
|
|
84
|
-
title?: string | undefined;
|
|
85
|
-
description?: string | undefined;
|
|
86
|
-
opengraphThumbnail?: string | undefined;
|
|
87
|
-
keywords?: string | undefined;
|
|
88
|
-
} | undefined;
|
|
89
|
-
}, {
|
|
90
|
-
id: string;
|
|
91
|
-
title: string;
|
|
92
|
-
articleId: string;
|
|
93
|
-
slug: string;
|
|
94
|
-
meta?: {
|
|
95
|
-
enabled: boolean;
|
|
96
|
-
title?: string | undefined;
|
|
97
|
-
description?: string | undefined;
|
|
98
|
-
opengraphThumbnail?: string | undefined;
|
|
99
|
-
keywords?: string | undefined;
|
|
100
|
-
} | undefined;
|
|
101
|
-
}>, "many">;
|
|
102
|
-
fonts: z.ZodObject<{
|
|
103
|
-
google: z.ZodString;
|
|
104
|
-
adobe: z.ZodString;
|
|
105
|
-
custom: z.ZodArray<z.ZodObject<{
|
|
106
|
-
name: z.ZodString;
|
|
107
|
-
style: z.ZodString;
|
|
108
|
-
weight: z.ZodNumber;
|
|
109
|
-
files: z.ZodArray<z.ZodObject<{
|
|
110
|
-
type: z.ZodNativeEnum<typeof FontFileTypes>;
|
|
111
|
-
url: z.ZodString;
|
|
112
|
-
}, "strip", z.ZodTypeAny, {
|
|
113
|
-
url: string;
|
|
114
|
-
type: FontFileTypes;
|
|
115
|
-
}, {
|
|
116
|
-
url: string;
|
|
117
|
-
type: FontFileTypes;
|
|
118
|
-
}>, "many">;
|
|
119
|
-
}, "strip", z.ZodTypeAny, {
|
|
120
|
-
name: string;
|
|
121
|
-
style: string;
|
|
122
|
-
weight: number;
|
|
123
|
-
files: {
|
|
124
|
-
url: string;
|
|
125
|
-
type: FontFileTypes;
|
|
126
|
-
}[];
|
|
127
|
-
}, {
|
|
128
|
-
name: string;
|
|
129
|
-
style: string;
|
|
130
|
-
weight: number;
|
|
131
|
-
files: {
|
|
132
|
-
url: string;
|
|
133
|
-
type: FontFileTypes;
|
|
134
|
-
}[];
|
|
135
|
-
}>, "many">;
|
|
136
|
-
}, "strip", z.ZodTypeAny, {
|
|
137
|
-
custom: {
|
|
138
|
-
name: string;
|
|
139
|
-
style: string;
|
|
140
|
-
weight: number;
|
|
141
|
-
files: {
|
|
142
|
-
url: string;
|
|
143
|
-
type: FontFileTypes;
|
|
144
|
-
}[];
|
|
145
|
-
}[];
|
|
146
|
-
google: string;
|
|
147
|
-
adobe: string;
|
|
148
|
-
}, {
|
|
149
|
-
custom: {
|
|
150
|
-
name: string;
|
|
151
|
-
style: string;
|
|
152
|
-
weight: number;
|
|
153
|
-
files: {
|
|
154
|
-
url: string;
|
|
155
|
-
type: FontFileTypes;
|
|
156
|
-
}[];
|
|
157
|
-
}[];
|
|
158
|
-
google: string;
|
|
159
|
-
adobe: string;
|
|
160
|
-
}>;
|
|
161
|
-
}, "strip", z.ZodTypeAny, {
|
|
162
|
-
html: {
|
|
163
|
-
head: string;
|
|
164
|
-
afterBodyOpen: string;
|
|
165
|
-
beforeBodyClose: string;
|
|
166
|
-
};
|
|
167
|
-
id: string;
|
|
168
|
-
meta: {
|
|
169
|
-
title?: string | undefined;
|
|
170
|
-
description?: string | undefined;
|
|
171
|
-
opengraphThumbnail?: string | undefined;
|
|
172
|
-
keywords?: string | undefined;
|
|
173
|
-
favicon?: string | undefined;
|
|
174
|
-
};
|
|
175
|
-
layouts: {
|
|
176
|
-
id: string;
|
|
177
|
-
startsWith: number;
|
|
178
|
-
title: string;
|
|
179
|
-
exemplary: number;
|
|
180
|
-
}[];
|
|
181
|
-
pages: {
|
|
182
|
-
id: string;
|
|
183
|
-
title: string;
|
|
184
|
-
articleId: string;
|
|
185
|
-
slug: string;
|
|
186
|
-
meta?: {
|
|
187
|
-
enabled: boolean;
|
|
188
|
-
title?: string | undefined;
|
|
189
|
-
description?: string | undefined;
|
|
190
|
-
opengraphThumbnail?: string | undefined;
|
|
191
|
-
keywords?: string | undefined;
|
|
192
|
-
} | undefined;
|
|
193
|
-
}[];
|
|
194
|
-
fonts: {
|
|
195
|
-
custom: {
|
|
196
|
-
name: string;
|
|
197
|
-
style: string;
|
|
198
|
-
weight: number;
|
|
199
|
-
files: {
|
|
200
|
-
url: string;
|
|
201
|
-
type: FontFileTypes;
|
|
202
|
-
}[];
|
|
203
|
-
}[];
|
|
204
|
-
google: string;
|
|
205
|
-
adobe: string;
|
|
206
|
-
};
|
|
207
|
-
}, {
|
|
208
|
-
html: {
|
|
209
|
-
head: string;
|
|
210
|
-
afterBodyOpen: string;
|
|
211
|
-
beforeBodyClose: string;
|
|
212
|
-
};
|
|
213
|
-
id: string;
|
|
214
|
-
meta: {
|
|
215
|
-
title?: string | undefined;
|
|
216
|
-
description?: string | undefined;
|
|
217
|
-
opengraphThumbnail?: string | undefined;
|
|
218
|
-
keywords?: string | undefined;
|
|
219
|
-
favicon?: string | undefined;
|
|
220
|
-
};
|
|
221
|
-
layouts: {
|
|
222
|
-
id: string;
|
|
223
|
-
startsWith: number;
|
|
224
|
-
title: string;
|
|
225
|
-
exemplary: number;
|
|
226
|
-
}[];
|
|
227
|
-
pages: {
|
|
228
|
-
id: string;
|
|
229
|
-
title: string;
|
|
230
|
-
articleId: string;
|
|
231
|
-
slug: string;
|
|
232
|
-
meta?: {
|
|
233
|
-
enabled: boolean;
|
|
234
|
-
title?: string | undefined;
|
|
235
|
-
description?: string | undefined;
|
|
236
|
-
opengraphThumbnail?: string | undefined;
|
|
237
|
-
keywords?: string | undefined;
|
|
238
|
-
} | undefined;
|
|
239
|
-
}[];
|
|
240
|
-
fonts: {
|
|
241
|
-
custom: {
|
|
242
|
-
name: string;
|
|
243
|
-
style: string;
|
|
244
|
-
weight: number;
|
|
245
|
-
files: {
|
|
246
|
-
url: string;
|
|
247
|
-
type: FontFileTypes;
|
|
248
|
-
}[];
|
|
249
|
-
}[];
|
|
250
|
-
google: string;
|
|
251
|
-
adobe: string;
|
|
252
|
-
};
|
|
253
|
-
}>;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ProjectSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const Layout_schema_1 = require("./Layout.schema");
|
|
6
|
-
const Fonts_1 = require("../../types/project/Fonts");
|
|
7
|
-
exports.ProjectSchema = zod_1.z.object({
|
|
8
|
-
id: zod_1.z.string().min(1),
|
|
9
|
-
html: zod_1.z.object({
|
|
10
|
-
head: zod_1.z.string(),
|
|
11
|
-
afterBodyOpen: zod_1.z.string(),
|
|
12
|
-
beforeBodyClose: zod_1.z.string()
|
|
13
|
-
}),
|
|
14
|
-
meta: zod_1.z.object({
|
|
15
|
-
title: zod_1.z.string().optional(),
|
|
16
|
-
description: zod_1.z.string().optional(),
|
|
17
|
-
opengraphThumbnail: zod_1.z.string().optional(),
|
|
18
|
-
keywords: zod_1.z.string().optional(),
|
|
19
|
-
favicon: zod_1.z.string().optional()
|
|
20
|
-
}),
|
|
21
|
-
layouts: zod_1.z.array(Layout_schema_1.LayoutSchema),
|
|
22
|
-
pages: zod_1.z.array(zod_1.z.object({
|
|
23
|
-
title: zod_1.z.string(),
|
|
24
|
-
articleId: zod_1.z.string().min(1),
|
|
25
|
-
slug: zod_1.z.string(),
|
|
26
|
-
meta: zod_1.z.object({
|
|
27
|
-
title: zod_1.z.string().optional(),
|
|
28
|
-
description: zod_1.z.string().optional(),
|
|
29
|
-
opengraphThumbnail: zod_1.z.string().optional(),
|
|
30
|
-
keywords: zod_1.z.string().optional(),
|
|
31
|
-
enabled: zod_1.z.boolean()
|
|
32
|
-
}).optional(),
|
|
33
|
-
id: zod_1.z.string().min(1)
|
|
34
|
-
})),
|
|
35
|
-
fonts: zod_1.z.object({
|
|
36
|
-
google: zod_1.z.string(),
|
|
37
|
-
adobe: zod_1.z.string(),
|
|
38
|
-
custom: zod_1.z.array(zod_1.z.object({
|
|
39
|
-
name: zod_1.z.string().min(1),
|
|
40
|
-
style: zod_1.z.string().min(1),
|
|
41
|
-
weight: zod_1.z.number(),
|
|
42
|
-
files: zod_1.z.array(zod_1.z.object({
|
|
43
|
-
type: zod_1.z.nativeEnum(Fonts_1.FontFileTypes),
|
|
44
|
-
url: zod_1.z.string()
|
|
45
|
-
}))
|
|
46
|
-
}))
|
|
47
|
-
})
|
|
48
|
-
});
|
package/dist/sdk.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.ControlSlider-module__wrapper___sHEkd{position:relative;width:100%;height:100%}.ControlSlider-module__slider___R3i9-{width:100%;height:100%}.ControlSlider-module__sliderItems___1MgPL{display:flex;overflow:hidden;width:100%;height:100%;transition:transform .3s ease-in-out}.ControlSlider-module__sliderItem___QQSkR{width:100%;height:100%;display:flex;position:relative}.ControlSlider-module__sliderImage___9hRl-{width:100%;height:100%;object-fit:cover}.ControlSlider-module__arrow___05ghY{position:absolute;display:flex;align-items:center;justify-content:center;border:none;background-color:transparent;top:50%;left:calc(var(--is-editor, 0) * -1.3888888889vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -1.3888888889vw);z-index:1;transform:translate(-50%,-50%);padding:0;width:calc(var(--is-editor, 0) * 2.0833333333vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 2.0833333333vw);height:calc(var(--is-editor, 0) * 2.0833333333vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 2.0833333333vw)}.ControlSlider-module__arrow___05ghY.ControlSlider-module__arrowVertical___tBfVN{left:50%;top:calc(var(--is-editor, 0) * -1.3888888889vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -1.3888888889vw);transform:translate(-50%,-50%)}.ControlSlider-module__nextArrow___-30Yc{left:unset;right:calc(var(--is-editor, 0) * -1.3888888889vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -1.3888888889vw);transform:translate(50%,-50%)}.ControlSlider-module__nextArrow___-30Yc.ControlSlider-module__arrowVertical___tBfVN{left:50%;right:unset;top:unset;bottom:calc(var(--is-editor, 0) * -1.3888888889vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -1.3888888889vw);transform:translate(-50%,50%)}.ControlSlider-module__arrowInner___aEra3{all:unset;cursor:pointer;width:100%;height:100%}.ControlSlider-module__arrowInner___aEra3:hover .ControlSlider-module__arrowIcon___S4ztF path{fill:var(--arrow-hover-color)!important}.ControlSlider-module__arrowImg___2dwJW{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.ControlSlider-module__arrowIcon___S4ztF{width:100%;height:100%}.ControlSlider-module__arrowIcon___S4ztF path{transition:fill .15s ease-in-out}.ControlSlider-module__mirror___brd6U{transform:translate(-50%,-50%) scaleX(-1)!important}.ControlSlider-module__arrowVertical___tBfVN.ControlSlider-module__mirror___brd6U{transform:translate(-50%,-50%) scaleY(-1)!important}.ControlSlider-module__pagination___bicLF{position:absolute;z-index:1;border-radius:50%}.ControlSlider-module__paginationInner___bT-P-{display:flex;gap:calc(var(--is-editor, 0) * 1.1111111111vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.1111111111vw);padding-top:calc(var(--is-editor, 0) * .6944444444vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * .6944444444vw);padding-bottom:calc(var(--is-editor, 0) * .6944444444vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * .6944444444vw);padding-left:calc(var(--is-editor, 0) * 1.25vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.25vw);padding-right:calc(var(--is-editor, 0) * 1.25vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.25vw);border-radius:calc(var(--is-editor, 0) * 2.3611111111vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 2.3611111111vw)}.ControlSlider-module__paginationVertical___zYqKw{flex-direction:column}.ControlSlider-module__paginationItem___nTRbk{all:unset;flex-shrink:0;position:relative;width:calc(var(--is-editor, 0) * 1.1111111111vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.1111111111vw);height:calc(var(--is-editor, 0) * 1.1111111111vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.1111111111vw);cursor:pointer}.ControlSlider-module__paginationItem___nTRbk:hover .ControlSlider-module__dot___p1Qun{background-color:var(--pagination-hover-color)!important}.ControlSlider-module__dot___p1Qun{border-radius:50%;scale:.5;transition:background-color .3s ease-in-out,transform .3s ease-in-out;width:calc(var(--is-editor, 0) * 1.1111111111vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.1111111111vw);height:calc(var(--is-editor, 0) * 1.1111111111vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.1111111111vw)}.ControlSlider-module__activeDot___LHFaj{transform:scale(2)}.ControlSlider-module__paginationInsideBottom___R3FWn{bottom:0;left:50%;transform:translate(-50%)}.ControlSlider-module__paginationInsideTop___V-qb-{left:50%;transform:translate(-50%);top:0}.ControlSlider-module__paginationOutsideBottom___14w8D{left:50%;transform:translate(-50%);bottom:calc(var(--is-editor, 0) * -2.4305555556vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -2.4305555556vw)}.ControlSlider-module__paginationOutsideTop___SCLqB{left:50%;transform:translate(-50%);top:calc(var(--is-editor, 0) * -2.4305555556vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -2.4305555556vw)}.ControlSlider-module__paginationInsideLeft___yOBRZ{top:50%;transform:translateY(-50%);left:calc(var(--is-editor, 0) * -2.4305555556vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -2.4305555556vw)}.ControlSlider-module__paginationInsideRight___Rtt3o{top:50%;transform:translateY(-50%);right:calc(var(--is-editor, 0) * -2.4305555556vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -2.4305555556vw)}.ControlSlider-module__paginationOutsideLeft___lahaw{top:50%;transform:translateY(-50%);left:calc(var(--is-editor, 0) * -5.4861111111vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -5.4861111111vw)}.ControlSlider-module__paginationOutsideRight___EtuQa{top:50%;transform:translateY(-50%);right:calc(var(--is-editor, 0) * -5.4861111111vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -5.4861111111vw)}.ControlSlider-module__imgWrapper___UjEgB,.ControlSlider-module__wrapperInner___DLAWV{width:100%;height:100%}.ControlSlider-module__captionBlock___dJ6-j{pointer-events:none;position:absolute;top:0;z-index:1;left:0;right:0;bottom:0}.ControlSlider-module__captionTextWrapper___HFlpf{position:relative;width:100%;height:100%}.ControlSlider-module__captionText___uGBVc{pointer-events:none;max-width:100%;transition-property:opacity;transition-timing-function:ease-in-out;position:absolute;display:inline-block;white-space:pre-wrap;overflow-wrap:break-word;opacity:0}.ControlSlider-module__captionText___uGBVc.ControlSlider-module__active___WZK4G{opacity:1}.ControlSlider-module__withPointerEvents___t-18M{pointer-events:auto}.ControlSlider-module__absolute___KxmYB{position:absolute}.ControlSlider-module__topLeftAlignment___zjnGM{top:0;left:0}.ControlSlider-module__topCenterAlignment___gD1xW{top:0;left:50%;transform:translate(-50%)}.ControlSlider-module__topRightAlignment___NMapS{top:0;right:0}.ControlSlider-module__middleLeftAlignment___OnUrY{top:50%;transform:translateY(-50%);left:0}.ControlSlider-module__middleCenterAlignment___Tdkl0{top:50%;transform:translate(-50%,-50%);left:50%}.ControlSlider-module__middleRightAlignment___wEbfX{top:50%;transform:translateY(-50%);right:0}.ControlSlider-module__bottomLeftAlignment___cTP2-{bottom:0;left:0}.ControlSlider-module__bottomCenterAlignment___c54fB{bottom:0;left:50%;transform:translate(-50%)}.ControlSlider-module__bottomRightAlignment___kEwrz{bottom:0;right:0}.ControlSlider-module__clickOverlay___DZA28{position:absolute;top:0;left:0;width:100%;height:100%;cursor:pointer}.ControlSlider-module__contain___pLyq7{object-fit:contain}.ControlSlider-module__cover___KdDat{object-fit:cover}@keyframes splide-loading{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.splide__track--draggable{-webkit-touch-callout:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.splide__track--fade>.splide__list>.splide__slide{margin:0!important;opacity:0;z-index:0}.splide__track--fade>.splide__list>.splide__slide.is-active{opacity:1;z-index:1}.splide--rtl{direction:rtl}.splide__track--ttb>.splide__list{display:block}.splide__container{box-sizing:border-box;position:relative}.splide__list{backface-visibility:hidden;display:-ms-flexbox;display:flex;height:100%;margin:0!important;padding:0!important}.splide.is-initialized:not(.is-active) .splide__list{display:block}.splide__pagination{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:center;justify-content:center;margin:0;pointer-events:none}.splide__pagination li{display:inline-block;line-height:1;list-style-type:none;margin:0;pointer-events:auto}.splide:not(.is-overflow) .splide__pagination{display:none}.splide__progress__bar{width:0}.splide{position:relative;visibility:hidden}.splide.is-initialized,.splide.is-rendered{visibility:visible}.splide__slide{backface-visibility:hidden;box-sizing:border-box;-ms-flex-negative:0;flex-shrink:0;list-style-type:none!important;margin:0;position:relative}.splide__slide img{vertical-align:bottom}.splide__spinner{animation:splide-loading 1s linear infinite;border:2px solid #999;border-left-color:transparent;border-radius:50%;bottom:0;contain:strict;display:inline-block;height:20px;left:0;margin:auto;position:absolute;right:0;top:0;width:20px}.splide__sr{clip:rect(0 0 0 0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.splide__toggle.is-active .splide__toggle__play,.splide__toggle__pause{display:none}.splide__toggle.is-active .splide__toggle__pause{display:inline}.splide__track{overflow:hidden;position:relative;z-index:0}.RichTextRenderer-module__link___BWeZ2{color:inherit;cursor:pointer;pointer-events:auto;transition:color .2s ease}.RichTextRenderer-module__link___BWeZ2:hover{color:var(--link-hover-color)}.SvgImage-module__svg___q3xE-{width:100%;height:100%;color:transparent;display:inline-block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background-color:var(--fill);transition:background-color .2s;-webkit-mask:var(--svg) no-repeat center/contain;mask:var(--svg) no-repeat center/contain}.SvgImage-module__svg___q3xE-:hover{background-color:var(--hover-fill)}.SvgImage-module__img___VsTm-{width:100%;height:100%;object-fit:contain}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare enum ArticleItemType {
|
|
2
|
-
Image = "image",
|
|
3
|
-
RichText = "richtext",
|
|
4
|
-
Video = "video",
|
|
5
|
-
Rectangle = "rectangle",
|
|
6
|
-
VimeoEmbed = "vimeo-embed",
|
|
7
|
-
YoutubeEmbed = "youtube-embed",
|
|
8
|
-
Custom = "custom",
|
|
9
|
-
Group = "group",
|
|
10
|
-
CodeEmbed = "code-embed",
|
|
11
|
-
Compound = "compound",
|
|
12
|
-
Component = "component"
|
|
13
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ArticleItemType = void 0;
|
|
4
|
-
var ArticleItemType;
|
|
5
|
-
(function (ArticleItemType) {
|
|
6
|
-
ArticleItemType["Image"] = "image";
|
|
7
|
-
ArticleItemType["RichText"] = "richtext";
|
|
8
|
-
ArticleItemType["Video"] = "video";
|
|
9
|
-
ArticleItemType["Rectangle"] = "rectangle";
|
|
10
|
-
ArticleItemType["VimeoEmbed"] = "vimeo-embed";
|
|
11
|
-
ArticleItemType["YoutubeEmbed"] = "youtube-embed";
|
|
12
|
-
ArticleItemType["Custom"] = "custom";
|
|
13
|
-
ArticleItemType["Group"] = "group";
|
|
14
|
-
ArticleItemType["CodeEmbed"] = "code-embed";
|
|
15
|
-
ArticleItemType["Compound"] = "compound";
|
|
16
|
-
ArticleItemType["Component"] = "component";
|
|
17
|
-
})(ArticleItemType || (exports.ArticleItemType = ArticleItemType = {}));
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export type FXControlType = 'float' | 'int' | 'vec2';
|
|
2
|
-
export type FXControlInput = 'knob' | 'matrix2d' | 'slider';
|
|
3
|
-
export interface FXCursor {
|
|
4
|
-
type: 'mouse' | 'manual';
|
|
5
|
-
x: number;
|
|
6
|
-
y: number;
|
|
7
|
-
}
|
|
8
|
-
export interface FXControlValuesMap {
|
|
9
|
-
'float': number;
|
|
10
|
-
'int': number;
|
|
11
|
-
'vec2': [number, number];
|
|
12
|
-
}
|
|
13
|
-
export interface FXControlTypeMap {
|
|
14
|
-
'float': 'knob' | 'slider';
|
|
15
|
-
'int': 'knob';
|
|
16
|
-
'vec2': 'matrix2d';
|
|
17
|
-
}
|
|
18
|
-
export interface FXControl<Type extends FXControlType, Input extends FXControlTypeMap[Type]> {
|
|
19
|
-
type: Type;
|
|
20
|
-
shaderParam: string;
|
|
21
|
-
value: FXControlValuesMap[Type];
|
|
22
|
-
}
|
|
23
|
-
export type FXControlAny = FXControl<FXControlType, FXControlInput>;
|
package/dist/types/article/FX.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export interface Interaction {
|
|
2
|
-
id: string;
|
|
3
|
-
triggers: InteractionTrigger[];
|
|
4
|
-
states: InteractionState[];
|
|
5
|
-
startStateId: string;
|
|
6
|
-
}
|
|
7
|
-
export interface InteractionTrigger {
|
|
8
|
-
itemId: string;
|
|
9
|
-
type: 'hover-in' | 'hover-out' | 'click';
|
|
10
|
-
from: StateId;
|
|
11
|
-
to: StateId;
|
|
12
|
-
}
|
|
13
|
-
export type VideoInteractionAction = {
|
|
14
|
-
type: 'play' | 'pause';
|
|
15
|
-
itemId: string;
|
|
16
|
-
};
|
|
17
|
-
export interface InteractionState {
|
|
18
|
-
id: StateId;
|
|
19
|
-
actions?: VideoInteractionAction[];
|
|
20
|
-
}
|
|
21
|
-
type StateId = string;
|
|
22
|
-
export {};
|