@sanity/schema 6.7.0-next.36 → 6.7.0-next.5
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/lib/{typedefs-LNWlFyVi.d.ts → _chunks-dts/typedefs.d.ts} +1 -2
- package/lib/_chunks-es/Schema.js +1729 -0
- package/lib/_chunks-es/Schema.js.map +1 -0
- package/lib/_internal.d.ts +3 -4
- package/lib/_internal.js +3194 -2745
- package/lib/_internal.js.map +1 -1
- package/lib/index.d.ts +2 -3
- package/lib/index.js +10 -5
- package/lib/index.js.map +1 -1
- package/package.json +13 -10
- package/lib/Schema-B6NrqInd.js +0 -1676
- package/lib/Schema-B6NrqInd.js.map +0 -1
package/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as SchemaValidationResult, c as DeprecatedDefaultSchema, l as Schema$2 } from "./typedefs
|
|
1
|
+
import { a as SchemaValidationResult, c as DeprecatedDefaultSchema, l as Schema$2 } from "./_chunks-dts/typedefs.js";
|
|
2
2
|
import { RuleClass } from "@sanity/types";
|
|
3
3
|
/**
|
|
4
4
|
* Core Rule implementation without validation logic.
|
|
@@ -31,5 +31,4 @@ declare const DEFAULT_ANNOTATIONS: {
|
|
|
31
31
|
}[];
|
|
32
32
|
}[];
|
|
33
33
|
declare const Schema: typeof Schema$2;
|
|
34
|
-
export { DEFAULT_ANNOTATIONS, DEFAULT_DECORATORS, Rule, Schema, type SchemaValidationResult, DeprecatedDefaultSchema as default };
|
|
35
|
-
//# sourceMappingURL=index.d.ts.map
|
|
34
|
+
export { DEFAULT_ANNOTATIONS, DEFAULT_DECORATORS, Rule, Schema, type SchemaValidationResult, DeprecatedDefaultSchema as default };
|
package/lib/index.js
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { Schema as Schema$1, DeprecatedDefaultSchema } from "./_chunks-es/Schema.js";
|
|
2
|
+
import { DEFAULT_ANNOTATIONS, DEFAULT_DECORATORS, Rule } from "./_chunks-es/Schema.js";
|
|
3
3
|
const Schema = Schema$1;
|
|
4
|
-
export {
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
export {
|
|
5
|
+
DEFAULT_ANNOTATIONS,
|
|
6
|
+
DEFAULT_DECORATORS,
|
|
7
|
+
Rule,
|
|
8
|
+
Schema,
|
|
9
|
+
DeprecatedDefaultSchema as default
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/_exports/index.ts"],"sourcesContent":["import {DeprecatedDefaultSchema, Schema as NamedSchema} from '../legacy/Schema'\n\nexport default DeprecatedDefaultSchema\nexport const Schema = NamedSchema\nexport {Rule} from '../legacy/Rule'\nexport {DEFAULT_ANNOTATIONS, DEFAULT_DECORATORS} from '../legacy/types/blocks/defaults'\nexport {type SchemaValidationResult} from '../sanity/typedefs'\n"],"names":["NamedSchema"],"mappings":";;AAGO,MAAM,SAASA;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/schema",
|
|
3
|
-
"version": "6.7.0-next.
|
|
3
|
+
"version": "6.7.0-next.5",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cms",
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
],
|
|
27
27
|
"type": "module",
|
|
28
28
|
"sideEffects": false,
|
|
29
|
+
"main": "./lib/index.js",
|
|
29
30
|
"types": "./lib/index.d.ts",
|
|
30
31
|
"typesVersions": {
|
|
31
32
|
"*": {
|
|
@@ -44,35 +45,37 @@
|
|
|
44
45
|
"@sanity/generate-help-url": "^4.0.0",
|
|
45
46
|
"arrify": "^3.0.0",
|
|
46
47
|
"get-it": "^8.8.0",
|
|
47
|
-
"groq-js": "^
|
|
48
|
+
"groq-js": "^1.30.3",
|
|
48
49
|
"humanize-list": "^1.0.1",
|
|
49
50
|
"leven": "^4.1.0",
|
|
50
51
|
"lodash-es": "^4.18.1",
|
|
51
52
|
"object-inspect": "^1.13.4",
|
|
52
|
-
"@sanity/types": "6.7.0-next.
|
|
53
|
+
"@sanity/types": "6.7.0-next.5+376f81defc"
|
|
53
54
|
},
|
|
54
55
|
"devDependencies": {
|
|
55
|
-
"@sanity/icons": "^5.2.
|
|
56
|
+
"@sanity/icons": "^5.2.0",
|
|
57
|
+
"@sanity/pkg-utils": "^11.0.13",
|
|
56
58
|
"@types/lodash-es": "^4.17.12",
|
|
57
59
|
"@types/object-inspect": "^1.13.0",
|
|
58
60
|
"@types/react": "^19.2.17",
|
|
59
61
|
"@typescript/native-preview": "beta",
|
|
60
|
-
"
|
|
62
|
+
"rimraf": "^6.1.3",
|
|
61
63
|
"vite": "^8.1.5",
|
|
62
64
|
"vitest": "^4.1.10",
|
|
63
|
-
"@repo/
|
|
64
|
-
"@repo/
|
|
65
|
-
"@repo/
|
|
65
|
+
"@repo/tsconfig": "6.7.0-next.5+376f81defc",
|
|
66
|
+
"@repo/package.config": "6.7.0-next.5+376f81defc",
|
|
67
|
+
"@repo/test-config": "6.7.0-next.5+376f81defc"
|
|
66
68
|
},
|
|
67
69
|
"browserslist": [
|
|
68
70
|
"node >=22.12",
|
|
69
71
|
"baseline 2024"
|
|
70
72
|
],
|
|
71
73
|
"scripts": {
|
|
72
|
-
"build": "
|
|
74
|
+
"build": "pnpm clean && pkg-utils build --strict --check --clean",
|
|
73
75
|
"check:types": "(cd ../../.. && tsgo --project packages/@sanity/schema/tsconfig.lib.json --erasableSyntaxOnly)",
|
|
76
|
+
"clean": "rimraf _internal.js lib",
|
|
74
77
|
"test": "vitest run",
|
|
75
78
|
"test:watch": "vitest watch",
|
|
76
|
-
"watch": "
|
|
79
|
+
"watch": "pkg-utils watch"
|
|
77
80
|
}
|
|
78
81
|
}
|