@upsoft/patchkit-launcher-runtime-base 2.0.0-alpha.31 → 2.0.0-alpha.33
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/dist/$local-index.d.ts +4 -0
- package/dist/$local-index.d.ts.map +1 -1
- package/dist/$local-index.js +4 -0
- package/dist/$local-index.js.map +1 -1
- package/dist/convert-unversioned-settings-to-settings-1.d.ts.map +1 -1
- package/dist/convert-unversioned-settings-to-settings-1.js +2 -0
- package/dist/convert-unversioned-settings-to-settings-1.js.map +1 -1
- package/dist/discover-and-adopt-legacy-app-branch-install.d.ts +19 -0
- package/dist/discover-and-adopt-legacy-app-branch-install.d.ts.map +1 -0
- package/dist/discover-and-adopt-legacy-app-branch-install.js +98 -0
- package/dist/discover-and-adopt-legacy-app-branch-install.js.map +1 -0
- package/dist/export-runtime-default-api-funcs.d.ts.map +1 -1
- package/dist/export-runtime-default-api-funcs.js +6 -0
- package/dist/export-runtime-default-api-funcs.js.map +1 -1
- package/dist/fetch-config.js +2 -2
- package/dist/fetch-should-suggest-legacy-app-branch-install-adoption.d.ts +19 -0
- package/dist/fetch-should-suggest-legacy-app-branch-install-adoption.d.ts.map +1 -0
- package/dist/fetch-should-suggest-legacy-app-branch-install-adoption.js +72 -0
- package/dist/fetch-should-suggest-legacy-app-branch-install-adoption.js.map +1 -0
- package/dist/get-legacy-app-branch-install-root-dir-path.d.ts +5 -0
- package/dist/get-legacy-app-branch-install-root-dir-path.d.ts.map +1 -0
- package/dist/get-legacy-app-branch-install-root-dir-path.js +30 -0
- package/dist/get-legacy-app-branch-install-root-dir-path.js.map +1 -0
- package/dist/set-legacy-app-branch-install-adoption-dismissed.d.ts +16 -0
- package/dist/set-legacy-app-branch-install-adoption-dismissed.d.ts.map +1 -0
- package/dist/set-legacy-app-branch-install-adoption-dismissed.js +36 -0
- package/dist/set-legacy-app-branch-install-adoption-dismissed.js.map +1 -0
- package/dist/settings1.d.ts +1 -0
- package/dist/settings1.d.ts.map +1 -1
- package/dist/tsconfig.src.tsbuildinfo +1 -1
- package/package.json +14 -14
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { __ } from "./$";
|
|
2
|
+
/**
|
|
3
|
+
* Records that the user declined the prompt to adopt a legacy (previous-generation, Unity) PatchKit
|
|
4
|
+
* launcher install for an app branch. Once recorded,
|
|
5
|
+
* `fetchShouldSuggestLegacyAppBranchInstallAdoption` returns `false` for that branch so the prompt
|
|
6
|
+
* is never shown again.
|
|
7
|
+
*
|
|
8
|
+
* The dismissed flag is persisted in the launcher settings (not in the app-branch-internal-state
|
|
9
|
+
* session cache), so no cache refresh is required.
|
|
10
|
+
*/
|
|
11
|
+
export declare const setLegacyAppBranchInstallAdoptionDismissed: __.ManagedAsyncFunc<"setLegacyAppBranchInstallAdoptionDismissed", ({}: {
|
|
12
|
+
appId: string;
|
|
13
|
+
appBranchId: string;
|
|
14
|
+
appBranchProfile?: string;
|
|
15
|
+
}) => Promise<void>>;
|
|
16
|
+
//# sourceMappingURL=set-legacy-app-branch-install-adoption-dismissed.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"set-legacy-app-branch-install-adoption-dismissed.d.ts","sourceRoot":"","sources":["../src/set-legacy-app-branch-install-adoption-dismissed.ts"],"names":[],"mappings":"AAAA,OAAO,EAAK,EAAE,EAAE,MAAM,KAAK,CAAC;AAK5B;;;;;;;;GAQG;AACH,eAAO,MAAQ,0CAA0C;;;oBAPtD,CAAA;oBAwCA,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.setLegacyAppBranchInstallAdoptionDismissed = void 0;
|
|
4
|
+
const _1 = require("./$");
|
|
5
|
+
const fetch_settings_1 = require("./fetch-settings");
|
|
6
|
+
const set_settings_1 = require("./set-settings");
|
|
7
|
+
/**
|
|
8
|
+
* Records that the user declined the prompt to adopt a legacy (previous-generation, Unity) PatchKit
|
|
9
|
+
* launcher install for an app branch. Once recorded,
|
|
10
|
+
* `fetchShouldSuggestLegacyAppBranchInstallAdoption` returns `false` for that branch so the prompt
|
|
11
|
+
* is never shown again.
|
|
12
|
+
*
|
|
13
|
+
* The dismissed flag is persisted in the launcher settings (not in the app-branch-internal-state
|
|
14
|
+
* session cache), so no cache refresh is required.
|
|
15
|
+
*/
|
|
16
|
+
exports.setLegacyAppBranchInstallAdoptionDismissed = _1.__.declareManagedFunc()
|
|
17
|
+
.async()
|
|
18
|
+
.def(_1._.setLegacyAppBranchInstallAdoptionDismissedDef)
|
|
19
|
+
.execute(async ({ appId, appBranchId, appBranchProfile, }) => {
|
|
20
|
+
const appBranchUid = _1._.getAppBranchUid({ appBranchId, appBranchProfile });
|
|
21
|
+
const settings = await (0, fetch_settings_1.fetchSettings)();
|
|
22
|
+
await (0, set_settings_1.setSettings)({
|
|
23
|
+
settings: _1.__.$deepmerge(settings, {
|
|
24
|
+
apps: {
|
|
25
|
+
[appId]: {
|
|
26
|
+
branches: {
|
|
27
|
+
[appBranchUid]: {
|
|
28
|
+
isLegacyInstallAdoptionDismissed: true,
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
}),
|
|
34
|
+
});
|
|
35
|
+
}).setLegacyAppBranchInstallAdoptionDismissed;
|
|
36
|
+
//# sourceMappingURL=set-legacy-app-branch-install-adoption-dismissed.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"set-legacy-app-branch-install-adoption-dismissed.js","sourceRoot":"","sources":["../src/set-legacy-app-branch-install-adoption-dismissed.ts"],"names":[],"mappings":";;;AAAA,0BAA4B;AAE5B,qDAAiD;AACjD,iDAA6C;AAE7C;;;;;;;;GAQG;AACY,kDAA0C,GAAK,KAAE,CAAC,kBAAkB,EAAE;KAClF,KAAK,EAAE;KACP,GAAG,CAAC,IAAC,CAAC,6CAA6C,CAAC;KACpD,OAAO,CACN,KAAK,EACH,EACE,KAAK,EACL,WAAW,EACX,gBAAgB,GACjB,EACD,EAAE;IAEF,MAAM,YAAY,GAAG,IAAC,CAAC,eAAe,CAAC,EAAE,WAAW,EAAE,gBAAgB,EAAE,CAAC,CAAC;IAE1E,MAAM,QAAQ,GAAG,MAAM,IAAA,8BAAa,GAAE,CAAC;IAEvC,MAAM,IAAA,0BAAW,EAAC;QAChB,QAAQ,EAAE,KAAE,CAAC,UAAU,CACrB,QAAQ,EACR;YACE,IAAI,EAAE;gBACJ,CAAC,KAAK,CAAC,EAAE;oBACP,QAAQ,EAAE;wBACR,CAAC,YAAY,CAAC,EAAE;4BACd,gCAAgC,EAAE,IAAI;yBACvC;qBACF;iBACF;aACF;SACF,CACF;KACF,CAAC,CAAC;AACL,CAAC,CACF,4CAAC"}
|
package/dist/settings1.d.ts
CHANGED
package/dist/settings1.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings1.d.ts","sourceRoot":"","sources":["../src/settings1.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS;IAExB,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,IAAI,EAAE;QACJ,CAAC,KAAK,EAAE,MAAM,GAAG;YACf,QAAQ,EAAE;gBACR,CAAC,SAAS,EAAE,MAAM,GAAG;oBACnB,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;oBAChC,wBAAwB,EAAE,MAAM,GAAG,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"settings1.d.ts","sourceRoot":"","sources":["../src/settings1.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS;IAExB,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,IAAI,EAAE;QACJ,CAAC,KAAK,EAAE,MAAM,GAAG;YACf,QAAQ,EAAE;gBACR,CAAC,SAAS,EAAE,MAAM,GAAG;oBACnB,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;oBAChC,wBAAwB,EAAE,MAAM,GAAG,SAAS,CAAC;oBAC7C,gCAAgC,EAAE,OAAO,GAAG,SAAS,CAAC;iBACvD,CAAC;aACH,CAAC;SACH,CAAC;KACH,CAAC;CACH"}
|