kirby-types 0.6.4 → 0.6.6

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/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "kirby-types",
3
3
  "type": "module",
4
- "version": "0.6.4",
5
- "packageManager": "pnpm@8.7.6",
4
+ "version": "0.6.6",
5
+ "packageManager": "pnpm@8.12.1",
6
6
  "description": "A collection of TypeScript types for the Kirby CMS",
7
7
  "author": "Johann Schopplich <pkg@johannschopplich.com>",
8
8
  "license": "MIT",
@@ -24,33 +24,28 @@
24
24
  "sideEffects": false,
25
25
  "exports": {
26
26
  ".": {
27
- "types": "./index.d.ts",
28
- "import": "./stub.js",
29
- "require": "./stub.js"
27
+ "types": "./index.d.ts"
30
28
  }
31
29
  },
32
- "main": "./stub.js",
33
- "module": "./stub.js",
34
30
  "types": "./index.d.ts",
35
31
  "files": [
36
- "src",
37
32
  "index.d.ts",
38
- "stub.js"
33
+ "src"
39
34
  ],
40
35
  "scripts": {
41
- "lint": "eslint \"**/*.ts\" --ignore-path .gitignore",
42
- "lint:fix": "npm run lint -- --fix",
36
+ "lint": "eslint .",
37
+ "lint:fix": "eslint . --fix",
43
38
  "format": "prettier \"**/*.{css,html,json,md,mjs,ts,vue,yml}\" --write",
44
39
  "format:check": "prettier \"**/*.{css,html,json,md,mjs,ts,vue,yml}\" --check",
45
40
  "release": "bumpp --commit --push --tag",
46
41
  "test": "tsd -f \"test/**/*.test-d.ts\""
47
42
  },
48
43
  "devDependencies": {
49
- "@byjohann/eslint-config": "^0.2.2",
50
- "bumpp": "^9.2.0",
51
- "eslint": "^8.49.0",
52
- "prettier": "^3.0.3",
53
- "tsd": "^0.29.0",
54
- "typescript": "^5.2.2"
44
+ "@antfu/eslint-config": "^2.4.6",
45
+ "bumpp": "^9.2.1",
46
+ "eslint": "^8.56.0",
47
+ "prettier": "^3.1.1",
48
+ "tsd": "^0.30.0",
49
+ "typescript": "^5.3.3"
55
50
  }
56
51
  }
package/src/blocks.d.ts CHANGED
@@ -26,8 +26,8 @@ export interface KirbyBlock<
26
26
  content: U extends Record<string, unknown>
27
27
  ? U
28
28
  : T extends keyof KirbyDefaultBlocks
29
- ? KirbyDefaultBlocks[T]
30
- : Record<string, never>;
29
+ ? KirbyDefaultBlocks[T]
30
+ : Record<string, never>;
31
31
  id: string;
32
32
  isHidden: boolean;
33
33
  type: T;
package/src/query.d.ts CHANGED
@@ -1,11 +1,12 @@
1
- // https://github.com/getkirby/kql/blob/4c8cdd88c076cdef5323efcd4f0fda38c0865eed/src/Kql/Kql.php#L73
2
1
  export type KirbyQueryModel<CustomModel extends string = never> =
3
2
  | "collection"
4
- | "file"
5
3
  | "kirby"
6
- | "page"
7
4
  | "site"
5
+ | "page"
8
6
  | "user"
7
+ | "file"
8
+ | "content"
9
+ | "item"
9
10
  | "arrayItem"
10
11
  | "structureItem"
11
12
  | "block"
package/stub.js DELETED
File without changes