@nivaro/react 0.3.35 → 0.3.37
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/components/slots/CommentsSlot.js +44 -36
- package/dist/full.css +1 -1
- package/dist/hooks/useSessionRecorder.js +1 -1
- package/dist/index.d.ts +13 -4
- package/dist/shared/components/AgentBadge.js +26 -0
- package/dist/shared/components/AgentQuestionsCard.js +198 -0
- package/dist/shared/components/ItemEditForm.js +3329 -3263
- package/dist/shared/components/McpConnectionScope.js +480 -0
- package/dist/shared/components/MyWorkView.js +223 -208
- package/dist/shared/components/RecordReadView.js +620 -572
- package/dist/shared/components/chat/ChatPanel.js +683 -671
- package/dist/shared/components/imports/DownloadSampleButton.js +69 -0
- package/dist/shared/components/imports/ImportConsole.js +106 -104
- package/dist/shared/components/imports/RunDetailSheet.js +11 -10
- package/dist/shared/components/item-edit/FieldAffordances.js +32 -32
- package/dist/shared/components/item-edit/FormTour.js +279 -0
- package/dist/shared/components/item-edit/GroupSection.js +377 -360
- package/dist/shared/components/item-edit/PersonalDefaultControl.js +80 -63
- package/dist/shared/components/item-edit/entry/EntryStrip.js +30 -26
- package/dist/shared/components/item-edit/form-density.js +36 -0
- package/dist/shared/components/item-edit/useFormUsageBeacon.js +59 -46
- package/dist/shared/components/item-edit/usePersonalDefaults.js +312 -296
- package/dist/shared/components/layout-editor/AddPanel.js +349 -192
- package/dist/shared/components/layout-editor/DesignNode.js +146 -131
- package/dist/shared/components/layout-editor/EditorCanvas.js +25 -17
- package/dist/shared/components/layout-editor/EditorTopBar.js +268 -206
- package/dist/shared/components/layout-editor/LayoutEditor.js +810 -731
- package/dist/shared/components/layout-editor/PlaceTools.js +334 -0
- package/dist/shared/components/layout-editor/SlashInsert.js +252 -0
- package/dist/shared/components/layout-editor/StructureMenu.js +285 -242
- package/dist/shared/components/layout-editor/add-target.js +54 -43
- package/dist/shared/components/layout-editor/ai-forms/AiComposer.js +238 -155
- package/dist/shared/components/layout-editor/ai-forms/AiFormsButton.js +1 -1
- package/dist/shared/components/layout-editor/ai-forms/ai-forms-api.js +15 -12
- package/dist/shared/components/layout-editor/dnd/LayoutDndProvider.js +379 -185
- package/dist/shared/components/layout-editor/dnd/TrashZone.js +96 -0
- package/dist/shared/components/layout-editor/dnd/UndoChip.js +76 -0
- package/dist/shared/components/layout-editor/dnd/merge-drop.js +33 -0
- package/dist/shared/components/layout-editor/dnd/multi-drop.js +87 -0
- package/dist/shared/components/layout-editor/dnd/node.js +115 -105
- package/dist/shared/components/layout-editor/dnd/rail-drop.js +4 -4
- package/dist/shared/components/layout-editor/dnd/sensors.js +23 -0
- package/dist/shared/components/layout-editor/dnd/trash-drop.js +58 -0
- package/dist/shared/components/layout-editor/dnd/trash-links.js +97 -0
- package/dist/shared/components/layout-editor/even-row.js +86 -0
- package/dist/shared/components/layout-editor/field-list.js +99 -0
- package/dist/shared/components/layout-editor/format-painter.js +102 -0
- package/dist/shared/components/layout-editor/grid-guides.js +15 -13
- package/dist/shared/components/layout-editor/inspector/BehaviourSettings.js +150 -132
- package/dist/shared/components/layout-editor/inspector/BulkInspector.js +57 -53
- package/dist/shared/components/layout-editor/inspector/EvenRowAction.js +31 -0
- package/dist/shared/components/layout-editor/inspector/GroupInspector.js +154 -141
- package/dist/shared/components/layout-editor/inspector/Inspector.js +209 -178
- package/dist/shared/components/layout-editor/inspector/LookTab.js +106 -98
- package/dist/shared/components/layout-editor/inspector/RulesTab.js +38 -37
- package/dist/shared/components/layout-editor/inspector/kit.js +280 -223
- package/dist/shared/components/layout-editor/keyboard-move.js +15 -15
- package/dist/shared/components/layout-editor/lint/LabelStyle.js +201 -0
- package/dist/shared/components/layout-editor/lint/LintPanel.js +132 -84
- package/dist/shared/components/layout-editor/lint/lint-api.js +65 -28
- package/dist/shared/components/layout-editor/nav/NavTools.js +14 -12
- package/dist/shared/components/layout-editor/nav/ZoomControls.js +145 -0
- package/dist/shared/components/layout-editor/nav/useEditorNav.js +34 -32
- package/dist/shared/components/layout-editor/nav/view-prefs.js +100 -15
- package/dist/shared/components/layout-editor/outputs/LayoutFile.js +89 -0
- package/dist/shared/components/layout-editor/outputs/OutputsButton.js +272 -195
- package/dist/shared/components/layout-editor/outputs/layout-file-plan.js +176 -0
- package/dist/shared/components/layout-editor/outputs/output-api.js +71 -37
- package/dist/shared/components/layout-editor/overview/describe-conditions.js +16 -11
- package/dist/shared/components/layout-editor/overview/purpose.js +5 -5
- package/dist/shared/components/layout-editor/panel-frame.js +1 -1
- package/dist/shared/components/layout-editor/parity-keys.json.js +1 -1
- package/dist/shared/components/layout-editor/personal-default-marks.js +40 -0
- package/dist/shared/components/layout-editor/pin.js +37 -19
- package/dist/shared/components/layout-editor/place-clip.js +257 -0
- package/dist/shared/components/layout-editor/preview/PreviewModes.js +27 -26
- package/dist/shared/components/layout-editor/preview/PreviewPanes.js +149 -118
- package/dist/shared/components/layout-editor/preview/SampleRecord.js +113 -0
- package/dist/shared/components/layout-editor/preview/preview-model.js +79 -60
- package/dist/shared/components/layout-editor/preview/sample-record.js +105 -0
- package/dist/shared/components/layout-editor/removed-log.js +151 -0
- package/dist/shared/components/layout-editor/reuse/LibraryRows.js +109 -78
- package/dist/shared/components/layout-editor/reuse/linked-sections.js +373 -0
- package/dist/shared/components/layout-editor/revert-element.js +140 -0
- package/dist/shared/components/layout-editor/section-structure.js +193 -170
- package/dist/shared/components/layout-editor/settings/EntrySection.js +63 -45
- package/dist/shared/components/layout-editor/settings/LayoutSection.js +63 -32
- package/dist/shared/components/layout-editor/settings/ResolveSettings.js +179 -137
- package/dist/shared/components/layout-editor/settings/WhoSection.js +18 -17
- package/dist/shared/components/layout-editor/settings/settings-registry.js +24 -0
- package/dist/shared/components/layout-editor/shortcuts.js +21 -16
- package/dist/shared/components/layout-editor/structure-ops.js +221 -195
- package/dist/shared/components/layout-editor/usage/UsagePanel.js +133 -85
- package/dist/shared/components/layout-editor/usage/refusal-lens.js +130 -0
- package/dist/shared/components/layout-editor/usage/usage-api.js +12 -11
- package/dist/shared/components/panels/CommentPanel.js +47 -45
- package/dist/shared/components/panels/RevisionsPanel.js +66 -64
- package/dist/shared/components/panels/TaskPanel.js +395 -332
- package/dist/shared/components/profile/AgentsPanel.js +196 -147
- package/dist/shared/components/profile/ConnectionRollback.js +329 -0
- package/dist/shared/components/profile/MyDefaultsCard.js +526 -520
- package/dist/shared/lib/entry-config.js +22 -22
- package/dist/shared/lib/form-usage-beacon.js +91 -55
- package/dist/shared/lib/layout-lint.js +530 -284
- package/dist/shared/lib/layout-resolve.js +58 -44
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a = /^\d{4}-\d{2}-\d{2}$/, c = (t) => typeof t == "string" && a.test(t);
|
|
2
2
|
function o(t) {
|
|
3
3
|
let n = t;
|
|
4
4
|
if (typeof n == "string")
|
|
@@ -9,25 +9,25 @@ function o(t) {
|
|
|
9
9
|
}
|
|
10
10
|
return n && typeof n == "object" && !Array.isArray(n) ? n : null;
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function u(t, n, e) {
|
|
13
13
|
const r = { ...o(t) ?? {} };
|
|
14
14
|
return e == null ? delete r[n] : r[n] = e, Object.keys(r).length > 0 ? r : null;
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function s(t = /* @__PURE__ */ new Date()) {
|
|
17
17
|
const n = (e) => String(e).padStart(2, "0");
|
|
18
18
|
return `${t.getFullYear()}-${n(t.getMonth() + 1)}-${n(t.getDate())}`;
|
|
19
19
|
}
|
|
20
|
-
function
|
|
21
|
-
var
|
|
22
|
-
const n = o((
|
|
20
|
+
function w(t) {
|
|
21
|
+
var i;
|
|
22
|
+
const n = o((i = o(t)) == null ? void 0 : i.active_window);
|
|
23
23
|
if (!n) return null;
|
|
24
24
|
const e = c(n.from) ? n.from : null, r = c(n.until) ? n.until : null;
|
|
25
25
|
return e || r ? { from: e, until: r } : null;
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function g(t, n) {
|
|
28
28
|
return t ? t.from && n < t.from ? "before" : t.until && n > t.until ? "after" : "open" : null;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function l(t) {
|
|
31
31
|
return (/* @__PURE__ */ new Date(`${t}T00:00:00Z`)).toLocaleDateString(void 0, {
|
|
32
32
|
day: "numeric",
|
|
33
33
|
month: "short",
|
|
@@ -35,28 +35,39 @@ function i(t) {
|
|
|
35
35
|
timeZone: "UTC"
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
return t.from && t.until ? `${
|
|
38
|
+
function _(t) {
|
|
39
|
+
return t.from && t.until ? `${l(t.from)} – ${l(t.until)}` : t.from ? `from ${l(t.from)}` : `until ${l(t.until)}`;
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function O(t, n) {
|
|
42
42
|
const e = n.from || null, r = n.until || null;
|
|
43
43
|
return {
|
|
44
|
-
conditions:
|
|
44
|
+
conditions: u(
|
|
45
45
|
t,
|
|
46
46
|
"active_window",
|
|
47
47
|
e || r ? { ...e ? { from: e } : {}, ...r ? { until: r } : {} } : null
|
|
48
48
|
)
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function d(t) {
|
|
52
52
|
var e;
|
|
53
53
|
const n = Number((e = o(t)) == null ? void 0 : e.phone_of);
|
|
54
54
|
return Number.isInteger(n) && n > 0 ? n : null;
|
|
55
55
|
}
|
|
56
|
-
function
|
|
57
|
-
return { conditions:
|
|
56
|
+
function x(t, n) {
|
|
57
|
+
return { conditions: u(t, "phone_of", n) };
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function m(t) {
|
|
60
|
+
var e;
|
|
61
|
+
const n = Number((e = o(t)) == null ? void 0 : e.tablet_of);
|
|
62
|
+
return Number.isInteger(n) && n > 0 ? n : null;
|
|
63
|
+
}
|
|
64
|
+
function v(t, n) {
|
|
65
|
+
return { conditions: u(t, "tablet_of", n) };
|
|
66
|
+
}
|
|
67
|
+
function z(t) {
|
|
68
|
+
return d(t) ?? m(t);
|
|
69
|
+
}
|
|
70
|
+
function h(t) {
|
|
60
71
|
var e;
|
|
61
72
|
const n = o((e = o(t)) == null ? void 0 : e.freeze);
|
|
62
73
|
return !n || !c(n.until) ? null : {
|
|
@@ -67,47 +78,50 @@ function y(t) {
|
|
|
67
78
|
at: typeof n.at == "string" ? n.at : null
|
|
68
79
|
};
|
|
69
80
|
}
|
|
70
|
-
function
|
|
71
|
-
const e =
|
|
81
|
+
function $(t, n = s()) {
|
|
82
|
+
const e = h(t);
|
|
72
83
|
return e && n < e.until ? e : null;
|
|
73
84
|
}
|
|
74
|
-
function
|
|
75
|
-
return { conditions:
|
|
85
|
+
function S(t, n) {
|
|
86
|
+
return { conditions: u(t, "freeze", n) };
|
|
76
87
|
}
|
|
77
|
-
function
|
|
88
|
+
function y(t) {
|
|
78
89
|
var e;
|
|
79
90
|
const n = (e = o(t)) == null ? void 0 : e.lazy_sections;
|
|
80
91
|
return Array.isArray(n) ? [...new Set(n.filter((r) => typeof r == "string"))] : [];
|
|
81
92
|
}
|
|
82
|
-
function
|
|
83
|
-
const r =
|
|
84
|
-
return { conditions:
|
|
93
|
+
function D(t, n, e) {
|
|
94
|
+
const r = y(t).filter((f) => f !== n), i = e ? [...r, n] : r;
|
|
95
|
+
return { conditions: u(t, "lazy_sections", i.length ? i : null) };
|
|
85
96
|
}
|
|
86
|
-
const
|
|
87
|
-
function
|
|
88
|
-
var t;
|
|
97
|
+
const p = "(max-width: 639px)", b = "(min-width: 640px) and (max-width: 1023px), (min-width: 640px) and (max-width: 1366px) and (hover: none) and (pointer: coarse)";
|
|
98
|
+
function A() {
|
|
89
99
|
try {
|
|
90
|
-
return typeof window
|
|
100
|
+
return typeof window > "u" || !window.matchMedia ? null : window.matchMedia(p).matches ? "phone" : window.matchMedia(b).matches ? "tablet" : null;
|
|
91
101
|
} catch {
|
|
92
102
|
return null;
|
|
93
103
|
}
|
|
94
104
|
}
|
|
95
105
|
export {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
106
|
+
p as PHONE_QUERY,
|
|
107
|
+
b as TABLET_QUERY,
|
|
108
|
+
$ as activeFreeze,
|
|
109
|
+
w as activeWindowOf,
|
|
110
|
+
O as activeWindowPatch,
|
|
100
111
|
o as conditionsObject,
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
112
|
+
u as conditionsWithKey,
|
|
113
|
+
A as currentViewport,
|
|
114
|
+
l as dayWords,
|
|
115
|
+
h as freezeOf,
|
|
116
|
+
S as freezePatch,
|
|
117
|
+
D as lazySectionPatch,
|
|
118
|
+
y as lazySectionsOf,
|
|
119
|
+
s as localDay,
|
|
120
|
+
d as phoneOf,
|
|
121
|
+
x as phoneOfPatch,
|
|
122
|
+
z as screenVersionOf,
|
|
123
|
+
m as tabletOf,
|
|
124
|
+
v as tabletOfPatch,
|
|
125
|
+
g as windowState,
|
|
126
|
+
_ as windowWords
|
|
113
127
|
};
|