@forge/cli-shared 9.2.0-next.9 → 9.3.0-next.0
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 +63 -0
- package/out/apps/app-config.d.ts +2 -0
- package/out/apps/app-config.d.ts.map +1 -1
- package/out/apps/app-config.js +5 -0
- package/out/config/config.d.ts +2 -0
- package/out/config/config.d.ts.map +1 -1
- package/out/config/config.js +5 -1
- package/out/graphql/graphql-types.d.ts +748 -106
- package/out/graphql/graphql-types.d.ts.map +1 -1
- package/out/graphql/graphql-types.js +114 -63
- package/out/ui/command-line-ui.d.ts +3 -0
- package/out/ui/command-line-ui.d.ts.map +1 -1
- package/out/ui/command-line-ui.js +23 -0
- package/out/ui/text.d.ts +2 -0
- package/out/ui/text.d.ts.map +1 -1
- package/out/ui/text.js +6 -4
- package/out/ui/ui.d.ts +3 -0
- package/out/ui/ui.d.ts.map +1 -1
- package/package.json +4 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,68 @@
|
|
|
1
1
|
# @forge/cli-shared
|
|
2
2
|
|
|
3
|
+
## 9.3.0-next.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- ca4fa27: Add utility function to check if a UI Kit resource needs to be bundled
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [d706cd8]
|
|
12
|
+
- @forge/manifest@13.3.0-next.0
|
|
13
|
+
|
|
14
|
+
## 9.2.0
|
|
15
|
+
|
|
16
|
+
### Minor Changes
|
|
17
|
+
|
|
18
|
+
- 756c284: Added a new UI option to allow for a filterable list and adjusted module list, add and create command to utilise this design
|
|
19
|
+
- 8826ca3: add personal apps support for Forge app creation
|
|
20
|
+
- d415c89: Surface rate limit errors in CLI, improve E2E test robustness
|
|
21
|
+
- 757223b: Added Dashboard, bitbucket, rovo, teamwork, action templates
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- f408181: Reject dependencies outside application directory
|
|
26
|
+
- 903d6c1: Updated UI to show error when no installations
|
|
27
|
+
- 794aa2a: Skip warning for internal sites for personal apps
|
|
28
|
+
- 6e5b5a4: Better interface for packaging the runtime code
|
|
29
|
+
- 5abe69e: add support for personal app installation contexts
|
|
30
|
+
- 3991f92: Update `tmp` from 0.2.5 to 0.2.6 in `@forge/cli-shared` to remediate vulnerability
|
|
31
|
+
- Updated dependencies [4c5ba1c]
|
|
32
|
+
- Updated dependencies [2b30ef8]
|
|
33
|
+
- Updated dependencies [8826ca3]
|
|
34
|
+
- Updated dependencies [5abe69e]
|
|
35
|
+
- Updated dependencies [7195f29]
|
|
36
|
+
- Updated dependencies [3252a62]
|
|
37
|
+
- Updated dependencies [119be75]
|
|
38
|
+
- Updated dependencies [c67b720]
|
|
39
|
+
- @forge/manifest@13.2.0
|
|
40
|
+
|
|
41
|
+
## 9.2.0-next.13
|
|
42
|
+
|
|
43
|
+
### Patch Changes
|
|
44
|
+
|
|
45
|
+
- 794aa2a: Skip warning for internal sites for personal apps
|
|
46
|
+
|
|
47
|
+
## 9.2.0-next.12
|
|
48
|
+
|
|
49
|
+
### Patch Changes
|
|
50
|
+
|
|
51
|
+
- Updated dependencies [119be75]
|
|
52
|
+
- @forge/manifest@13.2.0-next.6
|
|
53
|
+
|
|
54
|
+
## 9.2.0-next.11
|
|
55
|
+
|
|
56
|
+
### Minor Changes
|
|
57
|
+
|
|
58
|
+
- 756c284: Added a new UI option to allow for a filterable list and adjusted module list, add and create command to utilise this design
|
|
59
|
+
|
|
60
|
+
## 9.2.0-next.10
|
|
61
|
+
|
|
62
|
+
### Patch Changes
|
|
63
|
+
|
|
64
|
+
- f408181: Reject dependencies outside application directory
|
|
65
|
+
|
|
3
66
|
## 9.2.0-next.9
|
|
4
67
|
|
|
5
68
|
### Patch Changes
|
package/out/apps/app-config.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as t from 'io-ts';
|
|
2
2
|
import { ConfigSectionReader } from '../config';
|
|
3
|
+
import { AppFeature } from '../graphql';
|
|
3
4
|
export declare const appConfigShape: t.TypeC<{
|
|
4
5
|
id: t.StringC;
|
|
5
6
|
}>;
|
|
@@ -10,4 +11,5 @@ export declare function adjustLegacyAppId(legacyAppDetails: AppDetails): {
|
|
|
10
11
|
id: string;
|
|
11
12
|
};
|
|
12
13
|
export declare const assertiveAppConfigProvider: (appConfigReader: ConfigSectionReader<AppDetails>) => AppConfigProvider;
|
|
14
|
+
export declare function isPersonalApp(appFeatures?: AppFeature[]): boolean;
|
|
13
15
|
//# sourceMappingURL=app-config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-config.d.ts","sourceRoot":"","sources":["../../src/apps/app-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAG3B,OAAO,EAAa,mBAAmB,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"app-config.d.ts","sourceRoot":"","sources":["../../src/apps/app-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAG3B,OAAO,EAAa,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAE3D,OAAO,EAAE,UAAU,EAAiB,MAAM,YAAY,CAAC;AAEvD,eAAO,MAAM,cAAc;;EAEzB,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,cAAc,CAAC,CAAC;AACzD,eAAO,MAAM,YAAY,QAAQ,CAAC;AAElC,MAAM,MAAM,iBAAiB,GAAG,MAAM,OAAO,CAAC,UAAU,CAAC,CAAC;AAE1D,wBAAgB,iBAAiB,CAAC,gBAAgB,EAAE,UAAU;;EAQ7D;AAED,eAAO,MAAM,0BAA0B,GACpC,iBAAiB,mBAAmB,CAAC,UAAU,CAAC,KAAG,iBAIxB,CAAC;AAE/B,wBAAgB,aAAa,CAAC,WAAW,CAAC,EAAE,UAAU,EAAE,GAAG,OAAO,CAEjE"}
|
package/out/apps/app-config.js
CHANGED
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.assertiveAppConfigProvider = exports.appConfigKey = exports.appConfigShape = void 0;
|
|
4
4
|
exports.adjustLegacyAppId = adjustLegacyAppId;
|
|
5
|
+
exports.isPersonalApp = isPersonalApp;
|
|
5
6
|
const tslib_1 = require("tslib");
|
|
6
7
|
const t = tslib_1.__importStar(require("io-ts"));
|
|
7
8
|
const ari_1 = require("../ari");
|
|
8
9
|
const config_1 = require("../config");
|
|
9
10
|
const ui_1 = require("../ui");
|
|
11
|
+
const graphql_1 = require("../graphql");
|
|
10
12
|
exports.appConfigShape = t.type({
|
|
11
13
|
id: t.string
|
|
12
14
|
});
|
|
@@ -24,3 +26,6 @@ const assertiveAppConfigProvider = (appConfigReader) => () => (0, config_1.asser
|
|
|
24
26
|
.readConfigSectionOrThrow(ui_1.Text.config.missing, ui_1.Text.config.invalid)
|
|
25
27
|
.then(adjustLegacyAppId);
|
|
26
28
|
exports.assertiveAppConfigProvider = assertiveAppConfigProvider;
|
|
29
|
+
function isPersonalApp(appFeatures) {
|
|
30
|
+
return appFeatures?.some((feature) => feature.key === graphql_1.AppFeatureKey.IsPersonalApp && feature.value) ?? false;
|
|
31
|
+
}
|
package/out/config/config.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ManifestSchema, Resources } from '@forge/manifest';
|
|
2
|
+
import { type ResourceDetails } from './config-file';
|
|
2
3
|
export declare const manifestFileName = "manifest.yml";
|
|
3
4
|
export declare const dependencyFileNames: string[];
|
|
4
5
|
export declare const ModuleEntryPoints: readonly ["view", "edit", "create", "contextConfig", "config", "target"];
|
|
@@ -23,4 +24,5 @@ export interface ConfigWriter {
|
|
|
23
24
|
}
|
|
24
25
|
export declare const validateResource: (resource: any) => resource is Resources;
|
|
25
26
|
export declare const isHostedResourceModule: (module: any) => module is HostedResourcesModule;
|
|
27
|
+
export declare const shouldBundleResource: (resource: ResourceDetails) => boolean;
|
|
26
28
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5D,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AAErD,eAAO,MAAM,gBAAgB,iBAAiB,CAAC;AAC/C,eAAO,MAAM,mBAAmB,UAAqD,CAAC;AAEtF,eAAO,MAAM,iBAAiB,0EAA2E,CAAC;AAC1G,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAElE,MAAM,MAAM,UAAU,GAAG;IACvB,GAAG,EAAE,MAAM,CAAC;CACb,GAAG;KACD,UAAU,IAAI,gBAAgB,CAAC,CAAC,EAAE,UAAU;CAC9C,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,UAAU,GAAG;IAC/C,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;CAC/B,GAAG;KACD,UAAU,IAAI,gBAAgB,CAAC,CAAC,EAAE,qBAAqB;CACzD,CAAC;AAEF,MAAM,WAAW,YAAY;IAC3B,UAAU,IAAI,OAAO,CAAC,cAAc,CAAC,CAAC;CACvC;AAED,MAAM,WAAW,YAAY;IAC3B,iBAAiB,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,MAAM,EAAE,SAAS,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9F,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACtD;AAED,eAAO,MAAM,gBAAgB,GAAI,UAAU,GAAG,KAAG,QAAQ,IAAI,SAG5D,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,QAAQ,GAAG,KAAG,MAAM,IAAI,qBAG9D,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,UAAU,eAAe,KAAG,OAEhE,CAAC"}
|
package/out/config/config.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isHostedResourceModule = exports.validateResource = exports.ModuleEntryPoints = exports.dependencyFileNames = exports.manifestFileName = void 0;
|
|
3
|
+
exports.shouldBundleResource = exports.isHostedResourceModule = exports.validateResource = exports.ModuleEntryPoints = exports.dependencyFileNames = exports.manifestFileName = void 0;
|
|
4
4
|
exports.manifestFileName = 'manifest.yml';
|
|
5
5
|
exports.dependencyFileNames = ['package.json', 'package-lock.json', 'yarn.lock'];
|
|
6
6
|
exports.ModuleEntryPoints = ['view', 'edit', 'create', 'contextConfig', 'config', 'target'];
|
|
@@ -14,3 +14,7 @@ const isHostedResourceModule = (module) => {
|
|
|
14
14
|
return resource !== undefined || exports.ModuleEntryPoints.some((entryPoint) => module[entryPoint]?.resource !== undefined);
|
|
15
15
|
};
|
|
16
16
|
exports.isHostedResourceModule = isHostedResourceModule;
|
|
17
|
+
const shouldBundleResource = (resource) => {
|
|
18
|
+
return resource.resourceType === 'nativeUI' && !resource.package;
|
|
19
|
+
};
|
|
20
|
+
exports.shouldBundleResource = shouldBundleResource;
|