@vcp-dev/contracts 0.10.30 → 0.10.32

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.
@@ -5,7 +5,7 @@
5
5
  *
6
6
  * 由 release-edit-engine-packages.ts 在 bump 版本时自动更新。
7
7
  */
8
- export declare const CURRENT_EDIT_ENGINE_VERSION = "0.10.30";
8
+ export declare const CURRENT_EDIT_ENGINE_VERSION = "0.10.32";
9
9
  export declare const EDIT_ENGINE_VERSION_HEADER = "x-vcp-edit-engine-version";
10
10
  export declare const EDIT_ENGINE_VERSION_SOURCE_HEADER = "x-vcp-edit-engine-version-source";
11
11
  export type EditEngineVersionSource = "explicit" | "fallback_current" | "system_current";
@@ -56,6 +56,11 @@ export declare const ERROR_COPY: {
56
56
  readonly PREVIEW_BUILD_FAILED: "Preview is available, but the production build failed. Fix the reported build error before deploying.";
57
57
  readonly PREVIEW_BUILD_NOT_CONFIGURED: "Preview is available, but the production build check is not configured.";
58
58
  readonly PREVIEW_BUILD_SANDBOX_NOT_FOUND: "Preview is available, but the build check could not find the active preview sandbox.";
59
+ readonly BUILD_FONT_METADATA_INVALID: "We couldn't read the font file information. Publishing is blocked until the font file is checked.";
60
+ readonly BUILD_FONT_LICENSE_UNKNOWN: "We couldn't verify this font's license. Publishing is blocked until its license is confirmed.";
61
+ readonly BUILD_FONT_LICENSE_CONFLICT: "The font file license conflicts with the verified record. Publishing is blocked until the conflict is resolved.";
62
+ readonly BUILD_FONT_LICENSE_TEXT_MISSING: "The complete font license text is missing. Publishing is blocked until it is provided.";
63
+ readonly BUILD_FONT_LICENSE_DELIVERY_FAILED: "We couldn't include the font license files in the deployment. Please try publishing again.";
59
64
  readonly WS_CONNECTION_ERROR: "Connection lost. Reconnecting…";
60
65
  readonly USER_MESSAGE_PERSIST_FAILED: "Your message wasn't saved. Please send it again.";
61
66
  readonly CLARIFICATION_REPLY_STALE: "That question has expired. Please tell me what you'd like to do now.";
@@ -76,6 +81,10 @@ export declare const ERROR_COPY: {
76
81
  readonly SANDBOX_RUNTIME_NOT_READY: "The preview needs to be refreshed before this change can be applied. Refresh the preview and try again.";
77
82
  readonly GENERIC: "Something went wrong. Please try again.";
78
83
  };
84
+ /** Font authorization failures whose deployment UI includes a readable explanation. */
85
+ export declare const FONT_LICENSE_BUILD_ERROR_CODES: readonly ["BUILD_FONT_METADATA_INVALID", "BUILD_FONT_LICENSE_UNKNOWN", "BUILD_FONT_LICENSE_CONFLICT", "BUILD_FONT_LICENSE_TEXT_MISSING", "BUILD_FONT_LICENSE_DELIVERY_FAILED"];
86
+ export type FontLicenseBuildErrorCode = (typeof FONT_LICENSE_BUILD_ERROR_CODES)[number];
87
+ export declare function isFontLicenseBuildErrorCode(code: string | null | undefined): code is FontLicenseBuildErrorCode;
79
88
  /**
80
89
  * 「这一轮是用户自己停下来的」那一组终态码。
81
90
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vcp-dev/contracts",
3
- "version": "0.10.30",
3
+ "version": "0.10.32",
4
4
  "type": "module",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {
@@ -41,6 +41,21 @@
41
41
  "development": "./src/colorway-distinctness.ts",
42
42
  "types": "./dist/colorway-distinctness.d.ts",
43
43
  "default": "./dist/colorway-distinctness.js"
44
+ },
45
+ "./font-license-catalog": {
46
+ "development": "./src/font-license-catalog.ts",
47
+ "types": "./dist/font-license-catalog.d.ts",
48
+ "default": "./dist/font-license-catalog.js"
49
+ },
50
+ "./font-license-texts": {
51
+ "development": "./src/font-license-texts.ts",
52
+ "types": "./dist/font-license-texts.d.ts",
53
+ "default": "./dist/font-license-texts.js"
54
+ },
55
+ "./font-license-notices": {
56
+ "development": "./src/font-license-notices.ts",
57
+ "types": "./dist/font-license-notices.d.ts",
58
+ "default": "./dist/font-license-notices.js"
44
59
  }
45
60
  },
46
61
  "files": [