@adminide-stack/marketplace-module-server 12.0.4-alpha.368 → 12.0.4-alpha.370

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.
@@ -1 +1 @@
1
- {"version":3,"file":"installed-extension-service-ext.d.ts","sourceRoot":"","sources":["../../src/services/installed-extension-service-ext.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAgBH,yBAAyB,EACzB,6BAA6B,EAO7B,YAAY,EACf,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AA0D1E;;;GAGG;AACH,qBACa,4BAA6B,SAAQ,yBAAyB;IAKnE,SAAS,CAAC,WAAW,EAAE,YAAY;gBAHiB,UAAU,EAAE,6BAA6B,EAC7C,eAAe,EAAE,yBAAyB,EAEhF,WAAW,EAAE,YAAY,EACE,MAAM,EAAE,aAAa,EAC/B,MAAM,EAAE,SAAS,CAAC,OAAO;IAMxD,OAAO,CAAC,mBAAmB;CA4Z9B"}
1
+ {"version":3,"file":"installed-extension-service-ext.d.ts","sourceRoot":"","sources":["../../src/services/installed-extension-service-ext.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAgBH,yBAAyB,EACzB,6BAA6B,EAO7B,YAAY,EACf,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AA0D1E;;;GAGG;AACH,qBACa,4BAA6B,SAAQ,yBAAyB;IAKnE,SAAS,CAAC,WAAW,EAAE,YAAY;gBAHiB,UAAU,EAAE,6BAA6B,EAC7C,eAAe,EAAE,yBAAyB,EAEhF,WAAW,EAAE,YAAY,EACE,MAAM,EAAE,aAAa,EAC/B,MAAM,EAAE,SAAS,CAAC,OAAO;IAMxD,OAAO,CAAC,mBAAmB;CAie9B"}
@@ -117,6 +117,41 @@ let InstalledExtensionServiceExt = class InstalledExtensionServiceExt extends In
117
117
  } else {
118
118
  console.log('No configuration contributions found in manifest');
119
119
  }
120
+ // Extract UILayout contributions if they exist (same structure as configuration)
121
+ if (contributes && contributes.uiLayout) {
122
+ console.log('UILayout contributions found, processing...');
123
+ const uiLayoutContributions = Array.isArray(contributes.uiLayout) ? contributes.uiLayout : [contributes.uiLayout];
124
+ console.log(`Found ${uiLayoutContributions.length} UILayout contribution(s) in manifest`);
125
+ // Format UILayout contributions (same structure as configuration)
126
+ const uiLayoutNodes = uiLayoutContributions.map(uiLayout => {
127
+ // Process properties to convert scope strings to numbers (same as configuration)
128
+ const processedProperties = processConfigurationProperties(uiLayout.properties || {});
129
+ return {
130
+ id: ContributionFragmentName.Settings,
131
+ title: uiLayout.title || registryExtension.name,
132
+ description: uiLayout.description,
133
+ properties: processedProperties,
134
+ type: uiLayout.type || ['object']
135
+ };
136
+ });
137
+ if (uiLayoutNodes.length > 0) {
138
+ console.log(`Registering ${uiLayoutNodes.length} UILayout configuration nodes`);
139
+ try {
140
+ // Register UILayout contributions (exact same as configuration, just different schema)
141
+ await this.broker.call('ConfigurationRegistryService.registerUILayoutContributions', {
142
+ tenantId: event.tenantId,
143
+ extensionID: event.extensionSlug,
144
+ uiLayoutNodes
145
+ });
146
+ console.log(`✅ UILayout contributions registered successfully for ${event.extensionSlug}`);
147
+ } catch (uiLayoutError) {
148
+ console.error('❌ Failed to register UILayout contributions:', uiLayoutError);
149
+ // This is not fatal, log and continue
150
+ }
151
+ }
152
+ } else {
153
+ console.log('No UILayout contributions found in manifest');
154
+ }
120
155
  } else {
121
156
  console.log('No current release or manifest found for version:', registryExtension.version);
122
157
  }
@@ -254,6 +289,19 @@ let InstalledExtensionServiceExt = class InstalledExtensionServiceExt extends In
254
289
  console.warn('⚠️ STEP 1 WARNING: Extension configuration removal failed (may not exist):', configError);
255
290
  // This is not fatal - extension might not have had configuration
256
291
  }
292
+ // STEP 1.5: Remove UILayout contributions (if any exist)
293
+ console.log('\n🗑️ STEP 1.5: Removing UILayout contributions (if exist)');
294
+ try {
295
+ console.log('Attempting to remove UILayout contributions...');
296
+ await this.broker.call('ConfigurationRegistryService.removeUILayoutContributions', {
297
+ tenantId: event.tenantId,
298
+ extensionID: event.extensionSlug
299
+ });
300
+ console.log('✅ STEP 1.5 SUCCESS: UILayout contributions removed');
301
+ } catch (uiLayoutError) {
302
+ console.warn('⚠️ STEP 1.5 WARNING: UILayout contributions removal failed (may not exist):', uiLayoutError);
303
+ // This is not fatal - extension might not have had UILayout contributions
304
+ }
257
305
  // STEP 2: MANDATORY - Remove extension node from system_extension document
258
306
  console.log('\n🔧 STEP 2: Unregistering extension from SYSTEM_EXTENSION (MANDATORY)');
259
307
  try {
@@ -1 +1 @@
1
- {"version":3,"file":"installed-extension-service-ext.js","sources":["../../src/services/installed-extension-service-ext.ts"],"sourcesContent":[null],"names":[],"mappings":"qbA2FG;AACH;;AAG4D;AAWxD,SAAA,0BAA2B,CAAA,KAAA,EAAA;AA4Z9B,EAAA,IAAA,OAAA,KAAA,KAAA,QAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"installed-extension-service-ext.js","sources":["../../src/services/installed-extension-service-ext.ts"],"sourcesContent":[null],"names":[],"mappings":"qbA2FG;AACH;;AAG4D;AAWxD,SAAA,0BAA2B,CAAA,KAAA,EAAA;AAie9B,EAAA,IAAA,OAAA,KAAA,KAAA,QAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminide-stack/marketplace-module-server",
3
- "version": "12.0.4-alpha.368",
3
+ "version": "12.0.4-alpha.370",
4
4
  "description": "Sample core for higher packages to depend on",
5
5
  "license": "UNLICENSED",
6
6
  "author": "CDMBase LLC",
@@ -21,11 +21,11 @@
21
21
  "watch": "yarn build:lib:watch"
22
22
  },
23
23
  "dependencies": {
24
- "@adminide-stack/extension-api": "12.0.4-alpha.368",
24
+ "@adminide-stack/extension-api": "12.0.4-alpha.370",
25
25
  "nanoid": "^5.1.5"
26
26
  },
27
27
  "devDependencies": {
28
- "common": "12.0.4-alpha.368"
28
+ "common": "12.0.4-alpha.370"
29
29
  },
30
30
  "peerDependencies": {
31
31
  "graphql-tag": ">=2.0.0"
@@ -57,5 +57,5 @@
57
57
  "typescript": {
58
58
  "definition": "lib/index.d.ts"
59
59
  },
60
- "gitHead": "252c71e36e2f04008dac73b469db93efd3cdd452"
60
+ "gitHead": "1f611ffca724c9f673e6379eb56637b790cd422b"
61
61
  }