@forge/cli-shared 8.23.0-next.5 → 8.23.0-next.7
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
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @forge/cli-shared
|
|
2
2
|
|
|
3
|
+
## 8.23.0-next.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [e7b0684]
|
|
8
|
+
- @forge/manifest@12.8.0-next.6
|
|
9
|
+
|
|
10
|
+
## 8.23.0-next.6
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- ef0434d: Added support for multi-entry resources in UI Kit applications, enabling developers to define multiple entry points within a single resource.
|
|
15
|
+
- Updated dependencies [ef0434d]
|
|
16
|
+
- @forge/manifest@12.8.0-next.5
|
|
17
|
+
|
|
3
18
|
## 8.23.0-next.5
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-file.d.ts","sourceRoot":"","sources":["../../src/config/config-file.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAGpE,OAAO,EAAE,YAAY,EAAE,YAAY,EAAoB,MAAM,IAAI,CAAC;AAGlE,OAAO,EACL,OAAO,EACP,cAAc,EACd,SAAS,
|
|
1
|
+
{"version":3,"file":"config-file.d.ts","sourceRoot":"","sources":["../../src/config/config-file.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAGpE,OAAO,EAAE,YAAY,EAAE,YAAY,EAAoB,MAAM,IAAI,CAAC;AAGlE,OAAO,EACL,OAAO,EACP,cAAc,EACd,SAAS,EAOV,MAAM,iBAAiB,CAAC;AASzB,OAAO,EAAE,SAAS,EAAE,eAAe,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G,OAAO,CAAC,IAAI,CAAC;IAe1G,OAAO,CAAC,wBAAwB;IAKhC,OAAO,CAAC,wBAAwB;IAkBhC,OAAO,CAAC,6BAA6B;IAkBrC,OAAO,CAAC,gBAAgB;IAIX,oBAAoB,IAAI,OAAO,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,EAAE,GAAG,SAAS,CAAA;KAAE,EAAE,CAAC;IAqClF,gBAAgB,IAAI,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAe1E,YAAY,CAAC,aAAa,CAAC,EAAE,cAAc,EAAE,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC;IAsB1E,aAAa,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAKzD,OAAO,CAAC,eAAe;CAkCxB"}
|
|
@@ -182,7 +182,10 @@ class ConfigFile {
|
|
|
182
182
|
return [module.resource, ...config_1.ModuleEntryPoints.map((entryPoint) => module[entryPoint]?.resource || '')];
|
|
183
183
|
})
|
|
184
184
|
.filter(Boolean);
|
|
185
|
-
const missingModuleResourcesKeys = modulesResourcesKeys.filter((
|
|
185
|
+
const missingModuleResourcesKeys = modulesResourcesKeys.filter((resourceReference) => {
|
|
186
|
+
const { resourceKey } = (0, manifest_1.parseResourceReference)(resourceReference);
|
|
187
|
+
return !resources.some((resource) => resource.key === resourceKey);
|
|
188
|
+
});
|
|
186
189
|
if (missingModuleResourcesKeys.length > 0) {
|
|
187
190
|
throw new ResourceDefinitionMissingError(missingModuleResourcesKeys);
|
|
188
191
|
}
|
|
@@ -267,7 +270,12 @@ class ConfigFile {
|
|
|
267
270
|
return app.connect?.key;
|
|
268
271
|
}
|
|
269
272
|
getResourceType({ key: resourceKey }, allModules) {
|
|
270
|
-
const linkedModule = allModules.find((m) =>
|
|
273
|
+
const linkedModule = allModules.find((m) => {
|
|
274
|
+
if (!m.resource)
|
|
275
|
+
return false;
|
|
276
|
+
const { resourceKey: moduleResourceKey } = (0, manifest_1.parseResourceReference)(m.resource);
|
|
277
|
+
return moduleResourceKey === resourceKey;
|
|
278
|
+
}) ??
|
|
271
279
|
allModules
|
|
272
280
|
.reduce((acc, m) => {
|
|
273
281
|
config_1.ModuleEntryPoints.forEach((entryPoint) => {
|
|
@@ -278,7 +286,12 @@ class ConfigFile {
|
|
|
278
286
|
});
|
|
279
287
|
return acc;
|
|
280
288
|
}, [])
|
|
281
|
-
.find(({ resource }) =>
|
|
289
|
+
.find(({ resource }) => {
|
|
290
|
+
if (!resource)
|
|
291
|
+
return false;
|
|
292
|
+
const { resourceKey: moduleResourceKey } = (0, manifest_1.parseResourceReference)(resource);
|
|
293
|
+
return moduleResourceKey === resourceKey;
|
|
294
|
+
});
|
|
282
295
|
if (!linkedModule) {
|
|
283
296
|
return 'default';
|
|
284
297
|
}
|