@codefluss/base-types 0.0.1-alpha.1 → 0.0.2-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/common-types.d.ts +253 -26
- package/dist/common-types.d.ts.map +1 -1
- package/dist/common-types.js +8 -1
- package/dist/common-types.js.map +1 -1
- package/dist/dependencies.d.ts +545 -106
- package/dist/dependencies.d.ts.map +1 -1
- package/dist/dependencies.js +12 -2
- package/dist/dependencies.js.map +1 -1
- package/dist/plugin-system.d.ts +809 -204
- package/dist/plugin-system.d.ts.map +1 -1
- package/dist/plugin-system.js +8 -0
- package/dist/plugin-system.js.map +1 -1
- package/package.json +7 -7
- package/src/common-types.ts +286 -30
- package/src/dependencies.ts +770 -180
- package/src/plugin-system.ts +935 -263
package/dist/common-types.d.ts
CHANGED
|
@@ -2,137 +2,364 @@
|
|
|
2
2
|
* Common Type Definitions
|
|
3
3
|
*
|
|
4
4
|
* Single source of truth for types used across multiple plugins and packages.
|
|
5
|
-
* NO DUPLICATION
|
|
5
|
+
* **NO DUPLICATION** — all plugins import from here.
|
|
6
|
+
*
|
|
7
|
+
* These types cover responsive design, text styling, layout, and
|
|
8
|
+
* common data structures shared by the entire plugin system.
|
|
9
|
+
*
|
|
10
|
+
* @see {@link ResponsiveValues} — Generic responsive wrapper
|
|
11
|
+
* @see {@link TextStyleData} — Shared text styling properties
|
|
12
|
+
* @see {@link LayoutData} — Shared layout / spacing properties
|
|
6
13
|
*
|
|
7
14
|
* @package @codefluss/base-types
|
|
8
15
|
* @version 1.0.0
|
|
9
16
|
*/
|
|
10
17
|
/**
|
|
11
|
-
*
|
|
12
|
-
*
|
|
18
|
+
* Four-sided box model value for spacing (padding / margin / gap).
|
|
19
|
+
*
|
|
20
|
+
* Each property represents a side's spacing in pixels (unitless number).
|
|
21
|
+
* Used for both static and responsive spacing presets.
|
|
22
|
+
*
|
|
23
|
+
* @see {@link ResponsiveBoxValues} for per-viewport variants
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```typescript
|
|
27
|
+
* const padding: BoxModelValue = { top: 16, right: 24, bottom: 16, left: 24 };
|
|
28
|
+
* ```
|
|
13
29
|
*/
|
|
14
30
|
export interface BoxModelValue {
|
|
31
|
+
/** Top spacing in pixels */
|
|
15
32
|
top: number;
|
|
33
|
+
/** Right spacing in pixels */
|
|
16
34
|
right: number;
|
|
35
|
+
/** Bottom spacing in pixels */
|
|
17
36
|
bottom: number;
|
|
37
|
+
/** Left spacing in pixels */
|
|
18
38
|
left: number;
|
|
19
39
|
}
|
|
20
40
|
/**
|
|
21
|
-
* Viewport
|
|
22
|
-
*
|
|
41
|
+
* Viewport breakpoint identifiers for responsive design.
|
|
42
|
+
*
|
|
43
|
+
* The system uses exactly **three** breakpoints:
|
|
44
|
+
* - `'mobile'` — Small screens (≤ 768px)
|
|
45
|
+
* - `'tablet'` — Medium screens (769px – 1024px)
|
|
46
|
+
* - `'desktop'` — Large screens (≥ 1025px)
|
|
47
|
+
*
|
|
48
|
+
* @see {@link ResponsiveValues} for responsive value wrappers
|
|
23
49
|
*/
|
|
24
50
|
export type Viewport = 'mobile' | 'tablet' | 'desktop';
|
|
25
51
|
/**
|
|
26
|
-
* Generic responsive values structure
|
|
27
|
-
*
|
|
52
|
+
* Generic responsive values structure — wraps any type `T` with
|
|
53
|
+
* per-viewport entries.
|
|
54
|
+
*
|
|
55
|
+
* Enforces consistent viewport naming across the entire system.
|
|
56
|
+
*
|
|
57
|
+
* @template T - The value type held at each breakpoint
|
|
58
|
+
*
|
|
59
|
+
* @see {@link Viewport} for the three breakpoints
|
|
60
|
+
* @see {@link ResponsiveBoxValues} for the `BoxModelValue` specialization
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* ```typescript
|
|
64
|
+
* const fontSizes: ResponsiveValues<string> = {
|
|
65
|
+
* mobile: '1rem',
|
|
66
|
+
* tablet: '1.25rem',
|
|
67
|
+
* desktop: '1.5rem',
|
|
68
|
+
* };
|
|
69
|
+
*
|
|
70
|
+
* const columns: ResponsiveValues<number> = {
|
|
71
|
+
* mobile: 1,
|
|
72
|
+
* tablet: 2,
|
|
73
|
+
* desktop: 3,
|
|
74
|
+
* };
|
|
75
|
+
* ```
|
|
28
76
|
*/
|
|
29
77
|
export interface ResponsiveValues<T> {
|
|
78
|
+
/** Value applied on mobile viewports */
|
|
30
79
|
mobile: T;
|
|
80
|
+
/** Value applied on tablet viewports */
|
|
31
81
|
tablet: T;
|
|
82
|
+
/** Value applied on desktop viewports */
|
|
32
83
|
desktop: T;
|
|
33
84
|
}
|
|
34
85
|
/**
|
|
35
|
-
* Responsive box model values
|
|
36
|
-
*
|
|
86
|
+
* Responsive box model values — {@link BoxModelValue} for each viewport.
|
|
87
|
+
*
|
|
88
|
+
* Used by spacing presets and responsive overrides to define per-breakpoint
|
|
89
|
+
* margin / padding values.
|
|
90
|
+
*
|
|
91
|
+
* @see {@link BoxModelValue}
|
|
92
|
+
* @see {@link ResponsiveValues}
|
|
37
93
|
*/
|
|
38
94
|
export type ResponsiveBoxValues = ResponsiveValues<BoxModelValue>;
|
|
39
95
|
/**
|
|
40
|
-
*
|
|
96
|
+
* CSS `text-align` options for horizontal text alignment.
|
|
97
|
+
*
|
|
98
|
+
* @see {@link TextStyleData.textAlign}
|
|
41
99
|
*/
|
|
42
100
|
export type TextAlign = 'left' | 'center' | 'right' | 'justify';
|
|
43
101
|
/**
|
|
44
|
-
* Font weight options
|
|
45
|
-
*
|
|
102
|
+
* Font weight options.
|
|
103
|
+
*
|
|
104
|
+
* Supports named weights and numeric CSS values (100–900).
|
|
105
|
+
*
|
|
106
|
+
* @see {@link ResolvedTextStyles.fontWeight}
|
|
46
107
|
*/
|
|
47
108
|
export type FontWeight = 'normal' | 'medium' | 'semibold' | 'bold' | number;
|
|
48
109
|
/**
|
|
49
|
-
*
|
|
110
|
+
* CSS `text-decoration` options.
|
|
111
|
+
*
|
|
112
|
+
* @see {@link TextStyleData.textDecoration}
|
|
50
113
|
*/
|
|
51
114
|
export type TextDecoration = 'none' | 'underline' | 'line-through';
|
|
52
115
|
/**
|
|
53
|
-
*
|
|
116
|
+
* CSS `text-transform` options.
|
|
117
|
+
*
|
|
118
|
+
* @see {@link TextStyleData.textTransform}
|
|
54
119
|
*/
|
|
55
120
|
export type TextTransform = 'none' | 'uppercase' | 'lowercase' | 'capitalize';
|
|
56
121
|
/**
|
|
57
|
-
* Vertical alignment options for content within element
|
|
58
|
-
*
|
|
122
|
+
* Vertical alignment options for content within an element.
|
|
123
|
+
*
|
|
124
|
+
* Applied via flexbox `align-items` / `align-self`.
|
|
125
|
+
*
|
|
126
|
+
* @see {@link TextStyleData.verticalAlign}
|
|
59
127
|
*/
|
|
60
128
|
export type VerticalAlign = 'start' | 'center' | 'end';
|
|
61
129
|
/**
|
|
62
|
-
* Multi-language content
|
|
63
|
-
* Keys are ISO language codes (en, de, fr, es, it)
|
|
130
|
+
* Multi-language content map.
|
|
64
131
|
*
|
|
65
|
-
*
|
|
132
|
+
* Keys are ISO language codes (`'en'`, `'de'`, `'fr'`, `'es'`, `'it'`).
|
|
133
|
+
* Values are the localized text strings.
|
|
134
|
+
*
|
|
135
|
+
* **Fallback chain** when resolving content:
|
|
66
136
|
* 1. Requested language
|
|
67
|
-
* 2. English ('en')
|
|
137
|
+
* 2. English (`'en'`)
|
|
68
138
|
* 3. First available language
|
|
69
139
|
* 4. Empty string
|
|
140
|
+
*
|
|
141
|
+
* @example
|
|
142
|
+
* ```typescript
|
|
143
|
+
* const content: MultiLangContent = {
|
|
144
|
+
* en: 'Hello World',
|
|
145
|
+
* de: 'Hallo Welt',
|
|
146
|
+
* fr: 'Bonjour le monde',
|
|
147
|
+
* };
|
|
148
|
+
* ```
|
|
70
149
|
*/
|
|
71
150
|
export interface MultiLangContent {
|
|
72
151
|
[languageCode: string]: string;
|
|
73
152
|
}
|
|
74
153
|
/**
|
|
75
|
-
* Responsive font sizes for
|
|
154
|
+
* Responsive font sizes — CSS size strings for each viewport breakpoint.
|
|
155
|
+
*
|
|
156
|
+
* @see {@link ResponsiveValues}
|
|
157
|
+
*
|
|
158
|
+
* @example
|
|
159
|
+
* ```typescript
|
|
160
|
+
* const sizes: ResponsiveFontSizes = {
|
|
161
|
+
* mobile: '1rem',
|
|
162
|
+
* tablet: '1.25rem',
|
|
163
|
+
* desktop: '1.5rem',
|
|
164
|
+
* };
|
|
165
|
+
* ```
|
|
76
166
|
*/
|
|
77
167
|
export interface ResponsiveFontSizes {
|
|
168
|
+
/** Font size on mobile viewports (CSS value) */
|
|
78
169
|
mobile: string;
|
|
170
|
+
/** Font size on tablet viewports (CSS value) */
|
|
79
171
|
tablet: string;
|
|
172
|
+
/** Font size on desktop viewports (CSS value) */
|
|
80
173
|
desktop: string;
|
|
81
174
|
}
|
|
82
175
|
/**
|
|
83
|
-
* Common style properties shared across text-based components
|
|
176
|
+
* Common text style properties shared across text-based plugin components
|
|
177
|
+
* (heading, paragraph, text, button label, etc.).
|
|
178
|
+
*
|
|
179
|
+
* All fields are optional — `null` means "inherit from Design System preset".
|
|
180
|
+
*
|
|
181
|
+
* @see {@link ResolvedTextStyles} for the resolved (non-nullable) result
|
|
182
|
+
*
|
|
183
|
+
* @example
|
|
184
|
+
* ```typescript
|
|
185
|
+
* const style: TextStyleData = {
|
|
186
|
+
* fontPresetId: 'heading-1',
|
|
187
|
+
* colorPresetId: 'foreground',
|
|
188
|
+
* textAlign: 'center',
|
|
189
|
+
* letterSpacing: 0.5,
|
|
190
|
+
* };
|
|
191
|
+
* ```
|
|
84
192
|
*/
|
|
85
193
|
export interface TextStyleData {
|
|
194
|
+
/**
|
|
195
|
+
* Design System font preset ID (e.g., `'heading-1'`, `'body'`).
|
|
196
|
+
* Resolves to font family, size, weight, and line-height via the Design System.
|
|
197
|
+
* @default null (inherit)
|
|
198
|
+
*/
|
|
86
199
|
fontPresetId?: string | null;
|
|
200
|
+
/**
|
|
201
|
+
* Design System color preset ID for the text foreground color.
|
|
202
|
+
* @default null (inherit)
|
|
203
|
+
*/
|
|
87
204
|
colorPresetId?: string | null;
|
|
205
|
+
/**
|
|
206
|
+
* Design System color preset ID for the element background color.
|
|
207
|
+
* @default null (transparent)
|
|
208
|
+
*/
|
|
88
209
|
backgroundColorPresetId?: string | null;
|
|
210
|
+
/**
|
|
211
|
+
* Horizontal text alignment
|
|
212
|
+
* @default null (inherit)
|
|
213
|
+
* @see {@link TextAlign}
|
|
214
|
+
*/
|
|
89
215
|
textAlign?: TextAlign | null;
|
|
216
|
+
/**
|
|
217
|
+
* Vertical alignment within the element (via flexbox)
|
|
218
|
+
* @default null (inherit)
|
|
219
|
+
* @see {@link VerticalAlign}
|
|
220
|
+
*/
|
|
90
221
|
verticalAlign?: VerticalAlign | null;
|
|
222
|
+
/**
|
|
223
|
+
* Text decoration (underline, line-through, or none)
|
|
224
|
+
* @default null (inherit)
|
|
225
|
+
* @see {@link TextDecoration}
|
|
226
|
+
*/
|
|
91
227
|
textDecoration?: TextDecoration | null;
|
|
228
|
+
/**
|
|
229
|
+
* Text transform (uppercase, lowercase, capitalize, or none)
|
|
230
|
+
* @default null (inherit)
|
|
231
|
+
* @see {@link TextTransform}
|
|
232
|
+
*/
|
|
92
233
|
textTransform?: TextTransform | null;
|
|
234
|
+
/**
|
|
235
|
+
* Letter spacing in pixels (can be negative)
|
|
236
|
+
* @default null (inherit)
|
|
237
|
+
*/
|
|
93
238
|
letterSpacing?: number | null;
|
|
239
|
+
/**
|
|
240
|
+
* Maximum width of the text element (CSS value, e.g., `'600px'`, `'none'`)
|
|
241
|
+
* @default null (no constraint)
|
|
242
|
+
*/
|
|
94
243
|
maxWidth?: string | null;
|
|
95
244
|
}
|
|
96
245
|
/**
|
|
97
|
-
* Common layout properties shared across all components
|
|
246
|
+
* Common layout properties shared across all plugin components.
|
|
247
|
+
*
|
|
248
|
+
* Handles spacing (via preset system) and optional overrides.
|
|
249
|
+
*
|
|
250
|
+
* @see {@link BoxModelValue} for the override value shape
|
|
251
|
+
*
|
|
252
|
+
* @example
|
|
253
|
+
* ```typescript
|
|
254
|
+
* const layout: LayoutData = {
|
|
255
|
+
* spacingPresetId: 'spacing-text-default',
|
|
256
|
+
* spacingOverride: {
|
|
257
|
+
* padding: { top: 8, right: 16, bottom: 8, left: 16 },
|
|
258
|
+
* },
|
|
259
|
+
* context: 'default',
|
|
260
|
+
* };
|
|
261
|
+
* ```
|
|
98
262
|
*/
|
|
99
263
|
export interface LayoutData {
|
|
264
|
+
/**
|
|
265
|
+
* ID of the Design System spacing preset applied to this element.
|
|
266
|
+
* Resolves to responsive margin and padding values.
|
|
267
|
+
*/
|
|
100
268
|
spacingPresetId: string;
|
|
269
|
+
/**
|
|
270
|
+
* Per-element overrides that take precedence over the spacing preset.
|
|
271
|
+
* Set to `null` to clear overrides and use the preset values as-is.
|
|
272
|
+
*/
|
|
101
273
|
spacingOverride?: {
|
|
274
|
+
/** Override margin values */
|
|
102
275
|
margin?: BoxModelValue;
|
|
276
|
+
/** Override padding values */
|
|
103
277
|
padding?: BoxModelValue;
|
|
104
278
|
} | null;
|
|
279
|
+
/**
|
|
280
|
+
* Layout context hint — influences how spacing presets are resolved.
|
|
281
|
+
*
|
|
282
|
+
* - `'default'` — Standard page content
|
|
283
|
+
* - `'cards'` — Inside a card component (tighter spacing)
|
|
284
|
+
* - `'sections'` — Page section level (wider spacing)
|
|
285
|
+
*
|
|
286
|
+
* @default 'default'
|
|
287
|
+
*/
|
|
105
288
|
context?: 'default' | 'cards' | 'sections';
|
|
106
289
|
}
|
|
107
290
|
/**
|
|
108
|
-
* Grid placement
|
|
291
|
+
* Grid placement data for components inside CSS Grid containers.
|
|
292
|
+
*
|
|
293
|
+
* Specifies the column/row position and span of an element
|
|
294
|
+
* within its parent grid.
|
|
295
|
+
*
|
|
296
|
+
* @example
|
|
297
|
+
* ```typescript
|
|
298
|
+
* // Element spanning columns 1-2 in row 1
|
|
299
|
+
* const placement: GridPlacementData = {
|
|
300
|
+
* colStart: 1,
|
|
301
|
+
* colSpan: 2,
|
|
302
|
+
* rowStart: 1,
|
|
303
|
+
* rowSpan: 1,
|
|
304
|
+
* };
|
|
305
|
+
* ```
|
|
109
306
|
*/
|
|
110
307
|
export interface GridPlacementData {
|
|
308
|
+
/** 1-based column start position (`grid-column-start`) */
|
|
111
309
|
colStart: number;
|
|
310
|
+
/** Number of columns to span (`grid-column-end: span N`) */
|
|
112
311
|
colSpan: number;
|
|
312
|
+
/** 1-based row start position (`grid-row-start`) */
|
|
113
313
|
rowStart: number;
|
|
314
|
+
/** Number of rows to span (`grid-row-end: span N`) */
|
|
114
315
|
rowSpan: number;
|
|
115
316
|
}
|
|
116
317
|
/**
|
|
117
|
-
*
|
|
318
|
+
* Advanced properties available on all plugin components.
|
|
319
|
+
*
|
|
320
|
+
* These are typically shown in the "Advanced" section of the Context Panel.
|
|
118
321
|
*/
|
|
119
322
|
export interface AdvancedData {
|
|
323
|
+
/**
|
|
324
|
+
* Additional CSS class names applied to the root element.
|
|
325
|
+
* @default ''
|
|
326
|
+
*/
|
|
120
327
|
className?: string;
|
|
328
|
+
/**
|
|
329
|
+
* ARIA label for accessibility (screen readers).
|
|
330
|
+
* @default ''
|
|
331
|
+
*/
|
|
121
332
|
ariaLabel?: string;
|
|
122
333
|
}
|
|
123
334
|
/**
|
|
124
|
-
*
|
|
335
|
+
* Fully resolved text styles after applying the Design System fallback chain.
|
|
336
|
+
*
|
|
337
|
+
* All values are guaranteed to be non-null CSS-ready strings.
|
|
338
|
+
* Produced by resolving a {@link TextStyleData} against the active
|
|
339
|
+
* Design System font and color presets.
|
|
340
|
+
*
|
|
341
|
+
* @see {@link TextStyleData} for the unresolved (nullable) input
|
|
125
342
|
*/
|
|
126
343
|
export interface ResolvedTextStyles {
|
|
344
|
+
/** Resolved CSS `font-size` value (e.g., `'1.5rem'`, `'24px'`) */
|
|
127
345
|
fontSize: string;
|
|
346
|
+
/** Resolved CSS `line-height` value (e.g., `'1.4'`, `'28px'`) */
|
|
128
347
|
lineHeight: string;
|
|
348
|
+
/** Resolved CSS `font-weight` value (e.g., `'700'`, `'bold'`) */
|
|
129
349
|
fontWeight: string;
|
|
350
|
+
/** Resolved CSS color value (e.g., `'#1a1a1a'`, `'rgb(0,0,0)'`) */
|
|
130
351
|
color: string;
|
|
352
|
+
/** Resolved horizontal text alignment @see {@link TextAlign} */
|
|
131
353
|
textAlign: TextAlign;
|
|
354
|
+
/** Resolved text decoration @see {@link TextDecoration} */
|
|
132
355
|
textDecoration: TextDecoration;
|
|
356
|
+
/** Resolved text transform @see {@link TextTransform} */
|
|
133
357
|
textTransform: TextTransform;
|
|
358
|
+
/** Resolved CSS `letter-spacing` value (e.g., `'0.5px'`, `'normal'`) */
|
|
134
359
|
letterSpacing: string;
|
|
360
|
+
/** Resolved CSS `max-width` value (e.g., `'600px'`, `'none'`) */
|
|
135
361
|
maxWidth: string;
|
|
362
|
+
/** Resolved CSS `font-family` value (e.g., `'"Inter", sans-serif'`) */
|
|
136
363
|
fontFamily: string;
|
|
137
364
|
}
|
|
138
365
|
//# sourceMappingURL=common-types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common-types.d.ts","sourceRoot":"","sources":["../src/common-types.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"common-types.d.ts","sourceRoot":"","sources":["../src/common-types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,aAAa;IAC5B,4BAA4B;IAC5B,GAAG,EAAE,MAAM,CAAC;IAEZ,8BAA8B;IAC9B,KAAK,EAAE,MAAM,CAAC;IAEd,+BAA+B;IAC/B,MAAM,EAAE,MAAM,CAAC;IAEf,6BAA6B;IAC7B,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;;;;;;;GASG;AACH,MAAM,MAAM,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEvD;;;;;;;;;;;;;;;;;;;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ACjC,kEAAkE;IAClE,QAAQ,EAAE,MAAM,CAAC;IAEjB,iEAAiE;IACjE,UAAU,EAAE,MAAM,CAAC;IAEnB,iEAAiE;IACjE,UAAU,EAAE,MAAM,CAAC;IAEnB,mEAAmE;IACnE,KAAK,EAAE,MAAM,CAAC;IAEd,gEAAgE;IAChE,SAAS,EAAE,SAAS,CAAC;IAErB,2DAA2D;IAC3D,cAAc,EAAE,cAAc,CAAC;IAE/B,yDAAyD;IACzD,aAAa,EAAE,aAAa,CAAC;IAE7B,wEAAwE;IACxE,aAAa,EAAE,MAAM,CAAC;IAEtB,iEAAiE;IACjE,QAAQ,EAAE,MAAM,CAAC;IAEjB,uEAAuE;IACvE,UAAU,EAAE,MAAM,CAAC;CACpB"}
|
package/dist/common-types.js
CHANGED
|
@@ -2,7 +2,14 @@
|
|
|
2
2
|
* Common Type Definitions
|
|
3
3
|
*
|
|
4
4
|
* Single source of truth for types used across multiple plugins and packages.
|
|
5
|
-
* NO DUPLICATION
|
|
5
|
+
* **NO DUPLICATION** — all plugins import from here.
|
|
6
|
+
*
|
|
7
|
+
* These types cover responsive design, text styling, layout, and
|
|
8
|
+
* common data structures shared by the entire plugin system.
|
|
9
|
+
*
|
|
10
|
+
* @see {@link ResponsiveValues} — Generic responsive wrapper
|
|
11
|
+
* @see {@link TextStyleData} — Shared text styling properties
|
|
12
|
+
* @see {@link LayoutData} — Shared layout / spacing properties
|
|
6
13
|
*
|
|
7
14
|
* @package @codefluss/base-types
|
|
8
15
|
* @version 1.0.0
|
package/dist/common-types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common-types.js","sourceRoot":"","sources":["../src/common-types.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"common-types.js","sourceRoot":"","sources":["../src/common-types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG"}
|