@tinacms/schema-tools 2.8.2 → 2.9.0

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.
@@ -385,8 +385,8 @@ export type Template<WithNamespace extends boolean = false> = {
385
385
  };
386
386
  fields: Field<WithNamespace>[];
387
387
  } & MaybeNamespace<WithNamespace>;
388
- type TokenObject = {
389
- id_token: string;
388
+ export type TokenObject = {
389
+ id_token?: string;
390
390
  access_token?: string;
391
391
  refresh_token?: string;
392
392
  };
@@ -0,0 +1,6 @@
1
+ /** Allowlist for a relativePath segment (filename or folder name); source of truth shared with the resolver's validateRelativePath so the UI can reject invalid names inline. */
2
+ export declare const RELATIVE_PATH_REGEX: RegExp;
3
+ /** Inline form-validation message for {@link RELATIVE_PATH_REGEX}. */
4
+ export declare const RELATIVE_PATH_ALLOWED_CHARS_MESSAGE = "Must contain only a-z, A-Z, 0-9, -, _, ., or /.";
5
+ /** True when `value` contains only characters allowed in a relativePath. */
6
+ export declare const isValidRelativePath: (value: string) => boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tinacms/schema-tools",
3
3
  "type": "module",
4
- "version": "2.8.2",
4
+ "version": "2.9.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "files": [
@@ -24,7 +24,7 @@
24
24
  "ts-jest": "^29.2.5",
25
25
  "typescript": "^5.7.3",
26
26
  "yup": "^1.6.1",
27
- "@tinacms/scripts": "1.6.2"
27
+ "@tinacms/scripts": "1.6.3"
28
28
  },
29
29
  "peerDependencies": {
30
30
  "react": ">=16.14.0",