@nivaro/react 0.3.143 → 0.3.145
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/full.css +1 -1
- package/dist/hooks/useSessionRecorder.js +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/shared/components/RecordReadView.js +610 -542
- package/dist/shared/components/layout-editor/DesignNode.js +181 -169
- package/dist/shared/components/layout-editor/LayoutEditor.js +334 -326
- package/dist/shared/components/layout-editor/explain/CanvasRules.js +72 -61
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@ import { noteReplayIdle as Me, createReplayIdleState as Ne, REPLAY_IDLE_RESTART_
|
|
|
10
10
|
import { noteReplayEvent as Ue, createReplayCheckoutState as We } from "../shared/lib/replay-checkout.js";
|
|
11
11
|
import { instrumentConsole as He, instrumentRequests as Ke, redactSecrets as $e } from "../shared/lib/replay-context.js";
|
|
12
12
|
import { instrumentSocket as Be } from "../shared/lib/replay-socket.js";
|
|
13
|
-
const ze = "nivaro-react@0.3.
|
|
13
|
+
const ze = "nivaro-react@0.3.145", V = 1e4, Ye = 150, xe = 3e3, je = 600, Ge = (o) => `nvr_replay_resume${o ? `:${o}` : ""}`, X = () => typeof navigator > "u" || navigator.onLine !== !1;
|
|
14
14
|
function Je(o) {
|
|
15
15
|
return typeof o.url != "string" || typeof fetch != "function" ? null : (f, u) => {
|
|
16
16
|
const l = typeof o.getToken == "function" ? o.getToken() : void 0, d = { "Content-Type": "application/json" };
|
package/dist/index.d.ts
CHANGED
|
@@ -3263,7 +3263,9 @@ declare interface DesignMark {
|
|
|
3263
3263
|
tip?: string;
|
|
3264
3264
|
highlight?: boolean;
|
|
3265
3265
|
/** A small icon before the text (a pinned section's pin, #2628; a personal-default field's person). */
|
|
3266
|
-
icon?: 'pin' | 'person' | 'link';
|
|
3266
|
+
icon?: 'pin' | 'person' | 'link' | 'required' | 'readonly' | 'hidden' | 'filled';
|
|
3267
|
+
/** Show the icon alone (the text becomes its tip and label): rule-state tags fit a narrow cell. */
|
|
3268
|
+
iconOnly?: boolean;
|
|
3267
3269
|
/**
|
|
3268
3270
|
* Where the tag ranks when a node has more than fit (DesignNode shows two,
|
|
3269
3271
|
* then "+n"): `preview` (a preview mode's own tag) ranks with the role
|
|
@@ -6917,6 +6919,8 @@ declare interface LayoutDesign {
|
|
|
6917
6919
|
ghost?(field: string): string | null;
|
|
6918
6920
|
/** #2701: the width handle on a selected field set its width (12, 6, 4 or 3 columns). */
|
|
6919
6921
|
resizeWidth?(t: DesignTarget, span: number): void;
|
|
6922
|
+
/** Draw a dotted edge on every field (a read view, where a field is bare text). */
|
|
6923
|
+
fieldOutline?: boolean;
|
|
6920
6924
|
/** #3194: nodes inside a linked library section never drag (they change in the library). */
|
|
6921
6925
|
locked?(t: DesignTarget): boolean;
|
|
6922
6926
|
}
|