@detergent-software/atk 8.3.0-dev.1 → 8.3.0-dev.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 +23 -0
- package/build/commands/doctor.d.ts.map +1 -1
- package/build/commands/doctor.js +11 -4
- package/build/commands/doctor.js.map +1 -1
- package/build/commands/install.d.ts.map +1 -1
- package/build/commands/install.js +8 -8
- package/build/commands/install.js.map +1 -1
- package/build/commands/outdated.d.ts +1 -1
- package/build/commands/outdated.d.ts.map +1 -1
- package/build/commands/outdated.js +4 -4
- package/build/commands/outdated.js.map +1 -1
- package/build/commands/setup.d.ts.map +1 -1
- package/build/commands/setup.js +4 -2
- package/build/commands/setup.js.map +1 -1
- package/build/commands/update.d.ts +1 -1
- package/build/commands/update.d.ts.map +1 -1
- package/build/commands/update.js +4 -4
- package/build/commands/update.js.map +1 -1
- package/build/lib/atk-api/client.d.ts +5 -0
- package/build/lib/atk-api/client.d.ts.map +1 -1
- package/build/lib/atk-api/client.js +8 -2
- package/build/lib/atk-api/client.js.map +1 -1
- package/build/lib/atk-api/index.d.ts +2 -2
- package/build/lib/atk-api/index.d.ts.map +1 -1
- package/build/lib/atk-api/index.js +1 -1
- package/build/lib/atk-api/index.js.map +1 -1
- package/build/lib/atk-api/testing.js +1 -1
- package/build/lib/atk-api/testing.js.map +1 -1
- package/build/lib/atk-api/web-routes.d.ts +33 -2
- package/build/lib/atk-api/web-routes.d.ts.map +1 -1
- package/build/lib/atk-api/web-routes.js +23 -2
- package/build/lib/atk-api/web-routes.js.map +1 -1
- package/build/lib/registry.d.ts +6 -0
- package/build/lib/registry.d.ts.map +1 -1
- package/build/lib/registry.js +14 -6
- package/build/lib/registry.js.map +1 -1
- package/build/lib/web-app.d.ts +8 -1
- package/build/lib/web-app.d.ts.map +1 -1
- package/build/lib/web-app.js +10 -2
- package/build/lib/web-app.js.map +1 -1
- package/package.json +1 -1
package/build/lib/web-app.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Links into the ATK web app, which the CLI shows next to assets and bundles
|
|
3
|
-
* (`info`, `browse`, `list`, `search`)
|
|
3
|
+
* (`info`, `browse`, `list`, `search`), and to the getting-started videos
|
|
4
|
+
* (`setup`, `doctor`).
|
|
4
5
|
*
|
|
5
6
|
* The URL scheme is the web app's own: `webRoutes` from the shared API client,
|
|
6
7
|
* so every link the CLI prints is one the web can parse. Entity identity is in
|
|
@@ -14,7 +15,7 @@
|
|
|
14
15
|
* Building a link never throws: a ref the web could not parse (an odd org in a
|
|
15
16
|
* hand-edited lockfile) links to the web app's home instead.
|
|
16
17
|
*/
|
|
17
|
-
import { assetRef, bundleRef, isAtkError, webRoutes } from './atk-api/index.js';
|
|
18
|
+
import { assetRef, bundleRef, gettingStartedLinks, isAtkError, webRoutes } from './atk-api/index.js';
|
|
18
19
|
/** Production ATK web app (the prod Static Web App). Used when `ATK_WEB_URL` is not set. */
|
|
19
20
|
export const DEFAULT_WEB_URL = 'https://ashy-wave-0d3ec6210.3.azurestaticapps.net/';
|
|
20
21
|
/** Environment variable that overrides the web app base URL (e.g. to point at dev). */
|
|
@@ -32,6 +33,13 @@ export function buildAssetWebUrl(asset, version) {
|
|
|
32
33
|
export function buildBundleWebUrl(name, org) {
|
|
33
34
|
return toWebUrl(() => webRoutes.bundle(bundleRef({ name, org })));
|
|
34
35
|
}
|
|
36
|
+
/**
|
|
37
|
+
* Build a web app URL for one of the getting-started pages the CLI names:
|
|
38
|
+
* `basics` (the first series) or `troubleshoot` (its atk doctor chapter).
|
|
39
|
+
*/
|
|
40
|
+
export function buildGettingStartedWebUrl(link) {
|
|
41
|
+
return toWebUrl(() => webRoutes.gettingStartedSeries(gettingStartedLinks[link]));
|
|
42
|
+
}
|
|
35
43
|
/**
|
|
36
44
|
* Resolve the web app base URL, always ending in `/`.
|
|
37
45
|
*
|
package/build/lib/web-app.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web-app.js","sourceRoot":"","sources":["../../src/lib/web-app.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"web-app.js","sourceRoot":"","sources":["../../src/lib/web-app.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,mBAAmB,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAErG,4FAA4F;AAC5F,MAAM,CAAC,MAAM,eAAe,GAAG,oDAAoD,CAAC;AAEpF,uFAAuF;AACvF,MAAM,CAAC,MAAM,eAAe,GAAG,aAAa,CAAC;AAE7C;;GAEG;AACH,MAAM,UAAU,gBAAgB,CAAC,KAAmD,EAAE,OAAe;IACnG,OAAO,QAAQ,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC;AACvE,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,iBAAiB,CAAC,IAAY,EAAE,GAAY;IAC1D,OAAO,QAAQ,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC;AACpE,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,yBAAyB,CAAC,IAAsC;IAC9E,OAAO,QAAQ,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,oBAAoB,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACnF,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,SAAS;IACvB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,EAAE,IAAI,EAAE,CAAC;IACtD,MAAM,GAAG,GAAG,QAAQ,IAAI,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CA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