sa2kit 1.6.68 → 1.6.69
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/festivalCard/core/index.d.mts +8 -0
- package/dist/festivalCard/core/index.d.ts +8 -0
- package/dist/festivalCard/core/index.js +181 -0
- package/dist/festivalCard/core/index.js.map +1 -0
- package/dist/festivalCard/core/index.mjs +177 -0
- package/dist/festivalCard/core/index.mjs.map +1 -0
- package/dist/festivalCard/index.d.mts +5 -10
- package/dist/festivalCard/index.d.ts +5 -10
- package/dist/festivalCard/index.js +549 -173
- package/dist/festivalCard/index.js.map +1 -1
- package/dist/festivalCard/index.mjs +539 -153
- package/dist/festivalCard/index.mjs.map +1 -1
- package/dist/festivalCard/miniapp/index.d.mts +12 -0
- package/dist/festivalCard/miniapp/index.d.ts +12 -0
- package/dist/festivalCard/miniapp/index.js +341 -0
- package/dist/festivalCard/miniapp/index.js.map +1 -0
- package/dist/festivalCard/miniapp/index.mjs +329 -0
- package/dist/festivalCard/miniapp/index.mjs.map +1 -0
- package/dist/festivalCard/server/index.d.mts +6 -0
- package/dist/festivalCard/server/index.d.ts +6 -0
- package/dist/festivalCard/server/index.js +13 -0
- package/dist/festivalCard/server/index.js.map +1 -0
- package/dist/festivalCard/server/index.mjs +10 -0
- package/dist/festivalCard/server/index.mjs.map +1 -0
- package/dist/festivalCard/web/index.d.mts +31 -0
- package/dist/festivalCard/web/index.d.ts +31 -0
- package/dist/festivalCard/web/index.js +582 -0
- package/dist/festivalCard/web/index.js.map +1 -0
- package/dist/festivalCard/web/index.mjs +567 -0
- package/dist/festivalCard/web/index.mjs.map +1 -0
- package/dist/festivalCardService-C0fhTezx.d.ts +25 -0
- package/dist/festivalCardService-uSg0oNuD.d.mts +25 -0
- package/dist/index.d.mts +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +562 -164
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +552 -163
- package/dist/index.mjs.map +1 -1
- package/dist/types-B-tjQTGi.d.mts +62 -0
- package/dist/types-B-tjQTGi.d.ts +62 -0
- package/package.json +21 -1
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
type FestivalCardElementType = 'text' | 'image';
|
|
2
|
+
interface FestivalCardElementBase {
|
|
3
|
+
id: string;
|
|
4
|
+
type: FestivalCardElementType;
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
width?: number;
|
|
8
|
+
height?: number;
|
|
9
|
+
}
|
|
10
|
+
interface FestivalCardTextElement extends FestivalCardElementBase {
|
|
11
|
+
type: 'text';
|
|
12
|
+
content: string;
|
|
13
|
+
color?: string;
|
|
14
|
+
fontSize?: number;
|
|
15
|
+
fontWeight?: number;
|
|
16
|
+
align?: 'left' | 'center' | 'right';
|
|
17
|
+
}
|
|
18
|
+
interface FestivalCardImageElement extends FestivalCardElementBase {
|
|
19
|
+
type: 'image';
|
|
20
|
+
src: string;
|
|
21
|
+
alt?: string;
|
|
22
|
+
borderRadius?: number;
|
|
23
|
+
fit?: 'cover' | 'contain';
|
|
24
|
+
}
|
|
25
|
+
type FestivalCardElement = FestivalCardTextElement | FestivalCardImageElement;
|
|
26
|
+
interface FestivalCardPage {
|
|
27
|
+
id: string;
|
|
28
|
+
title?: string;
|
|
29
|
+
elements: FestivalCardElement[];
|
|
30
|
+
background?: {
|
|
31
|
+
color?: string;
|
|
32
|
+
image?: string;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
interface FestivalCardAudioConfig {
|
|
36
|
+
src: string;
|
|
37
|
+
loop?: boolean;
|
|
38
|
+
autoPlay?: boolean;
|
|
39
|
+
volume?: number;
|
|
40
|
+
}
|
|
41
|
+
interface FestivalCardConfig {
|
|
42
|
+
id?: string;
|
|
43
|
+
name?: string;
|
|
44
|
+
theme?: 'winter' | 'spring' | 'custom';
|
|
45
|
+
coverTitle?: string;
|
|
46
|
+
coverSubtitle?: string;
|
|
47
|
+
pages: FestivalCardPage[];
|
|
48
|
+
backgroundMusic?: FestivalCardAudioConfig;
|
|
49
|
+
background?: {
|
|
50
|
+
colorA?: string;
|
|
51
|
+
colorB?: string;
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
interface FestivalCardDbAdapter {
|
|
55
|
+
getConfig(id: string): Promise<FestivalCardConfig | null>;
|
|
56
|
+
saveConfig(id: string, config: FestivalCardConfig): Promise<void>;
|
|
57
|
+
}
|
|
58
|
+
interface FestivalCardServiceOptions {
|
|
59
|
+
db?: FestivalCardDbAdapter;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export type { FestivalCardConfig as F, FestivalCardElementType as a, FestivalCardElementBase as b, FestivalCardTextElement as c, FestivalCardImageElement as d, FestivalCardElement as e, FestivalCardPage as f, FestivalCardAudioConfig as g, FestivalCardDbAdapter as h, FestivalCardServiceOptions as i };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
type FestivalCardElementType = 'text' | 'image';
|
|
2
|
+
interface FestivalCardElementBase {
|
|
3
|
+
id: string;
|
|
4
|
+
type: FestivalCardElementType;
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
width?: number;
|
|
8
|
+
height?: number;
|
|
9
|
+
}
|
|
10
|
+
interface FestivalCardTextElement extends FestivalCardElementBase {
|
|
11
|
+
type: 'text';
|
|
12
|
+
content: string;
|
|
13
|
+
color?: string;
|
|
14
|
+
fontSize?: number;
|
|
15
|
+
fontWeight?: number;
|
|
16
|
+
align?: 'left' | 'center' | 'right';
|
|
17
|
+
}
|
|
18
|
+
interface FestivalCardImageElement extends FestivalCardElementBase {
|
|
19
|
+
type: 'image';
|
|
20
|
+
src: string;
|
|
21
|
+
alt?: string;
|
|
22
|
+
borderRadius?: number;
|
|
23
|
+
fit?: 'cover' | 'contain';
|
|
24
|
+
}
|
|
25
|
+
type FestivalCardElement = FestivalCardTextElement | FestivalCardImageElement;
|
|
26
|
+
interface FestivalCardPage {
|
|
27
|
+
id: string;
|
|
28
|
+
title?: string;
|
|
29
|
+
elements: FestivalCardElement[];
|
|
30
|
+
background?: {
|
|
31
|
+
color?: string;
|
|
32
|
+
image?: string;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
interface FestivalCardAudioConfig {
|
|
36
|
+
src: string;
|
|
37
|
+
loop?: boolean;
|
|
38
|
+
autoPlay?: boolean;
|
|
39
|
+
volume?: number;
|
|
40
|
+
}
|
|
41
|
+
interface FestivalCardConfig {
|
|
42
|
+
id?: string;
|
|
43
|
+
name?: string;
|
|
44
|
+
theme?: 'winter' | 'spring' | 'custom';
|
|
45
|
+
coverTitle?: string;
|
|
46
|
+
coverSubtitle?: string;
|
|
47
|
+
pages: FestivalCardPage[];
|
|
48
|
+
backgroundMusic?: FestivalCardAudioConfig;
|
|
49
|
+
background?: {
|
|
50
|
+
colorA?: string;
|
|
51
|
+
colorB?: string;
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
interface FestivalCardDbAdapter {
|
|
55
|
+
getConfig(id: string): Promise<FestivalCardConfig | null>;
|
|
56
|
+
saveConfig(id: string, config: FestivalCardConfig): Promise<void>;
|
|
57
|
+
}
|
|
58
|
+
interface FestivalCardServiceOptions {
|
|
59
|
+
db?: FestivalCardDbAdapter;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export type { FestivalCardConfig as F, FestivalCardElementType as a, FestivalCardElementBase as b, FestivalCardTextElement as c, FestivalCardImageElement as d, FestivalCardElement as e, FestivalCardPage as f, FestivalCardAudioConfig as g, FestivalCardDbAdapter as h, FestivalCardServiceOptions as i };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sa2kit",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.69",
|
|
4
4
|
"description": "A modern, type-safe React utility library with cross-platform support and platform adapters",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -358,6 +358,26 @@
|
|
|
358
358
|
"import": "./dist/festivalCard/index.mjs",
|
|
359
359
|
"require": "./dist/festivalCard/index.js"
|
|
360
360
|
},
|
|
361
|
+
"./festivalCard/web": {
|
|
362
|
+
"types": "./dist/festivalCard/web/index.d.ts",
|
|
363
|
+
"import": "./dist/festivalCard/web/index.mjs",
|
|
364
|
+
"require": "./dist/festivalCard/web/index.js"
|
|
365
|
+
},
|
|
366
|
+
"./festivalCard/miniapp": {
|
|
367
|
+
"types": "./dist/festivalCard/miniapp/index.d.ts",
|
|
368
|
+
"import": "./dist/festivalCard/miniapp/index.mjs",
|
|
369
|
+
"require": "./dist/festivalCard/miniapp/index.js"
|
|
370
|
+
},
|
|
371
|
+
"./festivalCard/core": {
|
|
372
|
+
"types": "./dist/festivalCard/core/index.d.ts",
|
|
373
|
+
"import": "./dist/festivalCard/core/index.mjs",
|
|
374
|
+
"require": "./dist/festivalCard/core/index.js"
|
|
375
|
+
},
|
|
376
|
+
"./festivalCard/server": {
|
|
377
|
+
"types": "./dist/festivalCard/server/index.d.ts",
|
|
378
|
+
"import": "./dist/festivalCard/server/index.mjs",
|
|
379
|
+
"require": "./dist/festivalCard/server/index.js"
|
|
380
|
+
},
|
|
361
381
|
"./components": {
|
|
362
382
|
"types": "./dist/components/index.d.ts",
|
|
363
383
|
"import": "./dist/components/index.mjs",
|