@coras-io/embed 0.5.0 → 0.5.1
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/CHANGELOG.md +8 -0
- package/dist/sdk/validation.js +6 -7
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @coras-io/embed
|
|
2
2
|
|
|
3
|
+
## 0.5.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 8a51a71: Accept a brand's `colorScheme` in `config.theme` under `strict: true`, so a `brand.json` exported from Coras Studio mounts as shipped.
|
|
8
|
+
- Updated dependencies [8a51a71]
|
|
9
|
+
- @coras-io/brand-tokens@0.5.0
|
|
10
|
+
|
|
3
11
|
## 0.5.0
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
package/dist/sdk/validation.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FIELDS } from "@coras-io/brand-tokens";
|
|
1
|
+
import { BRAND_META_KEYS, FIELDS } from "@coras-io/brand-tokens";
|
|
2
2
|
import { validateBrandConfig } from "@coras-io/brand-tokens/validate";
|
|
3
3
|
import { supportedCurrencies } from "../core/currency/constants.js";
|
|
4
4
|
import { allLocales } from "../core/i18n/locale-codes.js";
|
|
@@ -178,16 +178,15 @@ function validateAssetsUrl(value) {
|
|
|
178
178
|
}
|
|
179
179
|
throw new CorasValidationError("invalid_url", "config.assetsUrl must be an absolute https URL or a root-relative path.", "config.assetsUrl");
|
|
180
180
|
}
|
|
181
|
-
// Field keys plus the BrandConfig meta keys
|
|
182
|
-
//
|
|
183
|
-
//
|
|
181
|
+
// Field keys (flat and grouped) plus the BrandConfig meta keys, taken from the
|
|
182
|
+
// contract rather than restated here so a key added there cannot be rejected
|
|
183
|
+
// here. Used only to surface unknown keys in strict mode (the schema itself
|
|
184
|
+
// strips them silently, which a strict host wants flagged, not swallowed).
|
|
184
185
|
const THEME_KEYS = [
|
|
185
186
|
...FIELDS.map((field) => field.key),
|
|
186
187
|
...FIELDS.map((field) => field.path.split(".")[0]),
|
|
187
|
-
|
|
188
|
-
"fontFaces",
|
|
188
|
+
...BRAND_META_KEYS,
|
|
189
189
|
"dark",
|
|
190
|
-
"schemaVersion",
|
|
191
190
|
];
|
|
192
191
|
/**
|
|
193
192
|
* Validate `config.theme` (and its `dark` overrides) against the shared
|
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"engines": {
|
|
21
21
|
"node": ">=22"
|
|
22
22
|
},
|
|
23
|
-
"version": "0.5.
|
|
23
|
+
"version": "0.5.1",
|
|
24
24
|
"private": false,
|
|
25
25
|
"homepage": "https://embed.coras.io",
|
|
26
26
|
"bugs": {
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"typescript-eslint": "8.67.0",
|
|
105
105
|
"vite": "8.2.2",
|
|
106
106
|
"vitest": "4.1.11",
|
|
107
|
-
"@coras-io/static": "0.0.
|
|
107
|
+
"@coras-io/static": "0.0.5"
|
|
108
108
|
},
|
|
109
109
|
"dependencies": {
|
|
110
110
|
"@coinbase/cdp-core": "0.0.122",
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
"lit": "^3.3.3",
|
|
123
123
|
"openapi-fetch": "0.17.0",
|
|
124
124
|
"viem": "2.55.19",
|
|
125
|
-
"@coras-io/brand-tokens": "^0.
|
|
125
|
+
"@coras-io/brand-tokens": "^0.5.0"
|
|
126
126
|
},
|
|
127
127
|
"scripts": {
|
|
128
128
|
"lint": "eslint \"src/**/*.ts*\"",
|