@vnejs/contracts.text 0.1.1 → 0.1.2
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/const.d.ts +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/payloads.d.ts +4 -0
- package/package.json +1 -1
- package/src/const.ts +2 -0
- package/src/index.ts +2 -2
- package/src/payloads.ts +5 -0
package/dist/const.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export declare const INTERACT_STATES: {
|
|
|
5
5
|
readonly SHOWED: "showed";
|
|
6
6
|
readonly NEXT: "next";
|
|
7
7
|
};
|
|
8
|
+
export type TextInteractState = (typeof INTERACT_STATES)[keyof typeof INTERACT_STATES];
|
|
8
9
|
export declare const BIG_TOKENS_VISIBLE_VALUE: 99999999;
|
|
9
10
|
export declare const CONSTANTS: {
|
|
10
11
|
readonly SOURCE: "text";
|
package/dist/index.d.ts
CHANGED
|
@@ -6,12 +6,12 @@ import { SUBSCRIBE_EVENTS } from "./events.js";
|
|
|
6
6
|
import type { ModuleGlobalStateText, ModuleGlobalStateTextMeet, ModuleGlobalStateTextSpeaker, ModuleGlobalStateTextWall } from "./module-global-state.js";
|
|
7
7
|
import { PARAMS } from "./params.js";
|
|
8
8
|
import { SETTINGS_KEYS } from "./settings.js";
|
|
9
|
-
export type { TextEmitPayload } from "./payloads.js";
|
|
9
|
+
export type { TextEmitPayload, TextInteractPayload } from "./payloads.js";
|
|
10
10
|
export type { ModuleGlobalStateText, ModuleGlobalStateTextMeet, ModuleGlobalStateTextSpeaker, ModuleGlobalStateTextWall, TextItem, TokenizedChar, WallElement, } from "./module-global-state.js";
|
|
11
11
|
export declare const PLUGIN_NAME: "TEXT";
|
|
12
12
|
export type PluginName = typeof PLUGIN_NAME;
|
|
13
13
|
export { CONSTANTS };
|
|
14
|
-
export type { Constants } from "./const.js";
|
|
14
|
+
export type { Constants, TextInteractState } from "./const.js";
|
|
15
15
|
export { SUBSCRIBE_EVENTS };
|
|
16
16
|
export type { SubscribeEvents } from "./events.js";
|
|
17
17
|
export { PARAMS };
|
package/dist/payloads.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { TextInteractState } from "./const.js";
|
|
1
2
|
import type { TextItem } from "./module-global-state.js";
|
|
2
3
|
export type TextEmitPayload = {
|
|
3
4
|
text?: string;
|
|
@@ -6,3 +7,6 @@ export type TextEmitPayload = {
|
|
|
6
7
|
isExtend?: boolean;
|
|
7
8
|
args?: Record<string, unknown>;
|
|
8
9
|
};
|
|
10
|
+
export type TextInteractPayload = {
|
|
11
|
+
state?: TextInteractState;
|
|
12
|
+
};
|
package/package.json
CHANGED
package/src/const.ts
CHANGED
package/src/index.ts
CHANGED
|
@@ -13,7 +13,7 @@ import type {
|
|
|
13
13
|
import { PARAMS } from "./params.js";
|
|
14
14
|
import { SETTINGS_KEYS } from "./settings.js";
|
|
15
15
|
|
|
16
|
-
export type { TextEmitPayload } from "./payloads.js";
|
|
16
|
+
export type { TextEmitPayload, TextInteractPayload } from "./payloads.js";
|
|
17
17
|
|
|
18
18
|
export type {
|
|
19
19
|
ModuleGlobalStateText,
|
|
@@ -29,7 +29,7 @@ export const PLUGIN_NAME = "TEXT" as const;
|
|
|
29
29
|
export type PluginName = typeof PLUGIN_NAME;
|
|
30
30
|
|
|
31
31
|
export { CONSTANTS };
|
|
32
|
-
export type { Constants } from "./const.js";
|
|
32
|
+
export type { Constants, TextInteractState } from "./const.js";
|
|
33
33
|
export { SUBSCRIBE_EVENTS };
|
|
34
34
|
export type { SubscribeEvents } from "./events.js";
|
|
35
35
|
export { PARAMS };
|
package/src/payloads.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { TextInteractState } from "./const.js";
|
|
1
2
|
import type { TextItem } from "./module-global-state.js";
|
|
2
3
|
|
|
3
4
|
export type TextEmitPayload = {
|
|
@@ -7,3 +8,7 @@ export type TextEmitPayload = {
|
|
|
7
8
|
isExtend?: boolean;
|
|
8
9
|
args?: Record<string, unknown>;
|
|
9
10
|
};
|
|
11
|
+
|
|
12
|
+
export type TextInteractPayload = {
|
|
13
|
+
state?: TextInteractState;
|
|
14
|
+
};
|