@adobe/exc-app 1.4.7 → 1.4.9
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 +52 -1
- package/agreements.d.ts +9 -5
- package/agreements.js +6 -1
- package/agreements.js.map +1 -1
- package/ai.d.ts +43 -4
- package/ai.js +4 -0
- package/ai.js.map +1 -1
- package/appapi.d.ts +4 -1
- package/appapi.js +4 -1
- package/appapi.js.map +1 -1
- package/cache.d.ts +16 -1
- package/cache.js +9 -1
- package/cache.js.map +1 -1
- package/consent.d.ts +2 -2
- package/docs/modules/cache.md +3 -0
- package/helpcenter.d.ts +0 -4
- package/helpcenter.js.map +1 -1
- package/package.json +1 -1
- package/page.d.ts +41 -0
- package/page.js +12 -2
- package/page.js.map +1 -1
- package/src/Global.d.ts +1 -0
- package/src/Global.js.map +1 -1
- package/tests/agreements.test.js +4 -4
- package/tests/agreements.test.js.map +1 -1
- package/tests/ai.test.js +1 -0
- package/tests/ai.test.js.map +1 -1
- package/tests/cache.test.js +10 -0
- package/tests/cache.test.js.map +1 -1
- package/tests/helpCenter.test.js +1 -1
- package/tests/helpCenter.test.js.map +1 -1
- package/tests/page.test.js +39 -2
- package/tests/page.test.js.map +1 -1
- package/tests/user.test.js +19 -2
- package/tests/user.test.js.map +1 -1
- package/user.d.ts +54 -2
- package/user.js +16 -0
- package/user.js.map +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/capabilityapi.d.ts +0 -209
- package/capabilityapi.js +0 -235
- package/capabilityapi.js.map +0 -1
- package/coverage/lcov-report/block-navigation.js +0 -79
- package/coverage/lcov-report/prettify.js +0 -2
- package/coverage/lcov-report/sorter.js +0 -170
- package/tests/capabilityapi.test.d.ts +0 -1
- package/tests/capabilityapi.test.js +0 -89
- package/tests/capabilityapi.test.js.map +0 -1
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
* written permission of Adobe.
|
|
10
10
|
**************************************************************************/
|
|
11
11
|
import type { ActiveProductContext, ImsProfile } from './ims/ImsProfile';
|
|
12
|
+
import type { Collaborator, Sandbox } from './user';
|
|
12
13
|
import type { ConsentPermissions } from './consent';
|
|
13
14
|
import type MetricsConfiguration from './metrics/Configuration';
|
|
14
|
-
import type { Sandbox } from './user';
|
|
15
15
|
export interface UserRoles {
|
|
16
16
|
roleJobFunction: Record<string, boolean>;
|
|
17
17
|
rolePlatformObjective: Record<string, boolean | string>;
|
|
@@ -143,6 +143,28 @@ export interface ImsInfo {
|
|
|
143
143
|
*/
|
|
144
144
|
tenant?: string;
|
|
145
145
|
}
|
|
146
|
+
type FulfillableDataItem = Record<string, string>;
|
|
147
|
+
/**
|
|
148
|
+
* Processed ImsOrg Data Interface
|
|
149
|
+
*/
|
|
150
|
+
export interface ProcessedImsOrg {
|
|
151
|
+
/**
|
|
152
|
+
* Map of service codes to fulfillable data for the current ImsOrg.
|
|
153
|
+
*/
|
|
154
|
+
fulfillableData: Record<string, FulfillableDataItem[]>;
|
|
155
|
+
/**
|
|
156
|
+
* Map of service codes to fulfillable items for the current ImsOrg.
|
|
157
|
+
*/
|
|
158
|
+
fulfillableItems: Record<string, string[]>;
|
|
159
|
+
/**
|
|
160
|
+
* Service codes attached to the current ImsOrg.
|
|
161
|
+
*/
|
|
162
|
+
serviceCodes: string[];
|
|
163
|
+
/**
|
|
164
|
+
* Map of service codes to sub service codes for the current ImsOrg.
|
|
165
|
+
*/
|
|
166
|
+
subServiceCodes: Record<string, string[]>;
|
|
167
|
+
}
|
|
146
168
|
/**
|
|
147
169
|
* User SubOrg Interface
|
|
148
170
|
*/
|
|
@@ -260,6 +282,10 @@ export interface RuntimeConfiguration {
|
|
|
260
282
|
* List all properties changed in this configuration compared to the previous one sent
|
|
261
283
|
*/
|
|
262
284
|
changedProperties: (keyof RuntimeConfiguration)[];
|
|
285
|
+
/**
|
|
286
|
+
* Current Agora Collaborator
|
|
287
|
+
*/
|
|
288
|
+
collaborator?: Collaborator;
|
|
263
289
|
/**
|
|
264
290
|
* Bootstrap data for the component modal.
|
|
265
291
|
*/
|
|
@@ -356,6 +382,10 @@ export interface RuntimeConfiguration {
|
|
|
356
382
|
* Is the org an AWS org
|
|
357
383
|
*/
|
|
358
384
|
isAWSOrg?: boolean;
|
|
385
|
+
/**
|
|
386
|
+
* Flag to know that the S2 design language is being used.
|
|
387
|
+
*/
|
|
388
|
+
isS2Enabled: boolean;
|
|
359
389
|
/**
|
|
360
390
|
* Last recorded recent timestamp
|
|
361
391
|
*/
|
|
@@ -396,6 +426,10 @@ export interface RuntimeConfiguration {
|
|
|
396
426
|
* List of languages from user's preferences
|
|
397
427
|
*/
|
|
398
428
|
preferredLanguages?: string[];
|
|
429
|
+
/**
|
|
430
|
+
* Processed ImsOrg Data
|
|
431
|
+
*/
|
|
432
|
+
processedImsOrg?: ProcessedImsOrg;
|
|
399
433
|
/**
|
|
400
434
|
* Current Sandbox
|
|
401
435
|
*/
|
|
@@ -412,6 +446,10 @@ export interface RuntimeConfiguration {
|
|
|
412
446
|
* Is Side Nav collapsed?
|
|
413
447
|
*/
|
|
414
448
|
shellSideNavCollapsed?: boolean;
|
|
449
|
+
/**
|
|
450
|
+
* Is the Side Nav custom button in use?
|
|
451
|
+
*/
|
|
452
|
+
shellSideNavCustomButton?: boolean;
|
|
415
453
|
/**
|
|
416
454
|
* Is Side Nav enabled?
|
|
417
455
|
*/
|
|
@@ -420,6 +458,10 @@ export interface RuntimeConfiguration {
|
|
|
420
458
|
* Side Nav width
|
|
421
459
|
*/
|
|
422
460
|
shellSideNavWidth: number;
|
|
461
|
+
/**
|
|
462
|
+
* Is the window small? (Are the sidenav/AI Assistant in overlay state?)
|
|
463
|
+
*/
|
|
464
|
+
smallWindow?: boolean;
|
|
423
465
|
/**
|
|
424
466
|
* Source environment
|
|
425
467
|
*/
|
|
@@ -428,6 +470,10 @@ export interface RuntimeConfiguration {
|
|
|
428
470
|
* SPA pipeline app id
|
|
429
471
|
*/
|
|
430
472
|
spaAppId?: string;
|
|
473
|
+
/**
|
|
474
|
+
* Is Spinner on Change enabled for app
|
|
475
|
+
*/
|
|
476
|
+
spinnerOnChange?: boolean;
|
|
431
477
|
/**
|
|
432
478
|
* Sub Org
|
|
433
479
|
*/
|
|
@@ -445,6 +491,10 @@ export interface RuntimeConfiguration {
|
|
|
445
491
|
* If the toast quiet mode feature is enabled.
|
|
446
492
|
*/
|
|
447
493
|
toastQuietModeEnabled: boolean;
|
|
494
|
+
/**
|
|
495
|
+
* List of current user orgs collaborator instances
|
|
496
|
+
*/
|
|
497
|
+
userCollaborators?: Collaborator[];
|
|
448
498
|
/**
|
|
449
499
|
* User's consent permissions
|
|
450
500
|
*/
|
|
@@ -454,3 +504,4 @@ export interface RuntimeConfiguration {
|
|
|
454
504
|
*/
|
|
455
505
|
xqlGatewayUrl?: string;
|
|
456
506
|
}
|
|
507
|
+
export {};
|
package/agreements.d.ts
CHANGED
|
@@ -13,6 +13,10 @@ export declare enum AGREEMENT_TYPE {
|
|
|
13
13
|
BETA = "BETA",
|
|
14
14
|
GENSTUDIO = "GENSTUDIO"
|
|
15
15
|
}
|
|
16
|
+
export declare enum GLOBAL_AGREEMENTS {
|
|
17
|
+
AI_ASSISTANT = "gen-ai-ga-agreement",
|
|
18
|
+
AI_GENERAL = "gen-ai-general-agreement"
|
|
19
|
+
}
|
|
16
20
|
export interface AgreementKeyOptions {
|
|
17
21
|
/**
|
|
18
22
|
* True if the same key will be used in multiple places to show the same agreement.
|
|
@@ -24,7 +28,7 @@ export interface AgreementOptions extends AgreementKeyOptions {
|
|
|
24
28
|
/**
|
|
25
29
|
* Feature name of the agreement that will be used in the default dialog text.
|
|
26
30
|
*/
|
|
27
|
-
feature
|
|
31
|
+
feature?: string;
|
|
28
32
|
/**
|
|
29
33
|
* If the agreement is actionable.
|
|
30
34
|
*/
|
|
@@ -50,7 +54,7 @@ export interface AgreementResponse {
|
|
|
50
54
|
/**
|
|
51
55
|
* Date of last action (accept or reject)
|
|
52
56
|
*/
|
|
53
|
-
date:
|
|
57
|
+
date: number;
|
|
54
58
|
}
|
|
55
59
|
export declare enum OPERATIONS {
|
|
56
60
|
CLEAR = "clear",
|
|
@@ -66,13 +70,13 @@ export interface AgreementsApi {
|
|
|
66
70
|
* @param key Application defined key to map results in settings
|
|
67
71
|
* @returns A promise containing true if the setting was cleared and false if an error occurred.
|
|
68
72
|
*/
|
|
69
|
-
clearResponse(key: string, options?: AgreementKeyOptions): Promise<boolean>;
|
|
73
|
+
clearResponse(key: string | GLOBAL_AGREEMENTS, options?: AgreementKeyOptions): Promise<boolean>;
|
|
70
74
|
/**
|
|
71
75
|
* Returns the users agreement response from settings, but does not show the modal in either response case.
|
|
72
76
|
* @param key Application defined key to map results in settings
|
|
73
77
|
* @returns A promise containing the users response if one exists in settings
|
|
74
78
|
*/
|
|
75
|
-
getResponse(key: string, options?: AgreementKeyOptions): Promise<AgreementResponse>;
|
|
79
|
+
getResponse(key: string | GLOBAL_AGREEMENTS, options?: AgreementKeyOptions): Promise<AgreementResponse>;
|
|
76
80
|
/**
|
|
77
81
|
* Shows a beta agreement dialog to the user. Using the key parameter, checks in settings if the user has accepted the agreement and
|
|
78
82
|
* shows the dialog to the user if they have.
|
|
@@ -80,7 +84,7 @@ export interface AgreementsApi {
|
|
|
80
84
|
* @param options List of configurable options such as agreement type and feature name
|
|
81
85
|
* @returns A promise that is fulfilled once the user takes action from within the dialog (or immediately with the settings response if the user has already accepted the agreement)
|
|
82
86
|
*/
|
|
83
|
-
showAgreement(key: string, options
|
|
87
|
+
showAgreement(key: string | GLOBAL_AGREEMENTS, options?: AgreementOptions): Promise<AgreementResponse>;
|
|
84
88
|
}
|
|
85
89
|
declare const agreements: AgreementsApi;
|
|
86
90
|
export default agreements;
|
package/agreements.js
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* written permission of Adobe.
|
|
11
11
|
**************************************************************************/
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.OPERATIONS = exports.AGREEMENT_TYPE = void 0;
|
|
13
|
+
exports.OPERATIONS = exports.GLOBAL_AGREEMENTS = exports.AGREEMENT_TYPE = void 0;
|
|
14
14
|
/**
|
|
15
15
|
* The Agreements API allows an application to display an agreement modal which will block the user from using the feature until accepted.
|
|
16
16
|
*
|
|
@@ -57,6 +57,11 @@ var AGREEMENT_TYPE;
|
|
|
57
57
|
AGREEMENT_TYPE["BETA"] = "BETA";
|
|
58
58
|
AGREEMENT_TYPE["GENSTUDIO"] = "GENSTUDIO";
|
|
59
59
|
})(AGREEMENT_TYPE || (exports.AGREEMENT_TYPE = AGREEMENT_TYPE = {}));
|
|
60
|
+
var GLOBAL_AGREEMENTS;
|
|
61
|
+
(function (GLOBAL_AGREEMENTS) {
|
|
62
|
+
GLOBAL_AGREEMENTS["AI_ASSISTANT"] = "gen-ai-ga-agreement";
|
|
63
|
+
GLOBAL_AGREEMENTS["AI_GENERAL"] = "gen-ai-general-agreement";
|
|
64
|
+
})(GLOBAL_AGREEMENTS || (exports.GLOBAL_AGREEMENTS = GLOBAL_AGREEMENTS = {}));
|
|
60
65
|
var OPERATIONS;
|
|
61
66
|
(function (OPERATIONS) {
|
|
62
67
|
OPERATIONS["CLEAR"] = "clear";
|
package/agreements.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agreements.js","sourceRoot":"","sources":["agreements.ts"],"names":[],"mappings":";AAAA;;;;;;;;;4EAS4E;;;AAE5E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,yCAAqC;AAErC,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,2BAAS,CAAA;IACT,+BAAa,CAAA;IACb,yCAAuB,CAAA;AACzB,CAAC,EAJW,cAAc,8BAAd,cAAc,QAIzB;AA4CD,IAAY,UAIX;AAJD,WAAY,UAAU;IACpB,6BAAe,CAAA;IACf,yBAAW,CAAA;IACX,2BAAa,CAAA;AACf,CAAC,EAJW,UAAU,0BAAV,UAAU,QAIrB;AA8BD,MAAM,UAAU,GAAkB;IAChC,aAAa,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"agreements.js","sourceRoot":"","sources":["agreements.ts"],"names":[],"mappings":";AAAA;;;;;;;;;4EAS4E;;;AAE5E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,yCAAqC;AAErC,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,2BAAS,CAAA;IACT,+BAAa,CAAA;IACb,yCAAuB,CAAA;AACzB,CAAC,EAJW,cAAc,8BAAd,cAAc,QAIzB;AAED,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,yDAAoC,CAAA;IACpC,4DAAuC,CAAA;AACzC,CAAC,EAHW,iBAAiB,iCAAjB,iBAAiB,QAG5B;AA4CD,IAAY,UAIX;AAJD,WAAY,UAAU;IACpB,6BAAe,CAAA;IACf,yBAAW,CAAA;IACX,2BAAa,CAAA;AACf,CAAC,EAJW,UAAU,0BAAV,UAAU,QAIrB;AA8BD,MAAM,UAAU,GAAkB;IAChC,aAAa,EAAE,CAAC,GAA+B,EAAE,OAA6B,EAAE,EAAE,CAAC,IAAA,gBAAO,EAAC,YAAY,CAAC,EAAE,CAAC,aAAa,CAAC,GAAG,EAAE,OAAO,CAAC;IACtI,WAAW,EAAE,CAAC,GAA+B,EAAE,OAA6B,EAAE,EAAE,CAAC,IAAA,gBAAO,EAAC,YAAY,CAAC,EAAE,CAAC,WAAW,CAAC,GAAG,EAAE,OAAO,CAAC;IAClI,aAAa,EAAE,CAAC,GAA+B,EAAE,OAA0B,EAAE,EAAE,CAAC,IAAA,gBAAO,EAAC,YAAY,CAAC,EAAE,CAAC,aAAa,CAAC,GAAG,EAAE,OAAO,CAAC;CACpI,CAAC;AAEF,kBAAe,UAAU,CAAC"}
|
package/ai.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ export interface Source {
|
|
|
32
32
|
export interface SuccessResponse {
|
|
33
33
|
answer: string;
|
|
34
34
|
chatId: string;
|
|
35
|
+
oosConfidence?: 'high' | 'low';
|
|
35
36
|
interactionId: string;
|
|
36
37
|
internalErrorCode?: string;
|
|
37
38
|
prompts: Prompt[];
|
|
@@ -39,12 +40,39 @@ export interface SuccessResponse {
|
|
|
39
40
|
sources: Source[];
|
|
40
41
|
promptSuggestions: string[];
|
|
41
42
|
clarifications?: {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
};
|
|
43
|
+
label: string;
|
|
44
|
+
value: string;
|
|
45
|
+
}[];
|
|
46
|
+
promptSuggestionsWithPlaceholders?: QuerySuggestion[];
|
|
45
47
|
reportingDataDefinition?: any;
|
|
46
48
|
usageInsights: string;
|
|
47
49
|
visualizations: any[];
|
|
50
|
+
capability: string;
|
|
51
|
+
request: {
|
|
52
|
+
message: string;
|
|
53
|
+
};
|
|
54
|
+
uiComponent?: any;
|
|
55
|
+
}
|
|
56
|
+
export interface TemplatePlaceholder {
|
|
57
|
+
length: number;
|
|
58
|
+
rawPlaceholder?: string;
|
|
59
|
+
raw_placeholder?: string;
|
|
60
|
+
placeholderText?: string;
|
|
61
|
+
placeholder_text?: string;
|
|
62
|
+
placeholderType?: string;
|
|
63
|
+
placeholder_type?: string;
|
|
64
|
+
displayAttribute?: string;
|
|
65
|
+
display_attribute?: string;
|
|
66
|
+
startPosition?: number;
|
|
67
|
+
start_position?: number;
|
|
68
|
+
}
|
|
69
|
+
export interface QuerySuggestion {
|
|
70
|
+
suggestion: string;
|
|
71
|
+
tags: Record<string, string>;
|
|
72
|
+
placeholders: TemplatePlaceholder[];
|
|
73
|
+
itemId?: string;
|
|
74
|
+
item_id?: string;
|
|
75
|
+
id?: string;
|
|
48
76
|
}
|
|
49
77
|
export interface UserActionResponse {
|
|
50
78
|
action: string;
|
|
@@ -62,6 +90,7 @@ export interface ErrorResponse {
|
|
|
62
90
|
message?: string;
|
|
63
91
|
requestId?: string;
|
|
64
92
|
status: number;
|
|
93
|
+
uiComponent: any;
|
|
65
94
|
}
|
|
66
95
|
export type Response = SuccessResponse | UserActionResponse | SystemResponse | ErrorResponse;
|
|
67
96
|
export declare enum AIMessageType {
|
|
@@ -74,7 +103,8 @@ export declare enum AIMessageType {
|
|
|
74
103
|
OPEN = "OPEN",
|
|
75
104
|
QUERY = "QUERY",
|
|
76
105
|
RESPONSE = "RESPONSE",
|
|
77
|
-
USER_ACTION = "USER_ACTION"
|
|
106
|
+
USER_ACTION = "USER_ACTION",
|
|
107
|
+
SET_USER_PERMISSION = "SET_USER_PERMISSION"
|
|
78
108
|
}
|
|
79
109
|
export interface AIMessagePayload {
|
|
80
110
|
/**
|
|
@@ -89,6 +119,10 @@ export interface AIMessagePayload {
|
|
|
89
119
|
* The context for the AI chat.
|
|
90
120
|
*/
|
|
91
121
|
context?: AIContext;
|
|
122
|
+
/**
|
|
123
|
+
* Whether the user has permission to use the AI Assistant.
|
|
124
|
+
*/
|
|
125
|
+
hasPermission?: boolean;
|
|
92
126
|
/**
|
|
93
127
|
* The permissions required to enable the AI UI.
|
|
94
128
|
*/
|
|
@@ -178,6 +212,11 @@ export interface AIApi extends EventEmitter<AIMessageEvent> {
|
|
|
178
212
|
* ```
|
|
179
213
|
*/
|
|
180
214
|
sendMessage: (payload: AIMessagePayload) => void;
|
|
215
|
+
/**
|
|
216
|
+
* Sets the user has permission flag for the given application, org, and sandbox.
|
|
217
|
+
* @param hasPermission Whether the user has permission to use the AI Assistant feature.
|
|
218
|
+
*/
|
|
219
|
+
setUserPermission: (hasPermission: boolean) => void;
|
|
181
220
|
/**
|
|
182
221
|
* Send a message to Unified Shell to show the Assistant. This includes
|
|
183
222
|
* permissions that Unified Shell will validate to determine for access.
|
package/ai.js
CHANGED
|
@@ -24,6 +24,7 @@ var AIMessageType;
|
|
|
24
24
|
AIMessageType["QUERY"] = "QUERY";
|
|
25
25
|
AIMessageType["RESPONSE"] = "RESPONSE";
|
|
26
26
|
AIMessageType["USER_ACTION"] = "USER_ACTION";
|
|
27
|
+
AIMessageType["SET_USER_PERMISSION"] = "SET_USER_PERMISSION";
|
|
27
28
|
})(AIMessageType || (exports.AIMessageType = AIMessageType = {}));
|
|
28
29
|
const ai = {
|
|
29
30
|
closeChat: () => {
|
|
@@ -47,6 +48,9 @@ const ai = {
|
|
|
47
48
|
sendMessage: (payload) => {
|
|
48
49
|
return (0, Global_1.getImpl)('ai')().sendMessage(payload);
|
|
49
50
|
},
|
|
51
|
+
setUserPermission: (hasPermission) => {
|
|
52
|
+
return (0, Global_1.getImpl)('ai')().setUserPermission(hasPermission);
|
|
53
|
+
},
|
|
50
54
|
showAssistant: (permissions) => {
|
|
51
55
|
return (0, Global_1.getImpl)('ai')().showAssistant(permissions);
|
|
52
56
|
},
|
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;AAuFrC,IAAY,aAYX;AAZD,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,gCAAe,CAAA;IACf,sCAAqB,CAAA;IACrB,4CAA2B,CAAA;IAC3B,4DAA2C,CAAA;AAC7C,CAAC,EAZW,aAAa,6BAAb,aAAa,QAYxB;AA2JD,MAAM,EAAE,GAAG;IACT,SAAS,EAAE,GAAG,EAAE;QACd,OAAO,IAAA,gBAAO,EAAC,IAAI,CAAC,EAAE,CAAC,SAAS,EAAE,CAAC;IACrC,CAAC;IACD,IAAI,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE;QAClB,OAAO,IAAA,gBAAO,EAAC,IAAI,CAAC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C,CAAC;IACpD,CAAC;IACD,mBAAmB,EAAE,CAAC,OAAgB,EAAE,EAAE;QACxC,OAAO,IAAA,gBAAO,EAAC,IAAI,CAAC,EAAE,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC;IACtD,CAAC;CACO,CAAC;AAEX,MAAM,CAAC,cAAc,CAAC,EAAE,EAAE,SAAS,EAAE;IACnC,GAAG,EAAE,GAA0B,EAAE;QAC/B,OAAO,IAAA,gBAAO,EAAC,IAAI,CAAC,EAAE,CAAC,OAAO,CAAC;IACjC,CAAC;IACD,GAAG,EAAE,CAAC,KAA4B,EAAE,EAAE;QACpC,IAAA,gBAAO,EAAC,IAAI,CAAC,EAAE,CAAC,OAAO,GAAG,KAAK,CAAC;IAClC,CAAC;CACF,CAAC,CAAC;AAEH,kBAAe,EAAE,CAAC"}
|
package/appapi.d.ts
CHANGED
|
@@ -43,11 +43,13 @@ export declare enum AppIds {
|
|
|
43
43
|
ADMIN_CONSOLE = "adminconsole",
|
|
44
44
|
ADOBE_EXPERIENCE_CLOUD_GRIFFON = "griffon",
|
|
45
45
|
ADVERTISING_CLOUD = "advertising-ssc",
|
|
46
|
+
ADVERTISING_SEARCH_SOCIAL_COMMERCE = "advertising-ssc",
|
|
46
47
|
ANALYTICS = "analytics",
|
|
47
48
|
APP_BUILDER_CATALOG = "firefly",
|
|
48
49
|
ASSETS = "assets",
|
|
49
50
|
ASSETS_ESSENTIALS = "ddam",
|
|
50
51
|
AUDIENCE_MANAGER = "audiencemanager",
|
|
52
|
+
BRANDS = "brandIntelligence",
|
|
51
53
|
CAMPAIGN = "campaignLaunch",
|
|
52
54
|
CAMPAIGN_CONTROL_PANEL = "accp",
|
|
53
55
|
CLOUD_MANAGER = "cloudManagerUi",
|
|
@@ -72,6 +74,7 @@ export declare enum AppIds {
|
|
|
72
74
|
EXPERIENCE_MANAGER_SCREENS = "screens",
|
|
73
75
|
EXPERIENCE_PLATFORM = "experiencePlatformUI",
|
|
74
76
|
GENSTUDIO = "GenStudio",
|
|
77
|
+
GROWTH_CATALYST = "growth-catalyst-home",
|
|
75
78
|
HEADLESS_CMS = "hcms",
|
|
76
79
|
JOURNEY_OPTIMIZER = "cjm-home",
|
|
77
80
|
JOURNEY_OPTIMIZER_B2B_EDITION = "sapphireHome",
|
|
@@ -88,7 +91,7 @@ export declare enum AppIds {
|
|
|
88
91
|
PRIVACY_UI = "privacyui",
|
|
89
92
|
PROJECT_HUMMINGBIRD = "hummingbird",
|
|
90
93
|
PROJECT_SIERRA = "cjm-home",
|
|
91
|
-
|
|
94
|
+
RTCDP_COLLABORATION = "agoraUI",
|
|
92
95
|
SOFTWARE_DISTRIBUTION = "softwareDistribution",
|
|
93
96
|
SYSTEM_STATUS = "systemStatus",
|
|
94
97
|
TARGET = "target",
|
package/appapi.js
CHANGED
|
@@ -49,11 +49,13 @@ var AppIds;
|
|
|
49
49
|
AppIds["ADMIN_CONSOLE"] = "adminconsole";
|
|
50
50
|
AppIds["ADOBE_EXPERIENCE_CLOUD_GRIFFON"] = "griffon";
|
|
51
51
|
AppIds["ADVERTISING_CLOUD"] = "advertising-ssc";
|
|
52
|
+
AppIds["ADVERTISING_SEARCH_SOCIAL_COMMERCE"] = "advertising-ssc";
|
|
52
53
|
AppIds["ANALYTICS"] = "analytics";
|
|
53
54
|
AppIds["APP_BUILDER_CATALOG"] = "firefly";
|
|
54
55
|
AppIds["ASSETS"] = "assets";
|
|
55
56
|
AppIds["ASSETS_ESSENTIALS"] = "ddam";
|
|
56
57
|
AppIds["AUDIENCE_MANAGER"] = "audiencemanager";
|
|
58
|
+
AppIds["BRANDS"] = "brandIntelligence";
|
|
57
59
|
AppIds["CAMPAIGN"] = "campaignLaunch";
|
|
58
60
|
AppIds["CAMPAIGN_CONTROL_PANEL"] = "accp";
|
|
59
61
|
AppIds["CLOUD_MANAGER"] = "cloudManagerUi";
|
|
@@ -78,6 +80,7 @@ var AppIds;
|
|
|
78
80
|
AppIds["EXPERIENCE_MANAGER_SCREENS"] = "screens";
|
|
79
81
|
AppIds["EXPERIENCE_PLATFORM"] = "experiencePlatformUI";
|
|
80
82
|
AppIds["GENSTUDIO"] = "GenStudio";
|
|
83
|
+
AppIds["GROWTH_CATALYST"] = "growth-catalyst-home";
|
|
81
84
|
AppIds["HEADLESS_CMS"] = "hcms";
|
|
82
85
|
AppIds["JOURNEY_OPTIMIZER"] = "cjm-home";
|
|
83
86
|
AppIds["JOURNEY_OPTIMIZER_B2B_EDITION"] = "sapphireHome";
|
|
@@ -94,7 +97,7 @@ var AppIds;
|
|
|
94
97
|
AppIds["PRIVACY_UI"] = "privacyui";
|
|
95
98
|
AppIds["PROJECT_HUMMINGBIRD"] = "hummingbird";
|
|
96
99
|
AppIds["PROJECT_SIERRA"] = "cjm-home";
|
|
97
|
-
AppIds["
|
|
100
|
+
AppIds["RTCDP_COLLABORATION"] = "agoraUI";
|
|
98
101
|
AppIds["SOFTWARE_DISTRIBUTION"] = "softwareDistribution";
|
|
99
102
|
AppIds["SYSTEM_STATUS"] = "systemStatus";
|
|
100
103
|
AppIds["TARGET"] = "target";
|
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;AAiCrC,0DAA0D;AAC1D,IAAY,
|
|
1
|
+
{"version":3,"file":"appapi.js","sourceRoot":"","sources":["appapi.ts"],"names":[],"mappings":";AAAA;;;;;;;;;4EAS4E;;;AAE5E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,yCAAqC;AAiCrC,0DAA0D;AAC1D,IAAY,MA4DX;AA5DD,WAAY,MAAM;IAChB,yBAAe,CAAA;IACf,wCAA8B,CAAA;IAC9B,oDAA0C,CAAA;IAC1C,+CAAqC,CAAA;IACrC,gEAAsD,CAAA;IACtD,iCAAuB,CAA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,IAAA,gBAAO,EAAC,QAAQ,CAAC,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACzC,CAAC;CACF,CAAC;AAEF,kBAAe,MAAM,CAAC"}
|
package/cache.d.ts
CHANGED
|
@@ -71,7 +71,7 @@ export type CacheExpiry = CacheTTL | number;
|
|
|
71
71
|
/**
|
|
72
72
|
* Input parameters for the Cache get and delete APIs.
|
|
73
73
|
*/
|
|
74
|
-
export interface CacheParameters {
|
|
74
|
+
export interface CacheParameters extends CacheStoreParameters {
|
|
75
75
|
/**
|
|
76
76
|
* Cache key.
|
|
77
77
|
*/
|
|
@@ -80,6 +80,11 @@ export interface CacheParameters {
|
|
|
80
80
|
* Cache scope (Optional - Defaults to user).
|
|
81
81
|
*/
|
|
82
82
|
scope?: CacheScope;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Input parameters for bare bones Cache API
|
|
86
|
+
*/
|
|
87
|
+
export interface CacheStoreParameters {
|
|
83
88
|
/**
|
|
84
89
|
* Shared Cache name.
|
|
85
90
|
* Calling app must be allowlisted by Unified Shell to access this cache.
|
|
@@ -100,6 +105,12 @@ export interface CacheSetParameters<T> extends CacheParameters {
|
|
|
100
105
|
*/
|
|
101
106
|
value: T;
|
|
102
107
|
}
|
|
108
|
+
export declare enum CacheMethod {
|
|
109
|
+
DELETE = "DELETE",
|
|
110
|
+
GET = "GET",
|
|
111
|
+
LIST_KEYS = "LIST_KEYS",
|
|
112
|
+
POST = "POST"
|
|
113
|
+
}
|
|
103
114
|
/**
|
|
104
115
|
* Cache entry (Returned by the get API).
|
|
105
116
|
*/
|
|
@@ -127,6 +138,10 @@ export interface CacheApi {
|
|
|
127
138
|
* @returns A promise that resolves to the specified value, or undefined if none exist.
|
|
128
139
|
*/
|
|
129
140
|
get<T>(params: CacheParameters): Promise<CacheEntry<T> | undefined>;
|
|
141
|
+
/**
|
|
142
|
+
* Returns an array of strings representing the keys of the Cache.
|
|
143
|
+
*/
|
|
144
|
+
keys(params?: CacheStoreParameters): Promise<string[]>;
|
|
130
145
|
/**
|
|
131
146
|
* Stores a value in the cache.
|
|
132
147
|
* @param params Parameters used to identify the cached item to store and control its TTL.
|
package/cache.js
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* written permission of Adobe.
|
|
11
11
|
**************************************************************************/
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.CacheTTL = exports.CacheScope = void 0;
|
|
13
|
+
exports.CacheMethod = exports.CacheTTL = exports.CacheScope = void 0;
|
|
14
14
|
/**
|
|
15
15
|
* APIs for managing a client side persisted cache.
|
|
16
16
|
* Unified Shell will store the data against its own domain, which allows data caching
|
|
@@ -123,9 +123,17 @@ var CacheTTL;
|
|
|
123
123
|
*/
|
|
124
124
|
CacheTTL[CacheTTL["MONTH"] = 2592000] = "MONTH";
|
|
125
125
|
})(CacheTTL || (exports.CacheTTL = CacheTTL = {}));
|
|
126
|
+
var CacheMethod;
|
|
127
|
+
(function (CacheMethod) {
|
|
128
|
+
CacheMethod["DELETE"] = "DELETE";
|
|
129
|
+
CacheMethod["GET"] = "GET";
|
|
130
|
+
CacheMethod["LIST_KEYS"] = "LIST_KEYS";
|
|
131
|
+
CacheMethod["POST"] = "POST";
|
|
132
|
+
})(CacheMethod || (exports.CacheMethod = CacheMethod = {}));
|
|
126
133
|
const cache = {
|
|
127
134
|
delete: params => (0, Global_1.getImpl)('cache')().delete(params),
|
|
128
135
|
get: params => (0, Global_1.getImpl)('cache')().get(params),
|
|
136
|
+
keys: (params = {}) => (0, Global_1.getImpl)('cache')().keys(params),
|
|
129
137
|
set: params => (0, Global_1.getImpl)('cache')().set(params)
|
|
130
138
|
};
|
|
131
139
|
exports.default = cache;
|
package/cache.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cache.js","sourceRoot":"","sources":["cache.ts"],"names":[],"mappings":";AAAA;;;;;;;;;4EAS4E;;;AAE5E;;;;;;;;;;;;;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IACH,kDAAuB,CAAA;IACvB;;OAEG;IACH,0CAAW,CAAA;IACX;;OAEG;IACH,yCAAe,CAAA;IACf;;OAEG;IACH,4CAAoB,CAAA;IACpB;;OAEG;IACH,+CAAsB,CAAA;AACxB,CAAC,EA9BW,QAAQ,wBAAR,QAAQ,QA8BnB;AA4CD,IAAY,WAKX;AALD,WAAY,WAAW;IACrB,gCAAiB,CAAA;IACjB,0BAAW,CAAA;IACX,sCAAuB,CAAA;IACvB,4BAAa,CAAA;AACf,CAAC,EALW,WAAW,2BAAX,WAAW,QAKtB;AAwCD,MAAM,KAAK,GAAa;IACtB,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC,IAAA,gBAAO,EAAC,OAAO,CAAC,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC;IACnD,GAAG,EAAE,MAAM,CAAC,EAAE,CAAC,IAAA,gBAAO,EAAC,OAAO,CAAC,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC;IAC7C,IAAI,EAAE,CAAC,MAAM,GAAG,EAAE,EAAE,EAAE,CAAC,IAAA,gBAAO,EAAC,OAAO,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC;IACtD,GAAG,EAAE,MAAM,CAAC,EAAE,CAAC,IAAA,gBAAO,EAAC,OAAO,CAAC,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC;CAC9C,CAAC;AAEF,kBAAe,KAAK,CAAC"}
|
package/consent.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export interface ConsentPermissions {
|
|
2
|
-
adbepersonalizedpromotions
|
|
3
|
-
adbepersonalizedrecommendations
|
|
2
|
+
adbepersonalizedpromotions?: boolean;
|
|
3
|
+
adbepersonalizedrecommendations?: boolean;
|
|
4
4
|
adobeUsageDataCollection: boolean;
|
|
5
5
|
communitiesPromotions: boolean;
|
|
6
6
|
communitiesRecommendations: boolean;
|
package/docs/modules/cache.md
CHANGED
|
@@ -44,6 +44,9 @@ await cache.set<MyType>({key: 'some-cache-key', value: myTypeInstance, expiry: C
|
|
|
44
44
|
// Cache get
|
|
45
45
|
const myData: MyType = await cache.get<MyType>({key: 'some-cache-key'});
|
|
46
46
|
|
|
47
|
+
// Get cache keys; Returns an array of strings representing the keys of the Cache.
|
|
48
|
+
const cacheKeys: string[] = await cache.keys();
|
|
49
|
+
|
|
47
50
|
// Get scope must be identical to the scope used for set - Always use the same scope for both.
|
|
48
51
|
const myData2: MyType = await cache.get<MyType>({key: 'some-cache-key', scope: CacheScope.ORG});
|
|
49
52
|
|
package/helpcenter.d.ts
CHANGED
|
@@ -51,10 +51,6 @@ export interface HelpCenterConfig {
|
|
|
51
51
|
*/
|
|
52
52
|
label: string;
|
|
53
53
|
}>;
|
|
54
|
-
/**
|
|
55
|
-
* If the solution wants to simulate "Frequently asked questions", it can provide them as an array of strings. These appear as the user starts typing in the Search field.
|
|
56
|
-
*/
|
|
57
|
-
questions?: Array<string>;
|
|
58
54
|
}
|
|
59
55
|
export interface HelpCenterOpenConfig {
|
|
60
56
|
/**
|
package/helpcenter.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpcenter.js","sourceRoot":"","sources":["helpcenter.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;4EAS4E;AAC5E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,yCAAqC;
|
|
1
|
+
{"version":3,"file":"helpcenter.js","sourceRoot":"","sources":["helpcenter.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;4EAS4E;AAC5E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,yCAAqC;AA4IrC,IAAY,WAGX;AAHD,WAAY,WAAW;IACrB,8BAAe,CAAA;IACf,4BAAa,CAAA;AACf,CAAC,EAHW,WAAW,2BAAX,WAAW,QAGtB;AAuID,MAAM,UAAU,GAAG,IAAA,gBAAO,EAAC,YAAY,EAAE;IACvC,CAAC,WAAW,EAAE,IAAI,CAAC;IACnB,CAAC,YAAY,EAAE,IAAI,CAAC;IACpB,CAAC,mBAAmB,EAAE,IAAI,CAAC;IAC3B,CAAC,QAAQ,CAAC;IACV,CAAC,MAAM,EAAE,IAAI,CAAC;IACd,CAAC,oBAAoB,EAAE,IAAI,CAAC;CAC7B,CAAC,CAAC;AAEH,kBAAe,UAAU,CAAC"}
|
package/package.json
CHANGED
package/page.d.ts
CHANGED
|
@@ -33,6 +33,16 @@ export interface BlockNavigationOptions {
|
|
|
33
33
|
onOrgChangeOnly: boolean;
|
|
34
34
|
}
|
|
35
35
|
export interface ObjectWithPath {
|
|
36
|
+
/**
|
|
37
|
+
* Optional collaborator id to be added to URL path.
|
|
38
|
+
*
|
|
39
|
+
* ***Example:***
|
|
40
|
+
*
|
|
41
|
+
* ```typescript
|
|
42
|
+
* {path: '/abc', collaborator: 'id1234'}
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
collaborator?: string;
|
|
36
46
|
/**
|
|
37
47
|
* Optional organization name to be added to URL path. This can be in the form of a tenant or an organization string.
|
|
38
48
|
*
|
|
@@ -251,6 +261,32 @@ export declare enum THUNDERBIRD {
|
|
|
251
261
|
SRC_DOC = 1,
|
|
252
262
|
SERVICE_WORKER = 2
|
|
253
263
|
}
|
|
264
|
+
/**
|
|
265
|
+
* Defines the types of url contexts that can be used in the shell URL.
|
|
266
|
+
*/
|
|
267
|
+
export declare enum UrlContextKey {
|
|
268
|
+
COLLABORATOR = "collaborator",
|
|
269
|
+
SANDBOX = "sandbox",
|
|
270
|
+
SUBORG = "subOrg"
|
|
271
|
+
}
|
|
272
|
+
export interface UrlContextUpdate {
|
|
273
|
+
/**
|
|
274
|
+
* Payload for updating a context in the url
|
|
275
|
+
*
|
|
276
|
+
* ***Example:***
|
|
277
|
+
* import {CollaboratorType} from '@adobe/exc-app/user';
|
|
278
|
+
* import {UrlContextKey} from '@adobe/exc-app/page';
|
|
279
|
+
*
|
|
280
|
+
* ```typescript
|
|
281
|
+
* page.updateUrlContext({contextKey: UrlContextKey.COLLABORATOR});
|
|
282
|
+
* ```
|
|
283
|
+
*/
|
|
284
|
+
/**
|
|
285
|
+
* Identifies which context value is being updated
|
|
286
|
+
* Currently support only exists for collaborator
|
|
287
|
+
*/
|
|
288
|
+
contextKey: Omit<UrlContextKey, UrlContextKey.SANDBOX | UrlContextKey.SUBORG>;
|
|
289
|
+
}
|
|
254
290
|
export interface LoadTimesMetrics {
|
|
255
291
|
'first-contentful-paint'?: number;
|
|
256
292
|
'first-paint'?: number;
|
|
@@ -396,6 +432,7 @@ export interface PageApi extends PageApiProperties {
|
|
|
396
432
|
* page.done();
|
|
397
433
|
* ```
|
|
398
434
|
* @returns A promise that resolves with the performance metrics of this page load.
|
|
435
|
+
* done should only be called once. Ignored when called twice.
|
|
399
436
|
*/
|
|
400
437
|
done(): Promise<PerformanceRecord>;
|
|
401
438
|
/**
|
|
@@ -586,6 +623,10 @@ export interface PageApi extends PageApiProperties {
|
|
|
586
623
|
* @param enable Whether to enable or disable the auto detection for this `type`.
|
|
587
624
|
*/
|
|
588
625
|
toggleAutoDetect(type: ObservableType, enable: boolean): Promise<void>;
|
|
626
|
+
/**
|
|
627
|
+
* Allows an app to update context data options in the url.
|
|
628
|
+
*/
|
|
629
|
+
updateUrlContext: (payload: UrlContextUpdate) => void;
|
|
589
630
|
}
|
|
590
631
|
declare const page: PageApi;
|
|
591
632
|
export default page;
|
package/page.js
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* written permission of Adobe.
|
|
11
11
|
**************************************************************************/
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.THUNDERBIRD = exports.SRC_DOC = exports.RELEASE_TYPE = exports.RELEASE_SCOPE = exports.ObservableType = void 0;
|
|
13
|
+
exports.UrlContextKey = exports.THUNDERBIRD = exports.SRC_DOC = exports.RELEASE_TYPE = exports.RELEASE_SCOPE = exports.ObservableType = void 0;
|
|
14
14
|
/**
|
|
15
15
|
* APIs that let solutions interact with the main page and personalize it, e.g. setting the title,
|
|
16
16
|
* favicon, refreshing the solution iframe, etc.
|
|
@@ -89,6 +89,15 @@ var THUNDERBIRD;
|
|
|
89
89
|
THUNDERBIRD[THUNDERBIRD["SRC_DOC"] = 1] = "SRC_DOC";
|
|
90
90
|
THUNDERBIRD[THUNDERBIRD["SERVICE_WORKER"] = 2] = "SERVICE_WORKER";
|
|
91
91
|
})(THUNDERBIRD || (exports.THUNDERBIRD = THUNDERBIRD = {}));
|
|
92
|
+
/**
|
|
93
|
+
* Defines the types of url contexts that can be used in the shell URL.
|
|
94
|
+
*/
|
|
95
|
+
var UrlContextKey;
|
|
96
|
+
(function (UrlContextKey) {
|
|
97
|
+
UrlContextKey["COLLABORATOR"] = "collaborator";
|
|
98
|
+
UrlContextKey["SANDBOX"] = "sandbox";
|
|
99
|
+
UrlContextKey["SUBORG"] = "subOrg";
|
|
100
|
+
})(UrlContextKey || (exports.UrlContextKey = UrlContextKey = {}));
|
|
92
101
|
const page = (0, Global_1.connect)('page', [
|
|
93
102
|
['afterPrintHandler'],
|
|
94
103
|
['appContainer'],
|
|
@@ -114,7 +123,8 @@ const page = (0, Global_1.connect)('page', [
|
|
|
114
123
|
['spinner'],
|
|
115
124
|
['title'],
|
|
116
125
|
['toggleAutoDetect'],
|
|
117
|
-
['unloadPromptMessage']
|
|
126
|
+
['unloadPromptMessage'],
|
|
127
|
+
['updateUrlContext', true]
|
|
118
128
|
]);
|
|
119
129
|
exports.default = page;
|
|
120
130
|
//# sourceMappingURL=page.js.map
|
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;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IAAI,CAAC;IAC1B,CAAC,wBAAwB,CAAC;IAC1B,CAAC,6BAA6B,CAAC;IAC/B,CAAC,SAAS,CAAC;IACX,CAAC,cAAc,EAAE,IAAI,CAAC;IACtB,CAAC,OAAO,CAAC;IACT,CAAC,iBAAiB,CAAC;IACnB,CAAC,UAAU,EAAE,IAAI,CAAC;IAClB,CAAC,cAAc,EAAE,IAAI,CAAC;IACtB,CAAC,sBAAsB,CAAC;IACxB,CAAC,OAAO,EAAE,IAAI,CAAC;IACf,CAAC,eAAe,EAAE,IAAI,CAAC;IACvB,CAAC,eAAe,EAAE,IAAI,CAAC;IACvB,CAAC,wBAAwB,CAAC;IAC1B,CAAC,6BAA6B,CAAC;IAC/B,CAAC,SAAS,CAAC;IACX,CAAC,OAAO,CAAC;IACT,CAAC,kBAAkB,CAAC;IACpB,CAAC,qBAAqB,CAAC;IACvB,CAAC,kBAAkB,EAAE,IAAI,CAAC;CAC3B,CAAC,CAAC;AAEH,kBAAe,IAAI,CAAC"}
|
package/src/Global.d.ts
CHANGED
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;;AAgF5E,0BAMC;AASD,0BAoBC;AAzCD;;;;;GAKG;AACH,SAAgB,OAAO,CAA0B,UAAa;IAC5D,MAAM,GAAG,GAAI,MAAiB,CAAC,oBAAoB,CAAC,CAAC;IACrD,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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