@knapsack/types 4.70.5--canary.4960.c3d6fb1.0 → 4.70.5--canary.4921.a127e88.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,6 +14,7 @@ export declare enum PropTypeNames {
14
14
  'array' = "array",
15
15
  'arrayOfObjects' = "arrayOfObjects",
16
16
  'arrayOfStrings' = "arrayOfStrings",
17
+ 'arrayOfNumbers' = "arrayOfNumbers",
17
18
  'unknown' = "unknown"
18
19
  }
19
20
  export type PropTypeNamesList = keyof typeof PropTypeNames;
@@ -67,11 +68,16 @@ export type ArrayOfStringsProp = {
67
68
  uniqueItems?: boolean;
68
69
  items: StringProp;
69
70
  } & PropBase<unknown[]>;
71
+ export type ArrayOfNumbersProp = {
72
+ type: 'array';
73
+ uniqueItems?: boolean;
74
+ items: NumberProp;
75
+ } & PropBase<number[]>;
70
76
  export type ArrayOfObjectsProp = {
71
77
  type: 'array';
72
78
  items: ObjectProp;
73
79
  } & PropBase<Array<Record<string, unknown>>>;
74
- export type PropertyTypes = StringProp | BooleanProp | NumberProp | OptionsProp | FunctionProp | CustomTypeScriptProp | ObjectProp | ArrayOfObjectsProp | ArrayOfStringsProp | ArrayProp;
80
+ export type PropertyTypes = StringProp | BooleanProp | NumberProp | OptionsProp | FunctionProp | CustomTypeScriptProp | ObjectProp | ArrayOfObjectsProp | ArrayOfStringsProp | ArrayOfNumbersProp | ArrayProp;
75
81
  export declare const isStringProp: (prop: PropertyTypes) => prop is StringProp;
76
82
  export declare const isNumberProp: (prop: PropertyTypes) => prop is NumberProp;
77
83
  export declare const isBooleanProp: (prop: PropertyTypes) => prop is BooleanProp;
@@ -81,6 +87,7 @@ export declare const isCustomTypeScriptProp: (prop: PropertyTypes) => prop is Cu
81
87
  export declare const isArrayOfObjectsProp: (prop: PropertyTypes) => prop is ArrayOfObjectsProp;
82
88
  export declare const isObjectProp: (prop: PropertyTypes) => prop is ObjectProp;
83
89
  export declare const isArrayOfStringsProp: (prop: PropertyTypes) => prop is ArrayOfStringsProp;
90
+ export declare const isArrayOfNumbersProp: (prop: PropertyTypes) => prop is ArrayOfNumbersProp;
84
91
  export interface PropTypeDataBase {
85
92
  type: any;
86
93
  id: string;
@@ -123,11 +130,15 @@ export interface ArrayOfStringsPropTypeData extends PropTypeDataBase {
123
130
  type: typeof PropTypeNames.arrayOfStrings;
124
131
  data: ArrayOfStringsProp;
125
132
  }
133
+ export interface ArrayOfNumbersPropTypeData extends PropTypeDataBase {
134
+ type: typeof PropTypeNames.arrayOfNumbers;
135
+ data: ArrayOfNumbersProp;
136
+ }
126
137
  export interface ArrayPropTypeData extends PropTypeDataBase {
127
138
  type: typeof PropTypeNames.array;
128
139
  data: ArrayProp;
129
140
  }
130
- export type PropTypeData = StringPropTypeData | BooleanPropTypeData | NumberPropTypeData | OptionsPropTypeData | FunctionPropTypeData | CustomTypeScriptPropTypeData | ObjectPropTypeData | ArrayOfObjectsPropTypeData | ArrayOfStringsPropTypeData;
141
+ export type PropTypeData = StringPropTypeData | BooleanPropTypeData | NumberPropTypeData | OptionsPropTypeData | FunctionPropTypeData | CustomTypeScriptPropTypeData | ObjectPropTypeData | ArrayOfObjectsPropTypeData | ArrayOfStringsPropTypeData | ArrayOfNumbersPropTypeData;
131
142
  export type JsonSchemaObject<PropNames extends string = string> = {
132
143
  $schema?: string;
133
144
  title?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"json-schema.d.ts","sourceRoot":"","sources":["../src/json-schema.ts"],"names":[],"mappings":"AAEA,KAAK,QAAQ,CAAC,IAAI,GAAG,GAAG,IAAI;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,IAAI,CAAC;CAChB,CAAC;AAEF,oBAAY,aAAa;IACvB,QAAQ,WAAW;IACnB,SAAS,YAAY;IACrB,QAAQ,WAAW;IACnB,QAAQ,WAAW;IACnB,SAAS,YAAY;IACrB,UAAU,aAAa;IACvB,kBAAkB,qBAAqB;IACvC,OAAO,UAAU;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AAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;CACtC,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@knapsack/types",
3
3
  "description": "",
4
- "version": "4.70.5--canary.4960.c3d6fb1.0",
4
+ "version": "4.70.5--canary.4921.a127e88.0",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
7
7
  "types": "dist/index.d.ts",
@@ -38,16 +38,16 @@
38
38
  "test": "ava"
39
39
  },
40
40
  "dependencies": {
41
- "@knapsack/utils": "4.70.5--canary.4960.c3d6fb1.0",
41
+ "@knapsack/utils": "4.70.5--canary.4921.a127e88.0",
42
42
  "color-string": "^1.9.1",
43
43
  "immer": "^10.1.1",
44
44
  "superstruct": "^0.16.7"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@apidevtools/json-schema-ref-parser": "^11.7.0",
48
- "@knapsack/eslint-config-starter": "4.70.5--canary.4960.c3d6fb1.0",
49
- "@knapsack/test-ava": "4.70.5--canary.4960.c3d6fb1.0",
50
- "@knapsack/typescript-config-starter": "4.70.5--canary.4960.c3d6fb1.0",
48
+ "@knapsack/eslint-config-starter": "4.70.5--canary.4921.a127e88.0",
49
+ "@knapsack/test-ava": "4.70.5--canary.4921.a127e88.0",
50
+ "@knapsack/typescript-config-starter": "4.70.5--canary.4921.a127e88.0",
51
51
  "@tiptap/core": "^2.8.0",
52
52
  "@types/color-string": "^1.5.5",
53
53
  "@types/fs-extra": "^11.0.4",
@@ -56,7 +56,7 @@
56
56
  "eslint": "^8.57.0",
57
57
  "fs-extra": "^11.2.0",
58
58
  "ts-node": "^10.9.2",
59
- "tsup": "^8.2.4",
59
+ "tsup": "^8.3.0",
60
60
  "typescript": "^5.6.3",
61
61
  "typescript-json-schema": "^0.65.1"
62
62
  },
@@ -68,5 +68,5 @@
68
68
  "directory": "libs/types",
69
69
  "type": "git"
70
70
  },
71
- "gitHead": "c3d6fb183a2a2e6630ecd4e861eeb35bd46da497"
71
+ "gitHead": "a127e88dcec3bf36db5f9b5c108da19b8d9d252b"
72
72
  }
@@ -1,24 +0,0 @@
1
- import type { RendererId } from '../renderers';
2
- export declare const endpoint = "/files";
3
- export declare enum ACTIONS {
4
- verify = "verify"
5
- }
6
- export interface VerifyData {
7
- type: ACTIONS.verify;
8
- payload: {
9
- path: string;
10
- rendererId: RendererId;
11
- };
12
- }
13
- export interface VerifyDataResponse {
14
- type: ACTIONS.verify;
15
- payload: {
16
- exists: boolean;
17
- relativePath: string;
18
- absolutePath: string;
19
- type: 'absolute' | 'relative' | 'package' | 'unknown';
20
- };
21
- }
22
- export type Actions = VerifyData;
23
- export type ActionResponses = VerifyDataResponse;
24
- //# sourceMappingURL=files.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../src/api/files.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,eAAO,MAAM,QAAQ,WAAW,CAAC;AAEjC,oBAAY,OAAO;IACjB,MAAM,WAAW;CAClB;AAED,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC;IACrB,OAAO,EAAE;QACP,IAAI,EAAE,MAAM,CAAC;QACb,UAAU,EAAE,UAAU,CAAC;KACxB,CAAC;CACH;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC;IACrB,OAAO,EAAE;QACP,MAAM,EAAE,OAAO,CAAC;QAChB,YAAY,EAAE,MAAM,CAAC;QACrB,YAAY,EAAE,MAAM,CAAC;QACrB,IAAI,EAAE,UAAU,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,CAAC;KACvD,CAAC;CACH;AAED,MAAM,MAAM,OAAO,GAAG,UAAU,CAAC;AAEjC,MAAM,MAAM,eAAe,GAAG,kBAAkB,CAAC"}
@@ -1,4 +0,0 @@
1
- import * as PluginsApi from './plugins';
2
- import * as FilesApi from './files';
3
- export { PluginsApi, FilesApi };
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,WAAW,CAAC;AACxC,OAAO,KAAK,QAAQ,MAAM,SAAS,CAAC;AAEpC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,CAAC"}
@@ -1,17 +0,0 @@
1
- export declare const endpoint = "/plugins";
2
- export declare enum ACTIONS {
3
- getContent = "getContent"
4
- }
5
- export interface GetContentRequest {
6
- type: ACTIONS.getContent;
7
- pluginId: string;
8
- }
9
- export interface GetContentResponse {
10
- type: ACTIONS.getContent;
11
- ok: boolean;
12
- message?: string;
13
- payload: Record<string, unknown>;
14
- }
15
- export type ActionRequests = GetContentRequest;
16
- export type ActionResponses = GetContentResponse;
17
- //# sourceMappingURL=plugins.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../src/api/plugins.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,aAAa,CAAC;AAEnC,oBAAY,OAAO;IACjB,UAAU,eAAe;CAC1B;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC;IACzB,EAAE,EAAE,OAAO,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC;AAED,MAAM,MAAM,cAAc,GAAG,iBAAiB,CAAC;AAE/C,MAAM,MAAM,eAAe,GAAG,kBAAkB,CAAC"}