@vnejs/contracts.controllers.screens.settings.defaults 0.0.0-stage → 0.2.8

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.
@@ -0,0 +1,7 @@
1
+ /** Commands owned by plugins.controllers.screens.settings.defaults */
2
+ export declare const SCENARIO_COMMANDS: {
3
+ readonly modules: {
4
+ readonly "settings.defaults": {};
5
+ };
6
+ };
7
+ export type ScenarioCommands = typeof SCENARIO_COMMANDS;
@@ -0,0 +1,6 @@
1
+ /** Commands owned by plugins.controllers.screens.settings.defaults */
2
+ export const SCENARIO_COMMANDS = {
3
+ modules: {
4
+ "settings.defaults": {},
5
+ },
6
+ };
@@ -0,0 +1,10 @@
1
+ export declare const SUBSCRIBE_EVENTS: {
2
+ readonly UPDATE: "vne:settings_default_view:update";
3
+ readonly UPDATE_FAST: "vne:settings_default_view:update_fast";
4
+ readonly UPDATE_FORCE: "vne:settings_default_view:update_force";
5
+ readonly SHOW: "vne:settings_default_view:show";
6
+ readonly HIDE: "vne:settings_default_view:hide";
7
+ readonly CONFIRM: "vne:settings_default_view:confirm";
8
+ readonly UPDATE_STATE: "vne:settings_default_view:update_state";
9
+ };
10
+ export type SubscribeEvents = typeof SUBSCRIBE_EVENTS;
package/dist/events.js ADDED
@@ -0,0 +1,9 @@
1
+ export const SUBSCRIBE_EVENTS = {
2
+ UPDATE: "vne:settings_default_view:update",
3
+ UPDATE_FAST: "vne:settings_default_view:update_fast",
4
+ UPDATE_FORCE: "vne:settings_default_view:update_force",
5
+ SHOW: "vne:settings_default_view:show",
6
+ HIDE: "vne:settings_default_view:hide",
7
+ CONFIRM: "vne:settings_default_view:confirm",
8
+ UPDATE_STATE: "vne:settings_default_view:update_state",
9
+ };
@@ -0,0 +1,43 @@
1
+ import "@vnejs/registry";
2
+ import { SCENARIO_COMMANDS } from "./commands.js";
3
+ import { SUBSCRIBE_EVENTS } from "./events.js";
4
+ import { PARAMS } from "./params.js";
5
+ import type { SettingsDefaultsForcePayload, SettingsDefaultsStateUpdatePayload, SettingsDefaultsUpdatePayload } from "./payloads.js";
6
+ import { SETTINGS_KEYS } from "./settings.js";
7
+ export declare const PLUGIN_NAME: "SETTINGS_DEFAULT_VIEW";
8
+ export type PluginName = typeof PLUGIN_NAME;
9
+ export { SCENARIO_COMMANDS };
10
+ export type { ScenarioCommands } from "./commands.js";
11
+ export { SUBSCRIBE_EVENTS };
12
+ export type { SubscribeEvents } from "./events.js";
13
+ export { PARAMS };
14
+ export type { Params, ViewProps } from "./params.js";
15
+ export { SETTINGS_KEYS };
16
+ export type { SettingsKeys } from "./settings.js";
17
+ export type { SettingsDefaultsForcePayload, SettingsDefaultsUpdatePayload, SettingsDefaultsStateUpdatePayload } from "./payloads.js";
18
+ declare module "@vnejs/registry" {
19
+ interface VnePluginEventsMap extends Record<typeof PLUGIN_NAME, typeof SUBSCRIBE_EVENTS> {
20
+ }
21
+ interface VnePluginParamsMap extends Record<typeof PLUGIN_NAME, typeof PARAMS> {
22
+ }
23
+ interface VnePluginSettingsMap extends Record<typeof PLUGIN_NAME, typeof SETTINGS_KEYS> {
24
+ }
25
+ interface VneEventPayloadMap {
26
+ [SUBSCRIBE_EVENTS.UPDATE]: SettingsDefaultsUpdatePayload;
27
+ [SUBSCRIBE_EVENTS.UPDATE_FAST]: SettingsDefaultsUpdatePayload;
28
+ [SUBSCRIBE_EVENTS.UPDATE_FORCE]: SettingsDefaultsUpdatePayload;
29
+ [SUBSCRIBE_EVENTS.SHOW]: SettingsDefaultsForcePayload;
30
+ [SUBSCRIBE_EVENTS.HIDE]: SettingsDefaultsForcePayload;
31
+ [SUBSCRIBE_EVENTS.CONFIRM]: void;
32
+ [SUBSCRIBE_EVENTS.UPDATE_STATE]: SettingsDefaultsStateUpdatePayload;
33
+ }
34
+ interface VneEventResultMap {
35
+ [SUBSCRIBE_EVENTS.UPDATE]: void;
36
+ [SUBSCRIBE_EVENTS.UPDATE_FAST]: void;
37
+ [SUBSCRIBE_EVENTS.UPDATE_FORCE]: void;
38
+ [SUBSCRIBE_EVENTS.SHOW]: void;
39
+ [SUBSCRIBE_EVENTS.HIDE]: void;
40
+ [SUBSCRIBE_EVENTS.CONFIRM]: void;
41
+ [SUBSCRIBE_EVENTS.UPDATE_STATE]: void;
42
+ }
43
+ }
package/dist/index.js ADDED
@@ -0,0 +1,10 @@
1
+ import "@vnejs/registry";
2
+ import { SCENARIO_COMMANDS } from "./commands.js";
3
+ import { SUBSCRIBE_EVENTS } from "./events.js";
4
+ import { PARAMS } from "./params.js";
5
+ import { SETTINGS_KEYS } from "./settings.js";
6
+ export const PLUGIN_NAME = "SETTINGS_DEFAULT_VIEW";
7
+ export { SCENARIO_COMMANDS };
8
+ export { SUBSCRIBE_EVENTS };
9
+ export { PARAMS };
10
+ export { SETTINGS_KEYS };
@@ -0,0 +1,66 @@
1
+ import type { WidenViewProps } from "@vnejs/uis.react.position-box";
2
+ export declare const BACKGROUND: string;
3
+ export declare const TRANSITION: number;
4
+ export declare const ZINDEX: number;
5
+ export declare const LOC_LABEL: string;
6
+ declare const VIEW_PROPS_DEFAULT: {
7
+ readonly screen: {
8
+ readonly withBackgroundDark: true;
9
+ readonly withBackgroundBlur: false;
10
+ readonly transition: number;
11
+ readonly zIndex: number;
12
+ };
13
+ readonly titlePosition: {
14
+ readonly top: 180;
15
+ readonly isCenteredHorizontal: true;
16
+ };
17
+ readonly acceptPosition: {
18
+ readonly bottom: 180;
19
+ readonly isCenteredHorizontal: true;
20
+ };
21
+ readonly title: {
22
+ align: "center";
23
+ width: number;
24
+ };
25
+ readonly accept: {
26
+ readonly align: "center";
27
+ readonly width: number;
28
+ readonly isHoverable: true;
29
+ };
30
+ };
31
+ export type ViewProps = WidenViewProps<typeof VIEW_PROPS_DEFAULT>;
32
+ export declare const VIEW_PROPS: ViewProps;
33
+ declare const PARAMS_DEFAULT: {
34
+ BACKGROUND: string;
35
+ TRANSITION: number;
36
+ ZINDEX: number;
37
+ LOC_LABEL: string;
38
+ VIEW_PROPS: {
39
+ screen: {
40
+ withBackgroundDark: boolean;
41
+ withBackgroundBlur: boolean;
42
+ transition: number;
43
+ zIndex: number;
44
+ };
45
+ titlePosition: {
46
+ top: number;
47
+ isCenteredHorizontal: boolean;
48
+ };
49
+ acceptPosition: {
50
+ bottom: number;
51
+ isCenteredHorizontal: boolean;
52
+ };
53
+ title: {
54
+ align: "center";
55
+ width: number;
56
+ };
57
+ accept: {
58
+ align: "center";
59
+ width: number;
60
+ isHoverable: boolean;
61
+ };
62
+ };
63
+ };
64
+ export type Params = WidenViewProps<typeof PARAMS_DEFAULT>;
65
+ export declare const PARAMS: Params;
66
+ export {};
package/dist/params.js ADDED
@@ -0,0 +1,15 @@
1
+ export const BACKGROUND = "save";
2
+ export const TRANSITION = 500;
3
+ export const ZINDEX = 4000;
4
+ export const LOC_LABEL = "settings";
5
+ const TEXT_PROPS = { align: "center", width: 3120 };
6
+ const VIEW_PROPS_DEFAULT = {
7
+ screen: { withBackgroundDark: true, withBackgroundBlur: false, transition: TRANSITION, zIndex: ZINDEX },
8
+ titlePosition: { top: 180, isCenteredHorizontal: true },
9
+ acceptPosition: { bottom: 180, isCenteredHorizontal: true },
10
+ title: TEXT_PROPS,
11
+ accept: { ...TEXT_PROPS, isHoverable: true },
12
+ };
13
+ export const VIEW_PROPS = VIEW_PROPS_DEFAULT;
14
+ const PARAMS_DEFAULT = { BACKGROUND, TRANSITION, ZINDEX, LOC_LABEL, VIEW_PROPS };
15
+ export const PARAMS = PARAMS_DEFAULT;
@@ -0,0 +1,6 @@
1
+ export type SettingsDefaultsForcePayload = {
2
+ isForce?: boolean;
3
+ onClose?: () => void;
4
+ };
5
+ export type SettingsDefaultsUpdatePayload = Record<string, unknown>;
6
+ export type SettingsDefaultsStateUpdatePayload = Record<string, unknown>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ export declare const SETTINGS_KEYS: {
2
+ readonly INITED: "vne:settings_default_view:inited";
3
+ };
4
+ export type SettingsKeys = typeof SETTINGS_KEYS;
@@ -0,0 +1,3 @@
1
+ export const SETTINGS_KEYS = {
2
+ INITED: "vne:settings_default_view:inited",
3
+ };
package/package.json CHANGED
@@ -1,6 +1,37 @@
1
1
  {
2
2
  "name": "@vnejs/contracts.controllers.screens.settings.defaults",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.2.8",
4
+ "description": "Contracts for @vnejs/plugins.controllers.screens.settings.defaults",
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/registry": "~0.2.0",
30
+ "@vnejs/uis.react.position-box": "~0.2.0",
31
+ "@vnejs/contracts.core.scenario": "~0.2.0"
32
+ },
33
+ "devDependencies": {
34
+ "@vnejs/configs.ts-common": "~0.2.0",
35
+ "@vnejs/contracts.core.scenario": "~0.2.0"
36
+ }
37
+ }
@@ -0,0 +1,10 @@
1
+ import type { ScenarioCommandsManifest } from "@vnejs/contracts.core.scenario";
2
+
3
+ /** Commands owned by plugins.controllers.screens.settings.defaults */
4
+ export const SCENARIO_COMMANDS = {
5
+ modules: {
6
+ "settings.defaults": {},
7
+ },
8
+ } as const satisfies ScenarioCommandsManifest;
9
+
10
+ export type ScenarioCommands = typeof SCENARIO_COMMANDS;
package/src/events.ts ADDED
@@ -0,0 +1,11 @@
1
+ export const SUBSCRIBE_EVENTS = {
2
+ UPDATE: "vne:settings_default_view:update",
3
+ UPDATE_FAST: "vne:settings_default_view:update_fast",
4
+ UPDATE_FORCE: "vne:settings_default_view:update_force",
5
+ SHOW: "vne:settings_default_view:show",
6
+ HIDE: "vne:settings_default_view:hide",
7
+ CONFIRM: "vne:settings_default_view:confirm",
8
+ UPDATE_STATE: "vne:settings_default_view:update_state",
9
+ } as const;
10
+
11
+ export type SubscribeEvents = typeof SUBSCRIBE_EVENTS;
package/src/index.ts ADDED
@@ -0,0 +1,47 @@
1
+ import "@vnejs/registry";
2
+
3
+ import { SCENARIO_COMMANDS } from "./commands.js";
4
+ import { SUBSCRIBE_EVENTS } from "./events.js";
5
+ import { PARAMS } from "./params.js";
6
+ import type { SettingsDefaultsForcePayload, SettingsDefaultsStateUpdatePayload, SettingsDefaultsUpdatePayload } from "./payloads.js";
7
+ import { SETTINGS_KEYS } from "./settings.js";
8
+
9
+ export const PLUGIN_NAME = "SETTINGS_DEFAULT_VIEW" as const;
10
+ export type PluginName = typeof PLUGIN_NAME;
11
+
12
+ export { SCENARIO_COMMANDS };
13
+ export type { ScenarioCommands } from "./commands.js";
14
+ export { SUBSCRIBE_EVENTS };
15
+ export type { SubscribeEvents } from "./events.js";
16
+ export { PARAMS };
17
+ export type { Params, ViewProps } from "./params.js";
18
+ export { SETTINGS_KEYS };
19
+ export type { SettingsKeys } from "./settings.js";
20
+
21
+ export type { SettingsDefaultsForcePayload, SettingsDefaultsUpdatePayload, SettingsDefaultsStateUpdatePayload } from "./payloads.js";
22
+
23
+ declare module "@vnejs/registry" {
24
+ interface VnePluginEventsMap extends Record<typeof PLUGIN_NAME, typeof SUBSCRIBE_EVENTS> {}
25
+ interface VnePluginParamsMap extends Record<typeof PLUGIN_NAME, typeof PARAMS> {}
26
+ interface VnePluginSettingsMap extends Record<typeof PLUGIN_NAME, typeof SETTINGS_KEYS> {}
27
+
28
+ interface VneEventPayloadMap {
29
+ [SUBSCRIBE_EVENTS.UPDATE]: SettingsDefaultsUpdatePayload;
30
+ [SUBSCRIBE_EVENTS.UPDATE_FAST]: SettingsDefaultsUpdatePayload;
31
+ [SUBSCRIBE_EVENTS.UPDATE_FORCE]: SettingsDefaultsUpdatePayload;
32
+ [SUBSCRIBE_EVENTS.SHOW]: SettingsDefaultsForcePayload;
33
+ [SUBSCRIBE_EVENTS.HIDE]: SettingsDefaultsForcePayload;
34
+ [SUBSCRIBE_EVENTS.CONFIRM]: void;
35
+ [SUBSCRIBE_EVENTS.UPDATE_STATE]: SettingsDefaultsStateUpdatePayload;
36
+ }
37
+
38
+ interface VneEventResultMap {
39
+ [SUBSCRIBE_EVENTS.UPDATE]: void;
40
+ [SUBSCRIBE_EVENTS.UPDATE_FAST]: void;
41
+ [SUBSCRIBE_EVENTS.UPDATE_FORCE]: void;
42
+ [SUBSCRIBE_EVENTS.SHOW]: void;
43
+ [SUBSCRIBE_EVENTS.HIDE]: void;
44
+ [SUBSCRIBE_EVENTS.CONFIRM]: void;
45
+ [SUBSCRIBE_EVENTS.UPDATE_STATE]: void;
46
+ }
47
+ }
package/src/params.ts ADDED
@@ -0,0 +1,23 @@
1
+ import type { WidenViewProps } from "@vnejs/uis.react.position-box";
2
+
3
+ export const BACKGROUND: string = "save";
4
+ export const TRANSITION: number = 500;
5
+ export const ZINDEX: number = 4000;
6
+ export const LOC_LABEL: string = "settings";
7
+
8
+ const TEXT_PROPS = { align: "center" as const, width: 3120 };
9
+
10
+ const VIEW_PROPS_DEFAULT = {
11
+ screen: { withBackgroundDark: true, withBackgroundBlur: false, transition: TRANSITION, zIndex: ZINDEX },
12
+ titlePosition: { top: 180, isCenteredHorizontal: true },
13
+ acceptPosition: { bottom: 180, isCenteredHorizontal: true },
14
+ title: TEXT_PROPS,
15
+ accept: { ...TEXT_PROPS, isHoverable: true },
16
+ } as const;
17
+
18
+ export type ViewProps = WidenViewProps<typeof VIEW_PROPS_DEFAULT>;
19
+ export const VIEW_PROPS: ViewProps = VIEW_PROPS_DEFAULT;
20
+
21
+ const PARAMS_DEFAULT = { BACKGROUND, TRANSITION, ZINDEX, LOC_LABEL, VIEW_PROPS };
22
+ export type Params = WidenViewProps<typeof PARAMS_DEFAULT>;
23
+ export const PARAMS: Params = PARAMS_DEFAULT;
@@ -0,0 +1,8 @@
1
+ export type SettingsDefaultsForcePayload = {
2
+ isForce?: boolean;
3
+ onClose?: () => void;
4
+ };
5
+
6
+ export type SettingsDefaultsUpdatePayload = Record<string, unknown>;
7
+
8
+ export type SettingsDefaultsStateUpdatePayload = Record<string, unknown>;
@@ -0,0 +1,5 @@
1
+ export const SETTINGS_KEYS = {
2
+ INITED: "vne:settings_default_view:inited",
3
+ } as const;
4
+
5
+ export type SettingsKeys = typeof SETTINGS_KEYS;
package/tsconfig.json ADDED
@@ -0,0 +1,9 @@
1
+ {
2
+ "extends": "@vnejs/configs.ts-common/tsconfig.json",
3
+ "compilerOptions": {
4
+ "rootDir": "src",
5
+ "outDir": "dist"
6
+ },
7
+ "include": ["src/**/*.ts"],
8
+ "exclude": ["dist", "node_modules"]
9
+ }
package/README.md DELETED
@@ -1,3 +0,0 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.