@ethisyscore/plugin-ui 1.127.2 → 1.128.1

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.
@@ -1,6 +1,6 @@
1
1
  import { T as ToolInvoker } from '../mcpService-4h3sKDpW.cjs';
2
- import { C as ConnectorCanonicalField, h as MappingCompletenessResult, c as ConnectorMappingSuggestionResult, m as TestToolMappingResult, i as MappingReadiness, g as MappingCompletenessItem, d as ConnectorMappingTranslationEditorProps, f as MappingCompletenessBannerProps } from '../mappingQueryKeys-T-gPzJk1.cjs';
3
- export { a as CONNECTOR_CONTROL_LABEL, b as ConnectorCanonicalFieldKind, P as PLUGIN_PROVIDER_CONTROL_LABEL, j as PROVIDER_CONTROL_LABEL, k as PROVIDER_OPTION_LABEL, T as TestToolMappingExtractedField, l as TestToolMappingRequest, n as connectorMappingCompletenessQueryKey, o as connectorMappingsQueryKey, p as connectorMappingsRootQueryKey, q as pluginTargetMappingsQueryKey, s as selectIncompleteOperations, r as selectMappingReadiness, t as selectOptionalIncompleteOperations, u as selectRequiredIncompleteOperations } from '../mappingQueryKeys-T-gPzJk1.cjs';
2
+ import { C as ConnectorCanonicalField, i as MappingCompletenessResult, c as ConnectorMappingSuggestionResult, n as TestToolMappingResult, j as MappingReadiness, h as MappingCompletenessItem, d as ConnectorMappingTranslationEditorProps, g as MappingCompletenessBannerProps } from '../mappingQueryKeys-DsZJn1sk.cjs';
3
+ export { a as CONNECTOR_CONTROL_LABEL, b as ConnectorCanonicalFieldKind, P as PLUGIN_PROVIDER_CONTROL_LABEL, k as PROVIDER_CONTROL_LABEL, l as PROVIDER_OPTION_LABEL, T as TestToolMappingExtractedField, m as TestToolMappingRequest, o as connectorMappingCompletenessQueryKey, p as connectorMappingsQueryKey, q as connectorMappingsRootQueryKey, r as pluginTargetMappingsQueryKey, s as selectIncompleteOperations, t as selectMappingReadiness, u as selectOptionalIncompleteOperations, v as selectRequiredIncompleteOperations } from '../mappingQueryKeys-DsZJn1sk.cjs';
4
4
  import { UseMutationResult } from '@tanstack/react-query';
5
5
  import 'react';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { T as ToolInvoker } from '../mcpService-4h3sKDpW.js';
2
- import { C as ConnectorCanonicalField, h as MappingCompletenessResult, c as ConnectorMappingSuggestionResult, m as TestToolMappingResult, i as MappingReadiness, g as MappingCompletenessItem, d as ConnectorMappingTranslationEditorProps, f as MappingCompletenessBannerProps } from '../mappingQueryKeys-T-gPzJk1.js';
3
- export { a as CONNECTOR_CONTROL_LABEL, b as ConnectorCanonicalFieldKind, P as PLUGIN_PROVIDER_CONTROL_LABEL, j as PROVIDER_CONTROL_LABEL, k as PROVIDER_OPTION_LABEL, T as TestToolMappingExtractedField, l as TestToolMappingRequest, n as connectorMappingCompletenessQueryKey, o as connectorMappingsQueryKey, p as connectorMappingsRootQueryKey, q as pluginTargetMappingsQueryKey, s as selectIncompleteOperations, r as selectMappingReadiness, t as selectOptionalIncompleteOperations, u as selectRequiredIncompleteOperations } from '../mappingQueryKeys-T-gPzJk1.js';
2
+ import { C as ConnectorCanonicalField, i as MappingCompletenessResult, c as ConnectorMappingSuggestionResult, n as TestToolMappingResult, j as MappingReadiness, h as MappingCompletenessItem, d as ConnectorMappingTranslationEditorProps, g as MappingCompletenessBannerProps } from '../mappingQueryKeys-DsZJn1sk.js';
3
+ export { a as CONNECTOR_CONTROL_LABEL, b as ConnectorCanonicalFieldKind, P as PLUGIN_PROVIDER_CONTROL_LABEL, k as PROVIDER_CONTROL_LABEL, l as PROVIDER_OPTION_LABEL, T as TestToolMappingExtractedField, m as TestToolMappingRequest, o as connectorMappingCompletenessQueryKey, p as connectorMappingsQueryKey, q as connectorMappingsRootQueryKey, r as pluginTargetMappingsQueryKey, s as selectIncompleteOperations, t as selectMappingReadiness, u as selectOptionalIncompleteOperations, v as selectRequiredIncompleteOperations } from '../mappingQueryKeys-DsZJn1sk.js';
4
4
  import { UseMutationResult } from '@tanstack/react-query';
5
5
  import 'react';
6
6
 
@@ -287,6 +287,15 @@ declare const CONNECTOR_CONTROL_LABEL = "Connector";
287
287
  * instruction rather than a name.</p>
288
288
  */
289
289
  declare const SUPPRESS_REQUEST_FIELD_VALUE = "(suppress)";
290
+ /**
291
+ * The template half of a save (spec 2026-09-28 sections 1-3), delivered as `onSave`'s optional fourth
292
+ * argument. A member is PRESENT only when its section was shown; `null` means the operator left it
293
+ * empty (the host clears the column).
294
+ */
295
+ interface ConnectorMappingTranslationExtras {
296
+ requestTemplates?: Record<string, unknown>[] | null;
297
+ responseItemFieldPaths?: Record<string, Record<string, string>> | null;
298
+ }
290
299
  interface ConnectorMappingTranslationEditorProps {
291
300
  open: boolean;
292
301
  /**
@@ -322,6 +331,14 @@ interface ConnectorMappingTranslationEditorProps {
322
331
  * `null` if the operator hasn't supplied any. Seeds the "Static request parameters" rows.
323
332
  */
324
333
  staticRequestFields: Record<string, string> | null;
334
+ /**
335
+ * Stored request templates, or `null` for none. **Leave `undefined` to hide the "Request templates"
336
+ * section**: a host whose save path does not forward templates must not show an editor whose edits
337
+ * would silently vanish.
338
+ */
339
+ requestTemplates?: unknown[] | null;
340
+ /** Stored row fields, or `null`. Leave `undefined` to hide the "Row fields" section. Same rule. */
341
+ responseItemFieldPaths?: Record<string, Record<string, string>> | null;
325
342
  /**
326
343
  * Called with the operator's translation dictionaries when they click Save. Empty inputs are
327
344
  * stripped before this fires; if every input on a side was blank, that side is delivered as `null`
@@ -332,8 +349,10 @@ interface ConnectorMappingTranslationEditorProps {
332
349
  *
333
350
  * `staticRequestFields` carries the constant tool-request parameters (e.g. `{ method: "get" }`);
334
351
  * same null-vs-populated semantics — `null` when every static row was left blank.
352
+ *
353
+ * `extras` is passed only when the host showed at least one of the template sections.
335
354
  */
336
- onSave: (requestFieldMap: Record<string, string> | null, responseFieldPaths: Record<string, string> | null, staticRequestFields: Record<string, string> | null) => void;
355
+ onSave: (requestFieldMap: Record<string, string> | null, responseFieldPaths: Record<string, string> | null, staticRequestFields: Record<string, string> | null, extras?: ConnectorMappingTranslationExtras) => void;
337
356
  onCancel: () => void;
338
357
  /**
339
358
  * Optional. When provided, the editor renders a Test section below the field tables and a "Test
@@ -395,7 +414,7 @@ interface ConnectorMappingTranslationEditorProps {
395
414
  * <p>The null tolerance below came from the HOST copy, which was the most hardened of the four.
396
415
  * `coreconnect/no-local-mapping-editor` stops a fifth being written.</p>
397
416
  */
398
- declare function ConnectorMappingTranslationEditorView({ open, operationLabel, toolName, canonicalRequestFields: canonicalRequestFieldsProp, canonicalResponseFields: canonicalResponseFieldsProp, requestFieldMap, responseFieldPaths, staticRequestFields, onSave, onCancel, onTestMapping, onSuggestTranslation, }: ConnectorMappingTranslationEditorProps): react.JSX.Element;
417
+ declare function ConnectorMappingTranslationEditorView({ open, operationLabel, toolName, canonicalRequestFields: canonicalRequestFieldsProp, canonicalResponseFields: canonicalResponseFieldsProp, requestFieldMap, responseFieldPaths, staticRequestFields, requestTemplates, responseItemFieldPaths, onSave, onCancel, onTestMapping, onSuggestTranslation, }: ConnectorMappingTranslationEditorProps): react.JSX.Element;
399
418
 
400
419
  /**
401
420
  * Every operation with a gap, required or optional. Use it to decide whether to mount a banner at
@@ -511,4 +530,4 @@ declare function pluginTargetMappingsQueryKey(moduleKey: string): readonly ["con
511
530
  */
512
531
  declare function connectorMappingCompletenessQueryKey(connectorId: string | undefined, moduleKey: string): readonly ["connector-mappings", string | undefined, string, "completeness"];
513
532
 
514
- export { type ConnectorCanonicalField as C, MappingCompletenessBanner as M, PLUGIN_PROVIDER_CONTROL_LABEL as P, SUPPRESS_REQUEST_FIELD_VALUE as S, type TestToolMappingExtractedField as T, CONNECTOR_CONTROL_LABEL as a, type ConnectorCanonicalFieldKind as b, type ConnectorMappingSuggestionResult as c, type ConnectorMappingTranslationEditorProps as d, ConnectorMappingTranslationEditorView as e, type MappingCompletenessBannerProps as f, type MappingCompletenessItem as g, type MappingCompletenessResult as h, type MappingReadiness as i, PROVIDER_CONTROL_LABEL as j, PROVIDER_OPTION_LABEL as k, type TestToolMappingRequest as l, type TestToolMappingResult as m, connectorMappingCompletenessQueryKey as n, connectorMappingsQueryKey as o, connectorMappingsRootQueryKey as p, pluginTargetMappingsQueryKey as q, selectMappingReadiness as r, selectIncompleteOperations as s, selectOptionalIncompleteOperations as t, selectRequiredIncompleteOperations as u, selectRequiredUnmappedOperations as v };
533
+ export { type ConnectorCanonicalField as C, MappingCompletenessBanner as M, PLUGIN_PROVIDER_CONTROL_LABEL as P, SUPPRESS_REQUEST_FIELD_VALUE as S, type TestToolMappingExtractedField as T, CONNECTOR_CONTROL_LABEL as a, type ConnectorCanonicalFieldKind as b, type ConnectorMappingSuggestionResult as c, type ConnectorMappingTranslationEditorProps as d, ConnectorMappingTranslationEditorView as e, type ConnectorMappingTranslationExtras as f, type MappingCompletenessBannerProps as g, type MappingCompletenessItem as h, type MappingCompletenessResult as i, type MappingReadiness as j, PROVIDER_CONTROL_LABEL as k, PROVIDER_OPTION_LABEL as l, type TestToolMappingRequest as m, type TestToolMappingResult as n, connectorMappingCompletenessQueryKey as o, connectorMappingsQueryKey as p, connectorMappingsRootQueryKey as q, pluginTargetMappingsQueryKey as r, selectIncompleteOperations as s, selectMappingReadiness as t, selectOptionalIncompleteOperations as u, selectRequiredIncompleteOperations as v, selectRequiredUnmappedOperations as w };
@@ -287,6 +287,15 @@ declare const CONNECTOR_CONTROL_LABEL = "Connector";
287
287
  * instruction rather than a name.</p>
288
288
  */
289
289
  declare const SUPPRESS_REQUEST_FIELD_VALUE = "(suppress)";
290
+ /**
291
+ * The template half of a save (spec 2026-09-28 sections 1-3), delivered as `onSave`'s optional fourth
292
+ * argument. A member is PRESENT only when its section was shown; `null` means the operator left it
293
+ * empty (the host clears the column).
294
+ */
295
+ interface ConnectorMappingTranslationExtras {
296
+ requestTemplates?: Record<string, unknown>[] | null;
297
+ responseItemFieldPaths?: Record<string, Record<string, string>> | null;
298
+ }
290
299
  interface ConnectorMappingTranslationEditorProps {
291
300
  open: boolean;
292
301
  /**
@@ -322,6 +331,14 @@ interface ConnectorMappingTranslationEditorProps {
322
331
  * `null` if the operator hasn't supplied any. Seeds the "Static request parameters" rows.
323
332
  */
324
333
  staticRequestFields: Record<string, string> | null;
334
+ /**
335
+ * Stored request templates, or `null` for none. **Leave `undefined` to hide the "Request templates"
336
+ * section**: a host whose save path does not forward templates must not show an editor whose edits
337
+ * would silently vanish.
338
+ */
339
+ requestTemplates?: unknown[] | null;
340
+ /** Stored row fields, or `null`. Leave `undefined` to hide the "Row fields" section. Same rule. */
341
+ responseItemFieldPaths?: Record<string, Record<string, string>> | null;
325
342
  /**
326
343
  * Called with the operator's translation dictionaries when they click Save. Empty inputs are
327
344
  * stripped before this fires; if every input on a side was blank, that side is delivered as `null`
@@ -332,8 +349,10 @@ interface ConnectorMappingTranslationEditorProps {
332
349
  *
333
350
  * `staticRequestFields` carries the constant tool-request parameters (e.g. `{ method: "get" }`);
334
351
  * same null-vs-populated semantics — `null` when every static row was left blank.
352
+ *
353
+ * `extras` is passed only when the host showed at least one of the template sections.
335
354
  */
336
- onSave: (requestFieldMap: Record<string, string> | null, responseFieldPaths: Record<string, string> | null, staticRequestFields: Record<string, string> | null) => void;
355
+ onSave: (requestFieldMap: Record<string, string> | null, responseFieldPaths: Record<string, string> | null, staticRequestFields: Record<string, string> | null, extras?: ConnectorMappingTranslationExtras) => void;
337
356
  onCancel: () => void;
338
357
  /**
339
358
  * Optional. When provided, the editor renders a Test section below the field tables and a "Test
@@ -395,7 +414,7 @@ interface ConnectorMappingTranslationEditorProps {
395
414
  * <p>The null tolerance below came from the HOST copy, which was the most hardened of the four.
396
415
  * `coreconnect/no-local-mapping-editor` stops a fifth being written.</p>
397
416
  */
398
- declare function ConnectorMappingTranslationEditorView({ open, operationLabel, toolName, canonicalRequestFields: canonicalRequestFieldsProp, canonicalResponseFields: canonicalResponseFieldsProp, requestFieldMap, responseFieldPaths, staticRequestFields, onSave, onCancel, onTestMapping, onSuggestTranslation, }: ConnectorMappingTranslationEditorProps): react.JSX.Element;
417
+ declare function ConnectorMappingTranslationEditorView({ open, operationLabel, toolName, canonicalRequestFields: canonicalRequestFieldsProp, canonicalResponseFields: canonicalResponseFieldsProp, requestFieldMap, responseFieldPaths, staticRequestFields, requestTemplates, responseItemFieldPaths, onSave, onCancel, onTestMapping, onSuggestTranslation, }: ConnectorMappingTranslationEditorProps): react.JSX.Element;
399
418
 
400
419
  /**
401
420
  * Every operation with a gap, required or optional. Use it to decide whether to mount a banner at
@@ -511,4 +530,4 @@ declare function pluginTargetMappingsQueryKey(moduleKey: string): readonly ["con
511
530
  */
512
531
  declare function connectorMappingCompletenessQueryKey(connectorId: string | undefined, moduleKey: string): readonly ["connector-mappings", string | undefined, string, "completeness"];
513
532
 
514
- export { type ConnectorCanonicalField as C, MappingCompletenessBanner as M, PLUGIN_PROVIDER_CONTROL_LABEL as P, SUPPRESS_REQUEST_FIELD_VALUE as S, type TestToolMappingExtractedField as T, CONNECTOR_CONTROL_LABEL as a, type ConnectorCanonicalFieldKind as b, type ConnectorMappingSuggestionResult as c, type ConnectorMappingTranslationEditorProps as d, ConnectorMappingTranslationEditorView as e, type MappingCompletenessBannerProps as f, type MappingCompletenessItem as g, type MappingCompletenessResult as h, type MappingReadiness as i, PROVIDER_CONTROL_LABEL as j, PROVIDER_OPTION_LABEL as k, type TestToolMappingRequest as l, type TestToolMappingResult as m, connectorMappingCompletenessQueryKey as n, connectorMappingsQueryKey as o, connectorMappingsRootQueryKey as p, pluginTargetMappingsQueryKey as q, selectMappingReadiness as r, selectIncompleteOperations as s, selectOptionalIncompleteOperations as t, selectRequiredIncompleteOperations as u, selectRequiredUnmappedOperations as v };
533
+ export { type ConnectorCanonicalField as C, MappingCompletenessBanner as M, PLUGIN_PROVIDER_CONTROL_LABEL as P, SUPPRESS_REQUEST_FIELD_VALUE as S, type TestToolMappingExtractedField as T, CONNECTOR_CONTROL_LABEL as a, type ConnectorCanonicalFieldKind as b, type ConnectorMappingSuggestionResult as c, type ConnectorMappingTranslationEditorProps as d, ConnectorMappingTranslationEditorView as e, type ConnectorMappingTranslationExtras as f, type MappingCompletenessBannerProps as g, type MappingCompletenessItem as h, type MappingCompletenessResult as i, type MappingReadiness as j, PROVIDER_CONTROL_LABEL as k, PROVIDER_OPTION_LABEL as l, type TestToolMappingRequest as m, type TestToolMappingResult as n, connectorMappingCompletenessQueryKey as o, connectorMappingsQueryKey as p, connectorMappingsRootQueryKey as q, pluginTargetMappingsQueryKey as r, selectIncompleteOperations as s, selectMappingReadiness as t, selectOptionalIncompleteOperations as u, selectRequiredIncompleteOperations as v, selectRequiredUnmappedOperations as w };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethisyscore/plugin-ui",
3
- "version": "1.127.2",
3
+ "version": "1.128.1",
4
4
  "description": "Plugin-UI umbrella SDK: client bridge + a11y/l10n primitives + brokered-MCP client (WI 4858).",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",