@vibecook/ice 0.16.0-portals.3 → 0.16.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/dist/{chunk-NB4ALBIY.js → chunk-BH5AFWJX.js} +57 -215
- package/dist/chunk-BH5AFWJX.js.map +1 -0
- package/dist/{chunk-SUNUMQLC.js → chunk-REJTEK3V.js} +214 -14
- package/dist/chunk-REJTEK3V.js.map +1 -0
- package/dist/{chunk-SHU3HVMF.js → chunk-Y7K6CHSF.js} +21 -1
- package/dist/chunk-Y7K6CHSF.js.map +1 -0
- package/dist/{chunk-6VY7I6VA.js → chunk-ZTY2VRIS.js} +2 -2
- package/dist/desk-kit.js +2 -6
- package/dist/desk-objects.js +17 -10
- package/dist/desk-objects.js.map +1 -1
- package/dist/desk.js +7 -5
- package/dist/devtools.js +1 -1
- package/dist/dom.js +2 -2
- package/dist/index.js +3 -1
- package/dist/react.js +9 -5
- package/dist/react.js.map +1 -1
- package/dist/types/packages/core/src/facade/create-canvas-engine.d.ts +2 -1
- package/dist/types/packages/core/src/index.d.ts +1 -1
- package/dist/types/packages/core/src/systems/held.d.ts +5 -1
- package/dist/types/packages/core/src/widget/held-tools.d.ts +35 -0
- package/dist/types/packages/desk/src/compose/marks.d.ts +17 -4
- package/dist/types/packages/desk/src/compose/reflector.d.ts +5 -2
- package/dist/types/packages/desk/src/host/index.d.ts +1 -0
- package/dist/types/packages/desk/src/host/live-texture.d.ts +70 -0
- package/dist/types/packages/desk/src/index.d.ts +1 -1
- package/dist/types/packages/desk/src/kinds/world.d.ts +16 -6
- package/dist/types/packages/desk/src/kit/live.d.ts +11 -71
- package/dist/types/packages/desk/src/theme.d.ts +12 -0
- package/dist/types/packages/objects/src/board/board-pen.d.ts +1 -1
- package/dist/types/packages/objects/src/calendar/hand.d.ts +5 -1
- package/dist/types/packages/objects/src/notebook/leaf.d.ts +1 -1
- package/dist/types/packages/react/src/selection-menu.d.ts +4 -1
- package/package.json +1 -1
- package/dist/chunk-NB4ALBIY.js.map +0 -1
- package/dist/chunk-SHU3HVMF.js.map +0 -1
- package/dist/chunk-SUNUMQLC.js.map +0 -1
- /package/dist/{chunk-6VY7I6VA.js.map → chunk-ZTY2VRIS.js.map} +0 -0
package/dist/desk.js
CHANGED
|
@@ -38,6 +38,7 @@ import {
|
|
|
38
38
|
createGpuProfiler,
|
|
39
39
|
createKindFaults,
|
|
40
40
|
createKindPasses,
|
|
41
|
+
createLiveTexture,
|
|
41
42
|
createMarksCollector,
|
|
42
43
|
createPickSource,
|
|
43
44
|
createRasterBudget,
|
|
@@ -87,6 +88,7 @@ import {
|
|
|
87
88
|
scrollRange,
|
|
88
89
|
slideEase,
|
|
89
90
|
spanOf,
|
|
91
|
+
stillLive,
|
|
90
92
|
stringProp,
|
|
91
93
|
surface,
|
|
92
94
|
tagsOf,
|
|
@@ -99,7 +101,7 @@ import {
|
|
|
99
101
|
withKindActs,
|
|
100
102
|
withoutKind,
|
|
101
103
|
writable
|
|
102
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-REJTEK3V.js";
|
|
103
105
|
import "./chunk-ENIFIUEP.js";
|
|
104
106
|
import {
|
|
105
107
|
BLOB_STORE,
|
|
@@ -169,7 +171,6 @@ import {
|
|
|
169
171
|
chainBytes,
|
|
170
172
|
clip,
|
|
171
173
|
clipOf,
|
|
172
|
-
createLiveTexture,
|
|
173
174
|
createMemoryBlobStore,
|
|
174
175
|
createServices,
|
|
175
176
|
createSight,
|
|
@@ -207,6 +208,7 @@ import {
|
|
|
207
208
|
insideViewOfFace,
|
|
208
209
|
inverseOf,
|
|
209
210
|
isNarrow,
|
|
211
|
+
kindPalette,
|
|
210
212
|
kitWgsl,
|
|
211
213
|
lampDir,
|
|
212
214
|
lampOf,
|
|
@@ -243,7 +245,6 @@ import {
|
|
|
243
245
|
settled,
|
|
244
246
|
shaderText,
|
|
245
247
|
spring,
|
|
246
|
-
stillLive,
|
|
247
248
|
strokeRow,
|
|
248
249
|
strokeSeed,
|
|
249
250
|
tailBase,
|
|
@@ -254,9 +255,9 @@ import {
|
|
|
254
255
|
visibleRect,
|
|
255
256
|
worldBounds,
|
|
256
257
|
writeChanged
|
|
257
|
-
} from "./chunk-
|
|
258
|
+
} from "./chunk-BH5AFWJX.js";
|
|
258
259
|
import "./chunk-RTBW5AIZ.js";
|
|
259
|
-
import "./chunk-
|
|
260
|
+
import "./chunk-Y7K6CHSF.js";
|
|
260
261
|
import "./chunk-RE4GDHFJ.js";
|
|
261
262
|
export {
|
|
262
263
|
AMBIENT_DEFAULTS,
|
|
@@ -431,6 +432,7 @@ export {
|
|
|
431
432
|
isMissingRecord,
|
|
432
433
|
isNarrow,
|
|
433
434
|
isObjectKind,
|
|
435
|
+
kindPalette,
|
|
434
436
|
kindsIn,
|
|
435
437
|
kitWgsl,
|
|
436
438
|
lampDir,
|
package/dist/devtools.js
CHANGED
package/dist/dom.js
CHANGED
|
@@ -13,8 +13,8 @@ import {
|
|
|
13
13
|
keyboardClaimOf,
|
|
14
14
|
startRafLoop,
|
|
15
15
|
wheelCede
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-ZTY2VRIS.js";
|
|
17
|
+
import "./chunk-Y7K6CHSF.js";
|
|
18
18
|
import "./chunk-RE4GDHFJ.js";
|
|
19
19
|
export {
|
|
20
20
|
CLAIM_OWNS_ESCAPE,
|
package/dist/index.js
CHANGED
|
@@ -351,6 +351,7 @@ import {
|
|
|
351
351
|
publishNavCut,
|
|
352
352
|
readDocVersionReport,
|
|
353
353
|
readEnvelopeVersionReport,
|
|
354
|
+
readHeldToolState,
|
|
354
355
|
renames,
|
|
355
356
|
resolveFrameChildren,
|
|
356
357
|
resolveFrameView,
|
|
@@ -393,7 +394,7 @@ import {
|
|
|
393
394
|
widgetTypeFor,
|
|
394
395
|
widgets,
|
|
395
396
|
writeRuntimeResource
|
|
396
|
-
} from "./chunk-
|
|
397
|
+
} from "./chunk-Y7K6CHSF.js";
|
|
397
398
|
import "./chunk-RE4GDHFJ.js";
|
|
398
399
|
export {
|
|
399
400
|
Accepts,
|
|
@@ -748,6 +749,7 @@ export {
|
|
|
748
749
|
publishNavCut,
|
|
749
750
|
readDocVersionReport,
|
|
750
751
|
readEnvelopeVersionReport,
|
|
752
|
+
readHeldToolState,
|
|
751
753
|
renames,
|
|
752
754
|
resolveFrameChildren,
|
|
753
755
|
resolveFrameView,
|
package/dist/react.js
CHANGED
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
createDeskHost,
|
|
3
3
|
isEditableTarget,
|
|
4
4
|
keyboardClaimOf
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ZTY2VRIS.js";
|
|
6
6
|
import {
|
|
7
7
|
ActiveTool,
|
|
8
8
|
Container,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
tools,
|
|
29
29
|
trayOpen,
|
|
30
30
|
widgets
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-Y7K6CHSF.js";
|
|
32
32
|
import "./chunk-RE4GDHFJ.js";
|
|
33
33
|
|
|
34
34
|
// ../react/src/hooks.ts
|
|
@@ -619,12 +619,14 @@ var STYLE = `
|
|
|
619
619
|
[data-ice-selection-menu] .ice-sm-ink{width:28px;height:32px;border-radius:14px;display:grid;place-items:center}
|
|
620
620
|
[data-ice-selection-menu] .ice-sm-ink i{width:12px;height:12px;border-radius:50%;box-shadow:inset 0 0 0 1px rgb(255 255 255 / .16);transition:transform 160ms cubic-bezier(.3,1.4,.5,1),box-shadow 160ms ease}
|
|
621
621
|
[data-ice-selection-menu] .ice-sm-ink:hover i{transform:scale(1.18)}
|
|
622
|
+
[data-ice-selection-menu] .ice-sm-ink.is-dim{opacity:.38;cursor:default}
|
|
623
|
+
[data-ice-selection-menu] .ice-sm-ink.is-dim:hover i{transform:none}
|
|
622
624
|
[data-ice-selection-menu] .ice-sm-ink[data-on="true"] i{box-shadow:0 0 0 2px var(--ice-menu-ink-solid),0 0 0 3.5px var(--ice-menu-cream)}
|
|
623
625
|
`;
|
|
624
626
|
var shownOf = (a) => {
|
|
625
627
|
const held = a.held !== void 0 && !a.held.landing;
|
|
626
628
|
const landing = a.held?.landing === true;
|
|
627
|
-
const tools2 = held ? (a.held?.tools ?? []).map((t) => `${t.id}:${t.kind ?? ""}:${t.swatch ?? ""}`).join("|") : "";
|
|
629
|
+
const tools2 = held ? (a.held?.tools ?? []).map((t) => `${t.id}:${t.kind ?? ""}:${t.swatch ?? ""}:${t.enabled === false ? "off" : ""}:${t.label}:${typeof t.glyph === "object" ? `${t.glyph.path}${t.glyph.fill === true ? "#" : ""}` : t.glyph ?? ""}`).join("|") : "";
|
|
628
630
|
const menu = (a.menu ?? []).map((m) => `${m.id}:${m.label}`).join("|");
|
|
629
631
|
return { count: a.count, locked: a.locked, visible: a.count > 0 && a.box !== null || held, gesturing: a.gesturing || a.editing === true || landing, held, tools: tools2, active: held ? a.held?.active ?? "" : "", menu };
|
|
630
632
|
};
|
|
@@ -747,19 +749,21 @@ function SelectionMenu({ source, actions, engine: given }) {
|
|
|
747
749
|
return /* @__PURE__ */ jsx2("button", { type: "button", className: "ice-sm-btn is-dim", "data-tool": t.id, "data-glyph-missing": g.missing, "aria-label": t.label, "aria-disabled": "true", title: tip, tabIndex: -1, children: glyph }, t.id);
|
|
748
750
|
}
|
|
749
751
|
const on = t.kind === "mode" && t.id === shown.active;
|
|
752
|
+
const off = t.enabled === false;
|
|
750
753
|
return /* @__PURE__ */ jsx2(
|
|
751
754
|
"button",
|
|
752
755
|
{
|
|
753
756
|
type: "button",
|
|
754
|
-
className: t.swatch !== void 0 ? "ice-sm-ink" : "ice-sm-btn"
|
|
757
|
+
className: `${t.swatch !== void 0 ? "ice-sm-ink" : "ice-sm-btn"}${off ? " is-dim" : ""}`,
|
|
755
758
|
"data-tool": t.id,
|
|
756
759
|
"data-kind": t.kind,
|
|
757
760
|
"data-glyph-missing": g.missing,
|
|
758
761
|
"data-on": on ? "true" : void 0,
|
|
759
762
|
"aria-pressed": t.kind === "mode" ? on : void 0,
|
|
763
|
+
"aria-disabled": off ? "true" : void 0,
|
|
760
764
|
"aria-label": t.label,
|
|
761
765
|
title: tip,
|
|
762
|
-
onClick: () => {
|
|
766
|
+
onClick: off ? void 0 : () => {
|
|
763
767
|
setOpen(false);
|
|
764
768
|
engine.ops.useHeldTool(t.id);
|
|
765
769
|
},
|