@valbuild/core 0.150.2 → 0.150.3
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 +16 -0
- package/dist/declarations/src/source/settings.d.ts +11 -0
- package/dist/{index-ee1cec64.cjs.dev.js → index-a031b958.cjs.dev.js} +4 -1
- package/dist/{index-d9da87f6.esm.js → index-da7db0cd.esm.js} +4 -1
- package/dist/{index-b8bcdcd5.cjs.prod.js → index-ec5b1776.cjs.prod.js} +4 -1
- package/dist/valbuild-core.cjs.dev.js +1 -1
- package/dist/valbuild-core.cjs.prod.js +1 -1
- package/dist/valbuild-core.esm.js +1 -1
- package/package.json +1 -1
- package/patch/dist/valbuild-core-patch.cjs.dev.js +1 -1
- package/patch/dist/valbuild-core-patch.cjs.prod.js +1 -1
- package/patch/dist/valbuild-core-patch.esm.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @valbuild/core
|
|
2
2
|
|
|
3
|
+
## 0.150.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#954](https://github.com/valbuild/val/pull/954) [`bc0cc43`](https://github.com/valbuild/val/commit/bc0cc433e157cca08f9ee384a4fb8be9bd3dad2c) Thanks [@freekh](https://github.com/freekh)! - Proposals in the Studio, reworked:
|
|
8
|
+
|
|
9
|
+
- **Save becomes Publish.** In a proposal, one split button stands where Publish is on the site. Its main half is the next step (Save, then Build, then Publish), and its caret offers every step, so you can publish straight away: Publish saves first. The separate Publish button beside the switcher is gone.
|
|
10
|
+
- **The switcher is where the proposal is managed**, as on a phone: its name and changes, Compare with the site, Rename, Copy link and Close, then where else to go.
|
|
11
|
+
- **Upgrade proposals** have one Publish (the bar's), say what they upgrade in the Publish dialog, cannot be published while Val Build is still working them out, are discarded rather than closed, and have their own icon.
|
|
12
|
+
- **A published proposal** shows a dialog with the ways out (the site, a new proposal, all proposals), since nothing more can be done in it.
|
|
13
|
+
- **Notices about where you are** (an upgrade, an upgrade under way, a restore) pop up from the bottom right and stay until dismissed; a dismissed one folds into the status bar and comes back from there.
|
|
14
|
+
- **No more flash of the site's chrome** at a proposal's address: the bar says "Loading…" until it knows, a return visit starts in the proposal at once, and opening a proposal says "Opening …" while the browser gets there.
|
|
15
|
+
- **After a save**, "Updating the preview…" and a failed render check are shown beside the switcher, and the status bar counts what is not saved to the proposal instead of saying "All changes saved".
|
|
16
|
+
- **Dialogs** dim the Studio instead of hiding it.
|
|
17
|
+
- **`theme.proposal`** in `s.settings()` sets the colour the Studio wears in a proposal (Val's violet when unset), under Settings → Studio. Like the accent, its shades are generated so text on them stays legible.
|
|
18
|
+
|
|
3
19
|
## 0.150.2
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -98,6 +98,17 @@ export type ThemeSettingsSource = {
|
|
|
98
98
|
* foreground/background pair the chrome renders to AA across the hue circle.
|
|
99
99
|
*/
|
|
100
100
|
accent?: string | null;
|
|
101
|
+
/**
|
|
102
|
+
* The colour that says "you are in a proposal", as a hex string.
|
|
103
|
+
*
|
|
104
|
+
* Unset means Val's violet. A proposal is a PLACE rather than a brand or a
|
|
105
|
+
* status -- the top bar, the switcher and Save wear it so nobody edits a
|
|
106
|
+
* proposal thinking it is the site -- so it has to stand apart from the
|
|
107
|
+
* accent, and a project whose accent is violet needs a way to move it.
|
|
108
|
+
* Generated the way the accent's ramp is, keeping the lightness of each step,
|
|
109
|
+
* so its text stays legible whatever the hue.
|
|
110
|
+
*/
|
|
111
|
+
proposal?: string | null;
|
|
101
112
|
/**
|
|
102
113
|
* How round the Studio's corners are.
|
|
103
114
|
*
|
|
@@ -10473,6 +10473,9 @@ function settings() {
|
|
|
10473
10473
|
accent: color({
|
|
10474
10474
|
format: "hex"
|
|
10475
10475
|
}).nullable().describe("The one colour the Studio's chrome is built from. Unset means Val's green. Any hex: the whole brand ramp is generated from it, keeping the lightness of each step, so contrast holds."),
|
|
10476
|
+
proposal: color({
|
|
10477
|
+
format: "hex"
|
|
10478
|
+
}).nullable().describe("The colour the Studio wears in a proposal, so nobody mistakes one for the site. Unset means Val's violet. Pick one that stands apart from the accent."),
|
|
10476
10479
|
radius: enumSchema("square", "tight", "default", "soft").nullable().describe("How round the Studio's corners are. Unset is the same as 'default'."),
|
|
10477
10480
|
mode: enumSchema("dark", "light").nullable().describe("The mode the Studio opens in for an editor who has not chosen one. Never overrides an editor who has."),
|
|
10478
10481
|
logo: image({
|
|
@@ -16976,7 +16979,7 @@ function isInlineRender(container) {
|
|
|
16976
16979
|
|
|
16977
16980
|
var corePackageJson = {
|
|
16978
16981
|
name: "@valbuild/core",
|
|
16979
|
-
version: "0.150.
|
|
16982
|
+
version: "0.150.3",
|
|
16980
16983
|
"private": false,
|
|
16981
16984
|
description: "Val - supercharged hard-coded content",
|
|
16982
16985
|
repository: {
|
|
@@ -10471,6 +10471,9 @@ function settings() {
|
|
|
10471
10471
|
accent: color({
|
|
10472
10472
|
format: "hex"
|
|
10473
10473
|
}).nullable().describe("The one colour the Studio's chrome is built from. Unset means Val's green. Any hex: the whole brand ramp is generated from it, keeping the lightness of each step, so contrast holds."),
|
|
10474
|
+
proposal: color({
|
|
10475
|
+
format: "hex"
|
|
10476
|
+
}).nullable().describe("The colour the Studio wears in a proposal, so nobody mistakes one for the site. Unset means Val's violet. Pick one that stands apart from the accent."),
|
|
10474
10477
|
radius: enumSchema("square", "tight", "default", "soft").nullable().describe("How round the Studio's corners are. Unset is the same as 'default'."),
|
|
10475
10478
|
mode: enumSchema("dark", "light").nullable().describe("The mode the Studio opens in for an editor who has not chosen one. Never overrides an editor who has."),
|
|
10476
10479
|
logo: image({
|
|
@@ -16974,7 +16977,7 @@ function isInlineRender(container) {
|
|
|
16974
16977
|
|
|
16975
16978
|
var corePackageJson = {
|
|
16976
16979
|
name: "@valbuild/core",
|
|
16977
|
-
version: "0.150.
|
|
16980
|
+
version: "0.150.3",
|
|
16978
16981
|
"private": false,
|
|
16979
16982
|
description: "Val - supercharged hard-coded content",
|
|
16980
16983
|
repository: {
|
|
@@ -10473,6 +10473,9 @@ function settings() {
|
|
|
10473
10473
|
accent: color({
|
|
10474
10474
|
format: "hex"
|
|
10475
10475
|
}).nullable().describe("The one colour the Studio's chrome is built from. Unset means Val's green. Any hex: the whole brand ramp is generated from it, keeping the lightness of each step, so contrast holds."),
|
|
10476
|
+
proposal: color({
|
|
10477
|
+
format: "hex"
|
|
10478
|
+
}).nullable().describe("The colour the Studio wears in a proposal, so nobody mistakes one for the site. Unset means Val's violet. Pick one that stands apart from the accent."),
|
|
10476
10479
|
radius: enumSchema("square", "tight", "default", "soft").nullable().describe("How round the Studio's corners are. Unset is the same as 'default'."),
|
|
10477
10480
|
mode: enumSchema("dark", "light").nullable().describe("The mode the Studio opens in for an editor who has not chosen one. Never overrides an editor who has."),
|
|
10478
10481
|
logo: image({
|
|
@@ -16976,7 +16979,7 @@ function isInlineRender(container) {
|
|
|
16976
16979
|
|
|
16977
16980
|
var corePackageJson = {
|
|
16978
16981
|
name: "@valbuild/core",
|
|
16979
|
-
version: "0.150.
|
|
16982
|
+
version: "0.150.3",
|
|
16980
16983
|
"private": false,
|
|
16981
16984
|
description: "Val - supercharged hard-coded content",
|
|
16982
16985
|
repository: {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { H as ASSISTANT_SETTINGS_MAX_LENGTH, A as ArraySchema, B as BooleanSchema, a4 as CODE_LANGUAGES, a5 as COLOR_FORMATS, a3 as CodeSchema, a2 as ColorSchema, e as DEFAULT_APP_HOST, a6 as DEFAULT_COLOR_FORMAT, D as DEFAULT_CONTENT_HOST, u as DEFAULT_FONT_ACCEPT, f as DEFAULT_STATIC_HOST, o as DEFAULT_VAL_REMOTE_HOST, x as DEFAULT_VIDEO_ACCEPT, y as DEFAULT_VIDEO_RENDITIONS, z as DEFAULT_VIDEO_SEGMENT_DURATION, C as DateSchema, a7 as DateTimeSchema, ad as DiscriminatedUnionSchema, ae as EnumSchema, F as FATAL_ERROR_TYPES, v as FONT_MIME_TYPES, t as FileSchema, G as GenericSelector, r as ImageSchema, I as Internal, a8 as KeyOfSchema, af as LiteralSchema, Z as LocaleSchema, M as ModuleFilePathSep, N as NumberSchema, O as ObjectSchema, R as RecordSchema, ac as RichTextSchema, ab as RouteSchema, Q as SETTINGS_MODULE_CONVENTION, S as Schema, E as SettingsSchema, q as StringSchema, T as THEME_LOGO_DIRECTORY, K as THEME_RADIUS_LENGTHS, J as THEME_RADIUS_STEPS, av as UNSAFE_URL_SCHEMES, V as VAL_EXTENSION, a9 as ValViewSchema, w as VideoSchema, L as assistantAvailability, k as computeSchemaSha, j as computeSourcesSha, h as computeValModuleShas, $ as declaredKeySetOf, p as derefPatch, ar as describeSchemeRejection, ag as deserializeSchema, a1 as discriminatedUnionBranchOf, g as extractValModules, ao as getSourcePathFromRoute, n as hasMediaSchema, l as hasRemoteFileSchema, i as initVal, as as isCheckableScheme, ai as isInlineRender, ap as isPageRouter, U as isRootModuleFilePath, aa as isValViewSource, Y as localeOfValue, X as localeTagError, an as matchRoutePattern, a0 as missingDeclaredKeys, m as modules, aj as parseNextJsRoutePattern, ak as parseTanStackRoutePattern, ah as previewScope, at as rejectScheme, W as resolveSettingsModule, aq as routePatternOf, au as schemeOf, al as tanStackSegmentsOfRoutePath, am as validateUrlAgainstPattern } from './index-
|
|
1
|
+
export { H as ASSISTANT_SETTINGS_MAX_LENGTH, A as ArraySchema, B as BooleanSchema, a4 as CODE_LANGUAGES, a5 as COLOR_FORMATS, a3 as CodeSchema, a2 as ColorSchema, e as DEFAULT_APP_HOST, a6 as DEFAULT_COLOR_FORMAT, D as DEFAULT_CONTENT_HOST, u as DEFAULT_FONT_ACCEPT, f as DEFAULT_STATIC_HOST, o as DEFAULT_VAL_REMOTE_HOST, x as DEFAULT_VIDEO_ACCEPT, y as DEFAULT_VIDEO_RENDITIONS, z as DEFAULT_VIDEO_SEGMENT_DURATION, C as DateSchema, a7 as DateTimeSchema, ad as DiscriminatedUnionSchema, ae as EnumSchema, F as FATAL_ERROR_TYPES, v as FONT_MIME_TYPES, t as FileSchema, G as GenericSelector, r as ImageSchema, I as Internal, a8 as KeyOfSchema, af as LiteralSchema, Z as LocaleSchema, M as ModuleFilePathSep, N as NumberSchema, O as ObjectSchema, R as RecordSchema, ac as RichTextSchema, ab as RouteSchema, Q as SETTINGS_MODULE_CONVENTION, S as Schema, E as SettingsSchema, q as StringSchema, T as THEME_LOGO_DIRECTORY, K as THEME_RADIUS_LENGTHS, J as THEME_RADIUS_STEPS, av as UNSAFE_URL_SCHEMES, V as VAL_EXTENSION, a9 as ValViewSchema, w as VideoSchema, L as assistantAvailability, k as computeSchemaSha, j as computeSourcesSha, h as computeValModuleShas, $ as declaredKeySetOf, p as derefPatch, ar as describeSchemeRejection, ag as deserializeSchema, a1 as discriminatedUnionBranchOf, g as extractValModules, ao as getSourcePathFromRoute, n as hasMediaSchema, l as hasRemoteFileSchema, i as initVal, as as isCheckableScheme, ai as isInlineRender, ap as isPageRouter, U as isRootModuleFilePath, aa as isValViewSource, Y as localeOfValue, X as localeTagError, an as matchRoutePattern, a0 as missingDeclaredKeys, m as modules, aj as parseNextJsRoutePattern, ak as parseTanStackRoutePattern, ah as previewScope, at as rejectScheme, W as resolveSettingsModule, aq as routePatternOf, au as schemeOf, al as tanStackSegmentsOfRoutePath, am as validateUrlAgainstPattern } from './index-da7db0cd.esm.js';
|
|
2
2
|
import './result-daff1cae.esm.js';
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var dist_valbuildCore = require('../../dist/index-
|
|
5
|
+
var dist_valbuildCore = require('../../dist/index-a031b958.cjs.dev.js');
|
|
6
6
|
var result = require('../../dist/result-bb1f436e.cjs.dev.js');
|
|
7
7
|
var util = require('../../dist/util-b213092b.cjs.dev.js');
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var dist_valbuildCore = require('../../dist/index-
|
|
5
|
+
var dist_valbuildCore = require('../../dist/index-ec5b1776.cjs.prod.js');
|
|
6
6
|
var result = require('../../dist/result-787e35f6.cjs.prod.js');
|
|
7
7
|
var util = require('../../dist/util-030d8a1f.cjs.prod.js');
|
|
8
8
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as _typeof, a as _slicedToArray, P as PatchError, s as splitModuleFilePathAndModulePath, b as _createClass, c as _classCallCheck, d as _toConsumableArray } from '../../dist/index-
|
|
2
|
-
export { P as PatchError } from '../../dist/index-
|
|
1
|
+
import { _ as _typeof, a as _slicedToArray, P as PatchError, s as splitModuleFilePathAndModulePath, b as _createClass, c as _classCallCheck, d as _toConsumableArray } from '../../dist/index-da7db0cd.esm.js';
|
|
2
|
+
export { P as PatchError } from '../../dist/index-da7db0cd.esm.js';
|
|
3
3
|
import { f as isNonEmpty, e as err, o as ok, m as map, g as flatMap, i as isErr, h as flatMapReduce, j as filterOrElse, k as mapErr, l as map$1, n as all, p as flatten, q as allT } from '../../dist/result-daff1cae.esm.js';
|
|
4
4
|
import { p as pipe } from '../../dist/util-18613e99.esm.js';
|
|
5
5
|
|