@open-mercato/ui 0.4.11-develop.2631.481e9df5b0 → 0.5.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/.turbo/turbo-build.log +2 -2
- package/AGENTS.md +28 -4
- package/agentic/standalone-guide.md +97 -0
- package/build.mjs +10 -6
- package/dist/backend/AppShell.js +15 -2
- package/dist/backend/AppShell.js.map +2 -2
- package/dist/backend/DataTable.js +22 -1
- package/dist/backend/DataTable.js.map +2 -2
- package/dist/backend/detail/CustomDataSection.js +1 -5
- package/dist/backend/detail/CustomDataSection.js.map +2 -2
- package/dist/backend/detail/InlineEditors.js +2 -5
- package/dist/backend/detail/InlineEditors.js.map +2 -2
- package/dist/backend/detail/NotesSection.js +2 -6
- package/dist/backend/detail/NotesSection.js.map +2 -2
- package/dist/backend/icons/lucideRegistry.generated.js +93 -3
- package/dist/backend/icons/lucideRegistry.generated.js.map +2 -2
- package/dist/backend/markdown/MarkdownContent.js +47 -4
- package/dist/backend/markdown/MarkdownContent.js.map +2 -2
- package/dist/portal/PortalShell.js +41 -11
- package/dist/portal/PortalShell.js.map +2 -2
- package/dist/portal/hooks/usePortalDashboardWidgets.js +40 -1
- package/dist/portal/hooks/usePortalDashboardWidgets.js.map +2 -2
- package/dist/portal/utils/nav.js +84 -0
- package/dist/portal/utils/nav.js.map +7 -0
- package/package.json +13 -9
- package/src/backend/AppShell.tsx +22 -2
- package/src/backend/DataTable.tsx +28 -5
- package/src/backend/__tests__/AppShell.test.tsx +67 -0
- package/src/backend/__tests__/FormHeader.test.tsx +0 -1
- package/src/backend/detail/CustomDataSection.tsx +1 -10
- package/src/backend/detail/InlineEditors.tsx +3 -15
- package/src/backend/detail/NotesSection.tsx +5 -14
- package/src/backend/icons/lucideRegistry.generated.tsx +93 -3
- package/src/backend/injection/__tests__/resolveInjectedIcon.test.tsx +7 -0
- package/src/backend/markdown/MarkdownContent.tsx +76 -6
- package/src/backend/section-page/types.ts +1 -0
- package/src/portal/PortalShell.tsx +43 -11
- package/src/portal/hooks/__tests__/usePortalDashboardWidgets.test.tsx +117 -0
- package/src/portal/hooks/usePortalDashboardWidgets.ts +55 -1
- package/src/portal/utils/__tests__/nav.test.ts +199 -0
- package/src/portal/utils/nav.ts +150 -0
|
@@ -433,7 +433,28 @@ function ExportMenu({ config, sections }) {
|
|
|
433
433
|
] });
|
|
434
434
|
}
|
|
435
435
|
function sanitizeDndContextId(value) {
|
|
436
|
-
const
|
|
436
|
+
const trimmed = value.trim().toLowerCase();
|
|
437
|
+
let normalized = "";
|
|
438
|
+
let previousWasDash = false;
|
|
439
|
+
for (const character of trimmed) {
|
|
440
|
+
const isLowercaseLetter = character >= "a" && character <= "z";
|
|
441
|
+
const isDigit = character >= "0" && character <= "9";
|
|
442
|
+
if (isLowercaseLetter || isDigit || character === "_") {
|
|
443
|
+
normalized += character;
|
|
444
|
+
previousWasDash = false;
|
|
445
|
+
continue;
|
|
446
|
+
}
|
|
447
|
+
if (!previousWasDash) {
|
|
448
|
+
normalized += "-";
|
|
449
|
+
previousWasDash = true;
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
while (normalized.startsWith("-")) {
|
|
453
|
+
normalized = normalized.slice(1);
|
|
454
|
+
}
|
|
455
|
+
while (normalized.endsWith("-")) {
|
|
456
|
+
normalized = normalized.slice(0, -1);
|
|
457
|
+
}
|
|
437
458
|
return normalized.length > 0 ? normalized : "data-table";
|
|
438
459
|
}
|
|
439
460
|
function HeaderDndWrapper({ enabled, contextId, sensors, columnIds, onDragEnd, children }) {
|