@novely/solid-renderer 0.53.0 → 0.56.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.
- package/README.md +12 -11
- package/dist/index.d.ts +151 -1
- package/dist/index.js +3197 -0
- package/dist/index.js.map +1 -0
- package/dist/{styles/index.css → style.css} +253 -243
- package/license +15 -15
- package/package.json +39 -37
- package/dist/actions.d.ts +0 -2
- package/dist/components/Await.d.ts +0 -7
- package/dist/components/Canvas.d.ts +0 -9
- package/dist/components/Character.d.ts +0 -8
- package/dist/components/ControlPanelButtons.d.ts +0 -10
- package/dist/components/DialogName.d.ts +0 -8
- package/dist/components/DialogOverview.d.ts +0 -14
- package/dist/components/Icon.d.ts +0 -7
- package/dist/components/Modal.d.ts +0 -11
- package/dist/components/Range.d.ts +0 -14
- package/dist/components/Root.d.ts +0 -23
- package/dist/components/Save.d.ts +0 -11
- package/dist/components/Select.d.ts +0 -14
- package/dist/components/Typewriter.d.ts +0 -14
- package/dist/components/index.d.ts +0 -13
- package/dist/constants.d.ts +0 -7
- package/dist/context/index.d.ts +0 -38
- package/dist/context-state.d.ts +0 -9
- package/dist/custom-actions/index.d.ts +0 -2
- package/dist/custom-actions/mood.d.ts +0 -3
- package/dist/custom-actions/show-hide-image.d.ts +0 -25
- package/dist/emitter.d.ts +0 -12
- package/dist/hooks/index.d.ts +0 -1
- package/dist/hooks/useMedia.d.ts +0 -2
- package/dist/index.jsx +0 -5488
- package/dist/renderer.d.ts +0 -79
- package/dist/screens/custom-screen.d.ts +0 -9
- package/dist/screens/game.d.ts +0 -14
- package/dist/screens/index.d.ts +0 -6
- package/dist/screens/loading.d.ts +0 -6
- package/dist/screens/mainmenu.d.ts +0 -3
- package/dist/screens/saves.d.ts +0 -3
- package/dist/screens/settings.d.ts +0 -6
- package/dist/shared.d.ts +0 -3
- package/dist/types.d.ts +0 -50
- package/dist/utils.d.ts +0 -27
package/license
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
ISC License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2023, Artem Schukin
|
|
4
|
-
|
|
5
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
-
purpose with or without fee is hereby granted, provided that the above
|
|
7
|
-
copyright notice and this permission notice appear in all copies.
|
|
8
|
-
|
|
9
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
10
|
-
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
11
|
-
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
12
|
-
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
13
|
-
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
14
|
-
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
15
|
-
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
1
|
+
ISC License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023, Artem Schukin
|
|
4
|
+
|
|
5
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
7
|
+
copyright notice and this permission notice appear in all copies.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
10
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
11
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
12
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
13
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
14
|
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
15
|
+
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
package/package.json
CHANGED
|
@@ -1,44 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@novely/solid-renderer",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"type": "module",
|
|
5
|
-
"publishConfig": {
|
|
6
|
-
"access": "public"
|
|
7
|
-
},
|
|
8
|
-
"types": "./dist/index.d.ts",
|
|
9
|
-
"main": "./dist/index.jsx",
|
|
10
|
-
"module": "./dist/index.jsx",
|
|
11
|
-
"sideEffects": false,
|
|
12
|
-
"devDependencies": {
|
|
13
|
-
"esbuild": "^0.27.4",
|
|
14
|
-
"esbuild-plugin-solid": "^0.6.0",
|
|
15
|
-
"typescript": "^5.9.3"
|
|
16
|
-
},
|
|
17
|
-
"dependencies": {
|
|
18
|
-
"@solid-primitives/destructure": "^0.2.3",
|
|
19
|
-
"clsx": "^2.1.1",
|
|
20
|
-
"es-toolkit": "^1.39.5",
|
|
21
|
-
"solid-js": "~1.9.11",
|
|
22
|
-
"solid-transition-group": "^0.3.0",
|
|
23
|
-
"@novely/core": "^0.55.0",
|
|
24
|
-
"@novely/renderer-toolkit": "0.14.0"
|
|
25
|
-
},
|
|
26
|
-
"peerDependencies": {
|
|
27
|
-
"@novely/core": "*",
|
|
28
|
-
"solid-js": "*"
|
|
29
|
-
},
|
|
30
|
-
"license": "ISC",
|
|
31
|
-
"bugs": {
|
|
32
|
-
"url": "https://github.com/yhdgms1/novely/issues"
|
|
33
|
-
},
|
|
34
|
-
"homepage": "https://github.com/yhdgms1/novely/tree/main/packages/solid-renderer",
|
|
3
|
+
"version": "0.56.0",
|
|
35
4
|
"keywords": [
|
|
5
|
+
"novel",
|
|
36
6
|
"novely",
|
|
37
|
-
"solid-js",
|
|
38
|
-
"solid",
|
|
39
7
|
"renderer",
|
|
40
|
-
"
|
|
8
|
+
"solid",
|
|
9
|
+
"solid-js"
|
|
41
10
|
],
|
|
11
|
+
"homepage": "https://github.com/yhdgms1/novely/tree/main/packages/solid-renderer",
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/yhdgms1/novely/issues"
|
|
14
|
+
},
|
|
15
|
+
"license": "ISC",
|
|
42
16
|
"author": {
|
|
43
17
|
"name": "Artemiy Schukin",
|
|
44
18
|
"url": "https://github.com/yhdgms1"
|
|
@@ -51,8 +25,36 @@
|
|
|
51
25
|
"files": [
|
|
52
26
|
"dist/*"
|
|
53
27
|
],
|
|
28
|
+
"type": "module",
|
|
29
|
+
"sideEffects": false,
|
|
30
|
+
"main": "./dist/index.js",
|
|
31
|
+
"module": "./dist/index.js",
|
|
32
|
+
"types": "./dist/index.d.ts",
|
|
33
|
+
"publishConfig": {
|
|
34
|
+
"access": "public"
|
|
35
|
+
},
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"@novely/core": "^0.56.0",
|
|
38
|
+
"@solid-primitives/refs": "^3.0.0",
|
|
39
|
+
"@solid-primitives/transition-group": "^2.0.0",
|
|
40
|
+
"@solidjs/web": "~2.0.4",
|
|
41
|
+
"es-toolkit": "^1.39.5",
|
|
42
|
+
"simple-web-audio": "^0.10.0",
|
|
43
|
+
"solid-js": "~2.0.4"
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@tsdown/css": "^0.21.4",
|
|
47
|
+
"rolldown-plugin-solid-compiler": "^1.0.0",
|
|
48
|
+
"tsdown": "^0.21.4",
|
|
49
|
+
"typescript": "^5.9.3"
|
|
50
|
+
},
|
|
51
|
+
"peerDependencies": {
|
|
52
|
+
"@novely/core": "*",
|
|
53
|
+
"@solidjs/web": "^2.0.0",
|
|
54
|
+
"solid-js": "^2.0.0"
|
|
55
|
+
},
|
|
54
56
|
"scripts": {
|
|
55
|
-
"dev": "
|
|
56
|
-
"build": "
|
|
57
|
+
"dev": "tsdown --watch",
|
|
58
|
+
"build": "tsdown"
|
|
57
59
|
}
|
|
58
60
|
}
|
package/dist/actions.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { JSX, VoidComponent } from 'solid-js';
|
|
2
|
-
type NativeCanvasProps = JSX.CanvasHTMLAttributes<HTMLCanvasElement>;
|
|
3
|
-
type CanvasProps = Omit<NativeCanvasProps, 'ref'> & {
|
|
4
|
-
resize?: boolean;
|
|
5
|
-
throttle?: number;
|
|
6
|
-
render: (canvas: HTMLCanvasElement, ctx: CanvasRenderingContext2D) => void;
|
|
7
|
-
};
|
|
8
|
-
declare const Canvas: VoidComponent<CanvasProps>;
|
|
9
|
-
export { Canvas };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { VoidComponent } from 'solid-js';
|
|
2
|
-
import type { CustomCharacterHandle } from '../types';
|
|
3
|
-
type CharacterProps = {
|
|
4
|
-
character: string;
|
|
5
|
-
characters: Record<string, CustomCharacterHandle>;
|
|
6
|
-
};
|
|
7
|
-
declare const Character: VoidComponent<CharacterProps>;
|
|
8
|
-
export { Character };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { Accessor, Setter, VoidComponent } from 'solid-js';
|
|
2
|
-
type ControlPanelButtonsProps = {
|
|
3
|
-
openSettings: () => void;
|
|
4
|
-
closeDropdown: () => void;
|
|
5
|
-
openDialogOverview: () => void;
|
|
6
|
-
auto: Accessor<boolean>;
|
|
7
|
-
setAuto: Setter<boolean>;
|
|
8
|
-
};
|
|
9
|
-
declare const ControlPanelButtons: VoidComponent<ControlPanelButtonsProps>;
|
|
10
|
-
export { ControlPanelButtons };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { Context } from '@novely/core';
|
|
2
|
-
import type { VoidComponent } from 'solid-js';
|
|
3
|
-
import { createAudio } from '@novely/renderer-toolkit';
|
|
4
|
-
type DialogOverviewProps = {
|
|
5
|
-
context: Context;
|
|
6
|
-
shown: boolean;
|
|
7
|
-
audio: ReturnType<typeof createAudio>;
|
|
8
|
-
/**
|
|
9
|
-
* Close dialog overview
|
|
10
|
-
*/
|
|
11
|
-
close: () => void;
|
|
12
|
-
};
|
|
13
|
-
declare const DialogOverview: VoidComponent<DialogOverviewProps>;
|
|
14
|
-
export { DialogOverview };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Accessor, FlowComponent, JSX } from 'solid-js';
|
|
2
|
-
type NativeAttrs = JSX.DialogHtmlAttributes<HTMLDialogElement>;
|
|
3
|
-
type FinalNativeAttrs = Exclude<NativeAttrs, 'open' | 'ref' | 'classList'>;
|
|
4
|
-
type ModalProps = FinalNativeAttrs & {
|
|
5
|
-
isOpen: Accessor<boolean>;
|
|
6
|
-
setIsOpen?: (value: boolean) => void;
|
|
7
|
-
trapFocus: Accessor<boolean>;
|
|
8
|
-
isModal: boolean;
|
|
9
|
-
};
|
|
10
|
-
declare const Modal: FlowComponent<ModalProps>;
|
|
11
|
-
export { Modal };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { JSX, VoidComponent } from 'solid-js';
|
|
2
|
-
type NativeInputProps = Omit<JSX.InputHTMLAttributes<HTMLInputElement>, 'class' | 'id' | 'type'>;
|
|
3
|
-
type RangeProps = NativeInputProps & {
|
|
4
|
-
/**
|
|
5
|
-
* Icon #path
|
|
6
|
-
*/
|
|
7
|
-
icon: string;
|
|
8
|
-
/**
|
|
9
|
-
* Label
|
|
10
|
-
*/
|
|
11
|
-
label: string;
|
|
12
|
-
};
|
|
13
|
-
declare const Range: VoidComponent<RangeProps>;
|
|
14
|
-
export { Range };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { Renderer, RendererInit } from '@novely/core';
|
|
2
|
-
import type { Context } from '@novely/core';
|
|
3
|
-
import type { DeepAtom, RendererStateStore } from '@novely/renderer-toolkit';
|
|
4
|
-
import type { Component } from 'solid-js';
|
|
5
|
-
import type { IContextState } from '../context-state';
|
|
6
|
-
import type { Emitter } from '../emitter';
|
|
7
|
-
import type { EmitterEventsMap, RendererStoreExtension } from '../types';
|
|
8
|
-
import type { createAudio } from '@novely/renderer-toolkit';
|
|
9
|
-
type CreateRootComponentOpts = {
|
|
10
|
-
setRoot: (root: HTMLDivElement) => void;
|
|
11
|
-
renderer: Renderer;
|
|
12
|
-
fullscreen: boolean;
|
|
13
|
-
emitter: Emitter<EmitterEventsMap>;
|
|
14
|
-
controls: 'inside' | 'outside';
|
|
15
|
-
showAudioSettings: boolean;
|
|
16
|
-
rendererContext: Context;
|
|
17
|
-
coreOptions: RendererInit<any, any>;
|
|
18
|
-
$contextState: IContextState;
|
|
19
|
-
$rendererState: DeepAtom<RendererStateStore<RendererStoreExtension>>;
|
|
20
|
-
audio: ReturnType<typeof createAudio>;
|
|
21
|
-
};
|
|
22
|
-
declare const createRootComponent: ({ $rendererState, $contextState, coreOptions, setRoot, renderer, showAudioSettings, fullscreen, emitter, controls, rendererContext, audio, }: CreateRootComponentOpts) => Component;
|
|
23
|
-
export { createRootComponent };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Save as NovelySave } from '@novely/core';
|
|
2
|
-
import type { VoidComponent } from 'solid-js';
|
|
3
|
-
interface SaveProps {
|
|
4
|
-
save: NovelySave;
|
|
5
|
-
language: string;
|
|
6
|
-
observed: boolean;
|
|
7
|
-
overlayShown: boolean;
|
|
8
|
-
onPreviewDone: () => void;
|
|
9
|
-
}
|
|
10
|
-
declare const Save: VoidComponent<SaveProps>;
|
|
11
|
-
export { Save };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { FlowComponent, JSX } from 'solid-js';
|
|
2
|
-
type NativeSelectProps = Omit<JSX.SelectHTMLAttributes<HTMLSelectElement>, 'class' | 'id'>;
|
|
3
|
-
type SelectProps = NativeSelectProps & {
|
|
4
|
-
/**
|
|
5
|
-
* Icon #path
|
|
6
|
-
*/
|
|
7
|
-
icon: string;
|
|
8
|
-
/**
|
|
9
|
-
* Label
|
|
10
|
-
*/
|
|
11
|
-
label: string;
|
|
12
|
-
};
|
|
13
|
-
declare const Select: FlowComponent<SelectProps>;
|
|
14
|
-
export { Select };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { VoidComponent } from 'solid-js';
|
|
2
|
-
type TypewriterProps = {
|
|
3
|
-
content: string | undefined;
|
|
4
|
-
};
|
|
5
|
-
type CreateTypewriterOptions = {
|
|
6
|
-
resolve: () => void;
|
|
7
|
-
ignore: () => boolean;
|
|
8
|
-
onComplete: (prm: boolean, click: () => void) => void;
|
|
9
|
-
};
|
|
10
|
-
declare const createTypewriter: ({ ignore, onComplete, resolve }: CreateTypewriterOptions) => {
|
|
11
|
-
Typewriter: VoidComponent<TypewriterProps>;
|
|
12
|
-
click: () => void;
|
|
13
|
-
};
|
|
14
|
-
export { createTypewriter };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export { Character } from './Character';
|
|
2
|
-
export { ControlPanelButtons } from './ControlPanelButtons';
|
|
3
|
-
export { DialogName } from './DialogName';
|
|
4
|
-
export { Modal } from './Modal';
|
|
5
|
-
export { Save } from './Save';
|
|
6
|
-
export { createTypewriter } from './Typewriter';
|
|
7
|
-
export { createRootComponent } from './Root';
|
|
8
|
-
export { Canvas } from './Canvas';
|
|
9
|
-
export { Select } from './Select';
|
|
10
|
-
export { Range } from './Range';
|
|
11
|
-
export { DialogOverview } from './DialogOverview';
|
|
12
|
-
export { Icon } from './Icon';
|
|
13
|
-
export { Await } from './Await';
|
package/dist/constants.d.ts
DELETED
package/dist/context/index.d.ts
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import type { BaseTranslationStrings, Context, CoreData, Renderer, RendererInit, StorageData, Stored } from '@novely/core';
|
|
2
|
-
import type { DeepAtom, RendererStateStore } from '@novely/renderer-toolkit';
|
|
3
|
-
import type { Accessor, FlowComponent } from 'solid-js';
|
|
4
|
-
import type { Emitter } from '../emitter';
|
|
5
|
-
import type { EmitterEventsMap, RendererStoreExtension } from '../types';
|
|
6
|
-
import type { createAudio } from '@novely/renderer-toolkit';
|
|
7
|
-
type DataContext = {
|
|
8
|
-
$rendererState: DeepAtom<RendererStateStore<RendererStoreExtension>>;
|
|
9
|
-
storageData: Accessor<StorageData>;
|
|
10
|
-
storageDataUpdate: (fn: (prev: StorageData) => StorageData) => void;
|
|
11
|
-
coreData: Accessor<CoreData>;
|
|
12
|
-
coreDataUpdate: (fn: (prev: CoreData) => CoreData) => void;
|
|
13
|
-
options: RendererInit<any, any>;
|
|
14
|
-
renderer: Renderer;
|
|
15
|
-
t: (key: BaseTranslationStrings | (string & Record<never, never>)) => string;
|
|
16
|
-
emitter: Emitter<EmitterEventsMap>;
|
|
17
|
-
media: {
|
|
18
|
-
hyperWide: Accessor<boolean>;
|
|
19
|
-
};
|
|
20
|
-
getContext: (name: string) => Context;
|
|
21
|
-
removeContext: (name: string) => void;
|
|
22
|
-
audio: ReturnType<typeof createAudio>;
|
|
23
|
-
};
|
|
24
|
-
declare const Context: import("solid-js").Context<DataContext | undefined>;
|
|
25
|
-
type ProviderProps = {
|
|
26
|
-
$rendererState: DeepAtom<RendererStateStore<RendererStoreExtension>>;
|
|
27
|
-
storageData: Stored<StorageData>;
|
|
28
|
-
coreData: Stored<CoreData>;
|
|
29
|
-
options: RendererInit<any, any>;
|
|
30
|
-
renderer: Renderer;
|
|
31
|
-
emitter: Emitter<EmitterEventsMap>;
|
|
32
|
-
getContext: (name: string) => Context;
|
|
33
|
-
removeContext: (name: string) => void;
|
|
34
|
-
audio: ReturnType<typeof createAudio>;
|
|
35
|
-
};
|
|
36
|
-
declare const Provider: FlowComponent<ProviderProps>;
|
|
37
|
-
declare const useData: () => DataContext;
|
|
38
|
-
export { Provider, useData };
|
package/dist/context-state.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { ContextImages } from './custom-actions/show-hide-image';
|
|
2
|
-
declare const useContextState: (id: string) => import("@novely/renderer-toolkit").DeepAtom<import("@novely/renderer-toolkit").ContextStateStore<{
|
|
3
|
-
images: ContextImages;
|
|
4
|
-
dialogOverviewShown: boolean;
|
|
5
|
-
mood: string;
|
|
6
|
-
}>>, removeContextState: (id: string) => void;
|
|
7
|
-
type IContextState = ReturnType<typeof useContextState>;
|
|
8
|
-
export { useContextState, removeContextState };
|
|
9
|
-
export type { IContextState };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { ValidAction, NovelyAsset } from '@novely/core';
|
|
2
|
-
type ShowImageParams = {
|
|
3
|
-
classesBase?: string;
|
|
4
|
-
classesIn?: string;
|
|
5
|
-
wait?: boolean;
|
|
6
|
-
};
|
|
7
|
-
type ShowImageData = {
|
|
8
|
-
classesBase?: string[];
|
|
9
|
-
classesIn?: string[];
|
|
10
|
-
classesOut?: string[];
|
|
11
|
-
key: string;
|
|
12
|
-
image: HTMLImageElement;
|
|
13
|
-
visible: boolean;
|
|
14
|
-
onIn: () => void;
|
|
15
|
-
onOut: () => void;
|
|
16
|
-
};
|
|
17
|
-
type ContextImages = ShowImageData[];
|
|
18
|
-
declare const showImage: (asset: NovelyAsset, { classesBase, classesIn, wait }?: ShowImageParams) => ValidAction;
|
|
19
|
-
type HideImageParams = {
|
|
20
|
-
classesOut?: string;
|
|
21
|
-
wait?: boolean;
|
|
22
|
-
};
|
|
23
|
-
declare const hideImage: (asset: NovelyAsset, { classesOut, wait }?: HideImageParams) => ValidAction;
|
|
24
|
-
export { showImage, hideImage };
|
|
25
|
-
export type { ContextImages };
|
package/dist/emitter.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
type EventMap = Record<string, unknown>;
|
|
2
|
-
type EventKey<T extends EventMap> = string & keyof T;
|
|
3
|
-
type EventReceiver<T> = (params: T) => void;
|
|
4
|
-
interface Emitter<T extends EventMap> {
|
|
5
|
-
on<K extends EventKey<T>>(eventName: K, fn: EventReceiver<T[K]>): void;
|
|
6
|
-
once<K extends EventKey<T>>(eventName: K, fn: EventReceiver<T[K]>): void;
|
|
7
|
-
off<K extends EventKey<T>>(eventName: K, fn: EventReceiver<T[K]>): void;
|
|
8
|
-
emit<K extends EventKey<T>>(eventName: K, params: T[K]): void;
|
|
9
|
-
}
|
|
10
|
-
declare const createEmitter: <T extends EventMap>() => Emitter<T>;
|
|
11
|
-
export { createEmitter };
|
|
12
|
-
export type { Emitter, EventKey, EventReceiver, EventMap };
|
package/dist/hooks/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { useMedia } from './useMedia';
|
package/dist/hooks/useMedia.d.ts
DELETED