@kitlangton/knobs 0.4.0-next.16 → 0.4.0-next.17
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/README.md +28 -9
- package/dist/dev/{chunk-v2g91mrm.js → chunk-2g0znytq.js} +1 -0
- package/dist/dev/{chunk-9y93net8.js → chunk-3vag4n3q.js} +39 -9
- package/dist/dev/{chunk-e5hbs8fe.js → chunk-5cv3g7ca.js} +205 -64
- package/dist/dev/{chunk-exaya50m.js → chunk-xzm0zawh.js} +6 -6
- package/dist/dev/index.js +9 -8
- package/dist/index.js +7 -5
- package/dist/panel.js +292 -83
- package/dist/review-react.js +1341 -880
- package/dist/review-solid.js +1341 -880
- package/dist/review.js +1711 -1248
- package/dist/themes.js +8 -0
- package/dist/types/core/schema.d.ts +7 -1
- package/dist/types/panel/description-ids.d.ts +6 -0
- package/dist/types/panel/folds.d.ts +7 -4
- package/dist/types/panel/gpu/color.d.ts +2 -0
- package/dist/types/panel/page-hints.d.ts +3 -2
- package/dist/types/panel/position.d.ts +23 -0
- package/dist/types/tokens/schema.d.ts +9 -0
- package/dist/types/ui/compare-css.d.ts +1 -1
- package/dist/types/ui/compare-frames.d.ts +64 -2
- package/dist/types/ui/compare-model.d.ts +23 -0
- package/dist/types/ui/compare.d.ts +6 -4
- package/dist/types/ui/player-css.d.ts +1 -1
- package/dist/types/ui/player.d.ts +6 -0
- package/dist/types/ui/react.d.ts +1 -1
- package/dist/types/ui/solid.d.ts +1 -1
- package/dist/types/ui/tooltip-model.d.ts +35 -0
- package/dist/types/ui/tooltip.d.ts +1 -1
- package/dist/types/ui/walkthrough-model.d.ts +4 -2
- package/dist/ui-react.js +2015 -1507
- package/dist/ui-solid.js +2014 -1506
- package/dist/ui.js +2013 -1505
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -447,6 +447,7 @@ function mutatePoints(points, range, random, share) {
|
|
|
447
447
|
// src/core/schema.ts
|
|
448
448
|
var META_KEYS = [
|
|
449
449
|
"label",
|
|
450
|
+
"description",
|
|
450
451
|
"group",
|
|
451
452
|
"groupLabel",
|
|
452
453
|
"section",
|
|
@@ -2008,11 +2009,12 @@ function defineControls(id, input, options = {}) {
|
|
|
2008
2009
|
...setOpts?.base ? { base: !0 } : {}
|
|
2009
2010
|
});
|
|
2010
2011
|
}
|
|
2011
|
-
function step(to, source) {
|
|
2012
|
-
let before = load()
|
|
2012
|
+
function step(to, source, into) {
|
|
2013
|
+
let before = load();
|
|
2014
|
+
into.push({ values: before, base: activeBase() });
|
|
2015
|
+
let diff = changes(before, to.values);
|
|
2013
2016
|
if (base = validBase(to.base), markChanged(diff), commit(to.values), Object.keys(diff).length)
|
|
2014
2017
|
options.onChange?.(diff, to.values, { source });
|
|
2015
|
-
return left;
|
|
2016
2018
|
}
|
|
2017
2019
|
function place(values, replace, land) {
|
|
2018
2020
|
let previous = load(), applied = applyPatch(replace ? locked : previous, previous, values);
|
|
@@ -2348,7 +2350,7 @@ function defineControls(id, input, options = {}) {
|
|
|
2348
2350
|
let previous = past.pop();
|
|
2349
2351
|
if (!previous)
|
|
2350
2352
|
return;
|
|
2351
|
-
|
|
2353
|
+
step(previous, "undo", future);
|
|
2352
2354
|
},
|
|
2353
2355
|
redo() {
|
|
2354
2356
|
if (release(), hostHistory)
|
|
@@ -2356,7 +2358,7 @@ function defineControls(id, input, options = {}) {
|
|
|
2356
2358
|
let next = future.pop();
|
|
2357
2359
|
if (!next)
|
|
2358
2360
|
return;
|
|
2359
|
-
|
|
2361
|
+
step(next, "redo", past);
|
|
2360
2362
|
},
|
|
2361
2363
|
getServerSnapshot: () => locked,
|
|
2362
2364
|
subscribe(cb) {
|