drawnui-react 0.1.0-preview.9 → 1.0.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/README.md +229 -22
- package/SKIPPED.md +37 -28
- package/dist/controls/AnimatedFramesRenderer.d.ts +9 -0
- package/dist/controls/AnimatedFramesRenderer.js +18 -1
- package/dist/controls/DrawnGame.d.ts +44 -0
- package/dist/controls/DrawnGame.js +82 -0
- package/dist/controls/GridStructure.d.ts +25 -3
- package/dist/controls/GridStructure.js +81 -5
- package/dist/controls/SkiaBackdrop.d.ts +8 -2
- package/dist/controls/SkiaBackdrop.js +42 -14
- package/dist/controls/SkiaButton.d.ts +17 -3
- package/dist/controls/SkiaButton.js +26 -8
- package/dist/controls/SkiaCarousel.d.ts +22 -3
- package/dist/controls/SkiaCarousel.js +85 -9
- package/dist/controls/SkiaCheckbox.d.ts +0 -1
- package/dist/controls/SkiaCheckbox.js +2 -7
- package/dist/controls/SkiaDrawer.d.ts +15 -0
- package/dist/controls/SkiaDrawer.js +42 -7
- package/dist/controls/SkiaEditor.d.ts +51 -2
- package/dist/controls/SkiaEditor.js +292 -58
- package/dist/controls/SkiaGif.d.ts +7 -0
- package/dist/controls/SkiaGif.js +25 -4
- package/dist/controls/SkiaImage.d.ts +10 -0
- package/dist/controls/SkiaImage.js +80 -19
- package/dist/controls/SkiaLabel.d.ts +200 -11
- package/dist/controls/SkiaLabel.js +925 -93
- package/dist/controls/SkiaLabelFps.d.ts +12 -0
- package/dist/controls/SkiaLabelFps.js +35 -0
- package/dist/controls/SkiaLayout.d.ts +89 -9
- package/dist/controls/SkiaLayout.js +397 -23
- package/dist/controls/SkiaLottie.js +5 -3
- package/dist/controls/SkiaProgress.d.ts +2 -1
- package/dist/controls/SkiaProgress.js +8 -5
- package/dist/controls/SkiaRadioButton.d.ts +2 -0
- package/dist/controls/SkiaRadioButton.js +16 -4
- package/dist/controls/SkiaRichLabel.d.ts +1 -1
- package/dist/controls/SkiaRichLabel.js +11 -1
- package/dist/controls/SkiaScroll.d.ts +86 -7
- package/dist/controls/SkiaScroll.js +361 -40
- package/dist/controls/SkiaScrollBar.d.ts +27 -0
- package/dist/controls/SkiaScrollBar.js +51 -2
- package/dist/controls/SkiaShaderCarousel.d.ts +11 -1
- package/dist/controls/SkiaShaderCarousel.js +27 -5
- package/dist/controls/SkiaShape.d.ts +15 -2
- package/dist/controls/SkiaShape.js +57 -10
- package/dist/controls/SkiaShell.d.ts +282 -0
- package/dist/controls/SkiaShell.js +972 -0
- package/dist/controls/SkiaSlider.d.ts +20 -2
- package/dist/controls/SkiaSlider.js +61 -7
- package/dist/controls/SkiaSprite.d.ts +4 -0
- package/dist/controls/SkiaSprite.js +27 -11
- package/dist/controls/SkiaSvg.d.ts +4 -0
- package/dist/controls/SkiaSvg.js +28 -4
- package/dist/controls/SkiaSwitch.d.ts +0 -1
- package/dist/controls/SkiaSwitch.js +4 -8
- package/dist/controls/SkiaToggle.d.ts +25 -5
- package/dist/controls/SkiaToggle.js +58 -5
- package/dist/controls/SnappingLayout.d.ts +12 -1
- package/dist/controls/SnappingLayout.js +21 -2
- package/dist/controls/TooltipStyle.d.ts +52 -0
- package/dist/controls/TooltipStyle.js +88 -0
- package/dist/core/Accessibility.d.ts +162 -11
- package/dist/core/Accessibility.js +882 -22
- package/dist/core/Animators.d.ts +37 -1
- package/dist/core/Animators.js +102 -9
- package/dist/core/Canvas.d.ts +307 -8
- package/dist/core/Canvas.js +1202 -66
- package/dist/core/ControlStyle.d.ts +2 -0
- package/dist/core/ControlStyle.js +2 -0
- package/dist/core/DesignerActions.d.ts +32 -0
- package/dist/core/DesignerActions.js +68 -0
- package/dist/core/Easing.d.ts +12 -1
- package/dist/core/Easing.js +25 -1
- package/dist/core/Gestures.d.ts +86 -2
- package/dist/core/Gestures.js +184 -4
- package/dist/core/Hover.d.ts +51 -0
- package/dist/core/Hover.js +140 -0
- package/dist/core/ImageEffects.d.ts +2 -0
- package/dist/core/ImageEffects.js +2 -0
- package/dist/core/KeyboardManager.d.ts +40 -0
- package/dist/core/KeyboardManager.js +98 -8
- package/dist/core/PopupWindows.d.ts +94 -0
- package/dist/core/PopupWindows.js +207 -0
- package/dist/core/Props.d.ts +11 -0
- package/dist/core/Props.js +44 -0
- package/dist/core/ScrollAnimators.d.ts +6 -0
- package/dist/core/ScrollAnimators.js +16 -1
- package/dist/core/Shaping.d.ts +40 -0
- package/dist/core/Shaping.js +224 -0
- package/dist/core/SkiaControl.d.ts +306 -13
- package/dist/core/SkiaControl.js +681 -75
- package/dist/core/SkiaEffect.d.ts +29 -1
- package/dist/core/SkiaEffect.js +78 -16
- package/dist/core/SkiaImageManager.d.ts +101 -18
- package/dist/core/SkiaImageManager.js +318 -63
- package/dist/core/Styles.js +7 -1
- package/dist/core/Super.d.ts +33 -2
- package/dist/core/Super.js +58 -12
- package/dist/core/TextInputProxy.d.ts +31 -1
- package/dist/core/TextInputProxy.js +97 -15
- package/dist/core/Tooltips.d.ts +71 -0
- package/dist/core/Tooltips.js +205 -0
- package/dist/core/Types.d.ts +11 -1
- package/dist/core/Types.js +32 -1
- package/dist/core/ViewsAdapter.d.ts +7 -2
- package/dist/core/ViewsAdapter.js +10 -3
- package/dist/index.d.ts +8 -0
- package/dist/index.js +8 -0
- package/dist/react/SkiaShell.d.ts +8 -74
- package/dist/react/SkiaShell.js +163 -475
- package/dist/react/index.d.ts +48 -4
- package/dist/react/index.js +210 -43
- package/dist/react/reconciler.d.ts +32 -0
- package/dist/react/reconciler.js +71 -40
- package/dist/vite/index.d.ts +9 -0
- package/dist/vite/index.js +36 -3
- package/package.json +103 -5
package/dist/react/reconciler.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { createContext } from "react";
|
|
2
2
|
import Reconciler from "react-reconciler";
|
|
3
3
|
import { ConcurrentRoot, DefaultEventPriority } from "react-reconciler/constants";
|
|
4
|
+
import { ApplyProps as applyProps } from "../core/Props";
|
|
4
5
|
import { SkiaLabel } from "../controls/SkiaLabel";
|
|
5
6
|
import { TextSpan } from "../controls/TextSpan";
|
|
6
7
|
import { SkiaRichLabel } from "../controls/SkiaRichLabel";
|
|
8
|
+
import { SkiaLabelFps } from "../controls/SkiaLabelFps";
|
|
7
9
|
import { SkiaSwitch } from "../controls/SkiaSwitch";
|
|
8
10
|
import { SkiaCheckbox } from "../controls/SkiaCheckbox";
|
|
9
11
|
import { SkiaRadioButton } from "../controls/SkiaRadioButton";
|
|
@@ -12,7 +14,7 @@ import { SkiaSlider } from "../controls/SkiaSlider";
|
|
|
12
14
|
import { SkiaCarousel } from "../controls/SkiaCarousel";
|
|
13
15
|
import { SkiaShaderCarousel } from "../controls/SkiaShaderCarousel";
|
|
14
16
|
import { SkiaDrawer } from "../controls/SkiaDrawer";
|
|
15
|
-
import { SkiaGrid, SkiaLayer, SkiaLayout, SkiaRow, SkiaStack, SkiaWrap } from "../controls/SkiaLayout";
|
|
17
|
+
import { SkiaGrid, SkiaLayer, SkiaLayout, SkiaMasonry, SkiaRow, SkiaStack, SkiaWrap } from "../controls/SkiaLayout";
|
|
16
18
|
import { SkiaHotspot } from "../controls/SkiaHotspot";
|
|
17
19
|
import { SkiaButton } from "../controls/SkiaButton";
|
|
18
20
|
import { SkiaImage } from "../controls/SkiaImage";
|
|
@@ -31,43 +33,47 @@ import { SkiaScroll } from "../controls/SkiaScroll";
|
|
|
31
33
|
import { SkiaFrame, SkiaShape } from "../controls/SkiaShape";
|
|
32
34
|
/** JSX tag name -> engine class. Add a control here to expose it to React. */
|
|
33
35
|
export const Registry = {
|
|
34
|
-
SkiaLayout, SkiaStack, SkiaRow, SkiaLayer, SkiaWrap, SkiaGrid, SkiaDecoratedGrid, SkiaBackdrop, SkiaEditor, SkiaSprite, SkiaSpriteSet, SkiaLabel, SkiaRichLabel, TextSpan, SkiaHotspot, SkiaButton, SkiaImage, SkiaImageTiles, SkiaSvg, SkiaLottie, SkiaGif, SkiaScroll, SkiaScrollBar, RefreshIndicator, SkiaShape, SkiaFrame,
|
|
36
|
+
SkiaLayout, SkiaStack, SkiaRow, SkiaLayer, SkiaWrap, SkiaMasonry, SkiaGrid, SkiaDecoratedGrid, SkiaBackdrop, SkiaEditor, SkiaSprite, SkiaSpriteSet, SkiaLabel, SkiaLabelFps, SkiaRichLabel, TextSpan, SkiaHotspot, SkiaButton, SkiaImage, SkiaImageTiles, SkiaSvg, SkiaLottie, SkiaGif, SkiaScroll, SkiaScrollBar, RefreshIndicator, SkiaShape, SkiaFrame,
|
|
35
37
|
SkiaSwitch, SkiaCheckbox, SkiaRadioButton, SkiaProgress, SkiaSlider, SkiaCarousel, SkiaShaderCarousel, SkiaDrawer,
|
|
36
38
|
};
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
39
|
+
// DrawnUI Designer, dev builds only: the React fiber that created each control (DesignerSourceOf). Vite replaces
|
|
40
|
+
// import.meta.env.DEV, false in production builds, so the map and its use compile away; without Vite it is undefined
|
|
41
|
+
// and nothing is kept.
|
|
42
|
+
const designerSources = import.meta.env?.DEV ? new WeakMap() : undefined;
|
|
40
43
|
/**
|
|
41
|
-
*
|
|
42
|
-
*
|
|
44
|
+
* The JSX element that created `control`, for DrawnUI Designer: its fiber, owner component and source position (parsed
|
|
45
|
+
* from the fiber's stack only when asked). Undefined in production builds and for controls made outside React.
|
|
43
46
|
*/
|
|
44
|
-
function
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
47
|
+
export function DesignerSourceOf(control) {
|
|
48
|
+
if (!import.meta.env?.DEV)
|
|
49
|
+
return undefined;
|
|
50
|
+
const fiber = designerSources?.get(control);
|
|
51
|
+
if (!fiber)
|
|
52
|
+
return undefined;
|
|
53
|
+
const owner = fiber._debugOwner?.type;
|
|
54
|
+
const stack = fiber._debugStack?.stack;
|
|
55
|
+
const source = { Fiber: fiber, Component: typeof owner === "string" ? owner : owner?.displayName ?? owner?.name, Stack: stack };
|
|
56
|
+
// React's stack: "Error: react-stack-top-frame", the jsx runtime's own frame, then the frame that wrote the JSX
|
|
57
|
+
// ("at Card (url-or-path:line:col)", or "at url-or-path:line:col" for an anonymous function)
|
|
58
|
+
const frames = stack?.split("\n").filter((l) => /^\s*at /.test(l)) ?? [];
|
|
59
|
+
const m = frames.length > 1 ? /^\s*at (?:.*? \()?(.+?):(\d+):(\d+)\)?\s*$/.exec(frames[1]) : null;
|
|
60
|
+
if (m) {
|
|
61
|
+
source.File = m[1];
|
|
62
|
+
source.Line = Number(m[2]);
|
|
63
|
+
source.Column = Number(m[3]);
|
|
56
64
|
}
|
|
57
|
-
|
|
58
|
-
for (const k in prev)
|
|
59
|
-
if (!SKIP.has(k) && !(k in next)) {
|
|
60
|
-
inst[k] = new inst.constructor()[k];
|
|
61
|
-
changed = true;
|
|
62
|
-
}
|
|
63
|
-
if (changed && prev)
|
|
64
|
-
inst.Update();
|
|
65
|
-
else if (repaint && prev)
|
|
66
|
-
inst.RepaintComposition?.();
|
|
65
|
+
return source;
|
|
67
66
|
}
|
|
68
67
|
let currentUpdatePriority = DefaultEventPriority;
|
|
69
68
|
const noop = () => { };
|
|
70
69
|
const hostContext = {};
|
|
70
|
+
function appendChild(parent, child) {
|
|
71
|
+
if (parent instanceof SkiaLayout)
|
|
72
|
+
return parent.InsertChild(child);
|
|
73
|
+
child.IsChildrenItem = true;
|
|
74
|
+
parent.AddSubView(child);
|
|
75
|
+
}
|
|
76
|
+
const IsDrawnContainer = (c) => typeof c.appendChild === "function";
|
|
71
77
|
// Record<string, unknown> absorbs members that react-reconciler 0.33 reads but @types 0.32 does not declare yet.
|
|
72
78
|
const hostConfig = {
|
|
73
79
|
supportsMutation: true,
|
|
@@ -80,7 +86,7 @@ const hostConfig = {
|
|
|
80
86
|
cancelTimeout: clearTimeout,
|
|
81
87
|
supportsMicrotasks: true,
|
|
82
88
|
scheduleMicrotask: queueMicrotask,
|
|
83
|
-
createInstance(type, props) {
|
|
89
|
+
createInstance(type, props, _root, _host, fiber) {
|
|
84
90
|
const ctor = Registry[type];
|
|
85
91
|
if (!ctor)
|
|
86
92
|
throw new Error(`DrawnUi: unknown control <${type}>`);
|
|
@@ -88,24 +94,40 @@ const hostConfig = {
|
|
|
88
94
|
// ConfigureStyles defaults first, the JSX props below override them (a TextSpan is not a control, it has none)
|
|
89
95
|
inst.ApplyInitialStyles?.(true);
|
|
90
96
|
applyProps(inst, null, props);
|
|
97
|
+
if (import.meta.env?.DEV)
|
|
98
|
+
designerSources.set(inst, fiber);
|
|
91
99
|
return inst;
|
|
92
100
|
},
|
|
93
101
|
createTextInstance(text) {
|
|
94
102
|
throw new Error(`DrawnUi: raw text "${text}" is not allowed, use <SkiaLabel Text="..." />`);
|
|
95
103
|
},
|
|
96
|
-
|
|
97
|
-
|
|
104
|
+
// JSX children are the app's children (C# IsChildrenItem): a layout keeps them in JSX order inside the slots they
|
|
105
|
+
// occupy, so its own parts keep their place; an existing child passed again is a move
|
|
106
|
+
appendInitialChild: (parent, child) => appendChild(parent, child),
|
|
107
|
+
appendChild: (parent, child) => appendChild(parent, child),
|
|
98
108
|
insertBefore: (parent, child, before) => {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
109
|
+
if (parent instanceof SkiaLayout)
|
|
110
|
+
return parent.InsertChild(child, before);
|
|
111
|
+
child.IsChildrenItem = true;
|
|
112
|
+
parent.InsertSubView(parent instanceof SkiaLabel ? parent.Spans.indexOf(before) : 0, child);
|
|
102
113
|
},
|
|
103
114
|
removeChild: (parent, child) => parent.RemoveSubView(child),
|
|
104
|
-
appendChildToContainer: (
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
115
|
+
appendChildToContainer: (c, child) => { if (IsDrawnContainer(c))
|
|
116
|
+
c.appendChild(child);
|
|
117
|
+
else
|
|
118
|
+
c.Content = child; },
|
|
119
|
+
insertInContainerBefore: (c, child, before) => { if (IsDrawnContainer(c))
|
|
120
|
+
c.insertBefore(child, before);
|
|
121
|
+
else
|
|
122
|
+
c.Content = child; },
|
|
123
|
+
removeChildFromContainer: (c, child) => { if (IsDrawnContainer(c))
|
|
124
|
+
c.removeChild(child);
|
|
125
|
+
else if (c.Content === child)
|
|
126
|
+
c.Content = undefined; },
|
|
127
|
+
clearContainer: (c) => { if (IsDrawnContainer(c))
|
|
128
|
+
c.clear();
|
|
129
|
+
else
|
|
130
|
+
c.Content = undefined; },
|
|
109
131
|
commitUpdate: (inst, _type, prev, next) => applyProps(inst, prev, next),
|
|
110
132
|
commitTextUpdate: noop,
|
|
111
133
|
commitMount: noop,
|
|
@@ -152,11 +174,20 @@ const hostConfig = {
|
|
|
152
174
|
};
|
|
153
175
|
const reconciler = Reconciler(hostConfig);
|
|
154
176
|
const onError = (e) => console.error("DrawnUi.React:", e);
|
|
177
|
+
/** Renders `children` into `container` from inside another React tree (contexts reach it), as react-dom createPortal. */
|
|
178
|
+
export function createDrawnPortal(children, container, key) {
|
|
179
|
+
return reconciler.createPortal(children, container, null, key);
|
|
180
|
+
}
|
|
155
181
|
/** Creates a React root whose container is an engine Canvas. */
|
|
156
182
|
export function createDrawnRoot(canvas) {
|
|
157
183
|
const container = reconciler.createContainer(canvas, ConcurrentRoot, null, false, null, "", onError, onError, onError, noop, null);
|
|
158
184
|
return {
|
|
159
185
|
render(children) { reconciler.updateContainer(children, container, null, null); },
|
|
186
|
+
/** Renders and commits now: the container holds the drawn controls when it returns. */
|
|
187
|
+
renderSync(children) {
|
|
188
|
+
const r = reconciler;
|
|
189
|
+
r.flushSyncFromReconciler(() => reconciler.updateContainer(children, container, null, null));
|
|
190
|
+
},
|
|
160
191
|
unmount() { reconciler.updateContainer(null, container, null, null); },
|
|
161
192
|
};
|
|
162
193
|
}
|
package/dist/vite/index.d.ts
CHANGED
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
import type { Plugin } from "vite";
|
|
2
|
+
/**
|
|
3
|
+
* Versioned addresses for the files of the public folder (fonts, images, sprites, shaders, Lottie, favicon). Their
|
|
4
|
+
* names never change, and a browser or CDN may keep them for hours, so after a publish a returning visitor could
|
|
5
|
+
* get new code with an old file. On build every public file gets a short content hash: index.html receives the map
|
|
6
|
+
* as `globalThis.DrawnUiAssetStamps` (read by `Super.ResolveAssetUrl`, which every engine loader fetches through)
|
|
7
|
+
* and its own `href` / `src` links to public files get `?v=<hash>`. A changed file gets a new address, an unchanged
|
|
8
|
+
* one keeps its address and stays cached. Bundled files (hashed names) need nothing. The dev server is left alone.
|
|
9
|
+
*/
|
|
10
|
+
export declare function drawnUiAssetStamps(): Plugin;
|
|
2
11
|
export interface DrawnUiStaticOptions {
|
|
3
12
|
/**
|
|
4
13
|
* Pages to generate, as URL hashes / paths appended to the site root ("" = the root page, "#/shapes"...).
|
package/dist/vite/index.js
CHANGED
|
@@ -1,9 +1,42 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Vite helpers for DrawnUi.React apps: `import { drawnUiStatic } from "drawnui-react/vite"`.
|
|
2
|
+
* Vite helpers for DrawnUi.React apps: `import { drawnUiStatic, drawnUiAssetStamps } from "drawnui-react/vite"`.
|
|
3
3
|
* Build-time only; the runtime bundle never imports this module and the frame loop knows nothing about it.
|
|
4
4
|
*/
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { createHash } from "node:crypto";
|
|
6
|
+
import { readdirSync, readFileSync, statSync, writeFileSync } from "node:fs";
|
|
7
|
+
import { join, resolve } from "node:path";
|
|
8
|
+
/**
|
|
9
|
+
* Versioned addresses for the files of the public folder (fonts, images, sprites, shaders, Lottie, favicon). Their
|
|
10
|
+
* names never change, and a browser or CDN may keep them for hours, so after a publish a returning visitor could
|
|
11
|
+
* get new code with an old file. On build every public file gets a short content hash: index.html receives the map
|
|
12
|
+
* as `globalThis.DrawnUiAssetStamps` (read by `Super.ResolveAssetUrl`, which every engine loader fetches through)
|
|
13
|
+
* and its own `href` / `src` links to public files get `?v=<hash>`. A changed file gets a new address, an unchanged
|
|
14
|
+
* one keeps its address and stays cached. Bundled files (hashed names) need nothing. The dev server is left alone.
|
|
15
|
+
*/
|
|
16
|
+
export function drawnUiAssetStamps() {
|
|
17
|
+
let stamps = {};
|
|
18
|
+
return {
|
|
19
|
+
name: "drawnui-asset-stamps",
|
|
20
|
+
apply: "build",
|
|
21
|
+
configResolved(config) {
|
|
22
|
+
const dir = config.publicDir;
|
|
23
|
+
if (!dir)
|
|
24
|
+
return;
|
|
25
|
+
for (const rel of readdirSync(dir, { recursive: true })) {
|
|
26
|
+
const file = join(dir, rel);
|
|
27
|
+
if (statSync(file).isFile())
|
|
28
|
+
stamps[rel.replace(/\\/g, "/")] = createHash("sha256").update(readFileSync(file)).digest("hex").slice(0, 10);
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
transformIndexHtml(html) {
|
|
32
|
+
const stamped = html.replace(/\b(href|src)="([^"?#:]+)"/g, (m, attr, url) => {
|
|
33
|
+
const v = stamps[url.replace(/^\.?\//, "")];
|
|
34
|
+
return v ? `${attr}="${url}?v=${v}"` : m;
|
|
35
|
+
});
|
|
36
|
+
return { html: stamped, tags: [{ tag: "script", children: `globalThis.DrawnUiAssetStamps=${JSON.stringify(stamps)}`, injectTo: "head-prepend" }] };
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
}
|
|
7
40
|
/**
|
|
8
41
|
* Generates visible, semantic HTML for crawlers and AI agents from the app's own accessibility tree, at build time.
|
|
9
42
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "drawnui-react",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "DrawnUi for React: the DrawnUi (.NET) drawn-UI engine in TypeScript on CanvasKit (Skia WASM). Same controls, same PascalCase API as DrawnUi.Net.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Nick Kovalsky (AppoMobi)",
|
|
@@ -53,15 +53,113 @@
|
|
|
53
53
|
"typecheck": "tsc --noEmit",
|
|
54
54
|
"build": "tsc --noEmit && node dev/build-samples.mjs",
|
|
55
55
|
"sync:skills": "node dev/sync-skills.mjs",
|
|
56
|
+
"check:recycling": "node dev/check.mjs dev/check-recycling.ts",
|
|
57
|
+
"check:keyboard": "node dev/check.mjs dev/check-keyboard.ts",
|
|
58
|
+
"check:wheel": "node dev/check.mjs dev/check-wheel.ts",
|
|
59
|
+
"check:children": "node dev/check.mjs dev/check-children.tsx",
|
|
60
|
+
"check:composite": "node dev/check.mjs dev/check-composite.tsx",
|
|
61
|
+
"check:hover": "node dev/check.mjs dev/check-hover.ts",
|
|
62
|
+
"check:grid-label": "node dev/check.mjs dev/check-grid-label.ts",
|
|
63
|
+
"check:snap": "node dev/check.mjs dev/check-snap.ts",
|
|
64
|
+
"check:game": "node dev/check.mjs dev/check-game.ts",
|
|
65
|
+
"check:animation": "node dev/check.mjs dev/check-animation.ts",
|
|
66
|
+
"check:shape": "node dev/check.mjs dev/check-shape.ts",
|
|
67
|
+
"check:label": "node dev/check.mjs dev/check-label.ts",
|
|
68
|
+
"check:label-baseline": "node dev/check.mjs dev/check-label-baseline.ts",
|
|
69
|
+
"check:image": "node dev/check.mjs dev/check-image.ts",
|
|
70
|
+
"check:longpress": "node dev/check.mjs dev/check-longpress.ts",
|
|
71
|
+
"check:hidden": "node dev/check.mjs dev/check-hidden.ts",
|
|
72
|
+
"check:shell": "node dev/check.mjs dev/check-shell.tsx",
|
|
73
|
+
"check:shell-core": "node dev/check.mjs dev/check-shell-core.ts",
|
|
74
|
+
"check:wheel-routing": "node dev/check.mjs dev/check-wheel-routing.ts",
|
|
75
|
+
"check:velocity": "node dev/check.mjs dev/check-velocity.ts",
|
|
76
|
+
"check:scroll-index": "node dev/check.mjs dev/check-scroll-index.ts",
|
|
77
|
+
"check:scroll-chaining": "node dev/check.mjs dev/check-scroll-chaining.ts",
|
|
78
|
+
"check:culling": "node dev/check.mjs dev/check-culling.ts",
|
|
79
|
+
"check:responds": "node dev/check.mjs dev/check-responds.ts",
|
|
80
|
+
"check:3d": "node dev/check.mjs dev/check-3d.ts",
|
|
81
|
+
"check:gesture-owner": "node dev/check.mjs dev/check-gesture-owner.ts",
|
|
82
|
+
"check:shader-cache": "node dev/check.mjs dev/check-shader-cache.ts",
|
|
83
|
+
"check:shader-content": "node dev/check.mjs dev/check-shader-content.ts",
|
|
84
|
+
"check:shader-time": "node dev/check.mjs dev/check-shader-time.ts",
|
|
85
|
+
"check:backdrop": "node dev/check.mjs dev/check-backdrop.ts",
|
|
86
|
+
"check:masonry": "node dev/check.mjs dev/check-masonry.ts",
|
|
87
|
+
"check:thickness": "node dev/check.mjs dev/check-thickness.ts",
|
|
88
|
+
"check:scroll-recycled": "node dev/check.mjs dev/check-scroll-recycled.ts",
|
|
89
|
+
"check:masonry-keys": "node dev/check.mjs dev/check-masonry-keys.ts",
|
|
90
|
+
"check:carousel-swipe": "node dev/check.mjs dev/check-carousel-swipe.ts",
|
|
91
|
+
"check:editor-focus": "node dev/check.mjs dev/check-editor-focus.ts",
|
|
92
|
+
"check:editor-lines": "node dev/check.mjs dev/check-editor-lines.ts",
|
|
93
|
+
"check:shaping": "node dev/check.mjs dev/check-shaping.ts",
|
|
94
|
+
"check:editor-rtl": "node dev/check.mjs dev/check-editor-rtl.ts",
|
|
95
|
+
"check:label-direction": "node dev/check.mjs dev/check-label-direction.ts",
|
|
96
|
+
"check:stack-fit": "node dev/check.mjs dev/check-stack-fit.ts",
|
|
97
|
+
"check:label-reuse": "node dev/check.mjs dev/check-label-reuse.ts",
|
|
98
|
+
"check:layout-rules": "node dev/check.mjs dev/check-layout-rules.ts",
|
|
99
|
+
"check:popups-tooltips": "node dev/check.mjs dev/check-popups-tooltips.ts",
|
|
100
|
+
"check:carousel-loop": "node dev/check.mjs dev/check-carousel-loop.ts",
|
|
101
|
+
"check:release": "node dev/check.mjs dev/check-release.tsx",
|
|
102
|
+
"check:designer-dev": "node dev/check.mjs dev/check-designer-dev.tsx",
|
|
103
|
+
"check:keyboard-wrap": "node dev/check.mjs dev/check-keyboard-wrap.ts",
|
|
104
|
+
"check:removed": "node dev/check.mjs dev/check-removed.ts",
|
|
105
|
+
"check:key-routing": "node dev/check.mjs dev/check-key-routing.ts",
|
|
106
|
+
"check:drawer-interrupted": "node dev/check.mjs dev/check-drawer-interrupted.ts",
|
|
107
|
+
"check:animated-frames": "node dev/check.mjs dev/check-animated-frames.ts",
|
|
108
|
+
"check:image-features": "node dev/check.mjs dev/check-image-features.ts",
|
|
109
|
+
"check:shader-carousel-interrupted": "node dev/check.mjs dev/check-shader-carousel-interrupted.ts",
|
|
110
|
+
"check:shell-modal": "node dev/check.mjs dev/check-shell-modal.tsx",
|
|
111
|
+
"check:multitouch": "node dev/check.mjs dev/check-multitouch.ts",
|
|
112
|
+
"check:openlink-nonstop": "node dev/check.mjs dev/check-openlink-nonstop.ts",
|
|
113
|
+
"check:scroll-size": "node dev/check.mjs dev/check-scroll-size.ts",
|
|
114
|
+
"check:ripple-primary": "node dev/check.mjs dev/check-ripple-primary.ts",
|
|
115
|
+
"check:stack-margins": "node dev/check.mjs dev/check-stack-margins.ts",
|
|
116
|
+
"check:fallback-single": "node dev/check.mjs dev/check-fallback-single.ts",
|
|
117
|
+
"check:composite-effect": "node dev/check.mjs dev/check-composite-effect.ts",
|
|
118
|
+
"check:keyboard-contextmenu": "node dev/check.mjs dev/check-keyboard-contextmenu.ts",
|
|
119
|
+
"check:editor-window": "node dev/check.mjs dev/check-editor-window.ts",
|
|
120
|
+
"check:system-theme": "node dev/check.mjs dev/check-system-theme.ts",
|
|
121
|
+
"check:designer-actions": "node dev/check.mjs dev/check-designer-actions.tsx",
|
|
122
|
+
"check:dialog-a11y": "node dev/check.mjs dev/check-dialog-a11y.ts",
|
|
123
|
+
"check:label-span-effects": "node dev/check.mjs dev/check-label-span-effects.ts",
|
|
124
|
+
"check:animator-isolation": "node dev/check.mjs dev/check-animator-isolation.ts",
|
|
125
|
+
"check:a11y-opacity": "node dev/check.mjs dev/check-a11y-opacity.ts",
|
|
126
|
+
"check:a11y-presentational": "node dev/check.mjs dev/check-a11y-presentational.ts",
|
|
127
|
+
"check:password-a11y": "node dev/check.mjs dev/check-password-a11y.ts",
|
|
128
|
+
"check:fps-label": "node dev/check.mjs dev/check-fps-label.ts",
|
|
129
|
+
"check:release-velocity": "node dev/check.mjs dev/check-release-velocity.ts",
|
|
130
|
+
"check:quiet-animations": "node dev/check.mjs dev/check-quiet-animations.ts",
|
|
131
|
+
"check:skew-sign": "node dev/check.mjs dev/check-skew-sign.ts",
|
|
132
|
+
"check:styles-code": "node dev/check.mjs dev/check-styles-code.ts",
|
|
133
|
+
"check:composite-removed": "node dev/check.mjs dev/check-composite-removed.ts",
|
|
134
|
+
"audit:a11y": "node dev/audit-a11y.mjs",
|
|
135
|
+
"bench:relayout": "node dev/check.mjs dev/bench-relayout.ts",
|
|
56
136
|
"site:extras": "node dev/site-extras.mjs dist/demo",
|
|
57
137
|
"build:lib": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\" && tsc -p tsconfig.build.json",
|
|
58
138
|
"prepublishOnly": "npm run build:lib",
|
|
59
|
-
"preview": "vite preview samples/demo"
|
|
139
|
+
"preview": "vite preview samples/demo",
|
|
140
|
+
"check:add3d": "node dev/check.mjs dev/check-add3d.ts",
|
|
141
|
+
"check:parent-independent": "node dev/check.mjs dev/check-parent-independent.ts",
|
|
142
|
+
"check:update-while-recording": "node dev/check.mjs dev/check-update-while-recording.ts",
|
|
143
|
+
"check:image-cache": "node dev/check.mjs dev/check-image-cache.ts",
|
|
144
|
+
"browser:canvas-contexts": "node dev/check-canvas-contexts.mjs",
|
|
145
|
+
"check:editor-wheel": "node dev/check.mjs dev/check-editor-wheel.ts",
|
|
146
|
+
"check:reading-order": "node dev/check.mjs dev/check-reading-order.ts",
|
|
147
|
+
"check:editor-rightpress": "node dev/check.mjs dev/check-editor-rightpress.ts",
|
|
148
|
+
"browser:touch-contextmenu": "node dev/check-touch-contextmenu.mjs",
|
|
149
|
+
"browser:text-selection": "node dev/check-text-selection.mjs",
|
|
150
|
+
"browser:tab-scroll": "node dev/check-tab-scroll.mjs",
|
|
151
|
+
"check:recycled-doublebuffer": "node dev/check.mjs dev/check-recycled-doublebuffer.ts",
|
|
152
|
+
"check:add3d-framing": "node dev/check.mjs dev/check-add3d-framing.ts",
|
|
153
|
+
"check:label-selection": "node dev/check.mjs dev/check-label-selection.ts",
|
|
154
|
+
"check:frame-errors": "node dev/check.mjs dev/check-frame-errors.ts",
|
|
155
|
+
"browser:editor-keyboard": "node dev/check-editor-keyboard.mjs",
|
|
156
|
+
"browser:double-tap": "node dev/check-double-tap.mjs",
|
|
157
|
+
"check:scroll-keyboard": "node dev/check.mjs dev/check-scroll-keyboard.ts"
|
|
60
158
|
},
|
|
61
159
|
"peerDependencies": {
|
|
62
160
|
"playwright-core": ">=1.40",
|
|
63
|
-
"react": "^
|
|
64
|
-
"react-dom": "^
|
|
161
|
+
"react": "^19.2.0",
|
|
162
|
+
"react-dom": "^19.2.0",
|
|
65
163
|
"vite": ">=5"
|
|
66
164
|
},
|
|
67
165
|
"peerDependenciesMeta": {
|
|
@@ -86,6 +184,6 @@
|
|
|
86
184
|
"react": "^19.2.0",
|
|
87
185
|
"react-dom": "^19.2.0",
|
|
88
186
|
"typescript": "^5.9.0",
|
|
89
|
-
"vite": "^7.
|
|
187
|
+
"vite": "^7.3.7"
|
|
90
188
|
}
|
|
91
189
|
}
|