@adobe-commerce/aio-experience-kit 1.0.1 → 1.0.3
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/CHANGELOG.md +76 -1
- package/README.md +104 -143
- package/dist/cjs/components/DataForm/FieldBuilder/index.js +33 -28
- package/dist/cjs/components/DataForm/FieldBuilder/index.js.map +1 -1
- package/dist/cjs/components/DataTable/GridBuilder/index.js +72 -58
- package/dist/cjs/components/DataTable/GridBuilder/index.js.map +1 -1
- package/dist/cjs/components/DataTable/index.js +8 -4
- package/dist/cjs/components/DataTable/index.js.map +1 -1
- package/dist/cjs/components/DataTable/types.js.map +1 -1
- package/dist/cjs/components/FileUpload/index.js +251 -0
- package/dist/cjs/components/FileUpload/index.js.map +1 -0
- package/dist/cjs/components/MainContainer/TwoColumnLeft/index.js +1 -1
- package/dist/cjs/components/MainContainer/TwoColumnLeft/index.js.map +1 -1
- package/dist/cjs/components/ShippingCarrierForm/index.js +6 -0
- package/dist/cjs/components/ShippingCarrierForm/index.js.map +1 -1
- package/dist/cjs/index.js +6 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/utils/AdminUiSdk/index.js +4 -139
- package/dist/cjs/utils/AdminUiSdk/index.js.map +1 -1
- package/dist/esm/components/DataForm/FieldBuilder/index.js +34 -29
- package/dist/esm/components/DataForm/FieldBuilder/index.js.map +1 -1
- package/dist/esm/components/DataTable/GridBuilder/index.js +74 -60
- package/dist/esm/components/DataTable/GridBuilder/index.js.map +1 -1
- package/dist/esm/components/DataTable/index.js +9 -5
- package/dist/esm/components/DataTable/index.js.map +1 -1
- package/dist/esm/components/DataTable/types.js.map +1 -1
- package/dist/esm/components/FileUpload/index.js +247 -0
- package/dist/esm/components/FileUpload/index.js.map +1 -0
- package/dist/esm/components/MainContainer/TwoColumnLeft/index.js +1 -1
- package/dist/esm/components/MainContainer/TwoColumnLeft/index.js.map +1 -1
- package/dist/esm/components/ShippingCarrierForm/index.js +6 -0
- package/dist/esm/components/ShippingCarrierForm/index.js.map +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/DataForm/FieldBuilder/index.d.ts.map +1 -1
- package/dist/esm/types/components/DataTable/GridBuilder/index.d.ts +1 -1
- package/dist/esm/types/components/DataTable/GridBuilder/index.d.ts.map +1 -1
- package/dist/esm/types/components/DataTable/GridBuilder/types.d.ts +1 -0
- package/dist/esm/types/components/DataTable/GridBuilder/types.d.ts.map +1 -1
- package/dist/esm/types/components/DataTable/index.d.ts +1 -1
- package/dist/esm/types/components/DataTable/index.d.ts.map +1 -1
- package/dist/esm/types/components/DataTable/types.d.ts +1 -0
- package/dist/esm/types/components/DataTable/types.d.ts.map +1 -1
- package/dist/esm/types/components/FileUpload/index.d.ts +7 -0
- package/dist/esm/types/components/FileUpload/index.d.ts.map +1 -0
- package/dist/esm/types/components/FileUpload/types.d.ts +85 -0
- package/dist/esm/types/components/FileUpload/types.d.ts.map +1 -0
- package/dist/esm/types/components/ShippingCarrierForm/index.d.ts +6 -0
- package/dist/esm/types/components/ShippingCarrierForm/index.d.ts.map +1 -1
- package/dist/esm/types/components/ShippingCarrierForm/types.d.ts +5 -0
- package/dist/esm/types/components/ShippingCarrierForm/types.d.ts.map +1 -1
- package/dist/esm/types/components/index.d.ts +8 -0
- package/dist/esm/types/components/index.d.ts.map +1 -1
- package/dist/esm/types/utils/AdminUiSdk/index.d.ts +6 -45
- package/dist/esm/types/utils/AdminUiSdk/index.d.ts.map +1 -1
- package/dist/esm/types/utils/AdminUiSdk/types.d.ts +0 -46
- package/dist/esm/types/utils/AdminUiSdk/types.d.ts.map +1 -1
- package/dist/esm/utils/AdminUiSdk/index.js +5 -140
- package/dist/esm/utils/AdminUiSdk/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,27 +1,18 @@
|
|
|
1
|
-
import { createClass as _createClass,
|
|
1
|
+
import { createClass as _createClass, asyncToGenerator as _asyncToGenerator, regenerator as _regenerator, classCallCheck as _classCallCheck } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import { attach, register } from '@adobe/uix-guest';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
* AdminUiSdk - Utility for managing Adobe Admin UI
|
|
5
|
+
* AdminUiSdk - Utility for managing Adobe Admin UI extensions
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
8
|
* ```typescript
|
|
9
9
|
* const sdk = new AdminUiSdk('admin_ui_extensibility');
|
|
10
10
|
*
|
|
11
|
-
* // Add a menu section (ID will be prefixed automatically: 'admin_ui_extensibility::apps')
|
|
12
|
-
* sdk.addMenuSection('apps', 'Apps', 100);
|
|
13
|
-
*
|
|
14
|
-
* // Add a menu item (ID and parent will be prefixed automatically)
|
|
15
|
-
* sdk.addMenuItem('first', 'First App on App Builder', 1, 'apps');
|
|
16
|
-
*
|
|
17
|
-
* // Add page configuration
|
|
18
|
-
* sdk.addPage('Adobe Commerce First App on App Builder');
|
|
19
|
-
*
|
|
20
|
-
* // Get registration object
|
|
21
|
-
* const registration = sdk.getRegistration();
|
|
22
|
-
*
|
|
23
11
|
* // Register with Adobe UIX
|
|
24
12
|
* await sdk.registerExtension();
|
|
13
|
+
*
|
|
14
|
+
* // Get credentials
|
|
15
|
+
* const credentials = await sdk.getCredentials();
|
|
25
16
|
* ```
|
|
26
17
|
*/
|
|
27
18
|
var AdminUiSdk = /*#__PURE__*/function () {
|
|
@@ -32,8 +23,6 @@ var AdminUiSdk = /*#__PURE__*/function () {
|
|
|
32
23
|
*/
|
|
33
24
|
function AdminUiSdk(extensionId) {
|
|
34
25
|
_classCallCheck(this, AdminUiSdk);
|
|
35
|
-
this.menuItems = [];
|
|
36
|
-
this.pageTitle = null;
|
|
37
26
|
if (!(extensionId !== null && extensionId !== void 0 && extensionId.trim())) {
|
|
38
27
|
throw new Error('Extension ID is required and cannot be empty');
|
|
39
28
|
}
|
|
@@ -53,130 +42,6 @@ var AdminUiSdk = /*#__PURE__*/function () {
|
|
|
53
42
|
value: function isValidId(id) {
|
|
54
43
|
return /^[a-zA-Z0-9_]+$/.test(id);
|
|
55
44
|
}
|
|
56
|
-
/**
|
|
57
|
-
* Adds a menu item to the extension
|
|
58
|
-
* @param id - Unique identifier for the menu item (will be prefixed with extensionId)
|
|
59
|
-
* @param title - Display title for the menu item
|
|
60
|
-
* @param sortOrder - Sort order for menu positioning
|
|
61
|
-
* @param parent - Parent menu identifier (optional, will be prefixed with extensionId if provided)
|
|
62
|
-
* @throws {Error} If parameters are invalid or ID already exists
|
|
63
|
-
*/
|
|
64
|
-
}, {
|
|
65
|
-
key: "addMenuItem",
|
|
66
|
-
value: function addMenuItem(id, title, sortOrder, parent) {
|
|
67
|
-
// Validation
|
|
68
|
-
if (!(id !== null && id !== void 0 && id.trim())) {
|
|
69
|
-
throw new Error('Menu item ID is required and cannot be empty');
|
|
70
|
-
}
|
|
71
|
-
if (!this.isValidId(id.trim())) {
|
|
72
|
-
throw new Error('Menu item ID must be alphanumeric with underscores only (no spaces, hyphens, or special characters)');
|
|
73
|
-
}
|
|
74
|
-
if (!(title !== null && title !== void 0 && title.trim())) {
|
|
75
|
-
throw new Error('Menu item title is required and cannot be empty');
|
|
76
|
-
}
|
|
77
|
-
if (parent !== undefined && !(parent !== null && parent !== void 0 && parent.trim())) {
|
|
78
|
-
throw new Error('Menu item parent cannot be empty if provided');
|
|
79
|
-
}
|
|
80
|
-
if (parent !== undefined && !this.isValidId(parent.trim())) {
|
|
81
|
-
throw new Error('Menu item parent must be alphanumeric with underscores only (no spaces, hyphens, or special characters)');
|
|
82
|
-
}
|
|
83
|
-
if (typeof sortOrder !== 'number' || sortOrder < 0) {
|
|
84
|
-
throw new Error('Menu item sortOrder must be a non-negative number');
|
|
85
|
-
}
|
|
86
|
-
// Create full ID with extension prefix
|
|
87
|
-
var fullId = "".concat(this.extensionId, "::").concat(id.trim());
|
|
88
|
-
// Check for duplicate IDs
|
|
89
|
-
if (this.menuItems.some(function (item) {
|
|
90
|
-
return item.id === fullId;
|
|
91
|
-
})) {
|
|
92
|
-
throw new Error("Menu item with ID '".concat(fullId, "' already exists"));
|
|
93
|
-
}
|
|
94
|
-
// Build menu item object - only include parent if provided
|
|
95
|
-
var menuItem = {
|
|
96
|
-
id: fullId,
|
|
97
|
-
title: title.trim(),
|
|
98
|
-
sortOrder: sortOrder
|
|
99
|
-
};
|
|
100
|
-
if (parent !== null && parent !== void 0 && parent.trim()) {
|
|
101
|
-
menuItem.parent = "".concat(this.extensionId, "::").concat(parent.trim());
|
|
102
|
-
}
|
|
103
|
-
// Add sanitized menu item
|
|
104
|
-
this.menuItems.push(menuItem);
|
|
105
|
-
}
|
|
106
|
-
/**
|
|
107
|
-
* Adds a menu section to the extension
|
|
108
|
-
* @param id - Unique identifier for the menu section (will be prefixed with extensionId)
|
|
109
|
-
* @param title - Display title for the menu section
|
|
110
|
-
* @param sortOrder - Sort order for section positioning
|
|
111
|
-
* @throws {Error} If parameters are invalid or ID already exists
|
|
112
|
-
*/
|
|
113
|
-
}, {
|
|
114
|
-
key: "addMenuSection",
|
|
115
|
-
value: function addMenuSection(id, title, sortOrder) {
|
|
116
|
-
// Validation
|
|
117
|
-
if (!(id !== null && id !== void 0 && id.trim())) {
|
|
118
|
-
throw new Error('Menu section ID is required and cannot be empty');
|
|
119
|
-
}
|
|
120
|
-
if (!this.isValidId(id.trim())) {
|
|
121
|
-
throw new Error('Menu section ID must be alphanumeric with underscores only (no spaces, hyphens, or special characters)');
|
|
122
|
-
}
|
|
123
|
-
if (!(title !== null && title !== void 0 && title.trim())) {
|
|
124
|
-
throw new Error('Menu section title is required and cannot be empty');
|
|
125
|
-
}
|
|
126
|
-
if (typeof sortOrder !== 'number' || sortOrder < 0) {
|
|
127
|
-
throw new Error('Menu section sortOrder must be a non-negative number');
|
|
128
|
-
}
|
|
129
|
-
// Create full ID with extension prefix
|
|
130
|
-
var fullId = "".concat(this.extensionId, "::").concat(id.trim());
|
|
131
|
-
// Check for duplicate IDs
|
|
132
|
-
if (this.menuItems.some(function (item) {
|
|
133
|
-
return item.id === fullId;
|
|
134
|
-
})) {
|
|
135
|
-
throw new Error("Menu item with ID '".concat(fullId, "' already exists"));
|
|
136
|
-
}
|
|
137
|
-
// Add sanitized menu section with isSection: true
|
|
138
|
-
this.menuItems.push({
|
|
139
|
-
id: fullId,
|
|
140
|
-
title: title.trim(),
|
|
141
|
-
sortOrder: sortOrder,
|
|
142
|
-
isSection: true
|
|
143
|
-
});
|
|
144
|
-
}
|
|
145
|
-
/**
|
|
146
|
-
* Sets the page title for the extension
|
|
147
|
-
* @param title - The page title
|
|
148
|
-
* @throws {Error} If title is empty or invalid
|
|
149
|
-
*/
|
|
150
|
-
}, {
|
|
151
|
-
key: "addPage",
|
|
152
|
-
value: function addPage(title) {
|
|
153
|
-
if (!(title !== null && title !== void 0 && title.trim())) {
|
|
154
|
-
throw new Error('Page title is required and cannot be empty');
|
|
155
|
-
}
|
|
156
|
-
this.pageTitle = title.trim();
|
|
157
|
-
}
|
|
158
|
-
/**
|
|
159
|
-
* Gets the complete registration object for the extension
|
|
160
|
-
* @returns The registration object with optional menu items and page configuration
|
|
161
|
-
*/
|
|
162
|
-
}, {
|
|
163
|
-
key: "getRegistration",
|
|
164
|
-
value: function getRegistration() {
|
|
165
|
-
var registration = {};
|
|
166
|
-
// Only include menuItems if there are any
|
|
167
|
-
if (this.menuItems.length > 0) {
|
|
168
|
-
registration.menuItems = _toConsumableArray(this.menuItems); // Return copy to prevent mutation
|
|
169
|
-
}
|
|
170
|
-
// Only include page if title is set
|
|
171
|
-
if (this.pageTitle) {
|
|
172
|
-
registration.page = {
|
|
173
|
-
title: this.pageTitle
|
|
174
|
-
};
|
|
175
|
-
}
|
|
176
|
-
return {
|
|
177
|
-
registration: registration
|
|
178
|
-
};
|
|
179
|
-
}
|
|
180
45
|
/**
|
|
181
46
|
* Gets IMS credentials from Adobe UIX shared context
|
|
182
47
|
* @returns Promise resolving to credentials object with imsToken and imsOrgId
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../src/utils/AdminUiSdk/index.ts"],"sourcesContent":["/**\n * <license header>\n */\n\nimport { register, attach } from '@adobe/uix-guest';\nimport {\n MenuItem,\n AdminUiSdkRegistration,\n AdminUiSdkInterface,\n AdminUiSdkCredentials,\n} from './types';\n\n/**\n * AdminUiSdk - Utility for managing Adobe Admin UI extension registrations\n *\n * @example\n * ```typescript\n * const sdk = new AdminUiSdk('admin_ui_extensibility');\n *\n * // Add a menu section (ID will be prefixed automatically: 'admin_ui_extensibility::apps')\n * sdk.addMenuSection('apps', 'Apps', 100);\n *\n * // Add a menu item (ID and parent will be prefixed automatically)\n * sdk.addMenuItem('first', 'First App on App Builder', 1, 'apps');\n *\n * // Add page configuration\n * sdk.addPage('Adobe Commerce First App on App Builder');\n *\n * // Get registration object\n * const registration = sdk.getRegistration();\n *\n * // Register with Adobe UIX\n * await sdk.registerExtension();\n * ```\n */\nclass AdminUiSdk implements AdminUiSdkInterface {\n private readonly extensionId: string;\n private readonly menuItems: MenuItem[] = [];\n private pageTitle: string | null = null;\n\n /**\n * Creates a new AdminUiSdk instance\n * @param extensionId - Unique identifier for the extension\n * @throws {Error} If extensionId is empty or invalid\n */\n constructor(extensionId: string) {\n if (!extensionId?.trim()) {\n throw new Error('Extension ID is required and cannot be empty');\n }\n\n const trimmedId = extensionId.trim();\n if (!this.isValidId(trimmedId)) {\n throw new Error(\n 'Extension ID must be alphanumeric with underscores only (no spaces, hyphens, or special characters)'\n );\n }\n\n this.extensionId = trimmedId;\n }\n\n /**\n * Validates that an ID contains only alphanumeric characters and underscores\n * @param id - The ID to validate\n * @returns true if valid, false otherwise\n */\n private isValidId(id: string): boolean {\n return /^[a-zA-Z0-9_]+$/.test(id);\n }\n\n /**\n * Adds a menu item to the extension\n * @param id - Unique identifier for the menu item (will be prefixed with extensionId)\n * @param title - Display title for the menu item\n * @param sortOrder - Sort order for menu positioning\n * @param parent - Parent menu identifier (optional, will be prefixed with extensionId if provided)\n * @throws {Error} If parameters are invalid or ID already exists\n */\n addMenuItem(id: string, title: string, sortOrder: number, parent?: string): void {\n // Validation\n if (!id?.trim()) {\n throw new Error('Menu item ID is required and cannot be empty');\n }\n if (!this.isValidId(id.trim())) {\n throw new Error(\n 'Menu item ID must be alphanumeric with underscores only (no spaces, hyphens, or special characters)'\n );\n }\n if (!title?.trim()) {\n throw new Error('Menu item title is required and cannot be empty');\n }\n if (parent !== undefined && !parent?.trim()) {\n throw new Error('Menu item parent cannot be empty if provided');\n }\n if (parent !== undefined && !this.isValidId(parent.trim())) {\n throw new Error(\n 'Menu item parent must be alphanumeric with underscores only (no spaces, hyphens, or special characters)'\n );\n }\n if (typeof sortOrder !== 'number' || sortOrder < 0) {\n throw new Error('Menu item sortOrder must be a non-negative number');\n }\n\n // Create full ID with extension prefix\n const fullId = `${this.extensionId}::${id.trim()}`;\n\n // Check for duplicate IDs\n if (this.menuItems.some(item => item.id === fullId)) {\n throw new Error(`Menu item with ID '${fullId}' already exists`);\n }\n\n // Build menu item object - only include parent if provided\n const menuItem: MenuItem = {\n id: fullId,\n title: title.trim(),\n sortOrder,\n };\n\n if (parent?.trim()) {\n menuItem.parent = `${this.extensionId}::${parent.trim()}`;\n }\n\n // Add sanitized menu item\n this.menuItems.push(menuItem);\n }\n\n /**\n * Adds a menu section to the extension\n * @param id - Unique identifier for the menu section (will be prefixed with extensionId)\n * @param title - Display title for the menu section\n * @param sortOrder - Sort order for section positioning\n * @throws {Error} If parameters are invalid or ID already exists\n */\n addMenuSection(id: string, title: string, sortOrder: number): void {\n // Validation\n if (!id?.trim()) {\n throw new Error('Menu section ID is required and cannot be empty');\n }\n if (!this.isValidId(id.trim())) {\n throw new Error(\n 'Menu section ID must be alphanumeric with underscores only (no spaces, hyphens, or special characters)'\n );\n }\n if (!title?.trim()) {\n throw new Error('Menu section title is required and cannot be empty');\n }\n if (typeof sortOrder !== 'number' || sortOrder < 0) {\n throw new Error('Menu section sortOrder must be a non-negative number');\n }\n\n // Create full ID with extension prefix\n const fullId = `${this.extensionId}::${id.trim()}`;\n\n // Check for duplicate IDs\n if (this.menuItems.some(item => item.id === fullId)) {\n throw new Error(`Menu item with ID '${fullId}' already exists`);\n }\n\n // Add sanitized menu section with isSection: true\n this.menuItems.push({\n id: fullId,\n title: title.trim(),\n sortOrder,\n isSection: true,\n });\n }\n\n /**\n * Sets the page title for the extension\n * @param title - The page title\n * @throws {Error} If title is empty or invalid\n */\n addPage(title: string): void {\n if (!title?.trim()) {\n throw new Error('Page title is required and cannot be empty');\n }\n this.pageTitle = title.trim();\n }\n\n /**\n * Gets the complete registration object for the extension\n * @returns The registration object with optional menu items and page configuration\n */\n getRegistration(): AdminUiSdkRegistration {\n const registration: any = {};\n\n // Only include menuItems if there are any\n if (this.menuItems.length > 0) {\n registration.menuItems = [...this.menuItems]; // Return copy to prevent mutation\n }\n\n // Only include page if title is set\n if (this.pageTitle) {\n registration.page = {\n title: this.pageTitle,\n };\n }\n\n return {\n registration,\n };\n }\n\n /**\n * Gets IMS credentials from Adobe UIX shared context\n * @returns Promise resolving to credentials object with imsToken and imsOrgId\n * @throws {Error} If credentials retrieval fails\n */\n async getCredentials(): Promise<AdminUiSdkCredentials> {\n try {\n const guestConnection = await attach({ id: this.extensionId });\n const imsToken = guestConnection?.sharedContext?.get('imsToken') || null;\n const imsOrgId = guestConnection?.sharedContext?.get('imsOrgId') || null;\n\n return {\n imsToken,\n imsOrgId,\n };\n } catch (error) {\n throw new Error(\n `Failed to get credentials for extension '${this.extensionId}': ${error instanceof Error ? error.message : 'Unknown error'}`\n );\n }\n }\n\n /**\n * Registers the extension with Adobe UIX\n * @throws {Error} If registration fails\n */\n async registerExtension(): Promise<void> {\n try {\n await register({\n id: this.extensionId,\n methods: {},\n });\n } catch (error) {\n throw new Error(\n `Failed to register extension '${this.extensionId}': ${error instanceof Error ? error.message : 'Unknown error'}`\n );\n }\n }\n}\n\nexport default AdminUiSdk;\n\n// Re-export types for external use\nexport type {\n MenuItem,\n PageConfig,\n Registration,\n AdminUiSdkRegistration,\n AdminUiSdkInterface,\n AdminUiSdkCredentials,\n} from './types';\n"],"names":["AdminUiSdk","extensionId","_classCallCheck","menuItems","pageTitle","trim","Error","trimmedId","isValidId","_createClass","key","value","id","test","addMenuItem","title","sortOrder","parent","undefined","fullId","concat","some","item","menuItem","push","addMenuSection","isSection","addPage","getRegistration","registration","length","_toConsumableArray","page","_getCredentials","_asyncToGenerator","_regenerator","m","_callee","_guestConnection$shar","_guestConnection$shar2","guestConnection","imsToken","imsOrgId","_t","w","_context","p","n","attach","v","sharedContext","get","a","message","getCredentials","apply","arguments","_registerExtension","_callee2","_t2","_context2","register","methods","registerExtension"],"mappings":";;;AAYA;;;;;;;;;;;;;;;;;;;;;;AAsBG;AAtBH,IAuBMA,UAAU,gBAAA,YAAA;AAKd;;;;AAIG;EACH,SAAAA,UAAAA,CAAYC,WAAmB,EAAA;AAAAC,IAAAA,eAAA,OAAAF,UAAA,CAAA;IARd,IAAA,CAAAG,SAAS,GAAe,EAAE;IACnC,IAAA,CAAAC,SAAS,GAAkB,IAAI;IAQrC,IAAI,EAACH,WAAW,KAAA,IAAA,IAAXA,WAAW,KAAA,MAAA,IAAXA,WAAW,CAAEI,IAAI,EAAE,CAAA,EAAE;AACxB,MAAA,MAAM,IAAIC,KAAK,CAAC,8CAA8C,CAAC;AACjE,IAAA;AAEA,IAAA,IAAMC,SAAS,GAAGN,WAAW,CAACI,IAAI,EAAE;AACpC,IAAA,IAAI,CAAC,IAAI,CAACG,SAAS,CAACD,SAAS,CAAC,EAAE;AAC9B,MAAA,MAAM,IAAID,KAAK,CACb,qGAAqG,CACtG;AACH,IAAA;IAEA,IAAI,CAACL,WAAW,GAAGM,SAAS;AAC9B,EAAA;AAEA;;;;AAIG;EAJH,OAAAE,YAAA,CAAAT,UAAA,EAAA,CAAA;IAAAU,GAAA,EAAA,WAAA;AAAAC,IAAAA,KAAA,EAKQ,SAAAH,SAASA,C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AAA,CAAA,CAAA,CAAA,CAAA;MAAA,CAEJ,CAAA,CAAA;AAAA,MAAA,SAXKK,iBAAiBA,GAAA;AAAA,QAAA,OAAAN,kBAAA,CAAAF,KAAA,CAAA,IAAA,EAAAC,SAAA,CAAA;AAAA,MAAA;AAAA,MAAA,OAAjBO,iBAAiB;AAAA,IAAA,CAAA,EAAA;AAAA,GAAA,CAAA,CAAA;AAAA,CAAA;;;;"}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../src/utils/AdminUiSdk/index.ts"],"sourcesContent":["/**\n * <license header>\n */\n\nimport { register, attach } from '@adobe/uix-guest';\nimport { AdminUiSdkInterface, AdminUiSdkCredentials } from './types';\n\n/**\n * AdminUiSdk - Utility for managing Adobe Admin UI extensions\n *\n * @example\n * ```typescript\n * const sdk = new AdminUiSdk('admin_ui_extensibility');\n *\n * // Register with Adobe UIX\n * await sdk.registerExtension();\n *\n * // Get credentials\n * const credentials = await sdk.getCredentials();\n * ```\n */\nclass AdminUiSdk implements AdminUiSdkInterface {\n private readonly extensionId: string;\n\n /**\n * Creates a new AdminUiSdk instance\n * @param extensionId - Unique identifier for the extension\n * @throws {Error} If extensionId is empty or invalid\n */\n constructor(extensionId: string) {\n if (!extensionId?.trim()) {\n throw new Error('Extension ID is required and cannot be empty');\n }\n\n const trimmedId = extensionId.trim();\n if (!this.isValidId(trimmedId)) {\n throw new Error(\n 'Extension ID must be alphanumeric with underscores only (no spaces, hyphens, or special characters)'\n );\n }\n\n this.extensionId = trimmedId;\n }\n\n /**\n * Validates that an ID contains only alphanumeric characters and underscores\n * @param id - The ID to validate\n * @returns true if valid, false otherwise\n */\n private isValidId(id: string): boolean {\n return /^[a-zA-Z0-9_]+$/.test(id);\n }\n\n /**\n * Gets IMS credentials from Adobe UIX shared context\n * @returns Promise resolving to credentials object with imsToken and imsOrgId\n * @throws {Error} If credentials retrieval fails\n */\n async getCredentials(): Promise<AdminUiSdkCredentials> {\n try {\n const guestConnection = await attach({ id: this.extensionId });\n const imsToken = guestConnection?.sharedContext?.get('imsToken') || null;\n const imsOrgId = guestConnection?.sharedContext?.get('imsOrgId') || null;\n\n return {\n imsToken,\n imsOrgId,\n };\n } catch (error) {\n throw new Error(\n `Failed to get credentials for extension '${this.extensionId}': ${error instanceof Error ? error.message : 'Unknown error'}`\n );\n }\n }\n\n /**\n * Registers the extension with Adobe UIX\n * @throws {Error} If registration fails\n */\n async registerExtension(): Promise<void> {\n try {\n await register({\n id: this.extensionId,\n methods: {},\n });\n } catch (error) {\n throw new Error(\n `Failed to register extension '${this.extensionId}': ${error instanceof Error ? error.message : 'Unknown error'}`\n );\n }\n }\n}\n\nexport default AdminUiSdk;\n\n// Re-export types for external use\nexport type { AdminUiSdkInterface, AdminUiSdkCredentials } from './types';\n"],"names":["AdminUiSdk","extensionId","_classCallCheck","trim","Error","trimmedId","isValidId","_createClass","key","value","id","test","_getCredentials","_asyncToGenerator","_regenerator","m","_callee","_guestConnection$shar","_guestConnection$shar2","guestConnection","imsToken","imsOrgId","_t","w","_context","p","n","attach","v","sharedContext","get","a","concat","message","getCredentials","apply","arguments","_registerExtension","_callee2","_t2","_context2","register","methods","registerExtension"],"mappings":";;;AAOA;;;;;;;;;;;;;AAaG;AAbH,IAcMA,UAAU,gBAAA,YAAA;AAGd;;;;AAIG;EACH,SAAAA,UAAAA,CAAYC,WAAmB,EAAA;AAAAC,IAAAA,eAAA,OAAAF,UAAA,CAAA;IAC7B,IAAI,EAACC,WAAW,KAAA,IAAA,IAAXA,WAAW,KAAA,MAAA,IAAXA,WAAW,CAAEE,IAAI,EAAE,CAAA,EAAE;AACxB,MAAA,MAAM,IAAIC,KAAK,CAAC,8CAA8C,CAAC;AACjE,IAAA;AAEA,IAAA,IAAMC,SAAS,GAAGJ,WAAW,CAACE,IAAI,EAAE;AACpC,IAAA,IAAI,CAAC,IAAI,CAACG,SAAS,CAACD,SAAS,CAAC,EAAE;AAC9B,MAAA,MAAM,IAAID,KAAK,CACb,qGAAqG,CACtG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
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "A comprehensive TypeScript toolkit for building Adobe Commerce Admin UI extensions with React Spectrum components. Provides production-ready components and utilities for Adobe I/O extensibility platform integration.",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|