@vnejs/contracts.canvas.props.animation 0.1.1
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 +11 -0
- package/dist/const.js +2 -0
- package/dist/events.d.ts +5 -0
- package/dist/events.js +4 -0
- package/dist/index.d.ts +31 -0
- package/dist/index.js +9 -0
- package/dist/params.d.ts +9 -0
- package/dist/params.js +6 -0
- package/dist/settings.d.ts +4 -0
- package/dist/settings.js +3 -0
- package/package.json +34 -0
- package/src/const.ts +5 -0
- package/src/events.ts +6 -0
- package/src/index.ts +35 -0
- package/src/params.ts +11 -0
- package/src/settings.ts +5 -0
- package/tsconfig.json +9 -0
package/dist/const.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const EXEC_ACTIONS: {
|
|
2
|
+
readonly SET: "set";
|
|
3
|
+
readonly UNSET: "unset";
|
|
4
|
+
};
|
|
5
|
+
export declare const CONSTANTS: {
|
|
6
|
+
readonly EXEC_ACTIONS: {
|
|
7
|
+
readonly SET: "set";
|
|
8
|
+
readonly UNSET: "unset";
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export type Constants = typeof CONSTANTS;
|
package/dist/const.js
ADDED
package/dist/events.d.ts
ADDED
package/dist/events.js
ADDED
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import "@vnejs/contracts.core.settings";
|
|
2
|
+
import "@vnejs/shared";
|
|
3
|
+
import { CONSTANTS } from "./const.js";
|
|
4
|
+
import { SUBSCRIBE_EVENTS } from "./events.js";
|
|
5
|
+
import { PARAMS } from "./params.js";
|
|
6
|
+
import { SETTINGS_KEYS } from "./settings.js";
|
|
7
|
+
export declare const PLUGIN_NAME: "LAYER_ANIMATION";
|
|
8
|
+
export type PluginName = typeof PLUGIN_NAME;
|
|
9
|
+
export { CONSTANTS, EXEC_ACTIONS } from "./const.js";
|
|
10
|
+
export type { Constants } from "./const.js";
|
|
11
|
+
export { SUBSCRIBE_EVENTS };
|
|
12
|
+
export type { SubscribeEvents } from "./events.js";
|
|
13
|
+
export { PARAMS, ANIMATIONS } from "./params.js";
|
|
14
|
+
export type { Params } from "./params.js";
|
|
15
|
+
export { SETTINGS_KEYS };
|
|
16
|
+
export type { SettingsKeys } from "./settings.js";
|
|
17
|
+
type DangerousEnabledSettingKey = (typeof SETTINGS_KEYS)["DANGEROUS_ENABLED"];
|
|
18
|
+
declare module "@vnejs/contracts.core.settings" {
|
|
19
|
+
interface ModuleSharedSettings extends Record<DangerousEnabledSettingKey, boolean> {
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
declare module "@vnejs/shared" {
|
|
23
|
+
interface VnePluginEventsMap extends Record<typeof PLUGIN_NAME, typeof SUBSCRIBE_EVENTS> {
|
|
24
|
+
}
|
|
25
|
+
interface VnePluginConstantsMap extends Record<typeof PLUGIN_NAME, typeof CONSTANTS> {
|
|
26
|
+
}
|
|
27
|
+
interface VnePluginParamsMap extends Record<typeof PLUGIN_NAME, typeof PARAMS> {
|
|
28
|
+
}
|
|
29
|
+
interface VnePluginSettingsMap extends Record<typeof PLUGIN_NAME, typeof SETTINGS_KEYS> {
|
|
30
|
+
}
|
|
31
|
+
}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "@vnejs/contracts.core.settings";
|
|
2
|
+
import "@vnejs/shared";
|
|
3
|
+
import { SUBSCRIBE_EVENTS } from "./events.js";
|
|
4
|
+
import { SETTINGS_KEYS } from "./settings.js";
|
|
5
|
+
export const PLUGIN_NAME = "LAYER_ANIMATION";
|
|
6
|
+
export { CONSTANTS, EXEC_ACTIONS } from "./const.js";
|
|
7
|
+
export { SUBSCRIBE_EVENTS };
|
|
8
|
+
export { PARAMS, ANIMATIONS } from "./params.js";
|
|
9
|
+
export { SETTINGS_KEYS };
|
package/dist/params.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Widen } from "@vnejs/shared";
|
|
2
|
+
export declare const ANIMATIONS: {};
|
|
3
|
+
declare const PARAMS_DEFAULT: {
|
|
4
|
+
ANIMATIONS: {};
|
|
5
|
+
DEFAULT_DANGEROUS_ENABLED: boolean;
|
|
6
|
+
};
|
|
7
|
+
export type Params = Widen<typeof PARAMS_DEFAULT>;
|
|
8
|
+
export declare const PARAMS: Params;
|
|
9
|
+
export {};
|
package/dist/params.js
ADDED
package/dist/settings.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@vnejs/contracts.canvas.props.animation",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Contracts for @vnejs/plugins.canvas.props.animation",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"import": "./dist/index.js",
|
|
11
|
+
"require": "./dist/index.js",
|
|
12
|
+
"default": "./dist/index.js"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist",
|
|
17
|
+
"src",
|
|
18
|
+
"tsconfig.json"
|
|
19
|
+
],
|
|
20
|
+
"scripts": {
|
|
21
|
+
"build": "npx @vnejs/monorepo package",
|
|
22
|
+
"publish:major": "npx @vnejs/monorepo publish major --access public",
|
|
23
|
+
"publish:minor": "npx @vnejs/monorepo publish minor --access public",
|
|
24
|
+
"publish:patch": "npx @vnejs/monorepo publish patch --access public"
|
|
25
|
+
},
|
|
26
|
+
"author": "",
|
|
27
|
+
"license": "ISC",
|
|
28
|
+
"peerDependencies": {
|
|
29
|
+
"@vnejs/shared": "~0.1.0"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@vnejs/configs.ts-common": "~0.1.0"
|
|
33
|
+
}
|
|
34
|
+
}
|
package/src/const.ts
ADDED
package/src/events.ts
ADDED
package/src/index.ts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import "@vnejs/contracts.core.settings";
|
|
2
|
+
import "@vnejs/shared";
|
|
3
|
+
|
|
4
|
+
import { CONSTANTS } from "./const.js";
|
|
5
|
+
import { SUBSCRIBE_EVENTS } from "./events.js";
|
|
6
|
+
import { PARAMS } from "./params.js";
|
|
7
|
+
import { SETTINGS_KEYS } from "./settings.js";
|
|
8
|
+
|
|
9
|
+
export const PLUGIN_NAME = "LAYER_ANIMATION" as const;
|
|
10
|
+
export type PluginName = typeof PLUGIN_NAME;
|
|
11
|
+
|
|
12
|
+
export { CONSTANTS, EXEC_ACTIONS } from "./const.js";
|
|
13
|
+
export type { Constants } from "./const.js";
|
|
14
|
+
export { SUBSCRIBE_EVENTS };
|
|
15
|
+
export type { SubscribeEvents } from "./events.js";
|
|
16
|
+
export { PARAMS, ANIMATIONS } from "./params.js";
|
|
17
|
+
export type { Params } from "./params.js";
|
|
18
|
+
export { SETTINGS_KEYS };
|
|
19
|
+
export type { SettingsKeys } from "./settings.js";
|
|
20
|
+
|
|
21
|
+
type DangerousEnabledSettingKey = (typeof SETTINGS_KEYS)["DANGEROUS_ENABLED"];
|
|
22
|
+
|
|
23
|
+
declare module "@vnejs/contracts.core.settings" {
|
|
24
|
+
interface ModuleSharedSettings extends Record<DangerousEnabledSettingKey, boolean> {}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
declare module "@vnejs/shared" {
|
|
28
|
+
interface VnePluginEventsMap extends Record<typeof PLUGIN_NAME, typeof SUBSCRIBE_EVENTS> {}
|
|
29
|
+
|
|
30
|
+
interface VnePluginConstantsMap extends Record<typeof PLUGIN_NAME, typeof CONSTANTS> {}
|
|
31
|
+
|
|
32
|
+
interface VnePluginParamsMap extends Record<typeof PLUGIN_NAME, typeof PARAMS> {}
|
|
33
|
+
|
|
34
|
+
interface VnePluginSettingsMap extends Record<typeof PLUGIN_NAME, typeof SETTINGS_KEYS> {}
|
|
35
|
+
}
|
package/src/params.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Widen } from "@vnejs/shared";
|
|
2
|
+
|
|
3
|
+
export const ANIMATIONS = {} as const;
|
|
4
|
+
|
|
5
|
+
const PARAMS_DEFAULT = {
|
|
6
|
+
ANIMATIONS,
|
|
7
|
+
DEFAULT_DANGEROUS_ENABLED: true,
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export type Params = Widen<typeof PARAMS_DEFAULT>;
|
|
11
|
+
export const PARAMS: Params = PARAMS_DEFAULT;
|
package/src/settings.ts
ADDED