@forge/cli-shared 4.2.1-next.0 → 5.0.0-next.2

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,45 @@
1
1
  # @forge/cli-shared
2
2
 
3
+ ## 5.0.0-next.2
4
+
5
+ ### Major Changes
6
+
7
+ - 5c2c20f: Fixed the issue where the CLI was unable to bundle modules with multiple entrypoints using different resource types.
8
+
9
+ Specifically the following configuration that supports both UI Kit and Custom UI resources are now supported properly.
10
+
11
+ ```yaml
12
+ modules:
13
+ jira:customFieldType:
14
+ - key: my_custom_field_app
15
+ resource: ui-kit-resource
16
+ render: native
17
+ contextConfig:
18
+ resource: custom-ui-resource
19
+ ```
20
+
21
+ In the previous CLI version, the above configuration would assume that the `custom-ui-resource` is a UI Kit resource
22
+ and would expected a UI Kit based resource is linked. To support using same resource type for multiple entrypoints,
23
+ in above example, please add `render: native` to the `contextConfig` to correct the resource type:
24
+
25
+ ```yaml
26
+ modules:
27
+ jira:customFieldType:
28
+ - key: my_custom_field_app
29
+ resource: ui-kit-resource
30
+ render: native
31
+ contextConfig:
32
+ resource: ui-kit-resource
33
+ render: native
34
+ ```
35
+
36
+ ## 4.2.1-next.1
37
+
38
+ ### Patch Changes
39
+
40
+ - Updated dependencies [f04a310]
41
+ - @forge/manifest@7.2.3-next.1
42
+
3
43
  ## 4.2.1-next.0
4
44
 
5
45
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"config-file.d.ts","sourceRoot":"","sources":["../../src/config/config-file.ts"],"names":[],"mappings":"AAAA,OAAa,EAAwB,QAAQ,EAAS,MAAM,MAAM,CAAC;AAEnE,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAGpE,OAAO,EAAE,YAAY,EAAE,YAAY,EAAoB,MAAM,IAAI,CAAC;AAGlE,OAAO,EAAW,cAAc,EAAE,SAAS,EAAkB,MAAM,i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B;IAShC,OAAO,CAAC,6BAA6B;IAYrC,OAAO,CAAC,gBAAgB;IAIX,oBAAoB,IAAI,OAAO,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,EAAE,GAAG,SAAS,CAAA;KAAE,EAAE,CAAC;IAoClF,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,YAAY,EAAE,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC;IAqBxE,aAAa,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAKzD,OAAO,CAAC,eAAe;CA0BxB"}
@@ -200,7 +200,18 @@ class ConfigFile {
200
200
  return (_a = app.connect) === null || _a === void 0 ? void 0 : _a.key;
201
201
  }
202
202
  getResourceType({ key: resourceKey }, allModules) {
203
- const linkedModule = allModules.find((m) => m.resource === resourceKey || config_1.ModuleEntryPoints.some((entryPoint) => { var _a; return ((_a = m[entryPoint]) === null || _a === void 0 ? void 0 : _a.resource) === resourceKey; }));
203
+ var _a;
204
+ const linkedModule = (_a = allModules.find((m) => m.resource === resourceKey)) !== null && _a !== void 0 ? _a : allModules
205
+ .reduce((acc, m) => {
206
+ config_1.ModuleEntryPoints.forEach((entryPoint) => {
207
+ const entryPointModule = m[entryPoint];
208
+ if (entryPointModule) {
209
+ acc.push(entryPointModule);
210
+ }
211
+ });
212
+ return acc;
213
+ }, [])
214
+ .find(({ resource }) => resource === resourceKey);
204
215
  if (!linkedModule) {
205
216
  return 'default';
206
217
  }
@@ -5682,6 +5682,7 @@ export declare type CompassTeamCheckinsInput = {
5682
5682
  export declare type CompassTeamData = {
5683
5683
  __typename?: 'CompassTeamData';
5684
5684
  currentCheckin?: Maybe<CompassTeamCheckin>;
5685
+ id: Scalars['ID']['output'];
5685
5686
  labels?: Maybe<Array<CompassTeamLabel>>;
5686
5687
  metricSources?: Maybe<CompassTeamMetricSourceConnection>;
5687
5688
  pullRequests?: Maybe<CompassPullRequestConnection>;
@@ -28532,9 +28533,6 @@ export declare type JiraAppConfigStateEdge = {
28532
28533
  export declare type JiraAppNavigationConfig = {
28533
28534
  iconUrl?: Maybe<Scalars['String']['output']>;
28534
28535
  label?: Maybe<Scalars['String']['output']>;
28535
- links?: Maybe<Array<Maybe<JiraAppNavigationConfig>>>;
28536
- section?: Maybe<Scalars['Boolean']['output']>;
28537
- separator?: Maybe<Scalars['Boolean']['output']>;
28538
28536
  styleClass?: Maybe<Scalars['String']['output']>;
28539
28537
  url?: Maybe<Scalars['String']['output']>;
28540
28538
  };
@@ -28549,9 +28547,7 @@ export declare type JiraAppNavigationItem = JiraAppNavigationConfig & JiraNaviga
28549
28547
  id: Scalars['ID']['output'];
28550
28548
  isDefault?: Maybe<Scalars['Boolean']['output']>;
28551
28549
  label?: Maybe<Scalars['String']['output']>;
28552
- links?: Maybe<Array<Maybe<JiraAppNavigationItemNestedLink>>>;
28553
- section?: Maybe<Scalars['Boolean']['output']>;
28554
- separator?: Maybe<Scalars['Boolean']['output']>;
28550
+ sections?: Maybe<Array<Maybe<JiraAppSection>>>;
28555
28551
  styleClass?: Maybe<Scalars['String']['output']>;
28556
28552
  typeKey?: Maybe<JiraNavigationItemTypeKey>;
28557
28553
  url?: Maybe<Scalars['String']['output']>;
@@ -28560,12 +28556,15 @@ export declare type JiraAppNavigationItemNestedLink = JiraAppNavigationConfig &
28560
28556
  __typename?: 'JiraAppNavigationItemNestedLink';
28561
28557
  iconUrl?: Maybe<Scalars['String']['output']>;
28562
28558
  label?: Maybe<Scalars['String']['output']>;
28563
- links?: Maybe<Array<Maybe<JiraAppNavigationItemNestedLink>>>;
28564
- section?: Maybe<Scalars['Boolean']['output']>;
28565
- separator?: Maybe<Scalars['Boolean']['output']>;
28566
28559
  styleClass?: Maybe<Scalars['String']['output']>;
28567
28560
  url?: Maybe<Scalars['String']['output']>;
28568
28561
  };
28562
+ export declare type JiraAppSection = {
28563
+ __typename?: 'JiraAppSection';
28564
+ hasSeparator?: Maybe<Scalars['Boolean']['output']>;
28565
+ label?: Maybe<Scalars['String']['output']>;
28566
+ links?: Maybe<Array<Maybe<JiraAppNavigationItemNestedLink>>>;
28567
+ };
28569
28568
  export declare enum JiraAppType {
28570
28569
  Connect = "CONNECT",
28571
28570
  Forge = "FORGE"
@@ -41891,10 +41890,8 @@ export declare enum MembershipState {
41891
41890
  }
41892
41891
  export declare type MercuryCreateGoalInput = {
41893
41892
  description?: InputMaybe<Scalars['String']['input']>;
41894
- goalStatus?: InputMaybe<MercuryGoalStatus>;
41895
41893
  goalType?: InputMaybe<MercuryGoalType>;
41896
- metricScoring?: InputMaybe<MercuryMetricScoringInput>;
41897
- metricType?: InputMaybe<MercuryMetricType>;
41894
+ metricTarget?: InputMaybe<MercuryMetricTargetInput>;
41898
41895
  name: Scalars['String']['input'];
41899
41896
  owner?: InputMaybe<Scalars['String']['input']>;
41900
41897
  parentGoalAri?: InputMaybe<Scalars['String']['input']>;
@@ -41929,7 +41926,7 @@ export declare type MercuryEditGoalInput = {
41929
41926
  description?: InputMaybe<Scalars['String']['input']>;
41930
41927
  goalAri: Scalars['String']['input'];
41931
41928
  goalStatus?: InputMaybe<MercuryGoalStatus>;
41932
- metricValue?: InputMaybe<Scalars['BigDecimal']['input']>;
41929
+ metricTarget?: InputMaybe<MercuryMetricTargetInput>;
41933
41930
  name?: InputMaybe<Scalars['String']['input']>;
41934
41931
  owner?: InputMaybe<Scalars['String']['input']>;
41935
41932
  startDate?: InputMaybe<Scalars['Date']['input']>;
@@ -42161,7 +42158,8 @@ export declare type MercuryMetricScoring = {
42161
42158
  startValue?: Maybe<Scalars['BigDecimal']['output']>;
42162
42159
  targetValue?: Maybe<Scalars['BigDecimal']['output']>;
42163
42160
  };
42164
- export declare type MercuryMetricScoringInput = {
42161
+ export declare type MercuryMetricTargetInput = {
42162
+ metricType?: InputMaybe<MercuryMetricType>;
42165
42163
  startValue?: InputMaybe<Scalars['BigDecimal']['input']>;
42166
42164
  targetValue?: InputMaybe<Scalars['BigDecimal']['input']>;
42167
42165
  };
@@ -47160,6 +47158,32 @@ export declare type SearchResultGoogleDocument = SearchResult & {
47160
47158
  type: SearchResultType;
47161
47159
  url: Scalars['URL']['output'];
47162
47160
  };
47161
+ export declare type SearchResultGooglePresentation = SearchResult & {
47162
+ __typename?: 'SearchResultGooglePresentation';
47163
+ bodyText: Scalars['String']['output'];
47164
+ description: Scalars['String']['output'];
47165
+ excerpt?: Maybe<Scalars['String']['output']>;
47166
+ iconUrl?: Maybe<Scalars['URL']['output']>;
47167
+ id: Scalars['ID']['output'];
47168
+ isRestricted?: Maybe<Scalars['Boolean']['output']>;
47169
+ lastModifiedDate?: Maybe<Scalars['String']['output']>;
47170
+ title: Scalars['String']['output'];
47171
+ type: SearchResultType;
47172
+ url: Scalars['URL']['output'];
47173
+ };
47174
+ export declare type SearchResultGoogleSpreadsheet = SearchResult & {
47175
+ __typename?: 'SearchResultGoogleSpreadsheet';
47176
+ bodyText: Scalars['String']['output'];
47177
+ description: Scalars['String']['output'];
47178
+ excerpt?: Maybe<Scalars['String']['output']>;
47179
+ iconUrl?: Maybe<Scalars['URL']['output']>;
47180
+ id: Scalars['ID']['output'];
47181
+ isRestricted?: Maybe<Scalars['Boolean']['output']>;
47182
+ lastModifiedDate?: Maybe<Scalars['String']['output']>;
47183
+ title: Scalars['String']['output'];
47184
+ type: SearchResultType;
47185
+ url: Scalars['URL']['output'];
47186
+ };
47163
47187
  export declare type SearchResultItemEdge = {
47164
47188
  __typename?: 'SearchResultItemEdge';
47165
47189
  cursor?: Maybe<Scalars['String']['output']>;
@@ -47304,10 +47328,12 @@ export declare enum SearchResultType {
47304
47328
  Learning = "learning",
47305
47329
  Page = "page",
47306
47330
  Plan = "plan",
47331
+ Presentation = "presentation",
47307
47332
  Project = "project",
47308
47333
  Question = "question",
47309
47334
  Repository = "repository",
47310
47335
  Space = "space",
47336
+ Spreadsheet = "spreadsheet",
47311
47337
  Tag = "tag",
47312
47338
  Unrecognised = "unrecognised",
47313
47339
  Whiteboard = "whiteboard"
@@ -47686,6 +47712,7 @@ export declare type ShepherdAlertSupportingData = {
47686
47712
  customDetectionHighlight?: Maybe<ShepherdCustomDetectionHighlight>;
47687
47713
  highlight: ShepherdHighlight;
47688
47714
  marketplaceAppHighlight?: Maybe<ShepherdMarketplaceAppHighlight>;
47715
+ searchDetectionHighlight?: Maybe<ShepherdSearchDetectionHighlight>;
47689
47716
  };
47690
47717
  export declare enum ShepherdAlertTemplateType {
47691
47718
  AddedConfluenceGlobalPermission = "ADDED_CONFLUENCE_GLOBAL_PERMISSION",
@@ -48382,6 +48409,16 @@ export declare type ShepherdResourceEventInput = {
48382
48409
  ari: Scalars['String']['input'];
48383
48410
  time: Scalars['DateTime']['input'];
48384
48411
  };
48412
+ export declare type ShepherdSearchDetectionHighlight = {
48413
+ __typename?: 'ShepherdSearchDetectionHighlight';
48414
+ searchQueries: Array<ShepherdSearchQuery>;
48415
+ };
48416
+ export declare type ShepherdSearchQuery = {
48417
+ __typename?: 'ShepherdSearchQuery';
48418
+ datetime: Scalars['DateTime']['output'];
48419
+ query: Scalars['String']['output'];
48420
+ suspiciousSearchTerms?: Maybe<Array<ShepherdSuspiciousSearchTerm>>;
48421
+ };
48385
48422
  export declare type ShepherdSite = {
48386
48423
  __typename?: 'ShepherdSite';
48387
48424
  cloudId: Scalars['ID']['output'];
@@ -48476,6 +48513,12 @@ export declare type ShepherdSubscriptionUpdateInput = {
48476
48513
  webhook?: InputMaybe<ShepherdUpdateWebhookInput>;
48477
48514
  };
48478
48515
  export declare type ShepherdSubscriptionsResult = QueryError | ShepherdSubscriptionConnection;
48516
+ export declare type ShepherdSuspiciousSearchTerm = {
48517
+ __typename?: 'ShepherdSuspiciousSearchTerm';
48518
+ category: Scalars['String']['output'];
48519
+ endPosition: Scalars['Int']['output'];
48520
+ startPosition: Scalars['Int']['output'];
48521
+ };
48479
48522
  export declare type ShepherdTime = {
48480
48523
  __typename?: 'ShepherdTime';
48481
48524
  end?: Maybe<Scalars['DateTime']['output']>;