@open-mercato/ui 0.6.6-develop.6465.1.019f0fb26f → 0.6.6-develop.6471.1.9ab5bdd79a
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/ai/AiChat.js +3 -3
- package/dist/ai/AiChat.js.map +2 -2
- package/dist/backend/CrudForm.js +19 -17
- package/dist/backend/CrudForm.js.map +2 -2
- package/dist/backend/DataTable.js +5 -5
- package/dist/backend/DataTable.js.map +2 -2
- package/dist/backend/JsonDisplay.js +3 -1
- package/dist/backend/JsonDisplay.js.map +2 -2
- package/dist/backend/confirm-dialog/useConfirmDialog.js +3 -3
- package/dist/backend/confirm-dialog/useConfirmDialog.js.map +2 -2
- package/dist/backend/dashboard/DashboardScreen.js +8 -6
- package/dist/backend/dashboard/DashboardScreen.js.map +2 -2
- package/dist/backend/dashboard/widgetRegistry.js +3 -1
- package/dist/backend/dashboard/widgetRegistry.js.map +2 -2
- package/dist/backend/detail/CustomDataSection.js +4 -2
- package/dist/backend/detail/CustomDataSection.js.map +2 -2
- package/dist/backend/detail/InlineEditors.js +3 -1
- package/dist/backend/detail/InlineEditors.js.map +2 -2
- package/dist/backend/detail/TagsSection.js +3 -1
- package/dist/backend/detail/TagsSection.js.map +2 -2
- package/dist/backend/injection/InjectionSpot.js +10 -8
- package/dist/backend/injection/InjectionSpot.js.map +2 -2
- package/dist/backend/injection/eventBridge.js +3 -1
- package/dist/backend/injection/eventBridge.js.map +2 -2
- package/dist/backend/injection/useGuardedMutation.js +3 -1
- package/dist/backend/injection/useGuardedMutation.js.map +2 -2
- package/dist/backend/injection/useInjectionDataWidgets.js +3 -1
- package/dist/backend/injection/useInjectionDataWidgets.js.map +2 -2
- package/dist/backend/injection/useRegisteredComponent.js +6 -9
- package/dist/backend/injection/useRegisteredComponent.js.map +2 -2
- package/dist/backend/injection/widgetRegistry.js +3 -1
- package/dist/backend/injection/widgetRegistry.js.map +2 -2
- package/dist/backend/inputs/LookupSelect.js +3 -1
- package/dist/backend/inputs/LookupSelect.js.map +2 -2
- package/dist/backend/notifications/NotificationDispatcher.js +4 -2
- package/dist/backend/notifications/NotificationDispatcher.js.map +2 -2
- package/dist/backend/sidebar/SidebarCustomizationEditor.js +7 -5
- package/dist/backend/sidebar/SidebarCustomizationEditor.js.map +2 -2
- package/dist/backend/utils/api.js +3 -1
- package/dist/backend/utils/api.js.map +2 -2
- package/dist/backend/utils/bulkDelete.js +4 -2
- package/dist/backend/utils/bulkDelete.js.map +2 -2
- package/dist/backend/version-history/VersionHistoryPanel.js +4 -2
- package/dist/backend/version-history/VersionHistoryPanel.js.map +2 -2
- package/dist/portal/hooks/usePortalDashboardWidgets.js +3 -1
- package/dist/portal/hooks/usePortalDashboardWidgets.js.map +2 -2
- package/dist/portal/hooks/usePortalEventBridge.js +3 -1
- package/dist/portal/hooks/usePortalEventBridge.js.map +2 -2
- package/dist/primitives/Notice.js +3 -3
- package/dist/primitives/Notice.js.map +2 -2
- package/dist/theme/ThemeProvider.js +4 -2
- package/dist/theme/ThemeProvider.js.map +2 -2
- package/package.json +3 -3
- package/src/ai/AiChat.tsx +4 -4
- package/src/backend/CrudForm.tsx +20 -17
- package/src/backend/DataTable.tsx +6 -9
- package/src/backend/JsonDisplay.tsx +4 -1
- package/src/backend/__tests__/component-replacement.test.tsx +1 -1
- package/src/backend/confirm-dialog/useConfirmDialog.tsx +4 -3
- package/src/backend/dashboard/DashboardScreen.tsx +9 -6
- package/src/backend/dashboard/widgetRegistry.ts +4 -1
- package/src/backend/detail/CustomDataSection.tsx +5 -2
- package/src/backend/detail/InlineEditors.tsx +4 -1
- package/src/backend/detail/TagsSection.tsx +4 -1
- package/src/backend/injection/InjectionSpot.tsx +11 -8
- package/src/backend/injection/eventBridge.ts +4 -1
- package/src/backend/injection/useGuardedMutation.ts +4 -1
- package/src/backend/injection/useInjectionDataWidgets.ts +4 -1
- package/src/backend/injection/useRegisteredComponent.tsx +7 -9
- package/src/backend/injection/widgetRegistry.ts +4 -1
- package/src/backend/inputs/LookupSelect.tsx +4 -1
- package/src/backend/notifications/NotificationDispatcher.ts +5 -2
- package/src/backend/sidebar/SidebarCustomizationEditor.tsx +8 -5
- package/src/backend/utils/__tests__/bulkDelete.test.ts +29 -23
- package/src/backend/utils/api.ts +4 -2
- package/src/backend/utils/bulkDelete.ts +5 -2
- package/src/backend/version-history/VersionHistoryPanel.tsx +5 -2
- package/src/portal/hooks/usePortalDashboardWidgets.ts +4 -1
- package/src/portal/hooks/usePortalEventBridge.ts +4 -1
- package/src/primitives/Notice.tsx +4 -4
- package/src/theme/ThemeProvider.tsx +5 -2
|
@@ -72,6 +72,8 @@ import {
|
|
|
72
72
|
useSortable
|
|
73
73
|
} from "@dnd-kit/sortable";
|
|
74
74
|
import { CSS } from "@dnd-kit/utilities";
|
|
75
|
+
import { createLogger } from "@open-mercato/shared/lib/logger";
|
|
76
|
+
const logger = createLogger("ui").child({ component: "DataTable" });
|
|
75
77
|
let refreshScheduled = false;
|
|
76
78
|
function scheduleRouterRefresh(router) {
|
|
77
79
|
if (refreshScheduled) return;
|
|
@@ -143,7 +145,7 @@ function collectUniqueById(entries, warningScope) {
|
|
|
143
145
|
if (!entry.id) continue;
|
|
144
146
|
if (byId.has(entry.id)) {
|
|
145
147
|
if (process.env.NODE_ENV !== "production") {
|
|
146
|
-
|
|
148
|
+
logger.warn("Duplicate injected id detected; keeping the first entry", { scope: warningScope, id: entry.id });
|
|
147
149
|
}
|
|
148
150
|
continue;
|
|
149
151
|
}
|
|
@@ -674,9 +676,7 @@ function DataTable({
|
|
|
674
676
|
}
|
|
675
677
|
if (!legacyAdvancedFilterWarnedRef.current && process.env.NODE_ENV !== "production") {
|
|
676
678
|
legacyAdvancedFilterWarnedRef.current = true;
|
|
677
|
-
|
|
678
|
-
"[DataTable] `advancedFilter.value` was passed as the legacy `AdvancedFilterState` shape. This bridge will be removed in the next minor version \u2014 migrate to the tree shape (`AdvancedFilterTree`, see `@open-mercato/shared/lib/query/advanced-filter-tree`)."
|
|
679
|
-
);
|
|
679
|
+
logger.warn("advancedFilter.value was passed as the legacy AdvancedFilterState shape. This bridge will be removed in the next minor version \u2014 migrate to the tree shape (AdvancedFilterTree, see @open-mercato/shared/lib/query/advanced-filter-tree).");
|
|
680
680
|
}
|
|
681
681
|
const legacy = advancedFilterInput;
|
|
682
682
|
return {
|
|
@@ -1260,7 +1260,7 @@ function DataTable({
|
|
|
1260
1260
|
...Object.keys(roleExpectedUpdatedAtByPerspectiveId).length > 0 ? { roleExpectedUpdatedAtByPerspectiveId } : {}
|
|
1261
1261
|
};
|
|
1262
1262
|
if (process.env.NODE_ENV !== "production") {
|
|
1263
|
-
|
|
1263
|
+
logger.debug("Perspective payload", { payload });
|
|
1264
1264
|
}
|
|
1265
1265
|
const existing = input.perspectiveId ? perspectiveData?.perspectives.find((p) => p.id === input.perspectiveId) ?? null : null;
|
|
1266
1266
|
return runPerspectiveMutation({
|