@adobe/exc-app 1.4.16 → 1.4.18
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/RuntimeConfiguration.d.ts +17 -0
- package/RuntimeConfiguration.js +7 -0
- package/RuntimeConfiguration.js.map +1 -1
- package/ai.d.ts +52 -1
- package/ai.js +9 -0
- package/ai.js.map +1 -1
- package/appapi.d.ts +4 -4
- package/appapi.js +3 -3
- package/appapi.js.map +1 -1
- package/dom.d.ts +133 -0
- package/dom.js +21 -0
- package/dom.js.map +1 -0
- package/package.json +2 -2
- package/page.d.ts +11 -0
- package/page.js +1 -0
- package/page.js.map +1 -1
- package/sidenav.d.ts +7 -0
- package/sidenav.js +5 -0
- package/sidenav.js.map +1 -1
- package/src/Global.d.ts +2 -0
- package/src/Global.js.map +1 -1
- package/tests/agreements.test.js +3 -3
- package/tests/agreements.test.js.map +1 -1
- package/tests/ai.test.js +35 -31
- package/tests/ai.test.js.map +1 -1
- package/tests/featureflags.test.js +6 -6
- package/tests/featureflags.test.js.map +1 -1
- package/tests/helpCenter.test.js +5 -5
- package/tests/helpCenter.test.js.map +1 -1
- package/tests/index.test.js +2 -2
- package/tests/index.test.js.map +1 -1
- package/tests/metrics.test.js +2 -2
- package/tests/metrics.test.js.map +1 -1
- package/tests/nps.test.js +1 -1
- package/tests/nps.test.js.map +1 -1
- package/tests/page.test.js +26 -26
- package/tests/page.test.js.map +1 -1
- package/tests/permissions.test.js +6 -6
- package/tests/permissions.test.js.map +1 -1
- package/tests/pulse.test.js +2 -2
- package/tests/pulse.test.js.map +1 -1
- package/tests/shell.test.js +11 -11
- package/tests/shell.test.js.map +1 -1
- package/tests/sidenav.test.js +12 -12
- package/tests/sidenav.test.js.map +1 -1
- package/tests/topbar.test.js +3 -3
- package/tests/topbar.test.js.map +1 -1
- package/tests/user.test.js +31 -31
- package/tests/user.test.js.map +1 -1
- package/tests/userprofile.test.js +1 -1
- package/tests/userprofile.test.js.map +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -13,6 +13,11 @@ import type { AppParent } from '@adobe/exc-app/appapi';
|
|
|
13
13
|
import type { Collaborator, Instance, Sandbox } from './user';
|
|
14
14
|
import type { ConsentPermissions } from './consent';
|
|
15
15
|
import type MetricsConfiguration from './metrics/Configuration';
|
|
16
|
+
export declare enum RightPanelType {
|
|
17
|
+
HELP_CENTER = "help-center",
|
|
18
|
+
LEGACY_AIA = "legacy-aia",
|
|
19
|
+
NEXT_GEN_AIA = "next-gen-aia"
|
|
20
|
+
}
|
|
16
21
|
export interface UserRoles {
|
|
17
22
|
roleJobFunction: Record<string, boolean>;
|
|
18
23
|
rolePlatformObjective: Record<string, boolean | string>;
|
|
@@ -388,10 +393,18 @@ export interface RuntimeConfiguration {
|
|
|
388
393
|
* Map of Adobe Io region specific endpoints.
|
|
389
394
|
*/
|
|
390
395
|
ioRegionSpecificMap?: Record<string, string>;
|
|
396
|
+
/**
|
|
397
|
+
* Is the configuration for the AI Panel iframe
|
|
398
|
+
*/
|
|
399
|
+
isAIPanel: boolean;
|
|
391
400
|
/**
|
|
392
401
|
* Is the org an AWS org
|
|
393
402
|
*/
|
|
394
403
|
isAWSOrg?: boolean;
|
|
404
|
+
/**
|
|
405
|
+
* Is the next generation AI Assistant enabled
|
|
406
|
+
*/
|
|
407
|
+
isNextGenAIAEnabled: boolean;
|
|
395
408
|
/**
|
|
396
409
|
* Flag to know that the S2 design language is being used.
|
|
397
410
|
*/
|
|
@@ -464,6 +477,10 @@ export interface RuntimeConfiguration {
|
|
|
464
477
|
* Is side panel open?
|
|
465
478
|
*/
|
|
466
479
|
shellRightPanelOpen?: boolean;
|
|
480
|
+
/**
|
|
481
|
+
* Type of right panel (help-center, next-gen-aia, or legacy-aia)
|
|
482
|
+
*/
|
|
483
|
+
shellRightPanelType?: RightPanelType;
|
|
467
484
|
/**
|
|
468
485
|
* Width of right panel
|
|
469
486
|
*/
|
package/RuntimeConfiguration.js
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RightPanelType = void 0;
|
|
4
|
+
var RightPanelType;
|
|
5
|
+
(function (RightPanelType) {
|
|
6
|
+
RightPanelType["HELP_CENTER"] = "help-center";
|
|
7
|
+
RightPanelType["LEGACY_AIA"] = "legacy-aia";
|
|
8
|
+
RightPanelType["NEXT_GEN_AIA"] = "next-gen-aia";
|
|
9
|
+
})(RightPanelType || (exports.RightPanelType = RightPanelType = {}));
|
|
3
10
|
//# sourceMappingURL=RuntimeConfiguration.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RuntimeConfiguration.js","sourceRoot":"","sources":["RuntimeConfiguration.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"RuntimeConfiguration.js","sourceRoot":"","sources":["RuntimeConfiguration.ts"],"names":[],"mappings":";;;AAgBA,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,6CAA2B,CAAA;IAC3B,2CAAyB,CAAA;IACzB,+CAA6B,CAAA;AAC/B,CAAC,EAJW,cAAc,8BAAd,cAAc,QAIzB"}
|
package/ai.d.ts
CHANGED
|
@@ -48,6 +48,15 @@ export interface MultimodalElementItem {
|
|
|
48
48
|
export interface MultimodalElements {
|
|
49
49
|
elements: MultimodalElementItem[];
|
|
50
50
|
}
|
|
51
|
+
export interface ToastOptions {
|
|
52
|
+
actionLabel?: string;
|
|
53
|
+
placement?: 'top start' | 'top' | 'top end' | 'bottom start' | 'bottom' | 'bottom end';
|
|
54
|
+
variant?: 'positive' | 'info' | 'error' | 'neutral' | 'negative' | 'success';
|
|
55
|
+
shouldCloseOnAction?: boolean;
|
|
56
|
+
timeout?: number;
|
|
57
|
+
onClose?: () => void;
|
|
58
|
+
onAction?: () => void;
|
|
59
|
+
}
|
|
51
60
|
export interface SuccessResponse {
|
|
52
61
|
answer: string;
|
|
53
62
|
chatId: string;
|
|
@@ -160,6 +169,10 @@ export interface AIMessagePayload {
|
|
|
160
169
|
* The id of the custom event.
|
|
161
170
|
*/
|
|
162
171
|
id?: string;
|
|
172
|
+
/**
|
|
173
|
+
* Whether the AI panel is open or closed.
|
|
174
|
+
*/
|
|
175
|
+
isOpen?: boolean;
|
|
163
176
|
/**
|
|
164
177
|
* The permissions required to enable the AI UI.
|
|
165
178
|
*/
|
|
@@ -183,6 +196,10 @@ export interface AIContext {
|
|
|
183
196
|
*/
|
|
184
197
|
[key: string]: any;
|
|
185
198
|
}
|
|
199
|
+
export interface AppContext {
|
|
200
|
+
appId: string;
|
|
201
|
+
appRoot: string;
|
|
202
|
+
}
|
|
186
203
|
interface AIMessageEvent {
|
|
187
204
|
BUTTON_ACTIVE: AIMessagePayload;
|
|
188
205
|
BUTTON_VISIBLE: AIMessagePayload;
|
|
@@ -198,13 +215,23 @@ interface AIMessageEvent {
|
|
|
198
215
|
USER_ACTION: AIMessagePayload;
|
|
199
216
|
}
|
|
200
217
|
export interface AIApi extends EventEmitter<AIMessageEvent> {
|
|
218
|
+
/**
|
|
219
|
+
* Requests the appid and approot from the application. This is used to
|
|
220
|
+
* asynchronously request the appid and approot on-demand.
|
|
221
|
+
*
|
|
222
|
+
* ***Example:***
|
|
223
|
+
*
|
|
224
|
+
* ```typescript
|
|
225
|
+
* ai.appContext();
|
|
226
|
+
* ```
|
|
227
|
+
*/
|
|
228
|
+
appContext: () => Promise<AppContext>;
|
|
201
229
|
/**
|
|
202
230
|
* Sets the context for the AI chat. This can be called unlimited times to
|
|
203
231
|
* ensure the context has the correct information. This value will be fetched
|
|
204
232
|
* on every request for context by the AI chat UI when a user submits a query.
|
|
205
233
|
* Please make sure to keep this value up-to-date when any context values
|
|
206
234
|
* change within the application.
|
|
207
|
-
*
|
|
208
235
|
* ***Example:***
|
|
209
236
|
*
|
|
210
237
|
* ```typescript
|
|
@@ -275,6 +302,15 @@ export interface AIApi extends EventEmitter<AIMessageEvent> {
|
|
|
275
302
|
* ```
|
|
276
303
|
*/
|
|
277
304
|
showAssistant: (permissions: string[]) => void;
|
|
305
|
+
/**
|
|
306
|
+
* Sends a message to Unified Shell to show a toast message.
|
|
307
|
+
*
|
|
308
|
+
* ***Example:***
|
|
309
|
+
*
|
|
310
|
+
* ```typescript
|
|
311
|
+
* ai.showToast('Hello, world!', {position: 'bottom center', variant: 'success'});
|
|
312
|
+
*/
|
|
313
|
+
showToast: (message: string, options: ToastOptions) => void;
|
|
278
314
|
/**
|
|
279
315
|
* Sends a message to Unified Shell to change the active status of the Assistant button.
|
|
280
316
|
*
|
|
@@ -293,6 +329,21 @@ export interface AIApi extends EventEmitter<AIMessageEvent> {
|
|
|
293
329
|
* ai.toggleButtonVisible(true);
|
|
294
330
|
*/
|
|
295
331
|
toggleButtonVisible: (visible: boolean) => void;
|
|
332
|
+
/**
|
|
333
|
+
* Sends a message to Unified Shell to toggle the AI panel open or closed.
|
|
334
|
+
*
|
|
335
|
+
* ***Example to close the panel:***
|
|
336
|
+
*
|
|
337
|
+
* ```typescript
|
|
338
|
+
* ai.togglePanel(false);
|
|
339
|
+
* ```
|
|
340
|
+
*
|
|
341
|
+
* ***Example to open the panel:***
|
|
342
|
+
*
|
|
343
|
+
* ```typescript
|
|
344
|
+
* ai.togglePanel(true);
|
|
345
|
+
*/
|
|
346
|
+
togglePanel: (isOpen: boolean) => void;
|
|
296
347
|
}
|
|
297
348
|
declare const ai: AIApi;
|
|
298
349
|
export default ai;
|
package/ai.js
CHANGED
|
@@ -28,6 +28,9 @@ var AIMessageType;
|
|
|
28
28
|
AIMessageType["USER_ACTION"] = "USER_ACTION";
|
|
29
29
|
})(AIMessageType || (exports.AIMessageType = AIMessageType = {}));
|
|
30
30
|
const ai = {
|
|
31
|
+
appContext: () => {
|
|
32
|
+
return (0, Global_1.getImpl)('ai')().appContext();
|
|
33
|
+
},
|
|
31
34
|
closeChat: () => {
|
|
32
35
|
return (0, Global_1.getImpl)('ai')().closeChat();
|
|
33
36
|
},
|
|
@@ -58,11 +61,17 @@ const ai = {
|
|
|
58
61
|
showAssistant: (permissions) => {
|
|
59
62
|
return (0, Global_1.getImpl)('ai')().showAssistant(permissions);
|
|
60
63
|
},
|
|
64
|
+
showToast: (message, options) => {
|
|
65
|
+
return (0, Global_1.getImpl)('ai')().showToast(message, options);
|
|
66
|
+
},
|
|
61
67
|
toggleButtonActive: (active) => {
|
|
62
68
|
return (0, Global_1.getImpl)('ai')().toggleButtonActive(active);
|
|
63
69
|
},
|
|
64
70
|
toggleButtonVisible: (visible) => {
|
|
65
71
|
return (0, Global_1.getImpl)('ai')().toggleButtonVisible(visible);
|
|
72
|
+
},
|
|
73
|
+
togglePanel: (isOpen) => {
|
|
74
|
+
return (0, Global_1.getImpl)('ai')().togglePanel(isOpen);
|
|
66
75
|
}
|
|
67
76
|
};
|
|
68
77
|
Object.defineProperty(ai, 'context', {
|
package/ai.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai.js","sourceRoot":"","sources":["ai.ts"],"names":[],"mappings":";AAAA;;;;;;;;;4EAS4E;;;AAQ5E,yCAAqC;
|
|
1
|
+
{"version":3,"file":"ai.js","sourceRoot":"","sources":["ai.ts"],"names":[],"mappings":";AAAA;;;;;;;;;4EAS4E;;;AAQ5E,yCAAqC;AA+HrC,IAAY,aAaX;AAbD,WAAY,aAAa;IACvB,gDAA+B,CAAA;IAC/B,kDAAiC,CAAA;IACjC,gCAAe,CAAA;IACf,oCAAmB,CAAA;IACnB,sDAAqC,CAAA;IACrC,gCAAe,CAAA;IACf,8BAAa,CAAA;IACb,8BAAa,CAAA;IACb,gCAAe,CAAA;IACf,sCAAqB,CAAA;IACrB,4DAA2C,CAAA;IAC3C,4CAA2B,CAAA;AAC7B,CAAC,EAbW,aAAa,6BAAb,aAAa,QAaxB;AA2ND,MAAM,EAAE,GAAG;IACT,UAAU,EAAE,GAAG,EAAE;QACf,OAAO,IAAA,gBAAO,EAAC,IAAI,CAAC,EAAE,CAAC,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-8,7 +8,7 @@
|
|
|
8
8
|
* then your use, modification, or distribution of it requires the prior
|
|
9
9
|
* written permission of Adobe.
|
|
10
10
|
**************************************************************************/
|
|
11
|
-
export type AppParent = 'AEP' | 'AICAGENTS' | 'AICAIA' | 'CO' | 'CJM' | 'DC' | 'FLOODGATE' | 'GENSTUDIO' | 'ORION' | 'SAPPHIRE' | 'TARGET';
|
|
11
|
+
export type AppParent = 'AEP' | 'AGENTCOMPOSER' | 'AICAGENTS' | 'AICAIA' | 'ARION' | 'CO' | 'CJM' | 'DC' | 'FLOODGATE' | 'GENSTUDIO' | 'ORION' | 'SAPPHIRE' | 'TARGET';
|
|
12
12
|
export interface AppResponse {
|
|
13
13
|
/**
|
|
14
14
|
* Specifies the Adobe brand icon to use.
|
|
@@ -84,7 +84,6 @@ export declare enum AppIds {
|
|
|
84
84
|
EXPERIMENTATION_ACCELERATOR = "experimentation-accelerator-target",
|
|
85
85
|
FLOODGATE = "floodgateFeatureFlags",
|
|
86
86
|
GENSTUDIO = "GenStudio",
|
|
87
|
-
GENSTUDIO_PERFORMANCE_MARKETING = "GenStudioSynthetic",
|
|
88
87
|
HEADLESS_CMS = "hcms",
|
|
89
88
|
JOURNEY_OPTIMIZER = "cjm-home",
|
|
90
89
|
JOURNEY_OPTIMIZER_B2B_EDITION = "sapphireHome",
|
|
@@ -97,19 +96,20 @@ export declare enum AppIds {
|
|
|
97
96
|
MIX_MODELER = "adobemixmodeler",
|
|
98
97
|
OFFERS = "offers",
|
|
99
98
|
PASS_AUTHENTICATION = "adobepassunifiedshellconsoleclient",
|
|
100
|
-
PEOPLE = "
|
|
99
|
+
PEOPLE = "macuiAudiences",
|
|
101
100
|
PERMISSIONS = "permissionsUI",
|
|
102
101
|
PRIVACY_SERVICE = "privacyui",
|
|
103
102
|
PROJECT_HUMMINGBIRD = "hummingbird",
|
|
103
|
+
PROJECT_PANGEA = "usage-metrics",
|
|
104
104
|
PROJECT_SIERRA = "cjm-home",
|
|
105
105
|
REAL_TIME_CDP_COLLABORATION = "agoraUI",
|
|
106
106
|
RTCDP_COLLABORATION = "agoraUI",
|
|
107
107
|
SITES_OPTIMIZER = "experienceSuccessStudio",
|
|
108
108
|
SOFTWARE_DISTRIBUTION = "softwareDistribution",
|
|
109
|
+
SUCCESS_PORTAL = "ucpapp",
|
|
109
110
|
SYSTEM_STATUS = "systemStatus",
|
|
110
111
|
TARGET = "target",
|
|
111
112
|
TRIGGERS = "triggers",
|
|
112
|
-
UNIFIED_CUSTOMER_PORTAL = "ucpapp",
|
|
113
113
|
WORKFRONT = "workfront",
|
|
114
114
|
WORKFRONT_FUSION = "fusion"
|
|
115
115
|
}
|
package/appapi.js
CHANGED
|
@@ -85,7 +85,6 @@ var AppIds;
|
|
|
85
85
|
AppIds["EXPERIMENTATION_ACCELERATOR"] = "experimentation-accelerator-target";
|
|
86
86
|
AppIds["FLOODGATE"] = "floodgateFeatureFlags";
|
|
87
87
|
AppIds["GENSTUDIO"] = "GenStudio";
|
|
88
|
-
AppIds["GENSTUDIO_PERFORMANCE_MARKETING"] = "GenStudioSynthetic";
|
|
89
88
|
AppIds["HEADLESS_CMS"] = "hcms";
|
|
90
89
|
AppIds["JOURNEY_OPTIMIZER"] = "cjm-home";
|
|
91
90
|
AppIds["JOURNEY_OPTIMIZER_B2B_EDITION"] = "sapphireHome";
|
|
@@ -98,19 +97,20 @@ var AppIds;
|
|
|
98
97
|
AppIds["MIX_MODELER"] = "adobemixmodeler";
|
|
99
98
|
AppIds["OFFERS"] = "offers";
|
|
100
99
|
AppIds["PASS_AUTHENTICATION"] = "adobepassunifiedshellconsoleclient";
|
|
101
|
-
AppIds["PEOPLE"] = "
|
|
100
|
+
AppIds["PEOPLE"] = "macuiAudiences";
|
|
102
101
|
AppIds["PERMISSIONS"] = "permissionsUI";
|
|
103
102
|
AppIds["PRIVACY_SERVICE"] = "privacyui";
|
|
104
103
|
AppIds["PROJECT_HUMMINGBIRD"] = "hummingbird";
|
|
104
|
+
AppIds["PROJECT_PANGEA"] = "usage-metrics";
|
|
105
105
|
AppIds["PROJECT_SIERRA"] = "cjm-home";
|
|
106
106
|
AppIds["REAL_TIME_CDP_COLLABORATION"] = "agoraUI";
|
|
107
107
|
AppIds["RTCDP_COLLABORATION"] = "agoraUI";
|
|
108
108
|
AppIds["SITES_OPTIMIZER"] = "experienceSuccessStudio";
|
|
109
109
|
AppIds["SOFTWARE_DISTRIBUTION"] = "softwareDistribution";
|
|
110
|
+
AppIds["SUCCESS_PORTAL"] = "ucpapp";
|
|
110
111
|
AppIds["SYSTEM_STATUS"] = "systemStatus";
|
|
111
112
|
AppIds["TARGET"] = "target";
|
|
112
113
|
AppIds["TRIGGERS"] = "triggers";
|
|
113
|
-
AppIds["UNIFIED_CUSTOMER_PORTAL"] = "ucpapp";
|
|
114
114
|
AppIds["WORKFRONT"] = "workfront";
|
|
115
115
|
AppIds["WORKFRONT_FUSION"] = "fusion";
|
|
116
116
|
})(AppIds || (exports.AppIds = AppIds = {}));
|
package/appapi.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appapi.js","sourceRoot":"","sources":["appapi.ts"],"names":[],"mappings":";AAAA;;;;;;;;;4EAS4E;;;AAE5E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,yCAAqC;AAuCrC,0DAA0D;AAC1D,IAAY,MAqEX;AArED,WAAY,MAAM;IAChB,yBAAe,CAAA;IACf,wCAA8B,CAAA;IAC9B,oDAA0C,CAAA;IAC1C,+CAAqC,CAAA;IACrC,gEAAsD,CAAA;IACtD,+CAAqC,CAAA;IACrC,iCAAuB,CAAA;IACvB,yCAA+B,CAAA;IAC/B,2BAAiB,CAAA;IACjB,oCAA0B,CAAA;IAC1B,8CAAoC,CAAA;IACpC,sCAA4B,CAAA;IAC5B,qCAA2B,CAAA;IAC3B,yCAA+B,CAAA;IAC/B,0CAAgC,CAAA;IAChC,mCAAyB,CAAA;IACzB,6DAAmD,CAAA;IACnD,wCAA8B,CA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AAkE,CAAA;IAClE,kDAAwC,CAAA;IACxC,kDAAwC,CAAA;IACxC,0DAAgD,CAAA;IAChD,4DAAkD,CAAA;IAClD,4DAAkD,CAAA;IAClD,4CAAkC,CAAA;IAClC,8DAAoD,CAAA;IACpD,8DAAoD,CAAA;IACpD,gDAAsC,CAAA;IACtC,sDAA4C,CAAA;IAC5C,4EAAkE,CAAA;IAClE,6CAAmC,CAAA;IACnC,iCAAuB,CAAA;IACvB,+BAAqB,CAAA;IACrB,wCAA8B,CAAA;IAC9B,wDAA8C,CAAA;IAC9C,qDAA2C,CAAA;IAC3C,wCAA8B,CAAA;IAC9B,qCAA2B,CAAA;IAC3B,6BAAmB,CAAA;IACnB,0CAAgC,CAAA;IAChC,qCAA2B,CAAA;IAC3B,yCAA+B,CAAA;IAC/B,2BAAiB,CAAA;IACjB,oEAA0D,CAAA;IAC1D,mCAAyB,CAAA;IACzB,uCAA6B,CAAA;IAC7B,uCAA6B,CAAA;IAC7B,6CAAmC,CAAA;IACnC,0CAAgC,CAAA;IAChC,qCAA2B,CAAA;IAC3B,iDAAuC,CAAA;IACvC,yCAA+B,CAAA;IAC/B,qDAA2C,CAAA;IAC3C,wDAA8C,CAAA;IAC9C,mCAAyB,CAAA;IACzB,wCAA8B,CAAA;IAC9B,2BAAiB,CAAA;IACjB,+BAAqB,CAAA;IACrB,iCAAuB,CAAA;IACvB,qCAA2B,CAAA;AAC7B,CAAC,EArEW,MAAM,sBAAN,MAAM,QAqEjB;AAWD,MAAM,MAAM,GAAW;IACrB,GAAG,EAAE,MAAM,CAAC,EAAE;QACZ,OAAO,IAAA,gBAAO,EAAC,QAAQ,CAAC,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACzC,CAAC;CACF,CAAC;AAEF,kBAAe,MAAM,CAAC"}
|
package/dom.d.ts
ADDED
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
/*************************************************************************
|
|
2
|
+
* Copyright 2025 Adobe
|
|
3
|
+
* All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* NOTICE: Adobe permits you to use, modify, and distribute this file in
|
|
6
|
+
* accordance with the terms of the Adobe license agreement accompanying
|
|
7
|
+
* it. If you have received this file from a source other than Adobe,
|
|
8
|
+
* then your use, modification, or distribution of it requires the prior
|
|
9
|
+
* written permission of Adobe.
|
|
10
|
+
**************************************************************************/
|
|
11
|
+
/**
|
|
12
|
+
* Internal APIs, meant to be used by Unified Shell to manipulate the iframe DOM.
|
|
13
|
+
* @packageDocumentation
|
|
14
|
+
* @module dom
|
|
15
|
+
*/
|
|
16
|
+
export interface DomHighlightStyle {
|
|
17
|
+
border?: string;
|
|
18
|
+
borderColor?: string;
|
|
19
|
+
borderWidth?: string;
|
|
20
|
+
borderRadius?: string;
|
|
21
|
+
backgroundColor?: string;
|
|
22
|
+
boxShadow?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface DomStyleConfig {
|
|
25
|
+
/**
|
|
26
|
+
* Style applied directly to the element overlay component
|
|
27
|
+
*/
|
|
28
|
+
highlightStyle: DomHighlightStyle;
|
|
29
|
+
/**
|
|
30
|
+
* Custom style injected into page when spotlight is enabled.
|
|
31
|
+
*/
|
|
32
|
+
injectedStyle: {
|
|
33
|
+
/**
|
|
34
|
+
* The classname applied when spotlight is enabled.
|
|
35
|
+
*/
|
|
36
|
+
className: string;
|
|
37
|
+
/**
|
|
38
|
+
* The HTML to inject into the style element. Contains the CSS for the injected style class.
|
|
39
|
+
*/
|
|
40
|
+
html: string;
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
export interface DataCaptureConfig {
|
|
44
|
+
/**
|
|
45
|
+
* Whether to include the attributes of the element.
|
|
46
|
+
*/
|
|
47
|
+
includeAttributes?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Whether to include the HTML of the element.
|
|
50
|
+
*/
|
|
51
|
+
includeHTML?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Whether to include a screenshot of the element.
|
|
54
|
+
*/
|
|
55
|
+
includeScreenshot?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Whether to include the text of the element.
|
|
58
|
+
*/
|
|
59
|
+
includeText?: boolean;
|
|
60
|
+
}
|
|
61
|
+
export interface DomElement {
|
|
62
|
+
minSize?: number;
|
|
63
|
+
maxSize?: number;
|
|
64
|
+
tagName: string;
|
|
65
|
+
}
|
|
66
|
+
export interface DomInteractionConfig {
|
|
67
|
+
/**
|
|
68
|
+
* Configuration for data capture.
|
|
69
|
+
*/
|
|
70
|
+
dataCapture?: DataCaptureConfig;
|
|
71
|
+
/**
|
|
72
|
+
* Configuration for element detection.
|
|
73
|
+
*/
|
|
74
|
+
elementDetection?: {
|
|
75
|
+
/**
|
|
76
|
+
* Used to delay the actual highlight until the user has stopped moving
|
|
77
|
+
* the mouse for a set amount of time. A higher debounce will mean a less
|
|
78
|
+
* responsive highlight. Not enabled by default.
|
|
79
|
+
*/
|
|
80
|
+
debounceDelay?: number;
|
|
81
|
+
/**
|
|
82
|
+
* The types of elements to be detected e.g. 'a', 'div', 'button', etc.
|
|
83
|
+
*/
|
|
84
|
+
elements?: DomElement[];
|
|
85
|
+
/**
|
|
86
|
+
* Used in onMouseOver to prevent the highlight logic from running more than once every so often
|
|
87
|
+
* (30ms by default), even if the mouse moves more frequently.
|
|
88
|
+
*/
|
|
89
|
+
throttleDelay?: number;
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* Styles to be applied to the page and overlay element.
|
|
93
|
+
*/
|
|
94
|
+
style?: DomStyleConfig;
|
|
95
|
+
}
|
|
96
|
+
export declare enum DomMessageType {
|
|
97
|
+
ELEMENT_CLICK = "ELEMENT_CLICK",
|
|
98
|
+
ELEMENT_HOVER = "ELEMENT_HOVER",
|
|
99
|
+
SPOTLIGHT_ENABLE = "SPOTLIGHT_ENABLE",
|
|
100
|
+
SPOTLIGHT_DISABLE = "SPOTLIGHT_DISABLE"
|
|
101
|
+
}
|
|
102
|
+
export interface DomMessagePayload {
|
|
103
|
+
/**
|
|
104
|
+
* The payload data of the custom event.
|
|
105
|
+
*/
|
|
106
|
+
data?: any;
|
|
107
|
+
/**
|
|
108
|
+
* The type of message.
|
|
109
|
+
*/
|
|
110
|
+
type: DomMessageType;
|
|
111
|
+
}
|
|
112
|
+
export interface ElementData {
|
|
113
|
+
attributes?: Record<string, string>;
|
|
114
|
+
className?: string;
|
|
115
|
+
dataset?: Record<string, string | undefined>;
|
|
116
|
+
id?: string;
|
|
117
|
+
innerHTML?: string;
|
|
118
|
+
outerHTML?: string;
|
|
119
|
+
rect: {
|
|
120
|
+
bottom: number;
|
|
121
|
+
height: number;
|
|
122
|
+
left: number;
|
|
123
|
+
right: number;
|
|
124
|
+
toJSON: () => object;
|
|
125
|
+
top: number;
|
|
126
|
+
width: number;
|
|
127
|
+
x: number;
|
|
128
|
+
y: number;
|
|
129
|
+
};
|
|
130
|
+
screenshot?: string;
|
|
131
|
+
tagName?: string;
|
|
132
|
+
textContent?: string;
|
|
133
|
+
}
|
package/dom.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*************************************************************************
|
|
3
|
+
* Copyright 2025 Adobe
|
|
4
|
+
* All Rights Reserved.
|
|
5
|
+
*
|
|
6
|
+
* NOTICE: Adobe permits you to use, modify, and distribute this file in
|
|
7
|
+
* accordance with the terms of the Adobe license agreement accompanying
|
|
8
|
+
* it. If you have received this file from a source other than Adobe,
|
|
9
|
+
* then your use, modification, or distribution of it requires the prior
|
|
10
|
+
* written permission of Adobe.
|
|
11
|
+
**************************************************************************/
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.DomMessageType = void 0;
|
|
14
|
+
var DomMessageType;
|
|
15
|
+
(function (DomMessageType) {
|
|
16
|
+
DomMessageType["ELEMENT_CLICK"] = "ELEMENT_CLICK";
|
|
17
|
+
DomMessageType["ELEMENT_HOVER"] = "ELEMENT_HOVER";
|
|
18
|
+
DomMessageType["SPOTLIGHT_ENABLE"] = "SPOTLIGHT_ENABLE";
|
|
19
|
+
DomMessageType["SPOTLIGHT_DISABLE"] = "SPOTLIGHT_DISABLE";
|
|
20
|
+
})(DomMessageType || (exports.DomMessageType = DomMessageType = {}));
|
|
21
|
+
//# sourceMappingURL=dom.js.map
|
package/dom.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dom.js","sourceRoot":"","sources":["dom.ts"],"names":[],"mappings":";AAAA;;;;;;;;;4EAS4E;;;AA6F5E,IAAY,cAKX;AALD,WAAY,cAAc;IACxB,iDAA+B,CAAA;IAC/B,iDAA+B,CAAA;IAC/B,uDAAqC,CAAA;IACrC,yDAAuC,CAAA;AACzC,CAAC,EALW,cAAc,8BAAd,cAAc,QAKzB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/exc-app",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.18",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"source": "index.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"eslint-plugin-rulesdir": "0.2.2",
|
|
40
40
|
"glob": "8.0.3",
|
|
41
41
|
"graphql-tag": "2.12.6",
|
|
42
|
-
"jest": "
|
|
42
|
+
"jest": "30.0.5",
|
|
43
43
|
"typedoc": "0.19.2",
|
|
44
44
|
"typedoc-plugin-external-module-name": "4.0.6",
|
|
45
45
|
"typedoc-plugin-markdown": "3.1.1",
|
package/page.d.ts
CHANGED
|
@@ -155,6 +155,17 @@ export interface PageApiProperties {
|
|
|
155
155
|
* ```
|
|
156
156
|
*/
|
|
157
157
|
favicon: string;
|
|
158
|
+
/**
|
|
159
|
+
* Configuration to show/hide an AI modal with fullscreen overlay for agent-notebook app.
|
|
160
|
+
* This is automatically set by modalAutoDetect when the app is agent-notebook. Defaults to false.
|
|
161
|
+
*
|
|
162
|
+
* ***Example:***
|
|
163
|
+
*
|
|
164
|
+
* ```typescript
|
|
165
|
+
* page.isAiModalOpen = true;
|
|
166
|
+
* ```
|
|
167
|
+
*/
|
|
168
|
+
isAiModalOpen: boolean;
|
|
158
169
|
/**
|
|
159
170
|
* Configuration to show/hide a modal with fullscreen overlay. Defaults to false.
|
|
160
171
|
*
|
package/page.js
CHANGED
package/page.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page.js","sourceRoot":"","sources":["page.ts"],"names":[],"mappings":";AAAA;;;;;;;;;4EAS4E;;;AAE5E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AAEH,yCAAqC;
|
|
1
|
+
{"version":3,"file":"page.js","sourceRoot":"","sources":["page.ts"],"names":[],"mappings":";AAAA;;;;;;;;;4EAS4E;;;AAE5E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AAEH,yCAAqC;AAgQrC,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,iCAAe,CAAA;IACf,qCAAmB,CAAA;AACrB,CAAC,EAHW,cAAc,8BAAd,cAAc,QAGzB;AAED;;GAEG;AACH,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,kCAAiB,CAAA;IACjB,8BAAa,CAAA;AACf,CAAC,EAHW,aAAa,6BAAb,aAAa,QAGxB;AAED;;GAEG;AACH,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,2BAAW,CAAA;IACX,2BAAW,CAAA;IACX,+BAAe,CAAA;IACf,6BAAa,CAAA;IACb,yBAAS,CAAA;AACX,CAAC,EANW,YAAY,4BAAZ,YAAY,QAMvB;AAED;;GAEG;AACH,IAAY,OAIX;AAJD,WAAY,OAAO;IACjB,6CAAQ,CAAA;IACR,qCAAI,CAAA;IACJ,6CAAQ,CAAA,CAAA,6DAA6D;AACvE,CAAC,EAJW,OAAO,uBAAP,OAAO,QAIlB;AAED,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,2CAAG,CAAA;IAC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 -95,6 +95,9 @@ export interface NavHeading {
|
|
|
95
95
|
*/
|
|
96
96
|
items: NavItem[];
|
|
97
97
|
}
|
|
98
|
+
export declare enum NAV_POSITIONS {
|
|
99
|
+
FOOTER = "FOOTER"
|
|
100
|
+
}
|
|
98
101
|
export interface NavItem {
|
|
99
102
|
/**
|
|
100
103
|
* Whether the path is absolute or relative to the base path.
|
|
@@ -108,6 +111,10 @@ export interface NavItem {
|
|
|
108
111
|
* Whether or not to disable the nav item.
|
|
109
112
|
*/
|
|
110
113
|
disabled?: boolean;
|
|
114
|
+
/**
|
|
115
|
+
* The section of the sidenav to display the item in. If unset, item will appear in the main nav
|
|
116
|
+
*/
|
|
117
|
+
displayInSection?: NAV_POSITIONS;
|
|
111
118
|
/**
|
|
112
119
|
* A string icon (from @react/react-spectrum/Icon) to be shown on the left side of the nav item.
|
|
113
120
|
*/
|
package/sidenav.js
CHANGED
|
@@ -10,7 +10,12 @@
|
|
|
10
10
|
* written permission of Adobe.
|
|
11
11
|
**************************************************************************/
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.NAV_POSITIONS = void 0;
|
|
13
14
|
const Global_1 = require("./src/Global");
|
|
15
|
+
var NAV_POSITIONS;
|
|
16
|
+
(function (NAV_POSITIONS) {
|
|
17
|
+
NAV_POSITIONS["FOOTER"] = "FOOTER";
|
|
18
|
+
})(NAV_POSITIONS || (exports.NAV_POSITIONS = NAV_POSITIONS = {}));
|
|
14
19
|
const sidenav = {
|
|
15
20
|
emit: (type, evt) => {
|
|
16
21
|
return (0, Global_1.getImpl)('sidenav')().emit(type, evt);
|
package/sidenav.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sidenav.js","sourceRoot":"","sources":["sidenav.ts"],"names":[],"mappings":";AAAA;;;;;;;;;4EAS4E
|
|
1
|
+
{"version":3,"file":"sidenav.js","sourceRoot":"","sources":["sidenav.ts"],"names":[],"mappings":";AAAA;;;;;;;;;4E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G,EAAE,CAAC,KAA4B,EAAE,EAAE;QACpC,IAAA,gBAAO,EAAC,SAAS,CAAC,EAAE,CAAC,MAAM,GAAG,KAAK,CAAC;IACtC,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,WAAW,EAAE;IAC1C,GAAG,EAAE,GAAwB,EAAE;QAC7B,OAAO,IAAA,gBAAO,EAAC,SAAS,CAAC,EAAE,CAAC,SAAS,CAAC;IACxC,CAAC;IACD,GAAG,EAAE,CAAC,KAAc,EAAE,EAAE;QACtB,IAAA,gBAAO,EAAC,SAAS,CAAC,EAAE,CAAC,SAAS,GAAG,KAAK,CAAC;IACzC,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,SAAS,EAAE;IACxC,GAAG,EAAE,GAAwB,EAAE;QAC7B,OAAO,IAAA,gBAAO,EAAC,SAAS,CAAC,EAAE,CAAC,OAAO,CAAC;IACtC,CAAC;IACD,GAAG,EAAE,CAAC,KAAc,EAAE,EAAE;QACtB,IAAA,gBAAO,EAAC,SAAS,CAAC,EAAE,CAAC,OAAO,GAAG,KAAK,CAAC;IACvC,CAAC;CACF,CAAC,CAAC;AAEH,kBAAe,OAAO,CAAC"}
|
package/src/Global.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ import { AppApi } from '../appapi';
|
|
|
18
18
|
import { CacheApi } from '../cache';
|
|
19
19
|
import { ComponentApi } from '../component';
|
|
20
20
|
import { ConsentApi } from '../consent';
|
|
21
|
+
import * as domTypes from '../dom';
|
|
21
22
|
import { FeatureFlagsApi } from '../featureflags';
|
|
22
23
|
import { HelpCenterApi } from '../helpcenter';
|
|
23
24
|
import { InternalApi } from '../internal';
|
|
@@ -51,6 +52,7 @@ export interface Modules extends CommonModules {
|
|
|
51
52
|
readonly component: () => ComponentApi;
|
|
52
53
|
readonly consent: () => ConsentApi;
|
|
53
54
|
readonly default: (options?: any) => Runtime;
|
|
55
|
+
readonly dom: () => typeof domTypes;
|
|
54
56
|
readonly featureFlags: () => FeatureFlagsApi;
|
|
55
57
|
readonly helpCenter: HelpCenterApi;
|
|
56
58
|
readonly modules: () => ModulesApi;
|
package/src/Global.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Global.js","sourceRoot":"","sources":["Global.ts"],"names":[],"mappings":";AAAA;;;;;;;;;4EAS4E;;;
|
|
1
|
+
{"version":3,"file":"Global.js","sourceRoot":"","sources":["Global.ts"],"names":[],"mappings":";AAAA;;;;;;;;;4EAS4E;;;AAsF5E,0BAMC;AASD,0BAoBC;AA7CD,MAAM,aAAa,GAAG,oBAAoC,CAAC;AAEpD,MAAM,MAAM,GAAG,CAAC,MAAc,MAAM,EAAE,EAAE,CAAE,GAAc,CAAC,aAAa,CAAC,CAAC;AAAlE,QAAA,MAAM,UAA4D;AAE/E;;;;;GAKG;AACH,SAAgB,OAAO,CAA0B,UAAa;IAC5D,MAAM,GAAG,GAAG,IAAA,cAAM,GAAE,CAAC;IACrB,IAAI,CAAC,GAAG,EAAE,CAAC;QACT,MAAM,IAAI,KAAK,CAAC,+CAA+C,UAAU,IAAI,CAAC,CAAC;IACjF,CAAC;IACD,OAAO,GAAG,CAAC,UAAU,CAAC,CAAC;AACzB,CAAC;AAED;;;;;;GAMG;AACH,SAAgB,OAAO,CAA0B,OAAU,EAAE,UAA0C;IACrG,MAAM,GAAG,GAAG,EAAgB,CAAC;IAC7B,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE;QAC3B,MAAM,WAAW,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;QAC/B,IAAI,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC;YACf,GAAG,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,GAAG,IAAW,EAAE,EAAE;gBACrC,OAAQ,OAAO,CAAC,OAAO,CAAC,CAAC,WAAW,CAAS,CAAC,GAAG,IAAI,CAAC,CAAC;YACzD,CAAC,CAAQ,CAAC;QACZ,CAAC;aAAM,CAAC;YACN,MAAM,CAAC,cAAc,CAAC,GAAG,EAAE,WAAW,EAAE;gBACtC,GAAG,EAAE,GAAG,EAAE;oBACR,OAAO,OAAO,CAAC,OAAO,CAAC,CAAC,WAAW,CAAC,CAAC;gBACvC,CAAC;gBACD,GAAG,EAAE,KAAK,CAAC,EAAE;oBACX,OAAO,CAAC,OAAO,CAAC,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC;gBACxC,CAAC;aACF,CAAC,CAAC;QACL,CAAC;IACH,CAAC,CAAC,CAAC;IACH,OAAO,GAAG,CAAC;AACb,CAAC;AAED,kBAAgB,MAAiB,CAAC"}
|
package/tests/agreements.test.js
CHANGED
|
@@ -63,19 +63,19 @@ describe('agreements.ts', () => {
|
|
|
63
63
|
it('can getResponse()', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
64
64
|
const spy = jest.spyOn(agreementsMock, 'getResponse');
|
|
65
65
|
const resp = yield agreements_1.default.getResponse('key');
|
|
66
|
-
expect(spy).
|
|
66
|
+
expect(spy).toHaveBeenCalledTimes(1);
|
|
67
67
|
expect(resp).toEqual({ accepted: true, date: 1234 });
|
|
68
68
|
}));
|
|
69
69
|
it('can clearResponse()', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
70
70
|
const spy = jest.spyOn(agreementsMock, 'clearResponse');
|
|
71
71
|
const resp = yield agreements_1.default.clearResponse('key');
|
|
72
|
-
expect(spy).
|
|
72
|
+
expect(spy).toHaveBeenCalledTimes(1);
|
|
73
73
|
expect(resp).toEqual(true);
|
|
74
74
|
}));
|
|
75
75
|
it('can showAgreement()', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
76
76
|
const spy = jest.spyOn(agreementsMock, 'showAgreement');
|
|
77
77
|
const resp = yield agreements_1.default.showAgreement('key', { feature: 'Test Beta', type: agreements_1.AGREEMENT_TYPE.BETA });
|
|
78
|
-
expect(spy).
|
|
78
|
+
expect(spy).toHaveBeenCalledTimes(1);
|
|
79
79
|
expect(resp).toEqual({ accepted: true, date: 1234 });
|
|
80
80
|
}));
|
|
81
81
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agreements.test.js","sourceRoot":"","sources":["agreements.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;4EAS4E;AAC5E,4DAAyD;AAEzD,2DAA8C;AAE9C,QAAQ,CAAC,eAAe,EAAE,GAAG,EAAE;IAC7B,MAAM,cAAc,GAAG;QACrB,aAAa,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC;QAC1C,WAAW,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,EAAC,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAC,CAAC;QAChE,aAAa,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,EAAC,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAC,CAAC;KAClD,CAAC;IAEnB,UAAU,CAAC,GAAG,EAAE;QACb,gBAAM,CAAC,oBAAoB,CAAa,GAAG;YAC1C,UAAU,EAAE,GAAG,EAAE;gBACf,OAAO,cAAc,CAAC;YACxB,CAAC;SACS,CAAC;IACf,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,mBAAmB,EAAE,GAAS,EAAE;QACjC,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,EAAE,aAAa,CAAC,CAAC;QACtD,MAAM,IAAI,GAAG,MAAM,oBAAU,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QACjD,MAAM,CAAC,GAAG,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"agreements.test.js","sourceRoot":"","sources":["agreements.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;4EAS4E;AAC5E,4DAAyD;AAEzD,2DAA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