@vnejs/plugins.save.contract 0.0.2 → 0.0.4

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/params.d.ts CHANGED
@@ -1,5 +1,12 @@
1
- export declare const SCREENSHOT_QUALITY: 0.5;
2
- export declare const PARAMS: {
3
- readonly SCREENSHOT_QUALITY: 0.5;
1
+ import type { Widen } from "@vnejs/shared";
2
+ export declare const SCREENSHOT_QUALITY: number;
3
+ export declare const SCREENSHOT_WIDTH: number;
4
+ export declare const SCREENSHOT_HEIGHT: number;
5
+ declare const PARAMS_DEFAULT: {
6
+ SCREENSHOT_QUALITY: number;
7
+ SCREENSHOT_WIDTH: number;
8
+ SCREENSHOT_HEIGHT: number;
4
9
  };
5
- export type Params = typeof PARAMS;
10
+ export type Params = Widen<typeof PARAMS_DEFAULT>;
11
+ export declare const PARAMS: Params;
12
+ export {};
package/dist/params.js CHANGED
@@ -1,4 +1,9 @@
1
1
  export const SCREENSHOT_QUALITY = 0.5;
2
- export const PARAMS = {
2
+ export const SCREENSHOT_WIDTH = 1280;
3
+ export const SCREENSHOT_HEIGHT = 720;
4
+ const PARAMS_DEFAULT = {
3
5
  SCREENSHOT_QUALITY,
6
+ SCREENSHOT_WIDTH,
7
+ SCREENSHOT_HEIGHT,
4
8
  };
9
+ export const PARAMS = PARAMS_DEFAULT;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vnejs/plugins.save.contract",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "Contracts for @vnejs/plugins.save",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/params.ts CHANGED
@@ -1,7 +1,14 @@
1
- export const SCREENSHOT_QUALITY = 0.5 as const;
1
+ import type { Widen } from "@vnejs/shared";
2
2
 
3
- export const PARAMS = {
3
+ export const SCREENSHOT_QUALITY = 0.5 as number;
4
+ export const SCREENSHOT_WIDTH = 1280 as number;
5
+ export const SCREENSHOT_HEIGHT = 720 as number;
6
+
7
+ const PARAMS_DEFAULT = {
4
8
  SCREENSHOT_QUALITY,
5
- } as const;
9
+ SCREENSHOT_WIDTH,
10
+ SCREENSHOT_HEIGHT,
11
+ };
6
12
 
7
- export type Params = typeof PARAMS;
13
+ export type Params = Widen<typeof PARAMS_DEFAULT>;
14
+ export const PARAMS: Params = PARAMS_DEFAULT;