@scml-dol-maplebirch/types 5.0.3 → 5.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.
Files changed (124) hide show
  1. package/compat/DoLPcompat.d.ts +55 -0
  2. package/compat/ModI18N.d.ts +10 -0
  3. package/compat/Prototype.d.ts +43 -0
  4. package/compat/SimpleFrameworks.d.ts +1 -0
  5. package/constants.d.ts +52 -0
  6. package/core.d.ts +143 -0
  7. package/host/DoL.d.ts +44 -0
  8. package/host/ModLoader.d.ts +37 -0
  9. package/host/Resources.d.ts +15 -0
  10. package/host/SugarCube.d.ts +25 -0
  11. package/index.d.ts +11 -30
  12. package/infra/Catalog.d.ts +14 -0
  13. package/infra/Diagnostics.d.ts +48 -0
  14. package/infra/Emitter.d.ts +18 -0
  15. package/infra/Hooks.d.ts +15 -0
  16. package/infra/Lifecycle.d.ts +24 -0
  17. package/infra/Logger.d.ts +15 -0
  18. package/macros/helpers.d.ts +54 -0
  19. package/macros/index.d.ts +8 -0
  20. package/macros/lanButton.d.ts +2 -0
  21. package/macros/lanLink.d.ts +2 -0
  22. package/macros/lanListbox.d.ts +2 -0
  23. package/macros/lanSwitch.d.ts +3 -0
  24. package/macros/language.d.ts +2 -0
  25. package/macros/macros.d.ts +14 -0
  26. package/macros/maplebirchReplace.d.ts +1 -0
  27. package/macros/radiobuttonsfrom.d.ts +2 -0
  28. package/main.d.ts +22 -0
  29. package/maplebirch.d.ts +11 -4440
  30. package/modules/Audio.d.ts +118 -0
  31. package/modules/AudioAddon/Ambience.d.ts +17 -0
  32. package/modules/AudioAddon/AudioBufferPlayer.d.ts +20 -0
  33. package/modules/AudioAddon/Playlist.d.ts +29 -0
  34. package/modules/AudioAddon/Track.d.ts +15 -0
  35. package/modules/Character.d.ts +39 -0
  36. package/modules/CharacterAddon/Pet.d.ts +61 -0
  37. package/modules/CharacterAddon/Transformation.d.ts +70 -0
  38. package/modules/CharacterAddon/TransformationConfig.d.ts +20 -0
  39. package/modules/Combat.d.ts +17 -0
  40. package/modules/CombatAddon/CombatAction.d.ts +63 -0
  41. package/modules/CombatAddon/CombatTypes.d.ts +4 -0
  42. package/modules/DoL/Config.d.ts +50 -0
  43. package/modules/DoL/Dynamic.d.ts +23 -0
  44. package/modules/DoL/Integration.d.ts +13 -0
  45. package/modules/DoL/Patches/Antiques.d.ts +17 -0
  46. package/modules/DoL/Patches/Bodywriting.d.ts +33 -0
  47. package/modules/DoL/Patches/Fishing.d.ts +32 -0
  48. package/modules/DoL/Patches/Foodstuff.d.ts +64 -0
  49. package/modules/DoL/Patches/Location.d.ts +36 -0
  50. package/modules/DoL/Patches/Tips.d.ts +7 -0
  51. package/modules/DoL/Patches/Traits.d.ts +24 -0
  52. package/modules/DoL/Patches/config.d.ts +2 -0
  53. package/modules/DoL/Patches/index.d.ts +86 -0
  54. package/modules/DoL/Replacements.d.ts +189 -0
  55. package/modules/DoL/ToolCollection.d.ts +17 -0
  56. package/modules/DoL/index.d.ts +1 -0
  57. package/modules/DoL/types.d.ts +20 -0
  58. package/modules/Dynamic.d.ts +10 -0
  59. package/modules/Event.d.ts +16 -0
  60. package/modules/Frameworks/ApplyLinkZone.d.ts +40 -0
  61. package/modules/Frameworks/ConsoleCheat.d.ts +43 -0
  62. package/modules/Frameworks/DoLConsole.d.ts +8 -0
  63. package/modules/Frameworks/DoLMacros.d.ts +6 -0
  64. package/modules/Frameworks/HtmlTools.d.ts +49 -0
  65. package/modules/Frameworks/ImageLoader.d.ts +6 -0
  66. package/modules/Frameworks/OptionEvents.d.ts +15 -0
  67. package/modules/Frameworks/Patch.d.ts +24 -0
  68. package/modules/Frameworks/RandSystem.d.ts +27 -0
  69. package/modules/Frameworks/TextStore.d.ts +7 -0
  70. package/modules/Frameworks/TimeTravelCheat.d.ts +17 -0
  71. package/modules/Frameworks/ZonesManager.d.ts +69 -0
  72. package/modules/Frameworks/macros.d.ts +27 -0
  73. package/modules/Frameworks/migration.d.ts +33 -0
  74. package/modules/NamedNPC.d.ts +164 -0
  75. package/modules/NamedNPCAddon/NPCClothes/Condition.d.ts +3 -0
  76. package/modules/NamedNPCAddon/NPCClothes/NPCOutfitSets.d.ts +38 -0
  77. package/modules/NamedNPCAddon/NPCClothes/NPCSidebarArt.d.ts +25 -0
  78. package/modules/NamedNPCAddon/NPCClothes/NPCSidebarWardrobe.d.ts +60 -0
  79. package/modules/NamedNPCAddon/NPCClothes.d.ts +12 -0
  80. package/modules/NamedNPCAddon/NPCFluids.d.ts +17 -0
  81. package/modules/NamedNPCAddon/NPCPregnancy.d.ts +127 -0
  82. package/modules/NamedNPCAddon/NPCSchedules.d.ts +77 -0
  83. package/modules/NamedNPCAddon/NPCSidebar.d.ts +28 -0
  84. package/modules/NamedNPCAddon/NPCSidebarConfig/base_layers.d.ts +212 -0
  85. package/modules/NamedNPCAddon/NPCSidebarConfig/face_layers.d.ts +220 -0
  86. package/modules/NamedNPCAddon/NPCSidebarConfig/feet_layers.d.ts +274 -0
  87. package/modules/NamedNPCAddon/NPCSidebarConfig/fluids_layers.d.ts +109 -0
  88. package/modules/NamedNPCAddon/NPCSidebarConfig/functions.d.ts +509 -0
  89. package/modules/NamedNPCAddon/NPCSidebarConfig/handheld_layers.d.ts +292 -0
  90. package/modules/NamedNPCAddon/NPCSidebarConfig/hands_layers.d.ts +381 -0
  91. package/modules/NamedNPCAddon/NPCSidebarConfig/head_layers.d.ts +490 -0
  92. package/modules/NamedNPCAddon/NPCSidebarConfig/legs_layers.d.ts +274 -0
  93. package/modules/NamedNPCAddon/NPCSidebarConfig/lower_layers.d.ts +800 -0
  94. package/modules/NamedNPCAddon/NPCSidebarConfig/neck_layers.d.ts +112 -0
  95. package/modules/NamedNPCAddon/NPCSidebarConfig/transformation_layers.d.ts +1672 -0
  96. package/modules/NamedNPCAddon/NPCSidebarConfig/types.d.ts +130 -0
  97. package/modules/NamedNPCAddon/NPCSidebarConfig/upper_layers.d.ts +1516 -0
  98. package/modules/NamedNPCAddon/NPCTransformation.d.ts +51 -0
  99. package/modules/NamedNPCAddon/NPCUtils.d.ts +8 -0
  100. package/modules/State.d.ts +46 -0
  101. package/modules/TimeStateWeather/DateTime.d.ts +4 -0
  102. package/modules/TimeStateWeather/Time.d.ts +14 -0
  103. package/modules/TimeStateWeather/TimeEvents.d.ts +130 -0
  104. package/modules/TimeStateWeather/WeatherEvents.d.ts +56 -0
  105. package/modules/ToolCollection.d.ts +33 -0
  106. package/modules/Variables.d.ts +32 -0
  107. package/package.d.ts +30 -0
  108. package/package.json +5 -7
  109. package/services/AddonPlugin.d.ts +92 -0
  110. package/services/CloudSave.d.ts +124 -0
  111. package/services/CredentialVault.d.ts +80 -0
  112. package/services/GUIControl.d.ts +54 -0
  113. package/services/IndexedDB.d.ts +28 -0
  114. package/services/Modules.d.ts +75 -0
  115. package/services/Translator.d.ts +60 -0
  116. package/types/global.d.ts +123 -0
  117. package/types/twine-sugarcube.d.ts +456 -0
  118. package/utils/array.d.ts +10 -0
  119. package/utils/binary.d.ts +8 -0
  120. package/utils/condition.d.ts +1 -0
  121. package/utils/index.d.ts +22 -0
  122. package/utils/object.d.ts +16 -0
  123. package/utils/selector.d.ts +20 -0
  124. package/utils/string.d.ts +8 -0
@@ -0,0 +1,54 @@
1
+ import { type MaplebirchCore } from '../core.js';
2
+ import type { MacroContext as SugarCubeMacroContext } from 'twine-sugarcube';
3
+ export declare const CONVERT_MODES: readonly ['lower', 'upper', 'capitalize', 'title', 'camel', 'pascal', 'snake', 'kebab', 'constant'];
4
+ export type ConvertMode = (typeof CONVERT_MODES)[number];
5
+ export type MacroArgs = unknown[] & {
6
+ full?: string;
7
+ raw?: string;
8
+ };
9
+ export interface MacroPayload {
10
+ name: string;
11
+ args: MacroArgs;
12
+ contents?: string;
13
+ }
14
+ export interface MacroContext extends Omit<SugarCubeMacroContext, 'args' | 'createShadowWrapper' | 'error' | 'payload'> {
15
+ args: MacroArgs;
16
+ payload?: MacroPayload[] | null;
17
+ error(msg: string): void;
18
+ createShadowWrapper(callback: (...args: never[]) => unknown, doneCallback?: (...args: never[]) => unknown, startCallback?: (...args: never[]) => unknown): (...args: unknown[]) => void;
19
+ passageObj?: {
20
+ title: string;
21
+ };
22
+ lanListboxCache?: Record<string, {
23
+ options: ListboxOption[];
24
+ selectedIdx: number;
25
+ }>;
26
+ }
27
+ export interface LinkArg {
28
+ text: string | readonly string[];
29
+ link?: string;
30
+ }
31
+ export interface StyleArgs {
32
+ className: string;
33
+ style: string;
34
+ icon: string;
35
+ iconOnly: boolean;
36
+ convertMode: ConvertMode | null;
37
+ }
38
+ export interface ListboxOption {
39
+ label: string | readonly string[];
40
+ value: unknown;
41
+ type: 'static' | 'dynamic';
42
+ exprIndex?: number;
43
+ convertMode: ConvertMode | null;
44
+ }
45
+ export declare function text(value: unknown): string;
46
+ export declare function sourceText(value: unknown): string;
47
+ export declare function macroTranslation(key: unknown, core?: MaplebirchCore): string;
48
+ export declare function readStyle(args: unknown[], start?: number): StyleArgs;
49
+ export declare function isStyleArg(arg: string): boolean;
50
+ export declare function translatedText(source: unknown, convertMode: ConvertMode | null): string;
51
+ export declare function appendMacroIcon($target: JQuery, icon: string): void;
52
+ export declare function addClasses($target: JQuery, className: string): void;
53
+ export declare function bindLanguageUpdate($target: JQuery, key: string, update: () => void): void;
54
+ export declare function wiki($container: JQuery, content: string): void;
@@ -0,0 +1,8 @@
1
+ export type { MacroContext } from './helpers.js';
2
+ export { _language } from './language.js';
3
+ export { _languageSwitch } from './lanSwitch.js';
4
+ export { _languageButton } from './lanButton.js';
5
+ export { _languageLink } from './lanLink.js';
6
+ export { _languageListbox } from './lanListbox.js';
7
+ export { _radiobuttonsfrom } from './radiobuttonsfrom.js';
8
+ export { _overlayReplace } from './maplebirchReplace.js';
@@ -0,0 +1,2 @@
1
+ import { type MacroContext } from './helpers.js';
2
+ export declare function _languageButton(this: MacroContext): void;
@@ -0,0 +1,2 @@
1
+ import { type MacroContext } from './helpers.js';
2
+ export declare function _languageLink(this: MacroContext): void;
@@ -0,0 +1,2 @@
1
+ import { type MacroContext } from './helpers.js';
2
+ export declare function _languageListbox(this: MacroContext): void;
@@ -0,0 +1,3 @@
1
+ import { type MacroContext } from './helpers.js';
2
+ export declare function _languageSwitch(this: void, ...lanObj: unknown[]): string;
3
+ export declare function _languageSwitch(this: MacroContext, ...lanObj: unknown[]): HTMLElement;
@@ -0,0 +1,2 @@
1
+ import { type MacroContext } from './helpers.js';
2
+ export declare function _language(this: MacroContext): void;
@@ -0,0 +1,14 @@
1
+ import type { MaplebirchCore } from '../core.js';
2
+ declare class Macros {
3
+ private readonly core;
4
+ private installed;
5
+ constructor(core: MaplebirchCore);
6
+ install(): void;
7
+ private modDisplayName;
8
+ private collectFrameworkMods;
9
+ private showFrameworkInfo;
10
+ private showFrameworkNotice;
11
+ notice(): void;
12
+ register(): void;
13
+ }
14
+ export default Macros;
@@ -0,0 +1 @@
1
+ export declare function _overlayReplace(name: string, type: string): void;
@@ -0,0 +1,2 @@
1
+ import { type MacroContext } from './helpers.js';
2
+ export declare function _radiobuttonsfrom(this: MacroContext): HTMLElement | void;
package/main.d.ts ADDED
@@ -0,0 +1,22 @@
1
+ export { default, type MaplebirchCore, type FrameworkHost, type FrameworkInfra, type FrameworkServices, type CoreEvents, type Extensions } from './core.js';
2
+ export { Save, type SaveObject } from './host/SugarCube.js';
3
+ export { default as AddonPlugin, type AddonServices, type BootTask, type BootHandler } from './services/AddonPlugin.js';
4
+ export { default as Resources } from './host/Resources.js';
5
+ export { default as Logger, type LogLevel } from './infra/Logger.js';
6
+ export { default as Diagnostics, type DiagnosticRecord, type PatchResult, type ModConflict } from './infra/Diagnostics.js';
7
+ export { default as Catalog } from './infra/Catalog.js';
8
+ export { default as Hooks, type HookCallback } from './infra/Hooks.js';
9
+ export { default as Lifecycle, type LifecyclePhase, type LifecycleTarget, type LifecycleResult } from './infra/Lifecycle.js';
10
+ export { default as Emitter, type EventCallback } from './infra/Emitter.js';
11
+ export { default as Modules, type Module, type ModulesMeta, type DependencyInfo, type DependencyGraph } from './services/Modules.js';
12
+ export { default as IndexedDB } from './services/IndexedDB.js';
13
+ export { default as Translator, type Translation } from './services/Translator.js';
14
+ export { default as GUIControl } from './services/GUIControl.js';
15
+ export { default as CredentialVault } from './services/CredentialVault.js';
16
+ export { default as CloudSave, type CloudSaveConfig, type CloudSaveRecord, type CloudSaveRemoteItem, type CloudSaveRemoteCode } from './services/CloudSave.js';
17
+ export { default as SugarCube } from './host/SugarCube.js';
18
+ export { default as ModLoader } from './host/ModLoader.js';
19
+ export { default as Dynamic } from './modules/Dynamic.js';
20
+ export { StateManager, type StateEventOptions } from './modules/State.js';
21
+ export { default as ToolCollection } from './modules/ToolCollection.js';
22
+ export * as utils from './utils/index.js';