@crystaldesign/diva-backoffice 26.12.0-beta.6 → 26.12.0-beta.7
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/build/esm/index.js +11463 -3098
- package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/agentMount.d.ts +38 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/agentMount.d.ts.map +1 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/backofficeToolset.d.ts +13 -4
- package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/backofficeToolset.d.ts.map +1 -1
- package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/contentToolset.d.ts +10 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/contentToolset.d.ts.map +1 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/createHeadlessPlanner.d.ts +2 -4
- package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/createHeadlessPlanner.d.ts.map +1 -1
- package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/index.d.ts.map +1 -1
- package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/mediaToolset.d.ts +115 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/mediaToolset.d.ts.map +1 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/navigationToolset.d.ts +26 -17
- package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/navigationToolset.d.ts.map +1 -1
- package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/CatalogSelection/index.d.ts.map +1 -1
- package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/articlesEventScope.d.ts +15 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/articlesEventScope.d.ts.map +1 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/index.d.ts.map +1 -1
- package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/useWysiwygConfigurator.d.ts.map +1 -1
- package/build/types/backoffice/src/layout/Toolbar/index.d.ts.map +1 -1
- package/build/types/backoffice/src/store/ConfigurationStore.d.ts.map +1 -1
- package/build/types/backoffice/src/store/DataStore.d.ts.map +1 -1
- package/build/types/backoffice/src/store/GridRegistry.d.ts +39 -0
- package/build/types/backoffice/src/store/GridRegistry.d.ts.map +1 -1
- package/build/types/backoffice/src/store/RootStore.d.ts +1 -1
- package/build/types/backoffice/src/store/RootStore.d.ts.map +1 -1
- package/build/types/backoffice/src/store/ToolBarStore.d.ts +5 -0
- package/build/types/backoffice/src/store/ToolBarStore.d.ts.map +1 -1
- package/build/types/backoffice/src/store/WebplannerInstanceStore.d.ts +35 -8
- package/build/types/backoffice/src/store/WebplannerInstanceStore.d.ts.map +1 -1
- package/build/types/backoffice/src/tests/unit/agentBridge/agentBridgePanel.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/agentBridge/agentBridgePanel.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/agentBridge/bridgeStatus.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/agentBridge/bridgeStatus.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/agentMount.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/agentMount.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/agentToolDefs.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/agentToolDefs.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/checkCellInput.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/checkCellInput.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/contentToolset.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/contentToolset.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/fakeGridEnvironment.d.ts +161 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/fakeGridEnvironment.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/generateImageAsset.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/generateImageAsset.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/locateRowExactMatch.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/locateRowExactMatch.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/lookupWrite.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/lookupWrite.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/mediaBatchIsolation.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/mediaBatchIsolation.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/navigationToolDefs.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/navigationToolDefs.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/publishCatalogTestManifest.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/publishCatalogTestManifest.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/runTableAction.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/runTableAction.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/setAssetCellBatch.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/setAssetCellBatch.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/stageTableEdits.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/stageTableEdits.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/stageTableEditsSequentialLookup.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/stageTableEditsSequentialLookup.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/uploadAssetSources.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/uploadAssetSources.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/WYSIWYG_Configurator/articlesEventBelongsToView.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/WYSIWYG_Configurator/articlesEventBelongsToView.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/store/WebplannerInstanceStore.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/store/WebplannerInstanceStore.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/Tables/ArticleRelations/accessoryLookup.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/Tables/ArticleRelations/accessoryLookup.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/Tables/featureColumns.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/Tables/featureColumns.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/ui/IDMEnricherEditor/TableEnrichment/propertyColumn.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/ui/IDMEnricherEditor/TableEnrichment/propertyColumn.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/ui/IDMEnricherEditor/Tables/Prices/priceFactorMutations.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/ui/IDMEnricherEditor/Tables/Prices/priceFactorMutations.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/utils/routeCatalogId.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/utils/routeCatalogId.test.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/CommonComponents/ContentItemLibrary/ContentItemPreview.d.ts +7 -0
- package/build/types/backoffice/src/ui/CommonComponents/ContentItemLibrary/ContentItemPreview.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/CommonComponents/ContentItemLibrary/index.d.ts +7 -0
- package/build/types/backoffice/src/ui/CommonComponents/ContentItemLibrary/index.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/CommonComponents/ContentItemLibrary/libraryContext.d.ts +21 -0
- package/build/types/backoffice/src/ui/CommonComponents/ContentItemLibrary/libraryContext.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/CommonComponents/SpreadsheetWrapper/index.d.ts +5 -0
- package/build/types/backoffice/src/ui/CommonComponents/SpreadsheetWrapper/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/CommonComponents/useTools.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/AddAccessoryModal.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/accessoryLookup.d.ts +61 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/accessoryLookup.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/index.d.ts +2 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Items.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/OptionCombinations/index.d.ts +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/OptionCombinations/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/OptionGroupOptions.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PartlistPos.d.ts +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PartlistPos.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupFinishes.d.ts +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupFinishes.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupPercentageSurcharge.d.ts +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupPercentageSurcharge.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/featureColumns.d.ts +25 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/featureColumns.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/useCatalogContext.d.ts +11 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/useCatalogContext.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableArticleRelations/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableItems/index.d.ts +8 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableItems/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableSeries/index.d.ts +4 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableSeries/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCollectionEditor/modules/TableCollections/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/index.d.ts +8 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/priceFactorMutations.d.ts +19 -0
- package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/priceFactorMutations.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMEnricherEditor/hooks/useEnricherContext.d.ts +12 -39
- package/build/types/backoffice/src/ui/IDMEnricherEditor/hooks/useEnricherContext.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/PropertyValueExpandedEditor.d.ts +16 -0
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/PropertyValueExpandedEditor.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/propertyColumn.d.ts +27 -0
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/propertyColumn.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMFeaturesEditor/modules/TableFeatures/index.d.ts +1 -0
- package/build/types/backoffice/src/ui/IDMFeaturesEditor/modules/TableFeatures/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMOrganizationFeaturesEditor/modules/TableFeatures/index.d.ts +4 -0
- package/build/types/backoffice/src/ui/IDMOrganizationFeaturesEditor/modules/TableFeatures/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMOrganizationOptionsEditor/modules/TableOptions/index.d.ts +1 -0
- package/build/types/backoffice/src/ui/IDMOrganizationOptionsEditor/modules/TableOptions/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMPropertyDefinitionsEditor/modules/TablePropertyDefinitions/index.d.ts.map +1 -1
- package/build/types/backoffice/src/utils/contentItemEndpoints.d.ts +11 -0
- package/build/types/backoffice/src/utils/contentItemEndpoints.d.ts.map +1 -0
- package/build/types/backoffice/src/utils/routeCatalogId.d.ts +8 -0
- package/build/types/backoffice/src/utils/routeCatalogId.d.ts.map +1 -0
- package/package.json +10 -10
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/PropertyObjectExpandedEditor.d.ts +0 -6
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/PropertyObjectExpandedEditor.d.ts.map +0 -1
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The two decisions behind mounting the DIVA agent panel, kept free of React and the stores so they can be
|
|
3
|
+
* pinned by tests: WHICH catalog a panel serves, and WHETHER a view gets the panel at all.
|
|
4
|
+
*/
|
|
5
|
+
export interface AgentCatalogSources {
|
|
6
|
+
/** The catalog id the view's record (or the registered tool's parameters) names — may lag behind a catalog switch. */
|
|
7
|
+
catalogId?: string;
|
|
8
|
+
/** Set in enricher package mode, where the catalog id travels along unchanged (the WYSIWYG keys its planner by it). */
|
|
9
|
+
packageId?: string;
|
|
10
|
+
/** The catalog the ROUTE names — the only source that never lags behind a catalog switch. */
|
|
11
|
+
routeCatalogId?: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Route first, record second: on an editor route the record may still name the previously opened catalog. In
|
|
15
|
+
* package mode the parameter wins — the route does not name the catalog the package is edited against.
|
|
16
|
+
*/
|
|
17
|
+
export declare function resolveAgentCatalogId({ catalogId, packageId, routeCatalogId }: AgentCatalogSources): string | undefined;
|
|
18
|
+
export interface AgentMountSources extends AgentCatalogSources {
|
|
19
|
+
/** The view opted the agent in explicitly (list views: no catalog, the agent works on the on-screen tables). */
|
|
20
|
+
divaAgent?: boolean;
|
|
21
|
+
/** The 'view:diva_agent' permission (registered by diva-ai, which also enforces it). */
|
|
22
|
+
agentPermitted: boolean;
|
|
23
|
+
/** Placeholder views mount no tools at all. */
|
|
24
|
+
onlyPlaceholder?: boolean;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* The panel appears on an editor (a resolved catalog or package) and on list views that opt in — always only with
|
|
28
|
+
* the permission and never on a placeholder view.
|
|
29
|
+
*
|
|
30
|
+
* The ROUTE is DELIBERATELY not a source here, only in resolveAgentCatalogId. Deriving the mount from it would
|
|
31
|
+
* let any component that calls useTools on an editor route register the tool: InformationButton calls `useTools({})`
|
|
32
|
+
* purely for `updateInformationWindow`, and since the toolbar replaces and removes tools BY ID, its empty
|
|
33
|
+
* registration would overwrite the view's filled panel and its unmount would take the panel away. A view that
|
|
34
|
+
* wants the panel says so through its record or through `divaAgent` — the window between a route change and the
|
|
35
|
+
* resolved record is transient, and the panel had no catalog to work on in it anyway.
|
|
36
|
+
*/
|
|
37
|
+
export declare function shouldMountAgentTool({ catalogId, packageId, divaAgent, agentPermitted, onlyPlaceholder }: AgentMountSources): boolean;
|
|
38
|
+
//# sourceMappingURL=agentMount.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentMount.d.ts","sourceRoot":"","sources":["../../../../../../../../src/layout/Toolbar/Tools/DivaAgent/agentMount.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,mBAAmB;IAClC,sHAAsH;IACtH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uHAAuH;IACvH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6FAA6F;IAC7F,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE,cAAc,EAAE,EAAE,mBAAmB,GAAG,MAAM,GAAG,SAAS,CAEvH;AAED,MAAM,WAAW,iBAAkB,SAAQ,mBAAmB;IAC5D,gHAAgH;IAChH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,wFAAwF;IACxF,cAAc,EAAE,OAAO,CAAC;IACxB,+CAA+C;IAC/C,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,oBAAoB,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,cAAc,EAAE,eAAe,EAAE,EAAE,iBAAiB,GAAG,OAAO,CAIrI"}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import type { AgentToolset } from '@crystaldesign/diva-agent';
|
|
2
2
|
import { WysiwygElementProps, WysiwygParameters } from '../WYSIWYG_Configurator/useWysiwygConfigurator';
|
|
3
|
+
/** What the toolset acts on: the catalog or package a view is bound to, and that view's serie/item selection and setters. */
|
|
4
|
+
export interface BackofficeBinding {
|
|
5
|
+
parameters: WysiwygParameters;
|
|
6
|
+
elementProps: WysiwygElementProps;
|
|
7
|
+
}
|
|
3
8
|
export interface BackofficeToolsetContext {
|
|
9
|
+
/** Render-time binding — only used when the host provides no `getBinding`. */
|
|
4
10
|
parameters: WysiwygParameters;
|
|
5
11
|
elementProps: WysiwygElementProps;
|
|
6
12
|
apiConfig: {
|
|
@@ -10,10 +16,13 @@ export interface BackofficeToolsetContext {
|
|
|
10
16
|
jwt?: string;
|
|
11
17
|
/** Uppercase iso language ('DE') — seriesName is keyed by it. */
|
|
12
18
|
language: string;
|
|
19
|
+
/**
|
|
20
|
+
* Binding resolved AT CALL TIME, as one unit: the panel stays mounted across navigation, so render-time
|
|
21
|
+
* values would keep naming the previous catalog and its setters. `undefined` means the CURRENT view has
|
|
22
|
+
* no binding — the toolset then reports that, and never falls back to the render-time one.
|
|
23
|
+
*/
|
|
24
|
+
getBinding?: () => BackofficeBinding | undefined;
|
|
13
25
|
}
|
|
14
|
-
/**
|
|
15
|
-
* Toolset that lets the agent drive the backoffice serie/item selection — the same
|
|
16
|
-
* context setters the WYSIWYG dropdowns and editor tables use.
|
|
17
|
-
*/
|
|
26
|
+
/** Toolset that drives the backoffice serie/item selection through the same context setters the WYSIWYG dropdowns use. */
|
|
18
27
|
export declare function createBackofficeToolset(ctx: BackofficeToolsetContext): AgentToolset;
|
|
19
28
|
//# sourceMappingURL=backofficeToolset.d.ts.map
|
package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/backofficeToolset.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backofficeToolset.d.ts","sourceRoot":"","sources":["../../../../../../../../src/layout/Toolbar/Tools/DivaAgent/backofficeToolset.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAW,MAAM,2BAA2B,CAAC;AAEvE,OAAO,EAAW,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAC;AAEjH,MAAM,WAAW,wBAAwB;IACvC,UAAU,EAAE,iBAAiB,CAAC;IAC9B,YAAY,EAAE,mBAAmB,CAAC;IAClC,SAAS,EAAE;QAAE,eAAe,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC7D,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,iEAAiE;IACjE,QAAQ,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"backofficeToolset.d.ts","sourceRoot":"","sources":["../../../../../../../../src/layout/Toolbar/Tools/DivaAgent/backofficeToolset.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAW,MAAM,2BAA2B,CAAC;AAEvE,OAAO,EAAW,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAC;AAEjH,6HAA6H;AAC7H,MAAM,WAAW,iBAAiB;IAChC,UAAU,EAAE,iBAAiB,CAAC;IAC9B,YAAY,EAAE,mBAAmB,CAAC;CACnC;AAED,MAAM,WAAW,wBAAwB;IACvC,8EAA8E;IAC9E,UAAU,EAAE,iBAAiB,CAAC;IAC9B,YAAY,EAAE,mBAAmB,CAAC;IAClC,SAAS,EAAE;QAAE,eAAe,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC7D,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,iEAAiE;IACjE,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,iBAAiB,GAAG,SAAS,CAAC;CAClD;AAkCD,0HAA0H;AAC1H,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,wBAAwB,GAAG,YAAY,CA0FnF"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { AgentToolset, ToolDef } from '@crystaldesign/diva-agent';
|
|
2
|
+
import type RootStore from '../../../../store/RootStore';
|
|
3
|
+
export declare const CONTENT_TOOL_DEFS: ToolDef[];
|
|
4
|
+
export interface ContentToolsetContext {
|
|
5
|
+
root: RootStore;
|
|
6
|
+
/** The conversation enabled auto-approve: updates skip the library's approval bar. */
|
|
7
|
+
autoApprove?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare function createContentToolset(ctx: ContentToolsetContext): AgentToolset;
|
|
10
|
+
//# sourceMappingURL=contentToolset.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contentToolset.d.ts","sourceRoot":"","sources":["../../../../../../../../src/layout/Toolbar/Tools/DivaAgent/contentToolset.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,KAAK,SAAS,MAAM,6BAA6B,CAAC;AAwBzD,eAAO,MAAM,iBAAiB,EAAE,OAAO,EAqEtC,CAAC;AAEF,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,SAAS,CAAC;IAChB,sFAAsF;IACtF,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAwHD,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,qBAAqB,GAAG,YAAY,CA0O7E"}
|
package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/createHeadlessPlanner.d.ts
CHANGED
|
@@ -21,10 +21,8 @@ export interface HeadlessPlannerParams {
|
|
|
21
21
|
jwt?: string;
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
|
-
* Creates and
|
|
25
|
-
*
|
|
26
|
-
* but without a mounted view (UI-steering calls no-op). Mirrors the config assembly of
|
|
27
|
-
* WebPlannerReact/useInitObject plus the WYSIWYG tool parameters.
|
|
24
|
+
* Creates and initializes a HEADLESS DivaWebPlanner logic instance with the same configuration
|
|
25
|
+
* the WYSIWYG configurator uses, but without a mounted view (UI-steering calls no-op).
|
|
28
26
|
*/
|
|
29
27
|
export declare function createHeadlessPlanner(params: HeadlessPlannerParams): Promise<DivaWebPlanner>;
|
|
30
28
|
//# sourceMappingURL=createHeadlessPlanner.d.ts.map
|
package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/createHeadlessPlanner.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createHeadlessPlanner.d.ts","sourceRoot":"","sources":["../../../../../../../../src/layout/Toolbar/Tools/DivaAgent/createHeadlessPlanner.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,EAAE,EAAe,KAAK,EAAE,MAAM,kCAAkC,CAAC;AAItF,MAAM,WAAW,qBAAqB;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,GAAG,CAAC;IAChB,iGAAiG;IACjG,KAAK,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC3D,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,KAAK,CAAC;IAChB,iEAAiE;IACjE,IAAI,EAAE;QAAE,KAAK,EAAE,GAAG,CAAC;QAAC,OAAO,EAAE,GAAG,CAAC;QAAC,OAAO,EAAE,GAAG,CAAA;KAAE,CAAC;IACjD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED
|
|
1
|
+
{"version":3,"file":"createHeadlessPlanner.d.ts","sourceRoot":"","sources":["../../../../../../../../src/layout/Toolbar/Tools/DivaAgent/createHeadlessPlanner.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,EAAE,EAAe,KAAK,EAAE,MAAM,kCAAkC,CAAC;AAItF,MAAM,WAAW,qBAAqB;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,GAAG,CAAC;IAChB,iGAAiG;IACjG,KAAK,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC3D,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,KAAK,CAAC;IAChB,iEAAiE;IACjE,IAAI,EAAE;QAAE,KAAK,EAAE,GAAG,CAAC;QAAC,OAAO,EAAE,GAAG,CAAC;QAAC,OAAO,EAAE,GAAG,CAAA;KAAE,CAAC;IACjD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED;;;GAGG;AACH,wBAAsB,qBAAqB,CAAC,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,cAAc,CAAC,CA+GlG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/layout/Toolbar/Tools/DivaAgent/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoD,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/layout/Toolbar/Tools/DivaAgent/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAezE,OAAO,EAAQ,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAG5D,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAC;oCAQ3E,SAAS,CAAC,mBAAmB,EAAE,iBAAiB,CAAC;;;AAqO9E,wBAAmC"}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import type { AgentToolset, ToolDef } from '@crystaldesign/diva-agent';
|
|
2
|
+
import type RootStore from '../../../../store/RootStore';
|
|
3
|
+
import type { GridEntry } from '../../../../store/GridRegistry';
|
|
4
|
+
/** Definitions of the media/asset tools this toolset executes — sent to the backend per turn. */
|
|
5
|
+
export declare const MEDIA_TOOL_DEFS: ToolDef[];
|
|
6
|
+
export interface MediaToolsetContext {
|
|
7
|
+
root: RootStore;
|
|
8
|
+
/** Per-conversation toggle: agent writes commit WITHOUT the approval bar. */
|
|
9
|
+
autoApprove?: boolean;
|
|
10
|
+
}
|
|
11
|
+
/** One upload request: exactly one source, already validated into a File. */
|
|
12
|
+
export type ResolvedSource = {
|
|
13
|
+
file: File;
|
|
14
|
+
} | {
|
|
15
|
+
error: string;
|
|
16
|
+
};
|
|
17
|
+
/** Turns one {fileName, url|svg|base64} request into a File — shared by the single-asset call and every batch entry. */
|
|
18
|
+
export declare function resolveUploadSource(args: Record<string, any>, signal?: AbortSignal): Promise<ResolvedSource>;
|
|
19
|
+
export interface UploadedAsset {
|
|
20
|
+
mediaItemId: string;
|
|
21
|
+
url?: string;
|
|
22
|
+
fileName: string;
|
|
23
|
+
mediaType: string;
|
|
24
|
+
mimeType?: string;
|
|
25
|
+
}
|
|
26
|
+
/** Rasterizes SVG markup to a JPEG blob on a WHITE background (JPEG has no alpha); width = sizePx. Browser-only. */
|
|
27
|
+
export declare function svgToJpegBlob(svg: string, sizePx: number): Promise<Blob>;
|
|
28
|
+
/** The 3-step media-service upload (start → PUT presigned → complete); returns the created media item. */
|
|
29
|
+
export declare function uploadToMediaService(root: RootStore, file: File, fileName: string, mediaTypeOverride?: string, signal?: AbortSignal): Promise<UploadedAsset>;
|
|
30
|
+
/**
|
|
31
|
+
* Generates ONE image through the DIVA AI service and stores it on the media service. The bytes
|
|
32
|
+
* never leave the browser — the caller only sees the `mediaItemId`, so no size cap applies here.
|
|
33
|
+
*/
|
|
34
|
+
export declare function generateImageAsset(root: RootStore, args: Record<string, any>, signal?: AbortSignal): Promise<Record<string, unknown>>;
|
|
35
|
+
/**
|
|
36
|
+
* Archives a catalog test manifest on the media service and returns the URL to run it from.
|
|
37
|
+
* Provenance check, history append and upload happen in one call so the archive cannot end up half-updated.
|
|
38
|
+
*/
|
|
39
|
+
export declare function publishCatalogTestManifest(root: RootStore, args: Record<string, any>, signal?: AbortSignal): Promise<{
|
|
40
|
+
error: string;
|
|
41
|
+
missing?: undefined;
|
|
42
|
+
fix?: undefined;
|
|
43
|
+
url?: undefined;
|
|
44
|
+
mediaItemId?: undefined;
|
|
45
|
+
catalogCodex?: undefined;
|
|
46
|
+
suites?: undefined;
|
|
47
|
+
combinations?: undefined;
|
|
48
|
+
sizeKb?: undefined;
|
|
49
|
+
runsRecorded?: undefined;
|
|
50
|
+
lastRun?: undefined;
|
|
51
|
+
note?: undefined;
|
|
52
|
+
hint?: undefined;
|
|
53
|
+
} | {
|
|
54
|
+
error: string;
|
|
55
|
+
missing: string[];
|
|
56
|
+
fix: string;
|
|
57
|
+
url?: undefined;
|
|
58
|
+
mediaItemId?: undefined;
|
|
59
|
+
catalogCodex?: undefined;
|
|
60
|
+
suites?: undefined;
|
|
61
|
+
combinations?: undefined;
|
|
62
|
+
sizeKb?: undefined;
|
|
63
|
+
runsRecorded?: undefined;
|
|
64
|
+
lastRun?: undefined;
|
|
65
|
+
note?: undefined;
|
|
66
|
+
hint?: undefined;
|
|
67
|
+
} | {
|
|
68
|
+
url: string | undefined;
|
|
69
|
+
mediaItemId: string;
|
|
70
|
+
catalogCodex: any;
|
|
71
|
+
suites: any;
|
|
72
|
+
combinations: any;
|
|
73
|
+
sizeKb: number;
|
|
74
|
+
runsRecorded: any;
|
|
75
|
+
lastRun: string | undefined;
|
|
76
|
+
note: string;
|
|
77
|
+
error?: undefined;
|
|
78
|
+
missing?: undefined;
|
|
79
|
+
fix?: undefined;
|
|
80
|
+
hint?: undefined;
|
|
81
|
+
} | {
|
|
82
|
+
error: string;
|
|
83
|
+
hint: string | undefined;
|
|
84
|
+
missing?: undefined;
|
|
85
|
+
fix?: undefined;
|
|
86
|
+
url?: undefined;
|
|
87
|
+
mediaItemId?: undefined;
|
|
88
|
+
catalogCodex?: undefined;
|
|
89
|
+
suites?: undefined;
|
|
90
|
+
combinations?: undefined;
|
|
91
|
+
sizeKb?: undefined;
|
|
92
|
+
runsRecorded?: undefined;
|
|
93
|
+
lastRun?: undefined;
|
|
94
|
+
note?: undefined;
|
|
95
|
+
}>;
|
|
96
|
+
/** Resolves an on-screen grid by gridId first, label second (default: first grid). */
|
|
97
|
+
export declare function findGrid(root: RootStore, gridLabel?: string): GridEntry | undefined;
|
|
98
|
+
export interface AssetCellWrite {
|
|
99
|
+
grid?: string;
|
|
100
|
+
keyColumn: string;
|
|
101
|
+
keyValue: string;
|
|
102
|
+
column: string;
|
|
103
|
+
asset: {
|
|
104
|
+
mediaItemId: string;
|
|
105
|
+
url?: string;
|
|
106
|
+
name?: string;
|
|
107
|
+
decisionNo?: number;
|
|
108
|
+
};
|
|
109
|
+
mode: 'append' | 'replace' | 'remove';
|
|
110
|
+
/** Blocking approval hook (agent approval bar); omitted = pre-approved (human-initiated UI). */
|
|
111
|
+
approve?: (entry: GridEntry) => Promise<boolean>;
|
|
112
|
+
}
|
|
113
|
+
export declare function writeAssetCell(root: RootStore, args: AssetCellWrite): Promise<Record<string, unknown>>;
|
|
114
|
+
export declare function createMediaToolset(ctx: MediaToolsetContext): AgentToolset;
|
|
115
|
+
//# sourceMappingURL=mediaToolset.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mediaToolset.d.ts","sourceRoot":"","sources":["../../../../../../../../src/layout/Toolbar/Tools/DivaAgent/mediaToolset.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,KAAK,SAAS,MAAM,6BAA6B,CAAC;AACzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAIhE,iGAAiG;AACjG,eAAO,MAAM,eAAe,EAAE,OAAO,EAgMpC,CAAC;AAEF,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,SAAS,CAAC;IAChB,6EAA6E;IAC7E,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAkFD,6EAA6E;AAC7E,MAAM,MAAM,cAAc,GAAG;IAAE,IAAI,EAAE,IAAI,CAAA;CAAE,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAEhE,wHAAwH;AACxH,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,cAAc,CAAC,CAuDlH;AAED,MAAM,WAAW,aAAa;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,oHAAoH;AACpH,wBAAsB,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAwB9E;AAED,0GAA0G;AAC1G,wBAAsB,oBAAoB,CACxC,IAAI,EAAE,SAAS,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,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAgI5G;AA8PD,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,mBAAmB,GAAG,YAAY,CA4OzE"}
|
|
@@ -1,32 +1,41 @@
|
|
|
1
|
-
import type { AgentToolset } from '@crystaldesign/diva-agent';
|
|
1
|
+
import type { AgentToolset, ToolDef } from '@crystaldesign/diva-agent';
|
|
2
|
+
import type { GridApi, IRowNode } from 'ag-grid-enterprise';
|
|
2
3
|
import type RootStore from '../../../../store/RootStore';
|
|
3
4
|
export interface NavigationToolsetContext {
|
|
4
5
|
root: RootStore;
|
|
5
6
|
catalogId?: string;
|
|
6
7
|
packageId?: string;
|
|
8
|
+
/** Per-conversation toggle: agent-staged changes commit WITHOUT the approval bar. */
|
|
9
|
+
autoApprove?: boolean;
|
|
7
10
|
}
|
|
11
|
+
/** Definitions of the navigation/grid tools this toolset executes — sent to the backend per turn. */
|
|
12
|
+
/** Argument names the model tends to use for a table (measured in live sessions) - declared on every tool that takes a `grid`. */
|
|
13
|
+
export declare const GRID_ARG_ALIASES: Record<string, string>;
|
|
14
|
+
export declare const NAVIGATION_TOOL_DEFS: ToolDef[];
|
|
15
|
+
/** Target path of an agent-triggered navigation that has not landed yet — while set, the chat suppresses its auto-'Continue.'. */
|
|
16
|
+
export declare const pendingAgentNavigation: import("mobx").IObservableValue<string | undefined>;
|
|
8
17
|
/**
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* the tool a moment after navigateTo returns, and a continue-turn started in that gap
|
|
12
|
-
* would be killed mid-stream ("Interrupted"). Cleared by the DivaAgent host once the
|
|
13
|
-
* router reaches the target (or after a safety timeout).
|
|
18
|
+
* Waits until the grid has settled after a filter change: polls until the first row carries data, gives up
|
|
19
|
+
* on a table that stays at 0 rows for STABLE_EMPTY_CHECKS polls or on timeout. Returns the milliseconds waited.
|
|
14
20
|
*/
|
|
15
|
-
export declare
|
|
21
|
+
export declare function waitForRows(api: GridApi<any>, timeoutMs?: number): Promise<number>;
|
|
16
22
|
/**
|
|
17
|
-
*
|
|
18
|
-
*
|
|
23
|
+
* Shared locate mechanics for the locateRow tool and clicked `diva://` links: loaded rows are
|
|
24
|
+
* just scrolled to, otherwise a server-side column filter is applied. Either way the row ends up
|
|
25
|
+
* CELL-RANGE selected, so the view's selection context (and its subtable tools) is set.
|
|
19
26
|
*/
|
|
27
|
+
export declare function locateRowCore(api: GridApi<any>, column: string, value: string, select?: boolean): Promise<{
|
|
28
|
+
node: IRowNode<any> | undefined;
|
|
29
|
+
filterApplied: boolean;
|
|
30
|
+
loadedMatches: number;
|
|
31
|
+
exact: boolean;
|
|
32
|
+
column: string;
|
|
33
|
+
}>;
|
|
34
|
+
/** Toolset for navigating the backoffice and driving the visible AG Grid tables. */
|
|
20
35
|
export declare function createNavigationToolset(ctx: NavigationToolsetContext): AgentToolset;
|
|
21
36
|
/**
|
|
22
|
-
* Handles a clicked `diva://show?path=…&grid=…&column=…&value=…` entity link
|
|
23
|
-
*
|
|
24
|
-
* locates + highlights (and selects) the row — the same machinery as the agent's
|
|
25
|
-
* navigateTo/locateRow tools, triggered by the user.
|
|
26
|
-
*
|
|
27
|
-
* Subtable deep-links additionally carry `tool`/`subGrid`/`subColumn`/`subValue`: the parent
|
|
28
|
-
* row selection reveals the conditional toolbar tool, which is opened, and the sub-row is
|
|
29
|
-
* located inside its grid (e.g. a decision's combination row in 'optioncombinations').
|
|
37
|
+
* Handles a clicked `diva://show?path=…&grid=…&column=…&value=…` entity link: navigates when needed,
|
|
38
|
+
* waits for the table, then locates + selects the row (subtable deep-links carry tool/subGrid/subColumn/subValue).
|
|
30
39
|
*/
|
|
31
40
|
export declare function showEntityFromLink(root: RootStore, href: string): Promise<void>;
|
|
32
41
|
//# sourceMappingURL=navigationToolset.d.ts.map
|
package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/navigationToolset.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navigationToolset.d.ts","sourceRoot":"","sources":["../../../../../../../../src/layout/Toolbar/Tools/DivaAgent/navigationToolset.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"navigationToolset.d.ts","sourceRoot":"","sources":["../../../../../../../../src/layout/Toolbar/Tools/DivaAgent/navigationToolset.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAoB,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACzF,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAG5D,OAAO,KAAK,SAAS,MAAM,6BAA6B,CAAC;AAezD,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,SAAS,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qFAAqF;IACrF,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,qGAAqG;AACrG,kIAAkI;AAClI,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAqC,CAAC;AAE1F,eAAO,MAAM,oBAAoB,EAAE,OAAO,EA6PzC,CAAC;AAWF,kIAAkI;AAClI,eAAO,MAAM,sBAAsB,qDAAgD,CAAC;AAiEpF;;;GAGG;AACH,wBAAsB,WAAW,CAAC,GAAG,EAAE,OAAO,CAAC,GAAG,CAAC,EAAE,SAAS,SAAO,GAAG,OAAO,CAAC,MAAM,CAAC,CAatF;AA6MD;;;;GAIG;AACH,wBAAsB,aAAa,CACjC,GAAG,EAAE,OAAO,CAAC,GAAG,CAAC,EACjB,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,EACb,MAAM,UAAO,GACZ,OAAO,CAAC;IAAE,IAAI,EAAE,QAAQ,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC;IAAC,aAAa,EAAE,OAAO,CAAC;IAAC,aAAa,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,CAgE7H;AAoBD,oFAAoF;AACpF,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,wBAAwB,GAAG,YAAY,CAklEnF;AA0CD;;;GAGG;AACH,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAgDrF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/layout/Toolbar/Tools/WYSIWYG_Configurator/CatalogSelection/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAGlD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAIzD,MAAM,WAAW,OAAO;IACtB,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;CACf;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/layout/Toolbar/Tools/WYSIWYG_Configurator/CatalogSelection/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAGlD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAIzD,MAAM,WAAW,OAAO;IACtB,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;CACf;AAQD,KAAK,KAAK,GAAG;IAAE,KAAK,EAAE,YAAY,CAAA;CAAE,CAAC;kFAC6C,KAAK;;;AA+DvF,wBAA0C"}
|
package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/articlesEventScope.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Does an `onArticlesLoaded` event describe the serie a configurator view is showing? The event is global
|
|
3
|
+
* and fires per catalog load, so the component serie a partlist pulls in also reaches every handler.
|
|
4
|
+
* Falls back to the catalogCodex, and to `true` when neither identity is present — dropping an
|
|
5
|
+
* unidentifiable load is worse than processing it.
|
|
6
|
+
*/
|
|
7
|
+
export declare function articlesEventBelongsToView(catalogData: {
|
|
8
|
+
serieId?: string;
|
|
9
|
+
catalogCodex?: string | number;
|
|
10
|
+
} | undefined, view: {
|
|
11
|
+
serieId?: string;
|
|
12
|
+
serieNo?: number;
|
|
13
|
+
maskCatalogCodex?: string;
|
|
14
|
+
}): boolean;
|
|
15
|
+
//# sourceMappingURL=articlesEventScope.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"articlesEventScope.d.ts","sourceRoot":"","sources":["../../../../../../../../src/layout/Toolbar/Tools/WYSIWYG_Configurator/articlesEventScope.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAgB,0BAA0B,CACxC,WAAW,EAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,GAAG,SAAS,EAC7E,IAAI,EAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAAE,GACtE,OAAO,CAOT"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/layout/Toolbar/Tools/WYSIWYG_Configurator/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/layout/Toolbar/Tools/WYSIWYG_Configurator/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAQjD,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAOtD,QAAA,MAAM,OAAO,sBAAuB,SAAS,sBAoH5C,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useWysiwygConfigurator.d.ts","sourceRoot":"","sources":["../../../../../../../../src/layout/Toolbar/Tools/WYSIWYG_Configurator/useWysiwygConfigurator.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAC;AAGrF,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"useWysiwygConfigurator.d.ts","sourceRoot":"","sources":["../../../../../../../../src/layout/Toolbar/Tools/WYSIWYG_Configurator/useWysiwygConfigurator.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAC;AAGrF,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAUtD,MAAM,WAAW,YAAY;IAE3B,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,IAAI,CAAC,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IAC1B,OAAO,EAAE,CAAC,IAAI,CAAC,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IAE7C,SAAS,EAAE,OAAO,EAAE,CAAC;IACrB,KAAK,CAAC,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC1C,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IAC9D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,WAAW,CAAC;IAEnB,QAAQ,EAAE,KAAK,CAAC;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AiB;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,GAAG,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,SAAS,CAAC,mBAAmB,EAAE,iBAAiB,CAAC,GAAG,YAAY,CAsYrH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/layout/Toolbar/index.tsx"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/layout/Toolbar/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAA6E,MAAM,OAAO,CAAC;wCAiDnE;IAAE,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAA;CAAE;;;AAoL/D,wBAAiC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigurationStore.d.ts","sourceRoot":"","sources":["../../../../../src/store/ConfigurationStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACjG,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAErD,OAAO,SAAS,MAAM,aAAa,CAAC;AAEpC,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"ConfigurationStore.d.ts","sourceRoot":"","sources":["../../../../../src/store/ConfigurationStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACjG,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA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AAC,EAAE,MAAM;CAG1E"}
|
|
@@ -1,12 +1,51 @@
|
|
|
1
1
|
import type { SpreadsheetRefProps } from '@crystaldesign/spreadsheet';
|
|
2
|
+
/**
|
|
3
|
+
* An operation a table offers beyond cell edits - adding a matrix column, a server-side bulk removal. The VIEW
|
|
4
|
+
* declares them on its spreadsheet configuration and the agent tools only carry them through: name, description
|
|
5
|
+
* and the exact input shape travel to the model with listGrids, so a new action needs no change in the toolset.
|
|
6
|
+
* It is also the headless twin of a dialog - the modal a human fills is one way to produce `input`, not the only one.
|
|
7
|
+
*/
|
|
8
|
+
export interface AgentGridAction {
|
|
9
|
+
/** Addressed by this name in runTableAction; unique per table. */
|
|
10
|
+
name: string;
|
|
11
|
+
/** What it does AND the exact `input` string it takes - this is what the model reads before calling. */
|
|
12
|
+
description: string;
|
|
13
|
+
/** Runs it. The returned text is reported back to the model; throw with a readable message to fail. */
|
|
14
|
+
run: (input: string) => Promise<string>;
|
|
15
|
+
/** Whether it changes catalog data - a mutating action asks the user for approval first. Defaults to true. */
|
|
16
|
+
mutating?: boolean;
|
|
17
|
+
/** The values `input` accepts, answered by readColumnOptions under the action's name - the picker a dialog shows. */
|
|
18
|
+
options?: (search: string, limit: number) => Promise<{
|
|
19
|
+
options: {
|
|
20
|
+
value: string;
|
|
21
|
+
label: string;
|
|
22
|
+
}[];
|
|
23
|
+
note?: string;
|
|
24
|
+
}>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* A live table as the agent sees it: registered by the SpreadsheetWrapper on mount (re-registered when its label or
|
|
28
|
+
* description changes), removed on unmount. The callbacks read the current handle and actions at call time, so a
|
|
29
|
+
* re-render never invalidates an entry; `requestAgentApproval` is how a mutating flow gets the user's go-ahead.
|
|
30
|
+
*/
|
|
2
31
|
export interface GridEntry {
|
|
3
32
|
id: number;
|
|
4
33
|
/** Agent-facing handle: the table's author-assigned agentGridId, else its read-endpoint last segment. */
|
|
5
34
|
label: string;
|
|
35
|
+
/** The table's `gridId` prop — unique per grid, unlike the label, so tools resolve by it first. */
|
|
36
|
+
gridId?: string;
|
|
37
|
+
/** The table's read endpoint (template) — lets tools gate service-specific actions. */
|
|
38
|
+
readUrl?: string;
|
|
6
39
|
/** The table's `agentDescription` (what it contains, which subtables a selection reveals). */
|
|
7
40
|
description?: string;
|
|
41
|
+
/** Set when the grid lives inside a right-toolbar tool, so flows can reveal that tool before acting on it. */
|
|
42
|
+
toolbarToolId?: string;
|
|
8
43
|
/** Resolves the live spreadsheet handle — undefined after unmount. */
|
|
9
44
|
getHandle: () => SpreadsheetRefProps | null;
|
|
45
|
+
/** The view-declared agent actions of this table, read live so a re-render never needs a re-registration. */
|
|
46
|
+
getActions: () => AgentGridAction[];
|
|
47
|
+
/** Shows the in-grid approval bar and resolves the user's decision; false on discard, unmount or abort. */
|
|
48
|
+
requestAgentApproval: (changeCount: number, actionLabel?: string, signal?: AbortSignal) => Promise<boolean>;
|
|
10
49
|
}
|
|
11
50
|
/**
|
|
12
51
|
* Registry of the AG Grid tables currently on screen. Every SpreadsheetWrapper
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GridRegistry.d.ts","sourceRoot":"","sources":["../../../../../src/store/GridRegistry.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEtE,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,yGAAyG;IACzG,KAAK,EAAE,MAAM,CAAC;IACd,8FAA8F;IAC9F,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,sEAAsE;IACtE,SAAS,EAAE,MAAM,mBAAmB,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"GridRegistry.d.ts","sourceRoot":"","sources":["../../../../../src/store/GridRegistry.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEtE;;;;;GAKG;AACH,MAAM,WAAW,eAAe;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KAAK,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,GAAG,MAAM;IAM9C,UAAU,CAAC,EAAE,EAAE,MAAM;IAIrB,mFAAmF;IACnF,IAAI,OAAO,IAAI,SAAS,EAAE,CAEzB;CACF"}
|
|
@@ -22,7 +22,7 @@ export default class {
|
|
|
22
22
|
configurationStore: ConfigurationStore;
|
|
23
23
|
downloadStore: DownloadStore;
|
|
24
24
|
contextStore: ContextStore;
|
|
25
|
-
webplannerInstanceStore: WebplannerInstanceStore
|
|
25
|
+
webplannerInstanceStore: WebplannerInstanceStore<import("packages/web-planner-logic/src").default>;
|
|
26
26
|
gridRegistry: GridRegistry;
|
|
27
27
|
actions: Actions;
|
|
28
28
|
handler: CoreHandlers;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RootStore.d.ts","sourceRoot":"","sources":["../../../../../src/store/RootStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,YAAY,EAAoB,MAAM,0BAA0B,CAAC;AACnF,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAK/B,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AACtD,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,WAAW,MAAM,eAAe,CAAC;AACxC,OAAO,UAAU,MAAM,cAAc,CAAC;AAEtC,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAE5C,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,uBAAuB,MAAM,2BAA2B,CAAC;AAChE,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAG1C,MAAM,CAAC,OAAO;aA4BM,IAAI,EAAE,IAAI;aACV,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AG,OAAO,CAAa;IACnD,eAAe,EAAE;QAAE,YAAY,EAAE,eAAe,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IAExE;;;OAGG;IACH,OAAO,CAAC,kBAAkB,CAA8B;IAEjD,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAa;gBAGjD,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,YAAY,EACL,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,gBAAgB,EAC1C,eAAe,EAAE;QAAE,YAAY,EAAE,eAAe,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE;IAgBlE,cAAc,CAAC,OAAO,EAAE,YAAY;IAIpC,qBAAqB,CAAC,eAAe,EAAE;QAAE,YAAY,EAAE,eAAe,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE;IAStF,mBAAmB,CAAC,CAAC,GAAG,OAAO,EAAE,GAAG,EAAE,MAAM,GAAG,CAAC,GAAG,SAAS;IAI5D,mBAAmB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO;IAI/C,QAAQ,CAAC,KAAK,EAAE,MAAM;IAItB,IAAI,CAAC,yEAEJ;IAED,qBAAqB,CAAC,kBAAkB,CAAC,EAAE,MAAM,IAAI;IAIrD,cAAc,CAAC,GAAG,EAAE,gBAAgB,GAAG,QAAQ,GAAG,WAAW,GAAG,wBAAwB,GAAG,MAAM;IAuBjG;;;;;OAKG;IACH,aAAa,CAAC,EAAE,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,YAAY;CAkBtD"}
|
|
@@ -92,6 +92,11 @@ export default class ToolBarStore {
|
|
|
92
92
|
setPopoutWindow(toolId: string, win: Window | undefined): void;
|
|
93
93
|
/** Brings a detached tool's window to the front. */
|
|
94
94
|
focusPopout(toolId: string): void;
|
|
95
|
+
/**
|
|
96
|
+
* Makes a tool visible without displacing what the user is looking at — a background tool is detached
|
|
97
|
+
* into its own window while another tool is open (a blocked popup redocks it without stealing the selection).
|
|
98
|
+
*/
|
|
99
|
+
revealTool(toolId: string): 'already-visible' | 'focused-window' | 'detached' | 'selected' | 'not-found';
|
|
95
100
|
/**
|
|
96
101
|
* Updates the internal tool state based on available tools.
|
|
97
102
|
* Sets default values for selected tool, pinned state, visibility and width.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolBarStore.d.ts","sourceRoot":"","sources":["../../../../../src/store/ToolBarStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAelD;;;GAGG;AACH,MAAM,CAAC,OAAO,OAAO,YAAY;IA2B7B,OAAO,CAAC,eAAe;IACvB,OAAO,CAAC,eAAe,CAAC;IA3B1B,OAAO,CAAC,MAAM,CAAc;IAC5B,OAAO,CAAC,OAAO,CAAiB;IAChC,OAAO,CAAC,OAAO,CAAkB;IACjC,OAAO,CAAC,eAAe,CAAqB;IAC5C,OAAO,CAAC,eAAe,CAAqB;IAC5C,OAAO,CAAC,gBAAgB,CAAqB;IAC7C,+IAA+I;IAC/I,OAAO,CAAC,oBAAoB,CAAqB;IACjD,kHAAkH;IAClH,OAAO,CAAC,kBAAkB,CAAoD;IAC9E,uFAAuF;IACvF,OAAO,CAAC,cAAc,CAA6B;IACnD,OAAO,CAAC,aAAa,CAAoC;IACzD,OAAO,CAAC,gBAAgB,CAAS;IACjC,OAAO,CAAC,MAAM,CAAa;IAC3B,OAAO,CAAC,eAAe,CAA+B;IACtD,gIAAgI;IAChI,OAAO,CAAC,eAAe,CAAS;IAEhC;;;;;OAKG;gBAEO,eAAe,EAAE,MAAM,EACvB,eAAe,CAAC,EAAE,MAAM,YAAA;IAUlC;;OAEG;IACH,IAAI,KAAK,IAAI,IAAI,EAAE,CAElB;IAED,IAAI,KAAK,CAAC,KAAK,EAAE,IAAI,EAAE,EAyBtB;IAED;;;;;OAKG;IACH,QAAQ,CAAC,GAAG,KAAK,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IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,EAIzB;IAED;;OAEG;IACH,IAAI,eAAe,IAAI,MAAM,CAE5B;IAED,IAAI,eAAe,CAAC,QAAQ,EAAE,MAAM,EAEnC;IAED;;OAEG;IACH,IAAI,eAAe,IAAI,IAAI,GAAG,SAAS,CAEtC;IAED;;;;OAIG;IACH,IAAI,KAAK,IAAI,MAAM,CAElB;IAED,IAAI,KAAK,CAAC,KAAK,EAAE,MAAM,EActB;IAED;;OAEG;IACH,IAAI,cAAc,IAAI,cAAc,GAAG,IAAI,CAE1C;IAED,IAAI,cAAc,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI,EAEhD;IAED;;;;OAIG;IACH,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS;IAsBrC;;;;OAIG;IACH,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO;IAKlC;;;;;OAKG;IACH,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO;CAsD/D"}
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import type DivaWebPlanner from '@crystaldesign/web-planner-logic';
|
|
2
|
+
/** What the store itself needs from a planner instance - the full DivaWebPlanner in production, a double in tests. */
|
|
3
|
+
export interface PlannerInstance {
|
|
4
|
+
readonly isDestroyed: boolean;
|
|
5
|
+
destroyWebPlanner(): void;
|
|
6
|
+
clearCache(): void;
|
|
7
|
+
}
|
|
2
8
|
/**
|
|
3
9
|
* Shares DivaWebPlanner LOGIC instances between planner views and other tools (DIVA agent):
|
|
4
10
|
* the MOUNTED instance registered by the WYSIWYG (re-registered on every re-init, so resolve it
|
|
5
11
|
* through this store at call time and never cache it) and HEADLESS instances created on demand,
|
|
6
12
|
* cached per key and LRU-evicted. Keys must come from `webplannerInstanceKey`.
|
|
7
13
|
*/
|
|
8
|
-
export default class WebplannerInstanceStore {
|
|
14
|
+
export default class WebplannerInstanceStore<TPlanner extends PlannerInstance = DivaWebPlanner> {
|
|
9
15
|
private _activeKey?;
|
|
10
16
|
private _activeInstance?;
|
|
11
17
|
private _headless;
|
|
@@ -14,22 +20,42 @@ export default class WebplannerInstanceStore {
|
|
|
14
20
|
private _invalidations;
|
|
15
21
|
private _pinnedKey?;
|
|
16
22
|
private _activeReloadHandler?;
|
|
23
|
+
/**
|
|
24
|
+
* Instances whose catalog data changed. Bound to the INSTANCE, not its key: a replacement can register under the
|
|
25
|
+
* same key before the old view's asynchronous teardown runs, and a key-based mark would then condemn the
|
|
26
|
+
* replacement while leaking the instance it was meant to retire.
|
|
27
|
+
*/
|
|
28
|
+
private _invalidatedInstances;
|
|
17
29
|
constructor();
|
|
18
|
-
register(key: string, instance:
|
|
19
|
-
|
|
30
|
+
register(key: string, instance: TPlanner): void;
|
|
31
|
+
/**
|
|
32
|
+
* Ends the mounted registration. Pass the instance that was registered whenever the caller knows it: both
|
|
33
|
+
* registrations share one key, so a teardown that names no instance can only retire whatever is active —
|
|
34
|
+
* including a replacement whose view is still on screen. With the instance given, a teardown that lost the
|
|
35
|
+
* race is a no-op instead.
|
|
36
|
+
*/
|
|
37
|
+
unregister(key: string, instance?: TPlanner): void;
|
|
38
|
+
/**
|
|
39
|
+
* Destroys an instance whose data went stale, otherwise returns it to the headless pool. An invalidated instance
|
|
40
|
+
* must not be rescued — an adopted planner runs attachAdoptedLogic() and would serve stale data forever.
|
|
41
|
+
*/
|
|
42
|
+
private retire;
|
|
20
43
|
/** Takes a headless instance OUT of the pool so a mounting view can adopt it (a mounted instance must never be LRU-evicted). */
|
|
21
|
-
adoptHeadless(key: string):
|
|
44
|
+
adoptHeadless(key: string): TPlanner | undefined;
|
|
22
45
|
/**
|
|
23
46
|
* The logic instance of the currently mounted planner view, if any
|
|
24
47
|
*/
|
|
25
|
-
get active():
|
|
48
|
+
get active(): TPlanner | undefined;
|
|
49
|
+
/** Keys of every available instance (mounted first, then pooled headless ones); empty means no planner is loaded at all. */
|
|
50
|
+
get loadedKeys(): string[];
|
|
26
51
|
/**
|
|
27
52
|
* Resolves an already available instance for a key: the mounted one wins (UI steering
|
|
28
|
-
* works on it), otherwise a cached headless one.
|
|
53
|
+
* works on it), otherwise a cached headless one. A mounted instance whose key was invalidated is
|
|
54
|
+
* not handed out any more - its view tears it down asynchronously, and until then it serves stale data.
|
|
29
55
|
*/
|
|
30
|
-
resolve(key: string):
|
|
56
|
+
resolve(key: string): TPlanner | undefined;
|
|
31
57
|
/** Resolves the instance for a key, creating a headless one when none exists. Concurrent calls for the same key share one creation. */
|
|
32
|
-
getOrCreateHeadless(key: string, create: () => Promise<
|
|
58
|
+
getOrCreateHeadless(key: string, create: () => Promise<TPlanner>): Promise<TPlanner>;
|
|
33
59
|
/**
|
|
34
60
|
* Builds and caches a headless instance. An invalidation that lands while the instance is being
|
|
35
61
|
* built cannot reach it — it is not in `_headless` yet — so caching it would serve pre-invalidation
|
|
@@ -45,6 +71,7 @@ export default class WebplannerInstanceStore {
|
|
|
45
71
|
invalidateByBase(baseId: string): {
|
|
46
72
|
destroyed: number;
|
|
47
73
|
reloadTriggered: boolean;
|
|
74
|
+
knownKeys: string[];
|
|
48
75
|
};
|
|
49
76
|
/** Protects the instance under this key from LRU eviction while a consumer is actively using it (eviction destroys instances). */
|
|
50
77
|
pin(key: string): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WebplannerInstanceStore.d.ts","sourceRoot":"","sources":["../../../../../src/store/WebplannerInstanceStore.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc,MAAM,kCAAkC,CAAC;AAInE;;;;;GAKG;AACH,MAAM,CAAC,OAAO,OAAO,uBAAuB;
|
|
1
|
+
{"version":3,"file":"WebplannerInstanceStore.d.ts","sourceRoot":"","sources":["../../../../../src/store/WebplannerInstanceStore.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc,MAAM,kCAAkC,CAAC;AAInE,sHAAsH;AACtH,MAAM,WAAW,eAAe;IAC9B,Q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,MAAM,EAAE,MAAM,GAAG;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,eAAe,EAAE,OAAO,CAAC;QAAC,SAAS,EAAE,MAAM,EAAE,CAAA;KAAE;IAqCtG,kIAAkI;IAClI,GAAG,CAAC,GAAG,EAAE,MAAM;IAIf,KAAK,CAAC,GAAG,EAAE,MAAM;IAIjB,sFAAsF;IACtF,OAAO,CAAC,KAAK;IAOb,OAAO,CAAC,KAAK;IAUb,OAAO,CAAC,OAAO;CAOhB;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,MAAM,CAET"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentBridgePanel.test.d.ts","sourceRoot":"","sources":["../../../../../../../src/tests/unit/agentBridge/agentBridgePanel.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bridgeStatus.test.d.ts","sourceRoot":"","sources":["../../../../../../../src/tests/unit/agentBridge/bridgeStatus.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentMount.test.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/tests/unit/layout/Toolbar/Tools/DivaAgent/agentMount.test.ts"],"names":[],"mappings":""}
|