@valbuild/ui 0.119.0 → 0.120.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.
- package/CHANGELOG.md +41 -0
- package/dist/valbuild-ui.cjs.js +1 -1
- package/dist/valbuild-ui.esm.js +1 -1
- package/package.json +3 -3
- package/server/.tmp/assets/{index-Ba2QpwtQ.js → index-DK4jaz_h.js} +10 -10
- package/server/.tmp/assets/patchsets.worker-D9QWxx6e.js +6 -0
- package/server/.tmp/assets/{patchsets.worker-Da9KaH1a.js → validation.worker-B5R1jZ19.js} +3 -3
- package/server/.tmp/index.html +1 -1
- package/server/dist/valbuild-ui-server.cjs.js +4 -4
- package/server/dist/valbuild-ui-server.esm.js +4 -4
- package/server/.tmp/assets/validation.worker-S1NGke8f.js +0 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,46 @@
|
|
|
1
1
|
# @valbuild/ui
|
|
2
2
|
|
|
3
|
+
## 0.120.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#589](https://github.com/valbuild/val/pull/589) [`c2d3c0e`](https://github.com/valbuild/val/commit/c2d3c0e6c2010c0a94c725d9dbaa618998773e8a) Thanks [@freekh](https://github.com/freekh)! - **Breaking:** `s.richtext()` options are flat.
|
|
8
|
+
|
|
9
|
+
The `style`, `block` and `inline` groups are gone — every option is a key of its
|
|
10
|
+
own. The names are unchanged, so updating a schema is only a matter of removing
|
|
11
|
+
the wrappers:
|
|
12
|
+
|
|
13
|
+
```ts
|
|
14
|
+
// before
|
|
15
|
+
s.richtext({
|
|
16
|
+
style: { bold: true, italic: true },
|
|
17
|
+
block: { h1: true, ul: true },
|
|
18
|
+
inline: { a: true, img: s.image() },
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
// after
|
|
22
|
+
s.richtext({
|
|
23
|
+
bold: true,
|
|
24
|
+
italic: true,
|
|
25
|
+
h1: true,
|
|
26
|
+
ul: true,
|
|
27
|
+
a: true,
|
|
28
|
+
img: s.image(),
|
|
29
|
+
});
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
The groups never carried any meaning the option names did not already have, and
|
|
33
|
+
they cost something real: an option name and its `ValRichText` theme key were
|
|
34
|
+
spelled differently (`block.h1` vs `theme.h1`), so the type that keeps a theme
|
|
35
|
+
exhaustive had to restate all thirteen options by hand. It is now a mapped type
|
|
36
|
+
over the options themselves — which also fixes an inconsistency in it: enabling
|
|
37
|
+
links with a schema (`a: s.route()`) rather than `a: true` now requires an `a`
|
|
38
|
+
key in the theme, the way `img` always has.
|
|
39
|
+
|
|
40
|
+
`ValRichText` themes were already flat and are unchanged. The serialized schema
|
|
41
|
+
that the server sends the Studio is flat too, so a project must not mix
|
|
42
|
+
`@valbuild/*` versions across this release.
|
|
43
|
+
|
|
3
44
|
## 0.119.0
|
|
4
45
|
|
|
5
46
|
### Minor Changes
|
package/dist/valbuild-ui.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=`/spa/index.css`,t=`/app`,n=`val-app`,r=`val-overlay`,i=!1,a=`0.
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=`/spa/index.css`,t=`/app`,n=`val-app`,r=`val-overlay`,i=!1,a=`0.120.0`;exports.IS_DEV=i,exports.VAL_APP_ID=n,exports.VAL_APP_PATH=t,exports.VAL_CSS_PATH=e,exports.VAL_OVERLAY_ID=r,exports.VERSION=a;
|
package/dist/valbuild-ui.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
//#region src/constants.ts
|
|
2
|
-
var e = "/spa/index.css", t = "/app", n = "val-app", r = "val-overlay", i = !1, a = "0.
|
|
2
|
+
var e = "/spa/index.css", t = "/app", n = "val-app", r = "val-overlay", i = !1, a = "0.120.0";
|
|
3
3
|
//#endregion
|
|
4
4
|
export { i as IS_DEV, n as VAL_APP_ID, t as VAL_APP_PATH, e as VAL_CSS_PATH, r as VAL_OVERLAY_ID, a as VERSION };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@valbuild/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.120.0",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -128,8 +128,8 @@
|
|
|
128
128
|
"typescript": "^6.0.3",
|
|
129
129
|
"vite": "^8.2.2",
|
|
130
130
|
"zod": "^4.4.3",
|
|
131
|
-
"@valbuild/core": "0.
|
|
132
|
-
"@valbuild/shared": "0.
|
|
131
|
+
"@valbuild/core": "0.120.0",
|
|
132
|
+
"@valbuild/shared": "0.120.0"
|
|
133
133
|
},
|
|
134
134
|
"peerDependencies": {
|
|
135
135
|
"react": ">=19.0.0",
|