@almadar/ui 5.161.0 → 5.162.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/avl/index.cjs +3 -3
- package/dist/avl/index.js +3 -3
- package/dist/components/index.cjs +3 -3
- package/dist/components/index.d.cts +3 -3
- package/dist/components/index.d.ts +3 -3
- package/dist/components/index.js +3 -3
- package/dist/providers/index.cjs +3 -3
- package/dist/providers/index.js +3 -3
- package/dist/runtime/index.cjs +3 -3
- package/dist/runtime/index.js +3 -3
- package/package.json +3 -3
package/dist/avl/index.cjs
CHANGED
|
@@ -39435,7 +39435,7 @@ function renderIconInput4(icon, props) {
|
|
|
39435
39435
|
return typeof icon === "string" ? /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: icon, ...props }) : /* @__PURE__ */ jsxRuntime.jsx(Icon, { icon, ...props });
|
|
39436
39436
|
}
|
|
39437
39437
|
function DocumentPanel({
|
|
39438
|
-
|
|
39438
|
+
id,
|
|
39439
39439
|
title,
|
|
39440
39440
|
subtitle,
|
|
39441
39441
|
value,
|
|
@@ -39455,14 +39455,14 @@ function DocumentPanel({
|
|
|
39455
39455
|
const eventBus = useEventBus();
|
|
39456
39456
|
const { t } = hooks.useTranslate();
|
|
39457
39457
|
const [titleDraft, setTitleDraft] = React94.useState(null);
|
|
39458
|
-
const recordId =
|
|
39458
|
+
const recordId = id ?? "";
|
|
39459
39459
|
const actionDefs = actions ?? [];
|
|
39460
39460
|
const inlineCap = Math.min(maxInlineActions ?? 1, 1);
|
|
39461
39461
|
const inlineActions = actionDefs.filter((a) => a.variant === "primary").slice(0, inlineCap);
|
|
39462
39462
|
const menuActions = actionDefs.filter((a) => !inlineActions.includes(a));
|
|
39463
39463
|
const fireAction = (action) => {
|
|
39464
39464
|
if (!action.event) return;
|
|
39465
|
-
eventBus.emit(`UI:${action.event}`, { id: recordId,
|
|
39465
|
+
eventBus.emit(`UI:${action.event}`, { id: recordId, title: title ?? "" });
|
|
39466
39466
|
};
|
|
39467
39467
|
const commitTitle = () => {
|
|
39468
39468
|
if (!titleCommitEvent) return;
|
package/dist/avl/index.js
CHANGED
|
@@ -39359,7 +39359,7 @@ function renderIconInput4(icon, props) {
|
|
|
39359
39359
|
return typeof icon === "string" ? /* @__PURE__ */ jsx(Icon, { name: icon, ...props }) : /* @__PURE__ */ jsx(Icon, { icon, ...props });
|
|
39360
39360
|
}
|
|
39361
39361
|
function DocumentPanel({
|
|
39362
|
-
|
|
39362
|
+
id,
|
|
39363
39363
|
title,
|
|
39364
39364
|
subtitle,
|
|
39365
39365
|
value,
|
|
@@ -39379,14 +39379,14 @@ function DocumentPanel({
|
|
|
39379
39379
|
const eventBus = useEventBus();
|
|
39380
39380
|
const { t } = useTranslate();
|
|
39381
39381
|
const [titleDraft, setTitleDraft] = useState(null);
|
|
39382
|
-
const recordId =
|
|
39382
|
+
const recordId = id ?? "";
|
|
39383
39383
|
const actionDefs = actions ?? [];
|
|
39384
39384
|
const inlineCap = Math.min(maxInlineActions ?? 1, 1);
|
|
39385
39385
|
const inlineActions = actionDefs.filter((a) => a.variant === "primary").slice(0, inlineCap);
|
|
39386
39386
|
const menuActions = actionDefs.filter((a) => !inlineActions.includes(a));
|
|
39387
39387
|
const fireAction = (action) => {
|
|
39388
39388
|
if (!action.event) return;
|
|
39389
|
-
eventBus.emit(`UI:${action.event}`, { id: recordId,
|
|
39389
|
+
eventBus.emit(`UI:${action.event}`, { id: recordId, title: title ?? "" });
|
|
39390
39390
|
};
|
|
39391
39391
|
const commitTitle = () => {
|
|
39392
39392
|
if (!titleCommitEvent) return;
|
|
@@ -38199,7 +38199,7 @@ function renderIconInput4(icon, props) {
|
|
|
38199
38199
|
return typeof icon === "string" ? /* @__PURE__ */ jsxRuntime.jsx(exports.Icon, { name: icon, ...props }) : /* @__PURE__ */ jsxRuntime.jsx(exports.Icon, { icon, ...props });
|
|
38200
38200
|
}
|
|
38201
38201
|
function DocumentPanel({
|
|
38202
|
-
|
|
38202
|
+
id,
|
|
38203
38203
|
title,
|
|
38204
38204
|
subtitle,
|
|
38205
38205
|
value,
|
|
@@ -38219,14 +38219,14 @@ function DocumentPanel({
|
|
|
38219
38219
|
const eventBus = useEventBus();
|
|
38220
38220
|
const { t } = hooks.useTranslate();
|
|
38221
38221
|
const [titleDraft, setTitleDraft] = React77.useState(null);
|
|
38222
|
-
const recordId =
|
|
38222
|
+
const recordId = id ?? "";
|
|
38223
38223
|
const actionDefs = actions ?? [];
|
|
38224
38224
|
const inlineCap = Math.min(maxInlineActions ?? 1, 1);
|
|
38225
38225
|
const inlineActions = actionDefs.filter((a) => a.variant === "primary").slice(0, inlineCap);
|
|
38226
38226
|
const menuActions = actionDefs.filter((a) => !inlineActions.includes(a));
|
|
38227
38227
|
const fireAction = (action) => {
|
|
38228
38228
|
if (!action.event) return;
|
|
38229
|
-
eventBus.emit(`UI:${action.event}`, { id: recordId,
|
|
38229
|
+
eventBus.emit(`UI:${action.event}`, { id: recordId, title: title ?? "" });
|
|
38230
38230
|
};
|
|
38231
38231
|
const commitTitle = () => {
|
|
38232
38232
|
if (!titleCommitEvent) return;
|
|
@@ -8875,8 +8875,8 @@ interface DocumentPanelAction {
|
|
|
8875
8875
|
* @capabilities document page, note editor, wiki page, article editor, writing surface, rich text document, content editing canvas
|
|
8876
8876
|
*/
|
|
8877
8877
|
interface DocumentPanelProps {
|
|
8878
|
-
/** The
|
|
8879
|
-
|
|
8878
|
+
/** The record's id — carried on every commit and action event. */
|
|
8879
|
+
id?: string;
|
|
8880
8880
|
/** Document title (falls back to "Untitled" for a blank draft) */
|
|
8881
8881
|
title?: string;
|
|
8882
8882
|
/** Muted byline under the title; hidden when empty */
|
|
@@ -8916,7 +8916,7 @@ interface DocumentPanelProps {
|
|
|
8916
8916
|
placeholder?: string;
|
|
8917
8917
|
className?: string;
|
|
8918
8918
|
}
|
|
8919
|
-
declare function DocumentPanel({
|
|
8919
|
+
declare function DocumentPanel({ id, title, subtitle, value, actions, maxInlineActions, editing, titleCommitEvent, contentChangeEvent, editEvent, doneEvent, editLabel, doneLabel, autosaveHint, placeholder, className, }: DocumentPanelProps): React__default.ReactElement;
|
|
8920
8920
|
|
|
8921
8921
|
/**
|
|
8922
8922
|
* DocumentDetails Molecule
|
|
@@ -8875,8 +8875,8 @@ interface DocumentPanelAction {
|
|
|
8875
8875
|
* @capabilities document page, note editor, wiki page, article editor, writing surface, rich text document, content editing canvas
|
|
8876
8876
|
*/
|
|
8877
8877
|
interface DocumentPanelProps {
|
|
8878
|
-
/** The
|
|
8879
|
-
|
|
8878
|
+
/** The record's id — carried on every commit and action event. */
|
|
8879
|
+
id?: string;
|
|
8880
8880
|
/** Document title (falls back to "Untitled" for a blank draft) */
|
|
8881
8881
|
title?: string;
|
|
8882
8882
|
/** Muted byline under the title; hidden when empty */
|
|
@@ -8916,7 +8916,7 @@ interface DocumentPanelProps {
|
|
|
8916
8916
|
placeholder?: string;
|
|
8917
8917
|
className?: string;
|
|
8918
8918
|
}
|
|
8919
|
-
declare function DocumentPanel({
|
|
8919
|
+
declare function DocumentPanel({ id, title, subtitle, value, actions, maxInlineActions, editing, titleCommitEvent, contentChangeEvent, editEvent, doneEvent, editLabel, doneLabel, autosaveHint, placeholder, className, }: DocumentPanelProps): React__default.ReactElement;
|
|
8920
8920
|
|
|
8921
8921
|
/**
|
|
8922
8922
|
* DocumentDetails Molecule
|
package/dist/components/index.js
CHANGED
|
@@ -38124,7 +38124,7 @@ function renderIconInput4(icon, props) {
|
|
|
38124
38124
|
return typeof icon === "string" ? /* @__PURE__ */ jsx(Icon, { name: icon, ...props }) : /* @__PURE__ */ jsx(Icon, { icon, ...props });
|
|
38125
38125
|
}
|
|
38126
38126
|
function DocumentPanel({
|
|
38127
|
-
|
|
38127
|
+
id,
|
|
38128
38128
|
title,
|
|
38129
38129
|
subtitle,
|
|
38130
38130
|
value,
|
|
@@ -38144,14 +38144,14 @@ function DocumentPanel({
|
|
|
38144
38144
|
const eventBus = useEventBus();
|
|
38145
38145
|
const { t } = useTranslate();
|
|
38146
38146
|
const [titleDraft, setTitleDraft] = useState(null);
|
|
38147
|
-
const recordId =
|
|
38147
|
+
const recordId = id ?? "";
|
|
38148
38148
|
const actionDefs = actions ?? [];
|
|
38149
38149
|
const inlineCap = Math.min(maxInlineActions ?? 1, 1);
|
|
38150
38150
|
const inlineActions = actionDefs.filter((a) => a.variant === "primary").slice(0, inlineCap);
|
|
38151
38151
|
const menuActions = actionDefs.filter((a) => !inlineActions.includes(a));
|
|
38152
38152
|
const fireAction = (action) => {
|
|
38153
38153
|
if (!action.event) return;
|
|
38154
|
-
eventBus.emit(`UI:${action.event}`, { id: recordId,
|
|
38154
|
+
eventBus.emit(`UI:${action.event}`, { id: recordId, title: title ?? "" });
|
|
38155
38155
|
};
|
|
38156
38156
|
const commitTitle = () => {
|
|
38157
38157
|
if (!titleCommitEvent) return;
|
package/dist/providers/index.cjs
CHANGED
|
@@ -37161,7 +37161,7 @@ function renderIconInput4(icon, props) {
|
|
|
37161
37161
|
return typeof icon === "string" ? /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: icon, ...props }) : /* @__PURE__ */ jsxRuntime.jsx(Icon, { icon, ...props });
|
|
37162
37162
|
}
|
|
37163
37163
|
function DocumentPanel({
|
|
37164
|
-
|
|
37164
|
+
id,
|
|
37165
37165
|
title,
|
|
37166
37166
|
subtitle,
|
|
37167
37167
|
value,
|
|
@@ -37181,14 +37181,14 @@ function DocumentPanel({
|
|
|
37181
37181
|
const eventBus = useEventBus();
|
|
37182
37182
|
const { t } = hooks.useTranslate();
|
|
37183
37183
|
const [titleDraft, setTitleDraft] = React87.useState(null);
|
|
37184
|
-
const recordId =
|
|
37184
|
+
const recordId = id ?? "";
|
|
37185
37185
|
const actionDefs = actions ?? [];
|
|
37186
37186
|
const inlineCap = Math.min(maxInlineActions ?? 1, 1);
|
|
37187
37187
|
const inlineActions = actionDefs.filter((a) => a.variant === "primary").slice(0, inlineCap);
|
|
37188
37188
|
const menuActions = actionDefs.filter((a) => !inlineActions.includes(a));
|
|
37189
37189
|
const fireAction = (action) => {
|
|
37190
37190
|
if (!action.event) return;
|
|
37191
|
-
eventBus.emit(`UI:${action.event}`, { id: recordId,
|
|
37191
|
+
eventBus.emit(`UI:${action.event}`, { id: recordId, title: title ?? "" });
|
|
37192
37192
|
};
|
|
37193
37193
|
const commitTitle = () => {
|
|
37194
37194
|
if (!titleCommitEvent) return;
|
package/dist/providers/index.js
CHANGED
|
@@ -37087,7 +37087,7 @@ function renderIconInput4(icon, props) {
|
|
|
37087
37087
|
return typeof icon === "string" ? /* @__PURE__ */ jsx(Icon, { name: icon, ...props }) : /* @__PURE__ */ jsx(Icon, { icon, ...props });
|
|
37088
37088
|
}
|
|
37089
37089
|
function DocumentPanel({
|
|
37090
|
-
|
|
37090
|
+
id,
|
|
37091
37091
|
title,
|
|
37092
37092
|
subtitle,
|
|
37093
37093
|
value,
|
|
@@ -37107,14 +37107,14 @@ function DocumentPanel({
|
|
|
37107
37107
|
const eventBus = useEventBus();
|
|
37108
37108
|
const { t } = useTranslate();
|
|
37109
37109
|
const [titleDraft, setTitleDraft] = useState(null);
|
|
37110
|
-
const recordId =
|
|
37110
|
+
const recordId = id ?? "";
|
|
37111
37111
|
const actionDefs = actions ?? [];
|
|
37112
37112
|
const inlineCap = Math.min(maxInlineActions ?? 1, 1);
|
|
37113
37113
|
const inlineActions = actionDefs.filter((a) => a.variant === "primary").slice(0, inlineCap);
|
|
37114
37114
|
const menuActions = actionDefs.filter((a) => !inlineActions.includes(a));
|
|
37115
37115
|
const fireAction = (action) => {
|
|
37116
37116
|
if (!action.event) return;
|
|
37117
|
-
eventBus.emit(`UI:${action.event}`, { id: recordId,
|
|
37117
|
+
eventBus.emit(`UI:${action.event}`, { id: recordId, title: title ?? "" });
|
|
37118
37118
|
};
|
|
37119
37119
|
const commitTitle = () => {
|
|
37120
37120
|
if (!titleCommitEvent) return;
|
package/dist/runtime/index.cjs
CHANGED
|
@@ -36524,7 +36524,7 @@ function renderIconInput4(icon, props) {
|
|
|
36524
36524
|
return typeof icon === "string" ? /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: icon, ...props }) : /* @__PURE__ */ jsxRuntime.jsx(Icon, { icon, ...props });
|
|
36525
36525
|
}
|
|
36526
36526
|
function DocumentPanel({
|
|
36527
|
-
|
|
36527
|
+
id,
|
|
36528
36528
|
title,
|
|
36529
36529
|
subtitle,
|
|
36530
36530
|
value,
|
|
@@ -36544,14 +36544,14 @@ function DocumentPanel({
|
|
|
36544
36544
|
const eventBus = useEventBus();
|
|
36545
36545
|
const { t } = hooks.useTranslate();
|
|
36546
36546
|
const [titleDraft, setTitleDraft] = React85.useState(null);
|
|
36547
|
-
const recordId =
|
|
36547
|
+
const recordId = id ?? "";
|
|
36548
36548
|
const actionDefs = actions ?? [];
|
|
36549
36549
|
const inlineCap = Math.min(maxInlineActions ?? 1, 1);
|
|
36550
36550
|
const inlineActions = actionDefs.filter((a) => a.variant === "primary").slice(0, inlineCap);
|
|
36551
36551
|
const menuActions = actionDefs.filter((a) => !inlineActions.includes(a));
|
|
36552
36552
|
const fireAction = (action) => {
|
|
36553
36553
|
if (!action.event) return;
|
|
36554
|
-
eventBus.emit(`UI:${action.event}`, { id: recordId,
|
|
36554
|
+
eventBus.emit(`UI:${action.event}`, { id: recordId, title: title ?? "" });
|
|
36555
36555
|
};
|
|
36556
36556
|
const commitTitle = () => {
|
|
36557
36557
|
if (!titleCommitEvent) return;
|
package/dist/runtime/index.js
CHANGED
|
@@ -36450,7 +36450,7 @@ function renderIconInput4(icon, props) {
|
|
|
36450
36450
|
return typeof icon === "string" ? /* @__PURE__ */ jsx(Icon, { name: icon, ...props }) : /* @__PURE__ */ jsx(Icon, { icon, ...props });
|
|
36451
36451
|
}
|
|
36452
36452
|
function DocumentPanel({
|
|
36453
|
-
|
|
36453
|
+
id,
|
|
36454
36454
|
title,
|
|
36455
36455
|
subtitle,
|
|
36456
36456
|
value,
|
|
@@ -36470,14 +36470,14 @@ function DocumentPanel({
|
|
|
36470
36470
|
const eventBus = useEventBus();
|
|
36471
36471
|
const { t } = useTranslate();
|
|
36472
36472
|
const [titleDraft, setTitleDraft] = useState(null);
|
|
36473
|
-
const recordId =
|
|
36473
|
+
const recordId = id ?? "";
|
|
36474
36474
|
const actionDefs = actions ?? [];
|
|
36475
36475
|
const inlineCap = Math.min(maxInlineActions ?? 1, 1);
|
|
36476
36476
|
const inlineActions = actionDefs.filter((a) => a.variant === "primary").slice(0, inlineCap);
|
|
36477
36477
|
const menuActions = actionDefs.filter((a) => !inlineActions.includes(a));
|
|
36478
36478
|
const fireAction = (action) => {
|
|
36479
36479
|
if (!action.event) return;
|
|
36480
|
-
eventBus.emit(`UI:${action.event}`, { id: recordId,
|
|
36480
|
+
eventBus.emit(`UI:${action.event}`, { id: recordId, title: title ?? "" });
|
|
36481
36481
|
};
|
|
36482
36482
|
const commitTitle = () => {
|
|
36483
36483
|
if (!titleCommitEvent) return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@almadar/ui",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.162.0",
|
|
4
4
|
"description": "React UI components, hooks, and providers for Almadar",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -118,11 +118,11 @@
|
|
|
118
118
|
"access": "public"
|
|
119
119
|
},
|
|
120
120
|
"dependencies": {
|
|
121
|
-
"@almadar/core": "^10.
|
|
121
|
+
"@almadar/core": "^10.72.0",
|
|
122
122
|
"@almadar/evaluator": "^2.42.0",
|
|
123
123
|
"@almadar/logger": "^1.11.0",
|
|
124
124
|
"@almadar/runtime": "^6.62.0",
|
|
125
|
-
"@almadar/std": "^16.
|
|
125
|
+
"@almadar/std": "^16.191.0",
|
|
126
126
|
"@almadar/syntax": "^1.15.0",
|
|
127
127
|
"@dnd-kit/core": "^6.3.1",
|
|
128
128
|
"@dnd-kit/sortable": "^10.0.0",
|