@vnejs/contracts.settings.potato 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.
@@ -0,0 +1,5 @@
1
+ export declare const SOURCE: "potato";
2
+ export declare const CONSTANTS: {
3
+ readonly SOURCE: "potato";
4
+ };
5
+ export type Constants = typeof CONSTANTS;
package/dist/const.js ADDED
@@ -0,0 +1,4 @@
1
+ export const SOURCE = "potato";
2
+ export const CONSTANTS = {
3
+ SOURCE,
4
+ };
@@ -0,0 +1,4 @@
1
+ export declare const SUBSCRIBE_EVENTS: {
2
+ readonly EMIT: "vne:potato:emit";
3
+ };
4
+ export type SubscribeEvents = typeof SUBSCRIBE_EVENTS;
package/dist/events.js ADDED
@@ -0,0 +1,3 @@
1
+ export const SUBSCRIBE_EVENTS = {
2
+ EMIT: "vne:potato:emit",
3
+ };
@@ -0,0 +1,30 @@
1
+ import "@vnejs/module";
2
+ import "@vnejs/contracts.core.settings";
3
+ import "@vnejs/shared";
4
+ import { CONSTANTS } from "./const.js";
5
+ import { SUBSCRIBE_EVENTS } from "./events.js";
6
+ import { SETTINGS_KEYS } from "./settings.js";
7
+ export declare const PLUGIN_NAME: "POTATO";
8
+ export type PluginName = typeof PLUGIN_NAME;
9
+ export { CONSTANTS };
10
+ export type { Constants } from "./const.js";
11
+ export { SUBSCRIBE_EVENTS };
12
+ export type { SubscribeEvents } from "./events.js";
13
+ export { SETTINGS_KEYS };
14
+ export type { SettingsKeys } from "./settings.js";
15
+ export type PotatoEmitPayload = {
16
+ value?: boolean;
17
+ };
18
+ type PotatoEnabledSettingKey = (typeof SETTINGS_KEYS)["ENABLED"];
19
+ declare module "@vnejs/contracts.core.settings" {
20
+ interface ModuleSharedSettings extends Record<PotatoEnabledSettingKey, boolean> {
21
+ }
22
+ }
23
+ declare module "@vnejs/shared" {
24
+ interface VnePluginEventsMap extends Record<typeof PLUGIN_NAME, typeof SUBSCRIBE_EVENTS> {
25
+ }
26
+ interface VnePluginConstantsMap extends Record<typeof PLUGIN_NAME, typeof CONSTANTS> {
27
+ }
28
+ interface VnePluginSettingsMap extends Record<typeof PLUGIN_NAME, typeof SETTINGS_KEYS> {
29
+ }
30
+ }
package/dist/index.js ADDED
@@ -0,0 +1,10 @@
1
+ import "@vnejs/module";
2
+ import "@vnejs/contracts.core.settings";
3
+ import "@vnejs/shared";
4
+ import { CONSTANTS } from "./const.js";
5
+ import { SUBSCRIBE_EVENTS } from "./events.js";
6
+ import { SETTINGS_KEYS } from "./settings.js";
7
+ export const PLUGIN_NAME = "POTATO";
8
+ export { CONSTANTS };
9
+ export { SUBSCRIBE_EVENTS };
10
+ export { SETTINGS_KEYS };
@@ -0,0 +1,4 @@
1
+ export declare const SETTINGS_KEYS: {
2
+ readonly ENABLED: "vne:potato:enabled";
3
+ };
4
+ export type SettingsKeys = typeof SETTINGS_KEYS;
@@ -0,0 +1,3 @@
1
+ export const SETTINGS_KEYS = {
2
+ ENABLED: "vne:potato:enabled",
3
+ };
package/package.json ADDED
@@ -0,0 +1,36 @@
1
+ {
2
+ "name": "@vnejs/contracts.settings.potato",
3
+ "version": "0.1.1",
4
+ "description": "Contracts for @vnejs/plugins.settings.potato",
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/module": "~0.1.0",
30
+ "@vnejs/contracts.core.settings": "~0.1.0",
31
+ "@vnejs/shared": "~0.1.0"
32
+ },
33
+ "devDependencies": {
34
+ "@vnejs/configs.ts-common": "~0.1.0"
35
+ }
36
+ }
package/src/const.ts ADDED
@@ -0,0 +1,7 @@
1
+ export const SOURCE = "potato" as const;
2
+
3
+ export const CONSTANTS = {
4
+ SOURCE,
5
+ } as const;
6
+
7
+ export type Constants = typeof CONSTANTS;
package/src/events.ts ADDED
@@ -0,0 +1,5 @@
1
+ export const SUBSCRIBE_EVENTS = {
2
+ EMIT: "vne:potato:emit",
3
+ } as const;
4
+
5
+ export type SubscribeEvents = typeof SUBSCRIBE_EVENTS;
package/src/index.ts ADDED
@@ -0,0 +1,35 @@
1
+ import "@vnejs/module";
2
+ import "@vnejs/contracts.core.settings";
3
+ import "@vnejs/shared";
4
+
5
+ import { CONSTANTS } from "./const.js";
6
+ import { SUBSCRIBE_EVENTS } from "./events.js";
7
+ import { SETTINGS_KEYS } from "./settings.js";
8
+
9
+ export const PLUGIN_NAME = "POTATO" as const;
10
+ export type PluginName = typeof PLUGIN_NAME;
11
+
12
+ export { CONSTANTS };
13
+ export type { Constants } from "./const.js";
14
+ export { SUBSCRIBE_EVENTS };
15
+ export type { SubscribeEvents } from "./events.js";
16
+ export { SETTINGS_KEYS };
17
+ export type { SettingsKeys } from "./settings.js";
18
+
19
+ export type PotatoEmitPayload = {
20
+ value?: boolean;
21
+ };
22
+
23
+ type PotatoEnabledSettingKey = (typeof SETTINGS_KEYS)["ENABLED"];
24
+
25
+ declare module "@vnejs/contracts.core.settings" {
26
+ interface ModuleSharedSettings extends Record<PotatoEnabledSettingKey, boolean> {}
27
+ }
28
+
29
+ declare module "@vnejs/shared" {
30
+ interface VnePluginEventsMap extends Record<typeof PLUGIN_NAME, typeof SUBSCRIBE_EVENTS> {}
31
+
32
+ interface VnePluginConstantsMap extends Record<typeof PLUGIN_NAME, typeof CONSTANTS> {}
33
+
34
+ interface VnePluginSettingsMap extends Record<typeof PLUGIN_NAME, typeof SETTINGS_KEYS> {}
35
+ }
@@ -0,0 +1,5 @@
1
+ export const SETTINGS_KEYS = {
2
+ ENABLED: "vne:potato:enabled",
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
+ }