@ethisyscore/plugin-ui 1.93.0 → 1.95.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/README.md CHANGED
@@ -23,7 +23,8 @@ and the shared MUI component surface externalised to the host's instances.
23
23
  | `./components/shared` | `ConfirmActionDialog`, `ConfirmDeleteDialog`, `useToast`, `showSuccessToast` / `showErrorToast` / `showWarningToast` | Composite confirmation dialogs and toast notifications |
24
24
  | `./components/data-grid` | `PersistentDataGrid`, `setGridUserId` / `getGridUserId`, `buildDataGridPaginationProps`, `PAGE_SIZE_OPTIONS` / `DEFAULT_PAGE_SIZE`, grid-state persistence helpers | The shared list-page grid with per-user state persistence. Needs the **optional peer** `@mui/x-data-grid` |
25
25
  | `./components/date` | `DateInput` / `DateInputProps`, `toIsoString` / `parseIsoValue`, `DATE_INPUT_MIN` / `DATE_INPUT_MAX`, `DateInputType` | The shared date / datetime field over MUI X pickers, speaking ISO strings. Needs the **optional peers** `@mui/x-date-pickers` and `dayjs` |
26
- | `./components/connectors` | `MappingCompletenessBanner`, `ConnectorMappingTranslationEditorView`, `selectRequiredIncompleteOperations` / `selectOptionalIncompleteOperations` / `selectIncompleteOperations` / `selectMappingReadiness`, `connectorMappingsQueryKey` / `connectorMappingCompletenessQueryKey`, `MappingCompletenessItem` / `MappingCompletenessResult`, `ConnectorCanonicalField` / `TestToolMappingRequest` / `TestToolMappingResult` / `ConnectorMappingSuggestionResult` | The shared Tool Mappings surface for any module that reaches an external system through a connector — the completeness banner plus the per-mapping field-translation editor. Needs the **optional peer** `@mui/material`. Carries three fixes a copy loses: the banner says FIELDS rather than tools, the completeness query key is nested under the mappings key so one invalidation covers both, and the editor's "Test mapping" button is gated on `onTestMapping` (an ungated copy renders a dead control for a caller wiring only auto-configure) with `?? []` tolerance on both canonical field lists |
26
+ | `./components/connectors` | `ConnectorMappingView`, `MappingCompletenessBanner`, `ConnectorMappingTranslationEditorView`, `selectRequiredIncompleteOperations` / `selectOptionalIncompleteOperations` / `selectIncompleteOperations` / `selectMappingReadiness`, `connectorMappingsQueryKey` / `connectorMappingCompletenessQueryKey`, `MappingCompletenessItem` / `MappingCompletenessResult`, `ConnectorCanonicalField` / `TestToolMappingRequest` / `TestToolMappingResult` / `ConnectorMappingSuggestionResult` | The PRESENTATIONAL half of the shared Tool Mappings surface, for any module that reaches an external system through a connector — the mapping table, the completeness banner and the per-mapping field-translation editor. Needs the **optional peer** `@mui/material`. Carries four fixes a copy loses: the banner says FIELDS rather than tools, the completeness query key is nested under the mappings key so one invalidation covers both, the editor's "Test mapping" button is gated on `onTestMapping` (an ungated copy renders a dead control for a caller wiring only auto-configure) with `?? []` tolerance on both canonical field lists, and the view's unmapped-required warning is NOT gated on `aiAvailable` (a keyword-only auto-match always reports false, which made the one warning an operator must act on unreachable) |
27
+ | `./connector-mappings` | `ConnectorMappingService` / `CONNECTOR_MAPPING_TOOLS`, `useConnectorToolMappings`, `useConnectorMappings` / `useConnectorMappingCompleteness`, `useConnectorMappingMutations`, `useMappingTranslationEditor`, `useAutoMatchOnConnectorSwitch`, `useMappingBannerDismissal`, `useSuggestMappingTranslation` / `useTestMapping`, `mapConnectorsToOptions` / `mapConnectorToolsToOptions`, `ConnectorMappingItem` / `AutoMatchResponse` / `ConnectorMappingWriteArgs` | The DATA half of the same surface: the `connectors:mappings:*` MCP service plus every react-query hook a Tool Mappings page needs, composed by `useConnectorToolMappings` into the three prop bundles the components take. Needs the **optional peer** `@tanstack/react-query`, and nothing else — identity, routing, connector enumeration and selection are all injected. Promoted from three plugins that had ~3,300 duplicated lines between them and had to fix the same two production defects once per repo; see [docs/adopting-shared-tool-mappings.md](docs/adopting-shared-tool-mappings.md) |
27
28
  | `./a11y` | `useA11yAnnounce` | Accessible live-region announcement hook |
28
29
  | `./l10n` | `usePluginLocale` / `PluginLocale` | Locale + direction/RTL helper |
29
30
  | `./token` | `useFrontendSessionToken`, `useAuth`, `decodeJwtPayload` | Frontend session token + JWT auth utilities |