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.
Files changed (41) hide show
  1. package/dist/festivalCard/core/index.d.mts +8 -0
  2. package/dist/festivalCard/core/index.d.ts +8 -0
  3. package/dist/festivalCard/core/index.js +181 -0
  4. package/dist/festivalCard/core/index.js.map +1 -0
  5. package/dist/festivalCard/core/index.mjs +177 -0
  6. package/dist/festivalCard/core/index.mjs.map +1 -0
  7. package/dist/festivalCard/index.d.mts +5 -10
  8. package/dist/festivalCard/index.d.ts +5 -10
  9. package/dist/festivalCard/index.js +549 -173
  10. package/dist/festivalCard/index.js.map +1 -1
  11. package/dist/festivalCard/index.mjs +539 -153
  12. package/dist/festivalCard/index.mjs.map +1 -1
  13. package/dist/festivalCard/miniapp/index.d.mts +12 -0
  14. package/dist/festivalCard/miniapp/index.d.ts +12 -0
  15. package/dist/festivalCard/miniapp/index.js +341 -0
  16. package/dist/festivalCard/miniapp/index.js.map +1 -0
  17. package/dist/festivalCard/miniapp/index.mjs +329 -0
  18. package/dist/festivalCard/miniapp/index.mjs.map +1 -0
  19. package/dist/festivalCard/server/index.d.mts +6 -0
  20. package/dist/festivalCard/server/index.d.ts +6 -0
  21. package/dist/festivalCard/server/index.js +13 -0
  22. package/dist/festivalCard/server/index.js.map +1 -0
  23. package/dist/festivalCard/server/index.mjs +10 -0
  24. package/dist/festivalCard/server/index.mjs.map +1 -0
  25. package/dist/festivalCard/web/index.d.mts +31 -0
  26. package/dist/festivalCard/web/index.d.ts +31 -0
  27. package/dist/festivalCard/web/index.js +582 -0
  28. package/dist/festivalCard/web/index.js.map +1 -0
  29. package/dist/festivalCard/web/index.mjs +567 -0
  30. package/dist/festivalCard/web/index.mjs.map +1 -0
  31. package/dist/festivalCardService-C0fhTezx.d.ts +25 -0
  32. package/dist/festivalCardService-uSg0oNuD.d.mts +25 -0
  33. package/dist/index.d.mts +4 -1
  34. package/dist/index.d.ts +4 -1
  35. package/dist/index.js +562 -164
  36. package/dist/index.js.map +1 -1
  37. package/dist/index.mjs +552 -163
  38. package/dist/index.mjs.map +1 -1
  39. package/dist/types-B-tjQTGi.d.mts +62 -0
  40. package/dist/types-B-tjQTGi.d.ts +62 -0
  41. 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 { FestivalCard3D, FestivalCard3DProps } from './festivalCard/index.mjs';
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 { FestivalCard3D, FestivalCard3DProps } from './festivalCard/index.js';
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';