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,25 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { F as FestivalCardConfig, i as FestivalCardServiceOptions, h as FestivalCardDbAdapter } from './types-B-tjQTGi.js';
|
|
3
|
+
|
|
4
|
+
interface UseFestivalCardConfigOptions {
|
|
5
|
+
initialConfig?: FestivalCardConfig;
|
|
6
|
+
fetchConfig?: () => Promise<FestivalCardConfig>;
|
|
7
|
+
onSave?: (config: FestivalCardConfig) => Promise<void> | void;
|
|
8
|
+
}
|
|
9
|
+
declare const useFestivalCardConfig: (options?: UseFestivalCardConfigOptions) => {
|
|
10
|
+
config: FestivalCardConfig;
|
|
11
|
+
setConfig: React.Dispatch<React.SetStateAction<FestivalCardConfig>>;
|
|
12
|
+
loading: boolean;
|
|
13
|
+
saving: boolean;
|
|
14
|
+
save: () => Promise<void>;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
declare class FestivalCardService {
|
|
18
|
+
private db;
|
|
19
|
+
constructor(options?: FestivalCardServiceOptions);
|
|
20
|
+
getConfig(cardId?: string): Promise<FestivalCardConfig>;
|
|
21
|
+
saveConfig(cardId: string, config: FestivalCardConfig): Promise<FestivalCardConfig>;
|
|
22
|
+
}
|
|
23
|
+
declare const createInMemoryFestivalCardDb: () => FestivalCardDbAdapter;
|
|
24
|
+
|
|
25
|
+
export { FestivalCardService as F, createInMemoryFestivalCardDb as c, useFestivalCardConfig as u };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { F as FestivalCardConfig, i as FestivalCardServiceOptions, h as FestivalCardDbAdapter } from './types-B-tjQTGi.mjs';
|
|
3
|
+
|
|
4
|
+
interface UseFestivalCardConfigOptions {
|
|
5
|
+
initialConfig?: FestivalCardConfig;
|
|
6
|
+
fetchConfig?: () => Promise<FestivalCardConfig>;
|
|
7
|
+
onSave?: (config: FestivalCardConfig) => Promise<void> | void;
|
|
8
|
+
}
|
|
9
|
+
declare const useFestivalCardConfig: (options?: UseFestivalCardConfigOptions) => {
|
|
10
|
+
config: FestivalCardConfig;
|
|
11
|
+
setConfig: React.Dispatch<React.SetStateAction<FestivalCardConfig>>;
|
|
12
|
+
loading: boolean;
|
|
13
|
+
saving: boolean;
|
|
14
|
+
save: () => Promise<void>;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
declare class FestivalCardService {
|
|
18
|
+
private db;
|
|
19
|
+
constructor(options?: FestivalCardServiceOptions);
|
|
20
|
+
getConfig(cardId?: string): Promise<FestivalCardConfig>;
|
|
21
|
+
saveConfig(cardId: string, config: FestivalCardConfig): Promise<FestivalCardConfig>;
|
|
22
|
+
}
|
|
23
|
+
declare const createInMemoryFestivalCardDb: () => FestivalCardDbAdapter;
|
|
24
|
+
|
|
25
|
+
export { FestivalCardService as F, createInMemoryFestivalCardDb as c, useFestivalCardConfig as u };
|
package/dist/index.d.mts
CHANGED
|
@@ -14,7 +14,10 @@ export { DANMAKU_MAX_LENGTH, DANMAKU_TRACK_COUNT, DEFAULT_MAX_ACTIVE_FIREWORKS,
|
|
|
14
14
|
export { e as DanmakuControllerOptions, D as DanmakuMessage, d as DanmakuSendResult, c as FireworkEngineOptions, F as FireworkKind, a as FireworkLaunchPayload, b as FireworkPosition, g as FireworksRealtimeConfig, h as FireworksRealtimeState, f as FireworksRealtimeUser, M as MikuFireworks3DProps } from './types-DBVDr8Mu.mjs';
|
|
15
15
|
export { ResolveScreenReceiverSignalUrlOptions, ScreenReceiverClientRole, ScreenReceiverErrorMessage, ScreenReceiverIncomingMessage, ScreenReceiverJoinMessage, ScreenReceiverJoinedMessage, ScreenReceiverLogEntry, ScreenReceiverPeerJoinedMessage, ScreenReceiverPeerLeftMessage, ScreenReceiverRole, ScreenReceiverRoomStateMessage, ScreenReceiverSignalMessage, ScreenReceiverSignalType, UseScreenReceiverOptions, UseScreenReceiverReturn, resolveScreenReceiverSignalUrl, useScreenReceiver } from './screenReceiver/core/index.mjs';
|
|
16
16
|
export { ScreenReceiverPanel, ScreenReceiverPanelProps } from './screenReceiver/web/index.mjs';
|
|
17
|
-
export {
|
|
17
|
+
export { DEFAULT_FESTIVAL_CARD_CONFIG, normalizeFestivalCardConfig, resizeFestivalCardPages } from './festivalCard/core/index.mjs';
|
|
18
|
+
export { F as FestivalCardService, c as createInMemoryFestivalCardDb, u as useFestivalCardConfig } from './festivalCardService-uSg0oNuD.mjs';
|
|
19
|
+
export { FestivalCardBook3D, FestivalCardBook3DProps, FestivalCardConfigEditor, FestivalCardPageRenderer, FestivalCardStudio } from './festivalCard/web/index.mjs';
|
|
20
|
+
export { g as FestivalCardAudioConfig, F as FestivalCardConfig, h as FestivalCardDbAdapter, e as FestivalCardElement, b as FestivalCardElementBase, a as FestivalCardElementType, d as FestivalCardImageElement, f as FestivalCardPage, i as FestivalCardServiceOptions, c as FestivalCardTextElement } from './types-B-tjQTGi.mjs';
|
|
18
21
|
export { S as StorageAdapter, a as StorageChangeEvent } from './types-BaZccpvk.mjs';
|
|
19
22
|
export { b as useAsyncStorage, d as useElectronStorage, a as useLocalStorage, u as useStorage, c as useTaroStorage } from './useElectronStorage-Dj0rcorG.mjs';
|
|
20
23
|
import './types-CbTsi9CZ.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -14,7 +14,10 @@ export { DANMAKU_MAX_LENGTH, DANMAKU_TRACK_COUNT, DEFAULT_MAX_ACTIVE_FIREWORKS,
|
|
|
14
14
|
export { e as DanmakuControllerOptions, D as DanmakuMessage, d as DanmakuSendResult, c as FireworkEngineOptions, F as FireworkKind, a as FireworkLaunchPayload, b as FireworkPosition, g as FireworksRealtimeConfig, h as FireworksRealtimeState, f as FireworksRealtimeUser, M as MikuFireworks3DProps } from './types-DBVDr8Mu.js';
|
|
15
15
|
export { ResolveScreenReceiverSignalUrlOptions, ScreenReceiverClientRole, ScreenReceiverErrorMessage, ScreenReceiverIncomingMessage, ScreenReceiverJoinMessage, ScreenReceiverJoinedMessage, ScreenReceiverLogEntry, ScreenReceiverPeerJoinedMessage, ScreenReceiverPeerLeftMessage, ScreenReceiverRole, ScreenReceiverRoomStateMessage, ScreenReceiverSignalMessage, ScreenReceiverSignalType, UseScreenReceiverOptions, UseScreenReceiverReturn, resolveScreenReceiverSignalUrl, useScreenReceiver } from './screenReceiver/core/index.js';
|
|
16
16
|
export { ScreenReceiverPanel, ScreenReceiverPanelProps } from './screenReceiver/web/index.js';
|
|
17
|
-
export {
|
|
17
|
+
export { DEFAULT_FESTIVAL_CARD_CONFIG, normalizeFestivalCardConfig, resizeFestivalCardPages } from './festivalCard/core/index.js';
|
|
18
|
+
export { F as FestivalCardService, c as createInMemoryFestivalCardDb, u as useFestivalCardConfig } from './festivalCardService-C0fhTezx.js';
|
|
19
|
+
export { FestivalCardBook3D, FestivalCardBook3DProps, FestivalCardConfigEditor, FestivalCardPageRenderer, FestivalCardStudio } from './festivalCard/web/index.js';
|
|
20
|
+
export { g as FestivalCardAudioConfig, F as FestivalCardConfig, h as FestivalCardDbAdapter, e as FestivalCardElement, b as FestivalCardElementBase, a as FestivalCardElementType, d as FestivalCardImageElement, f as FestivalCardPage, i as FestivalCardServiceOptions, c as FestivalCardTextElement } from './types-B-tjQTGi.js';
|
|
18
21
|
export { S as StorageAdapter, a as StorageChangeEvent } from './types-BaZccpvk.js';
|
|
19
22
|
export { b as useAsyncStorage, d as useElectronStorage, a as useLocalStorage, u as useStorage, c as useTaroStorage } from './useElectronStorage-DwnNfIhl.js';
|
|
20
23
|
import './types-CbTsi9CZ.js';
|