@adobe/exc-app 1.4.17 → 1.4.19

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.
Files changed (69) hide show
  1. package/RuntimeConfiguration.d.ts +17 -0
  2. package/RuntimeConfiguration.js +7 -0
  3. package/RuntimeConfiguration.js.map +1 -1
  4. package/ai.d.ts +52 -1
  5. package/ai.js +9 -0
  6. package/ai.js.map +1 -1
  7. package/appapi.d.ts +3 -3
  8. package/appapi.js +2 -2
  9. package/appapi.js.map +1 -1
  10. package/bin/sort-imports.js +77 -69
  11. package/build/preBuild.js +2 -1
  12. package/docs/enums/appapi.appids.md +1 -1
  13. package/error.d.ts +50 -0
  14. package/error.js +81 -0
  15. package/error.js.map +1 -0
  16. package/metrics/Analytics.d.ts +1 -1
  17. package/metrics/History.d.ts +2 -2
  18. package/metrics/Metrics.d.ts +4 -4
  19. package/metrics.d.ts +1 -1
  20. package/package.json +15 -7
  21. package/page.d.ts +11 -0
  22. package/page.js +1 -0
  23. package/page.js.map +1 -1
  24. package/session.d.ts +2 -2
  25. package/settings.d.ts +4 -0
  26. package/settings.js.map +1 -1
  27. package/sidenav.d.ts +7 -0
  28. package/sidenav.js +5 -0
  29. package/sidenav.js.map +1 -1
  30. package/src/Global.d.ts +2 -0
  31. package/src/Global.js.map +1 -1
  32. package/tests/agreements.test.js +3 -3
  33. package/tests/agreements.test.js.map +1 -1
  34. package/tests/ai.test.js +37 -33
  35. package/tests/ai.test.js.map +1 -1
  36. package/tests/error.test.d.ts +1 -0
  37. package/tests/error.test.js +55 -0
  38. package/tests/error.test.js.map +1 -0
  39. package/tests/featureflags.test.js +6 -6
  40. package/tests/featureflags.test.js.map +1 -1
  41. package/tests/helpCenter.test.js +5 -5
  42. package/tests/helpCenter.test.js.map +1 -1
  43. package/tests/index.test.js +2 -2
  44. package/tests/index.test.js.map +1 -1
  45. package/tests/metrics.test.js +2 -2
  46. package/tests/metrics.test.js.map +1 -1
  47. package/tests/nps.test.js +1 -1
  48. package/tests/nps.test.js.map +1 -1
  49. package/tests/page.test.js +26 -26
  50. package/tests/page.test.js.map +1 -1
  51. package/tests/permissions.test.js +6 -6
  52. package/tests/permissions.test.js.map +1 -1
  53. package/tests/pulse.test.js +2 -2
  54. package/tests/pulse.test.js.map +1 -1
  55. package/tests/shell.test.js +17 -17
  56. package/tests/shell.test.js.map +1 -1
  57. package/tests/sidenav.test.js +16 -16
  58. package/tests/sidenav.test.js.map +1 -1
  59. package/tests/topbar.test.js +3 -3
  60. package/tests/topbar.test.js.map +1 -1
  61. package/tests/user.test.js +31 -31
  62. package/tests/user.test.js.map +1 -1
  63. package/tests/userprofile.test.js +1 -1
  64. package/tests/userprofile.test.js.map +1 -1
  65. package/user.d.ts +2 -1
  66. package/user.js.map +1 -1
  67. package/version.d.ts +1 -1
  68. package/version.js +1 -1
  69. package/.eslintrc.js +0 -118
@@ -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
  */
@@ -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;AAqHrC,IAAY,aAaX;AAbD,WAAY,aAAa;IACvB,gDAA+B,CAAA;IAC/B,kDAAiC,CAAA;IACjC,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CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;IAC7C,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
@@ -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.
@@ -68,7 +68,7 @@ export declare enum AppIds {
68
68
  DYNAMIC_CHAT = "hummingbird",
69
69
  EXCHANGE = "exchange",
70
70
  EXPERIENCE_CLOUD = "landing",
71
- EXPERIENCE_MANAGER = "experienceManagerUI",
71
+ EXPERIENCE_MANAGER = "aem-home-ui",
72
72
  EXPERIENCE_MANAGER_AEMEXPERIENCESUCCESSSTUDIO = "aemExperienceSuccessStudio",
73
73
  EXPERIENCE_MANAGER_AEMGENERATEVARIATIONS = "aemGenerateVariations",
74
74
  EXPERIENCE_MANAGER_AEMSHELL = "aemshell",
@@ -96,7 +96,7 @@ export declare enum AppIds {
96
96
  MIX_MODELER = "adobemixmodeler",
97
97
  OFFERS = "offers",
98
98
  PASS_AUTHENTICATION = "adobepassunifiedshellconsoleclient",
99
- PEOPLE = "people",
99
+ PEOPLE = "macuiAudiences",
100
100
  PERMISSIONS = "permissionsUI",
101
101
  PRIVACY_SERVICE = "privacyui",
102
102
  PROJECT_HUMMINGBIRD = "hummingbird",
package/appapi.js CHANGED
@@ -69,7 +69,7 @@ var AppIds;
69
69
  AppIds["DYNAMIC_CHAT"] = "hummingbird";
70
70
  AppIds["EXCHANGE"] = "exchange";
71
71
  AppIds["EXPERIENCE_CLOUD"] = "landing";
72
- AppIds["EXPERIENCE_MANAGER"] = "experienceManagerUI";
72
+ AppIds["EXPERIENCE_MANAGER"] = "aem-home-ui";
73
73
  AppIds["EXPERIENCE_MANAGER_AEMEXPERIENCESUCCESSSTUDIO"] = "aemExperienceSuccessStudio";
74
74
  AppIds["EXPERIENCE_MANAGER_AEMGENERATEVARIATIONS"] = "aemGenerateVariations";
75
75
  AppIds["EXPERIENCE_MANAGER_AEMSHELL"] = "aemshell";
@@ -97,7 +97,7 @@ var AppIds;
97
97
  AppIds["MIX_MODELER"] = "adobemixmodeler";
98
98
  AppIds["OFFERS"] = "offers";
99
99
  AppIds["PASS_AUTHENTICATION"] = "adobepassunifiedshellconsoleclient";
100
- AppIds["PEOPLE"] = "people";
100
+ AppIds["PEOPLE"] = "macuiAudiences";
101
101
  AppIds["PERMISSIONS"] = "permissionsUI";
102
102
  AppIds["PRIVACY_SERVICE"] = "privacyui";
103
103
  AppIds["PROJECT_HUMMINGBIRD"] = "hummingbird";
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;IACh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C,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"}
@@ -1,86 +1,94 @@
1
1
  /*************************************************************************
2
- * Copyright 2020 Adobe
3
- * All Rights Reserved.
2
+ * ADOBE CONFIDENTIAL
3
+ * ___________________
4
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.
5
+ * Copyright 2025 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: All information contained herein is, and remains
9
+ * the property of Adobe and its suppliers, if any. The intellectual
10
+ * and technical concepts contained herein are proprietary to Adobe
11
+ * and its suppliers and are protected by all applicable intellectual
12
+ * property laws, including trade secret and copyright laws.
13
+ * Dissemination of this information or reproduction of this material
14
+ * is strictly forbidden unless prior written permission is obtained
15
+ * from Adobe.
10
16
  **************************************************************************/
17
+ module.exports = {
18
+ meta: { fixable: 'code' },
19
+ create: function(context) {
20
+ const sourceCode = context.getSourceCode();
21
+ let previousDeclaration = null;
11
22
 
12
- module.exports = function(context) {
13
- const sourceCode = context.getSourceCode();
14
- let previousDeclaration = null;
15
-
16
- /**
17
- * Gets the local name of the first imported module.
18
- * @param {ASTNode} node the ImportDeclaration node.
19
- * @returns {?string} the local name of the first imported module.
20
- */
21
- function getFirstLocalMemberName(node) {
22
- if (node.specifiers[0]) {
23
- return node.specifiers[0].local.name.toLowerCase();
23
+ /**
24
+ * Gets the local name of the first imported module.
25
+ * @param {ASTNode} node the ImportDeclaration node.
26
+ * @returns {?string} the local name of the first imported module.
27
+ */
28
+ function getFirstLocalMemberName(node) {
29
+ if (node.specifiers[0]) {
30
+ return node.specifiers[0].local.name.toLowerCase();
31
+ }
32
+ return null;
24
33
  }
25
- return null;
26
- }
27
34
 
28
- return {
29
- ImportDeclaration(node) {
30
- if (previousDeclaration) {
31
- let currentLocalMemberName = getFirstLocalMemberName(node),
32
- previousLocalMemberName = getFirstLocalMemberName(previousDeclaration);
35
+ return {
36
+ ImportDeclaration(node) {
37
+ if (previousDeclaration) {
38
+ let currentLocalMemberName = getFirstLocalMemberName(node),
39
+ previousLocalMemberName = getFirstLocalMemberName(previousDeclaration);
33
40
 
34
- if (previousLocalMemberName && currentLocalMemberName && currentLocalMemberName < previousLocalMemberName) {
35
- context.report({
36
- node,
37
- message: 'Imports should be sorted alphabetically.'
38
- });
41
+ if (previousLocalMemberName && currentLocalMemberName && currentLocalMemberName < previousLocalMemberName) {
42
+ context.report({
43
+ node,
44
+ message: 'Imports should be sorted alphabetically.'
45
+ });
46
+ }
39
47
  }
40
- }
41
48
 
42
- const importSpecifiers = node.specifiers.filter(specifier => specifier.type === 'ImportSpecifier');
43
- const getSortableName = specifier => specifier.local.name.toLowerCase();
44
- const firstUnsortedIndex = importSpecifiers
45
- .map(getSortableName)
46
- .findIndex((name, index, array) => array[index - 1] > name);
49
+ const importSpecifiers = node.specifiers.filter(specifier => specifier.type === 'ImportSpecifier');
50
+ const getSortableName = specifier => specifier.local.name.toLowerCase();
51
+ const firstUnsortedIndex = importSpecifiers
52
+ .map(getSortableName)
53
+ .findIndex((name, index, array) => array[index - 1] > name);
47
54
 
48
- if (firstUnsortedIndex !== -1) {
49
- context.report({
50
- node: importSpecifiers[firstUnsortedIndex],
51
- message: "Member '{{memberName}}' of the import declaration should be sorted alphabetically.",
52
- data: {memberName: importSpecifiers[firstUnsortedIndex].local.name},
53
- fix(fixer) {
54
- return fixer.replaceTextRange(
55
- [importSpecifiers[0].range[0], importSpecifiers[importSpecifiers.length - 1].range[1]],
56
- importSpecifiers
57
- // Clone the importSpecifiers array to avoid mutating it
58
- .slice()
55
+ if (firstUnsortedIndex !== -1) {
56
+ context.report({
57
+ node: importSpecifiers[firstUnsortedIndex],
58
+ message: "Member '{{memberName}}' of the import declaration should be sorted alphabetically.",
59
+ data: {memberName: importSpecifiers[firstUnsortedIndex].local.name},
60
+ fix(fixer) {
61
+ return fixer.replaceTextRange(
62
+ [importSpecifiers[0].range[0], importSpecifiers[importSpecifiers.length - 1].range[1]],
63
+ importSpecifiers
64
+ // Clone the importSpecifiers array to avoid mutating it
65
+ .slice()
59
66
 
60
- // Sort the array into the desired order
61
- .sort((specifierA, specifierB) => {
62
- const aName = getSortableName(specifierA);
63
- const bName = getSortableName(specifierB);
64
- return aName > bName ? 1 : -1;
65
- })
67
+ // Sort the array into the desired order
68
+ .sort((specifierA, specifierB) => {
69
+ const aName = getSortableName(specifierA);
70
+ const bName = getSortableName(specifierB);
71
+ return aName > bName ? 1 : -1;
72
+ })
66
73
 
67
- // Build a string out of the sorted list of import specifiers and the text between the originals
68
- .reduce((sourceText, specifier, index) => {
69
- const textAfterSpecifier =
70
- index === importSpecifiers.length - 1
71
- ? ''
72
- : sourceCode
74
+ // Build a string out of the sorted list of import specifiers and the text between the originals
75
+ .reduce((sourceText, specifier, index) => {
76
+ const textAfterSpecifier =
77
+ index === importSpecifiers.length - 1
78
+ ? ''
79
+ : sourceCode
73
80
  .getText()
74
81
  .slice(importSpecifiers[index].range[1], importSpecifiers[index + 1].range[0]);
75
82
 
76
- return sourceText + sourceCode.getText(specifier) + textAfterSpecifier;
77
- }, '')
78
- );
79
- }
80
- });
81
- }
83
+ return sourceText + sourceCode.getText(specifier) + textAfterSpecifier;
84
+ }, '')
85
+ );
86
+ }
87
+ });
88
+ }
82
89
 
83
- previousDeclaration = node;
84
- }
85
- };
90
+ previousDeclaration = node;
91
+ }
92
+ };
93
+ }
86
94
  };
package/build/preBuild.js CHANGED
@@ -35,6 +35,7 @@ const DEFAULT_APP_IDS = {
35
35
  ADVERTISING_CLOUD: 'advertising-ssc',
36
36
  ASSETS_ESSENTIALS: 'ddam',
37
37
  CUSTOMER_JOURNEY_MANAGEMENT: 'cjm-home',
38
+ EXPERIENCE_MANAGER: 'aem-home-ui',
38
39
  LAUNCH_IMPLEMENT: 'implement',
39
40
  MARKETO: 'marketo',
40
41
  PROJECT_HUMMINGBIRD: 'hummingbird',
@@ -56,7 +57,7 @@ function updateName(name) {
56
57
  // Some newer apps may have a default name assigned as Adobe Experience Cloud
57
58
  const commonNames = ['Adobe Experience Cloud', 'Assets', 'Experience Manager', 'Launch'];
58
59
  const ignoreAppId = ['marketo'];
59
- const ignoreAppIdConcat = ['assets', 'experienceManagerUI'];
60
+ const ignoreAppIdConcat = ['aem-home-ui', 'assets'];
60
61
 
61
62
  // Dynamically generate an enum list of allowed appIds to support the App API
62
63
  const fixtureList = solutions.concat(services).concat(landingPage);
@@ -178,7 +178,7 @@ ___
178
178
 
179
179
  ### EXPERIENCE\_MANAGER
180
180
 
181
- • **EXPERIENCE\_MANAGER**: = "experienceManagerUI"
181
+ • **EXPERIENCE\_MANAGER**: = "aem-home-ui"
182
182
 
183
183
  ___
184
184
 
package/error.d.ts ADDED
@@ -0,0 +1,50 @@
1
+ export declare enum ErrorCodes {
2
+ NOT_FOUND = "404-000",
3
+ UNKNOWN_ERROR = "500-000",
4
+ DISCOVERY_FAILED = "500-001",
5
+ DISCOVERY_INVALID_RESPONSE = "500-001i",
6
+ DISCOVERY_NETWORK_ERROR = "500-001n",
7
+ DISCOVERY_AUTH_FAILED = "500-001a",
8
+ DISCOVERY_TEMPLATE_FAILED = "500-001t",
9
+ NO_SOURCE = "500-002",
10
+ NO_SANDBOXES = "500-003",
11
+ NO_SUBORGS = "500-004",
12
+ NO_FLAGS = "500-005",
13
+ NO_USER_DATA = "500-006",
14
+ NO_PROFILE = "500-007",
15
+ TOKEN_MISMATCH = "500-008"
16
+ }
17
+ export declare enum ErrorTypes {
18
+ COLLABORATOR_FAIL = "COLLABORATOR_FAIL",
19
+ INSTANCE_FAIL = "INSTANCE_FAIL",
20
+ COOKIE_NEEDED = "COOKIE_NEEDED",
21
+ LOCAL_TIMEOUT = "LOCAL_TIMEOUT",
22
+ NO_SANDBOXES = "NO_SANDBOXES",
23
+ NOT_FOUND = "NOT_FOUND",
24
+ OFFLINE = "OFFLINE",
25
+ RESTRICTED_PBA = "RESTRICTED_PBA",
26
+ RATE_LIMIT = "RATE_LIMIT",
27
+ RESTRICTED_IP = "RESTRICTED_IP",
28
+ SANDBOX_FAIL = "SANDBOX_FAIL",
29
+ SUBORG_FAIL = "SUBORG_FAIL",
30
+ TIMEOUT = "TIMEOUT",
31
+ UNKNOWN = "UNKNOWN",
32
+ VERSION_NOTFOUND = "VERSION_NOTFOUND",
33
+ ZERO_TOUCH = "ZERO_TOUCH"
34
+ }
35
+ export interface ShowOptions {
36
+ code?: ErrorCodes;
37
+ type?: ErrorTypes;
38
+ }
39
+ /**
40
+ * APIs to process errors.
41
+ */
42
+ export interface ErrorApi {
43
+ /**
44
+ * Shows an error screen in the UI based on the code and type options.
45
+ * @param options The options to define what is shown in the error screen.
46
+ */
47
+ show(options?: ShowOptions): void;
48
+ }
49
+ declare const error: ErrorApi;
50
+ export default error;
package/error.js ADDED
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ErrorTypes = exports.ErrorCodes = void 0;
4
+ /*************************************************************************
5
+ * Copyright 2025 Adobe
6
+ * All Rights Reserved.
7
+ *
8
+ * NOTICE: Adobe permits you to use, modify, and distribute this file in
9
+ * accordance with the terms of the Adobe license agreement accompanying
10
+ * it. If you have received this file from a source other than Adobe,
11
+ * then your use, modification, or distribution of it requires the prior
12
+ * written permission of Adobe.
13
+ **************************************************************************/
14
+ /**
15
+ * APIs that let solutions interact with Errors. This is meant to show consistent
16
+ * errors within Unified Shell from an application.
17
+ *
18
+ * ***Import:***
19
+ *
20
+ * ```typescript
21
+ * import error from '@adobe/exc-app/error';
22
+ * ```
23
+ *
24
+ * ***Default export:***
25
+ *
26
+ * [ErrorApi](../interfaces/error.errorapi.md#interface-errorapi)
27
+ *
28
+ * ***Usage:***
29
+ *
30
+ * ```typescript
31
+ * import error from '@adobe/exc-app/error';
32
+ *
33
+ * error.show({type: ErrorTypes.RESTRICTED_IP})
34
+ * ```
35
+ * @packageDocumentation
36
+ * @module error
37
+ */
38
+ const Global_1 = require("./src/Global");
39
+ var ErrorCodes;
40
+ (function (ErrorCodes) {
41
+ ErrorCodes["NOT_FOUND"] = "404-000";
42
+ ErrorCodes["UNKNOWN_ERROR"] = "500-000";
43
+ ErrorCodes["DISCOVERY_FAILED"] = "500-001";
44
+ ErrorCodes["DISCOVERY_INVALID_RESPONSE"] = "500-001i";
45
+ ErrorCodes["DISCOVERY_NETWORK_ERROR"] = "500-001n";
46
+ ErrorCodes["DISCOVERY_AUTH_FAILED"] = "500-001a";
47
+ ErrorCodes["DISCOVERY_TEMPLATE_FAILED"] = "500-001t";
48
+ ErrorCodes["NO_SOURCE"] = "500-002";
49
+ ErrorCodes["NO_SANDBOXES"] = "500-003";
50
+ ErrorCodes["NO_SUBORGS"] = "500-004";
51
+ ErrorCodes["NO_FLAGS"] = "500-005";
52
+ ErrorCodes["NO_USER_DATA"] = "500-006";
53
+ ErrorCodes["NO_PROFILE"] = "500-007";
54
+ ErrorCodes["TOKEN_MISMATCH"] = "500-008";
55
+ })(ErrorCodes || (exports.ErrorCodes = ErrorCodes = {}));
56
+ var ErrorTypes;
57
+ (function (ErrorTypes) {
58
+ ErrorTypes["COLLABORATOR_FAIL"] = "COLLABORATOR_FAIL";
59
+ ErrorTypes["INSTANCE_FAIL"] = "INSTANCE_FAIL";
60
+ ErrorTypes["COOKIE_NEEDED"] = "COOKIE_NEEDED";
61
+ ErrorTypes["LOCAL_TIMEOUT"] = "LOCAL_TIMEOUT";
62
+ ErrorTypes["NO_SANDBOXES"] = "NO_SANDBOXES";
63
+ ErrorTypes["NOT_FOUND"] = "NOT_FOUND";
64
+ ErrorTypes["OFFLINE"] = "OFFLINE";
65
+ ErrorTypes["RESTRICTED_PBA"] = "RESTRICTED_PBA";
66
+ ErrorTypes["RATE_LIMIT"] = "RATE_LIMIT";
67
+ ErrorTypes["RESTRICTED_IP"] = "RESTRICTED_IP";
68
+ ErrorTypes["SANDBOX_FAIL"] = "SANDBOX_FAIL";
69
+ ErrorTypes["SUBORG_FAIL"] = "SUBORG_FAIL";
70
+ ErrorTypes["TIMEOUT"] = "TIMEOUT";
71
+ ErrorTypes["UNKNOWN"] = "UNKNOWN";
72
+ ErrorTypes["VERSION_NOTFOUND"] = "VERSION_NOTFOUND";
73
+ ErrorTypes["ZERO_TOUCH"] = "ZERO_TOUCH";
74
+ })(ErrorTypes || (exports.ErrorTypes = ErrorTypes = {}));
75
+ const error = {
76
+ show: (options) => {
77
+ return (0, Global_1.getImpl)('error')().show(options);
78
+ }
79
+ };
80
+ exports.default = error;
81
+ //# sourceMappingURL=error.js.map
package/error.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error.js","sourceRoot":"","sources":["error.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;4EAS4E;AAC5E;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,yCAAqC;AAErC,IAAY,UAeX;AAfD,WAAY,UAAU;IACpB,mCAAqB,CAAA;IACrB,uCAAyB,CAAA;IACzB,0CAA4B,CAAA;IAC5B,qDAAuC,CAAA;IACvC,kDAAoC,CAAA;IACpC,gDAAkC,CAAA;IAClC,oDAAsC,CAAA;IACtC,mCAAqB,CAAA;IACrB,sCAAwB,CAAA;IACxB,oCAAsB,CAAA;IACtB,kCAAoB,CAAA;IACpB,sCAAwB,CAAA;IACxB,oCAAsB,CAAA;IACtB,wCAA0B,CAAA;AAC5B,CAAC,EAfW,UAAU,0BAAV,UAAU,QAerB;AAED,IAAY,UAiBX;AAjBD,WAAY,UAAU;IACpB,qDAAuC,CAAA;IACvC,6CAA+B,CAAA;IAC/B,6CAA+B,CAAA;IAC/B,6CAA+B,CAAA;IAC/B,2CAA6B,CAAA;IAC7B,qCAAuB,CAAA;IACvB,iCAAmB,CAAA;IACnB,+CAAiC,CAAA;IACjC,uCAAyB,CAAA;IACzB,6CAA+B,CAAA;IAC/B,2CAA6B,CAAA;IAC7B,yCAA2B,CAAA;IAC3B,iCAAmB,CAAA;IACnB,iCAAmB,CAAA;IACnB,mDAAqC,CAAA;IACrC,uCAAyB,CAAA;AAC3B,CAAC,EAjBW,UAAU,0BAAV,UAAU,QAiBrB;AAkBD,MAAM,KAAK,GAAa;IACtB,IAAI,EAAE,CAAC,OAAoB,EAAE,EAAE;QAC7B,OAAO,IAAA,gBAAO,EAAC,OAAO,CAAC,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC1C,CAAC;CACF,CAAC;AAEF,kBAAe,KAAK,CAAC"}
@@ -34,7 +34,7 @@ export default interface Analytics {
34
34
  track(type: 'event' | 'page' | 'user', ...args: any): void;
35
35
  /**
36
36
  * Set `window.digialData.eventData` to the specified input and record an Analytics record.
37
- * @param event The object to assign to `window.digitalData.eventData`.
37
+ * @param eventData The object to assign to `window.digitalData.eventData`.
38
38
  */
39
39
  trackEvent(eventData: Record<string, any>): void;
40
40
  /**
@@ -20,14 +20,14 @@ export default interface History {
20
20
  * Records a history replace event.
21
21
  * @param path The current URL.
22
22
  * @param state Optional. The state associated to the event.
23
- * @param data Additional data associated to the event.
23
+ * @param args Additional data associated to the event.
24
24
  */
25
25
  replace(path: string, state?: any, ...args: any): void;
26
26
  /**
27
27
  * Records a history push event.
28
28
  * @param path The current URL.
29
29
  * @param state Optional. The state associated to the event.
30
- * @param data Additional data associated to the event.
30
+ * @param args Additional data associated to the event.
31
31
  */
32
32
  push(path: string, state?: any, ...args: any): void;
33
33
  }
@@ -69,7 +69,7 @@ export default interface Metrics {
69
69
  /**
70
70
  * Records the specified event.
71
71
  * @param event The name of the event being logged.
72
- * @param data Additional data associated to the event.
72
+ * @param args Additional data associated to the event.
73
73
  */
74
74
  event(event: string | string[], ...args: any): void;
75
75
  /**
@@ -90,9 +90,9 @@ export default interface Metrics {
90
90
  * b) send the Recent record (with PII) only to Unified Recents. PII must be
91
91
  * removed before sending to ADX.
92
92
  * @function
93
- * @param {string} revent The event.
94
- * @param {any} args Optional arguments to be applied to the recorded metrics.
95
- * @returns {Promise} A promise that resolves to the number of metrics that
93
+ * @param revent The event.
94
+ * @param args Optional arguments to be applied to the recorded metrics.
95
+ * @returns A promise that resolves to the number of metrics that
96
96
  * were queued for eventual flushing.
97
97
  */
98
98
  recent(revent: string | string[], ...args: any): void;
package/metrics.d.ts CHANGED
@@ -19,7 +19,7 @@ export interface MetricsApi {
19
19
  /**
20
20
  * Creates a metrics instance for the specified component to log entries and events.
21
21
  * @param name The name of the component.
22
- * @param {any} args Optional arguments that will be written into the
22
+ * @param args Optional arguments that will be written into the
23
23
  * metricsState context bag on the recorded metrics.
24
24
  */
25
25
  create(name: string, ...args: any): Readonly<Metrics>;