@vnejs/contracts.settings.filter 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,2 @@
1
+ export declare const CONSTANTS: {};
2
+ export type Constants = typeof CONSTANTS;
package/dist/const.js ADDED
@@ -0,0 +1 @@
1
+ export const CONSTANTS = {};
@@ -0,0 +1,26 @@
1
+ import "@vnejs/contracts.core.settings";
2
+ import "@vnejs/shared";
3
+ import { CONSTANTS } from "./const.js";
4
+ import { PARAMS, PRESETS } from "./params.js";
5
+ import { SETTINGS_KEYS } from "./settings.js";
6
+ export declare const PLUGIN_NAME: "FILTER";
7
+ export type PluginName = typeof PLUGIN_NAME;
8
+ export { CONSTANTS };
9
+ export type { Constants } from "./const.js";
10
+ export { PARAMS, PRESETS };
11
+ export type { Params } from "./params.js";
12
+ export { SETTINGS_KEYS };
13
+ export type { SettingsKeys } from "./settings.js";
14
+ type FilterValueSettingKey = (typeof SETTINGS_KEYS)["VALUE"];
15
+ declare module "@vnejs/contracts.core.settings" {
16
+ interface ModuleSharedSettings extends Record<FilterValueSettingKey, string> {
17
+ }
18
+ }
19
+ declare module "@vnejs/shared" {
20
+ interface VnePluginConstantsMap extends Record<typeof PLUGIN_NAME, typeof CONSTANTS> {
21
+ }
22
+ interface VnePluginParamsMap extends Record<typeof PLUGIN_NAME, typeof PARAMS> {
23
+ }
24
+ interface VnePluginSettingsMap extends Record<typeof PLUGIN_NAME, typeof SETTINGS_KEYS> {
25
+ }
26
+ }
package/dist/index.js ADDED
@@ -0,0 +1,9 @@
1
+ import "@vnejs/contracts.core.settings";
2
+ import "@vnejs/shared";
3
+ import { CONSTANTS } from "./const.js";
4
+ import { PARAMS, PRESETS } from "./params.js";
5
+ import { SETTINGS_KEYS } from "./settings.js";
6
+ export const PLUGIN_NAME = "FILTER";
7
+ export { CONSTANTS };
8
+ export { PARAMS, PRESETS };
9
+ export { SETTINGS_KEYS };
@@ -0,0 +1,19 @@
1
+ import type { Widen } from "@vnejs/shared";
2
+ export declare const PRESETS: {
3
+ readonly "": "";
4
+ readonly contrast_1: "contrast(1.05) brightness(1.01) saturate(0.975)";
5
+ readonly contrast_2: "contrast(1.1) brightness(1.02) saturate(0.95)";
6
+ readonly grayscale: "grayscale(1)";
7
+ };
8
+ declare const PARAMS_DEFAULT: {
9
+ readonly DEFAULT: "";
10
+ readonly PRESETS: {
11
+ readonly "": "";
12
+ readonly contrast_1: "contrast(1.05) brightness(1.01) saturate(0.975)";
13
+ readonly contrast_2: "contrast(1.1) brightness(1.02) saturate(0.95)";
14
+ readonly grayscale: "grayscale(1)";
15
+ };
16
+ };
17
+ export type Params = Widen<typeof PARAMS_DEFAULT>;
18
+ export declare const PARAMS: Params;
19
+ export {};
package/dist/params.js ADDED
@@ -0,0 +1,11 @@
1
+ export const PRESETS = {
2
+ "": "",
3
+ "contrast_1": "contrast(1.05) brightness(1.01) saturate(0.975)",
4
+ "contrast_2": "contrast(1.1) brightness(1.02) saturate(0.95)",
5
+ "grayscale": "grayscale(1)",
6
+ };
7
+ const PARAMS_DEFAULT = {
8
+ DEFAULT: "",
9
+ PRESETS,
10
+ };
11
+ export const PARAMS = PARAMS_DEFAULT;
@@ -0,0 +1,4 @@
1
+ export declare const SETTINGS_KEYS: {
2
+ readonly VALUE: "vne:filter:value";
3
+ };
4
+ export type SettingsKeys = typeof SETTINGS_KEYS;
@@ -0,0 +1,3 @@
1
+ export const SETTINGS_KEYS = {
2
+ VALUE: "vne:filter:value",
3
+ };
package/package.json ADDED
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "@vnejs/contracts.settings.filter",
3
+ "version": "0.1.1",
4
+ "description": "Contracts for @vnejs/plugins.settings.filter",
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/contracts.core.settings": "~0.1.0",
30
+ "@vnejs/shared": "~0.1.0"
31
+ },
32
+ "devDependencies": {
33
+ "@vnejs/configs.ts-common": "~0.1.0"
34
+ }
35
+ }
package/src/const.ts ADDED
@@ -0,0 +1,3 @@
1
+ export const CONSTANTS = {} as const;
2
+
3
+ export type Constants = typeof CONSTANTS;
package/src/index.ts ADDED
@@ -0,0 +1,30 @@
1
+ import "@vnejs/contracts.core.settings";
2
+ import "@vnejs/shared";
3
+
4
+ import { CONSTANTS } from "./const.js";
5
+ import { PARAMS, PRESETS } from "./params.js";
6
+ import { SETTINGS_KEYS } from "./settings.js";
7
+
8
+ export const PLUGIN_NAME = "FILTER" as const;
9
+ export type PluginName = typeof PLUGIN_NAME;
10
+
11
+ export { CONSTANTS };
12
+ export type { Constants } from "./const.js";
13
+ export { PARAMS, PRESETS };
14
+ export type { Params } from "./params.js";
15
+ export { SETTINGS_KEYS };
16
+ export type { SettingsKeys } from "./settings.js";
17
+
18
+ type FilterValueSettingKey = (typeof SETTINGS_KEYS)["VALUE"];
19
+
20
+ declare module "@vnejs/contracts.core.settings" {
21
+ interface ModuleSharedSettings extends Record<FilterValueSettingKey, string> {}
22
+ }
23
+
24
+ declare module "@vnejs/shared" {
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
+ }
package/src/params.ts ADDED
@@ -0,0 +1,16 @@
1
+ import type { Widen } from "@vnejs/shared";
2
+
3
+ export const PRESETS = {
4
+ "": "",
5
+ "contrast_1": "contrast(1.05) brightness(1.01) saturate(0.975)",
6
+ "contrast_2": "contrast(1.1) brightness(1.02) saturate(0.95)",
7
+ "grayscale": "grayscale(1)",
8
+ } as const;
9
+
10
+ const PARAMS_DEFAULT = {
11
+ DEFAULT: "",
12
+ PRESETS,
13
+ } as const;
14
+
15
+ export type Params = Widen<typeof PARAMS_DEFAULT>;
16
+ export const PARAMS: Params = PARAMS_DEFAULT;
@@ -0,0 +1,5 @@
1
+ export const SETTINGS_KEYS = {
2
+ VALUE: "vne:filter:value",
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
+ }