@wix/himalaya-cli 0.1147.0 → 0.1149.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.
@@ -37,6 +37,12 @@ export declare function getPermissionStatus(): Promise<PushPermission>;
37
37
  /** Request the OS notification permission, prompting if still undetermined.
38
38
  * Resolves with the resulting status. */
39
39
  export declare function requestPermission(): Promise<PushPermission>;
40
+ /** Open this app's notification settings in the OS (iOS 16+: the app's Notifications pane;
41
+ * Android 8+: the app's notification settings; earlier: the app's settings page). The only
42
+ * way back after a denial — once denied, `requestPermission()` can never prompt again — so
43
+ * offer it when `getPermissionStatus()` is "denied". Resolves `true` when the OS opened it.
44
+ * It does not report the outcome; re-read `getPermissionStatus()` when the app returns. */
45
+ export declare function openSettings(): Promise<boolean>;
40
46
  /** Schedule a local (on-device) notification. Resolves with its id. */
41
47
  export declare function scheduleLocal(options: ScheduleLocalOptions): Promise<{
42
48
  id: string;
@@ -26,7 +26,7 @@ export declare const CAPABILITY_REGISTRY: {
26
26
  readonly pdf: readonly ["isAvailable", "open"];
27
27
  readonly photos: readonly ["getSavePermissionStatus", "pick", "saveToLibrary"];
28
28
  readonly presigned_upload: readonly ["put", "putFile"];
29
- readonly push: readonly ["cancelAllLocal", "cancelLocal", "clearDelivered", "getBadge", "getDeviceToken", "getPermissionStatus", "listDelivered", "requestPermission", "scheduleLocal", "setBadge"];
29
+ readonly push: readonly ["cancelAllLocal", "cancelLocal", "clearDelivered", "getBadge", "getDeviceToken", "getPermissionStatus", "listDelivered", "openSettings", "requestPermission", "scheduleLocal", "setBadge"];
30
30
  readonly release_control: readonly ["active", "available", "list", "select"];
31
31
  readonly secure_storage: readonly ["availability", "read", "remove", "write"];
32
32
  readonly share: readonly ["availability", "share"];
@@ -41,7 +41,7 @@ var CAPABILITY_REGISTRY = {
41
41
  "pdf": ["isAvailable", "open"],
42
42
  "photos": ["getSavePermissionStatus", "pick", "saveToLibrary"],
43
43
  "presigned_upload": ["put", "putFile"],
44
- "push": ["cancelAllLocal", "cancelLocal", "clearDelivered", "getBadge", "getDeviceToken", "getPermissionStatus", "listDelivered", "requestPermission", "scheduleLocal", "setBadge"],
44
+ "push": ["cancelAllLocal", "cancelLocal", "clearDelivered", "getBadge", "getDeviceToken", "getPermissionStatus", "listDelivered", "openSettings", "requestPermission", "scheduleLocal", "setBadge"],
45
45
  "release_control": ["active", "available", "list", "select"],
46
46
  "secure_storage": ["availability", "read", "remove", "write"],
47
47
  "share": ["availability", "share"],
@@ -41,7 +41,7 @@ var CAPABILITY_REGISTRY = {
41
41
  "pdf": ["isAvailable", "open"],
42
42
  "photos": ["getSavePermissionStatus", "pick", "saveToLibrary"],
43
43
  "presigned_upload": ["put", "putFile"],
44
- "push": ["cancelAllLocal", "cancelLocal", "clearDelivered", "getBadge", "getDeviceToken", "getPermissionStatus", "listDelivered", "requestPermission", "scheduleLocal", "setBadge"],
44
+ "push": ["cancelAllLocal", "cancelLocal", "clearDelivered", "getBadge", "getDeviceToken", "getPermissionStatus", "listDelivered", "openSettings", "requestPermission", "scheduleLocal", "setBadge"],
45
45
  "release_control": ["active", "available", "list", "select"],
46
46
  "secure_storage": ["availability", "read", "remove", "write"],
47
47
  "share": ["availability", "share"],
@@ -41,7 +41,7 @@ var CAPABILITY_REGISTRY = {
41
41
  "pdf": ["isAvailable", "open"],
42
42
  "photos": ["getSavePermissionStatus", "pick", "saveToLibrary"],
43
43
  "presigned_upload": ["put", "putFile"],
44
- "push": ["cancelAllLocal", "cancelLocal", "clearDelivered", "getBadge", "getDeviceToken", "getPermissionStatus", "listDelivered", "requestPermission", "scheduleLocal", "setBadge"],
44
+ "push": ["cancelAllLocal", "cancelLocal", "clearDelivered", "getBadge", "getDeviceToken", "getPermissionStatus", "listDelivered", "openSettings", "requestPermission", "scheduleLocal", "setBadge"],
45
45
  "release_control": ["active", "available", "list", "select"],
46
46
  "secure_storage": ["availability", "read", "remove", "write"],
47
47
  "share": ["availability", "share"],
@@ -41,7 +41,7 @@ var CAPABILITY_REGISTRY = {
41
41
  "pdf": ["isAvailable", "open"],
42
42
  "photos": ["getSavePermissionStatus", "pick", "saveToLibrary"],
43
43
  "presigned_upload": ["put", "putFile"],
44
- "push": ["cancelAllLocal", "cancelLocal", "clearDelivered", "getBadge", "getDeviceToken", "getPermissionStatus", "listDelivered", "requestPermission", "scheduleLocal", "setBadge"],
44
+ "push": ["cancelAllLocal", "cancelLocal", "clearDelivered", "getBadge", "getDeviceToken", "getPermissionStatus", "listDelivered", "openSettings", "requestPermission", "scheduleLocal", "setBadge"],
45
45
  "release_control": ["active", "available", "list", "select"],
46
46
  "secure_storage": ["availability", "read", "remove", "write"],
47
47
  "share": ["availability", "share"],
@@ -41,7 +41,7 @@ var CAPABILITY_REGISTRY = {
41
41
  "pdf": ["isAvailable", "open"],
42
42
  "photos": ["getSavePermissionStatus", "pick", "saveToLibrary"],
43
43
  "presigned_upload": ["put", "putFile"],
44
- "push": ["cancelAllLocal", "cancelLocal", "clearDelivered", "getBadge", "getDeviceToken", "getPermissionStatus", "listDelivered", "requestPermission", "scheduleLocal", "setBadge"],
44
+ "push": ["cancelAllLocal", "cancelLocal", "clearDelivered", "getBadge", "getDeviceToken", "getPermissionStatus", "listDelivered", "openSettings", "requestPermission", "scheduleLocal", "setBadge"],
45
45
  "release_control": ["active", "available", "list", "select"],
46
46
  "secure_storage": ["availability", "read", "remove", "write"],
47
47
  "share": ["availability", "share"],
@@ -41,7 +41,7 @@ var CAPABILITY_REGISTRY = {
41
41
  "pdf": ["isAvailable", "open"],
42
42
  "photos": ["getSavePermissionStatus", "pick", "saveToLibrary"],
43
43
  "presigned_upload": ["put", "putFile"],
44
- "push": ["cancelAllLocal", "cancelLocal", "clearDelivered", "getBadge", "getDeviceToken", "getPermissionStatus", "listDelivered", "requestPermission", "scheduleLocal", "setBadge"],
44
+ "push": ["cancelAllLocal", "cancelLocal", "clearDelivered", "getBadge", "getDeviceToken", "getPermissionStatus", "listDelivered", "openSettings", "requestPermission", "scheduleLocal", "setBadge"],
45
45
  "release_control": ["active", "available", "list", "select"],
46
46
  "secure_storage": ["availability", "read", "remove", "write"],
47
47
  "share": ["availability", "share"],
@@ -41,7 +41,7 @@ var CAPABILITY_REGISTRY = {
41
41
  "pdf": ["isAvailable", "open"],
42
42
  "photos": ["getSavePermissionStatus", "pick", "saveToLibrary"],
43
43
  "presigned_upload": ["put", "putFile"],
44
- "push": ["cancelAllLocal", "cancelLocal", "clearDelivered", "getBadge", "getDeviceToken", "getPermissionStatus", "listDelivered", "requestPermission", "scheduleLocal", "setBadge"],
44
+ "push": ["cancelAllLocal", "cancelLocal", "clearDelivered", "getBadge", "getDeviceToken", "getPermissionStatus", "listDelivered", "openSettings", "requestPermission", "scheduleLocal", "setBadge"],
45
45
  "release_control": ["active", "available", "list", "select"],
46
46
  "secure_storage": ["availability", "read", "remove", "write"],
47
47
  "share": ["availability", "share"],
@@ -22,6 +22,10 @@ async function requestPermission() {
22
22
  const r = await dispatch("capability.push.requestPermission");
23
23
  return normalizePermission(r?.status);
24
24
  }
25
+ async function openSettings() {
26
+ const r = await dispatch("capability.push.openSettings");
27
+ return r?.opened === true;
28
+ }
25
29
  async function scheduleLocal(options) {
26
30
  const params = {
27
31
  title: options.title ?? "",
@@ -99,6 +103,7 @@ export {
99
103
  getDeviceToken,
100
104
  getPermissionStatus,
101
105
  listDelivered,
106
+ openSettings,
102
107
  readNotificationEvent,
103
108
  requestPermission,
104
109
  scheduleLocal,
@@ -26,7 +26,7 @@ var CAPABILITY_REGISTRY = {
26
26
  "pdf": ["isAvailable", "open"],
27
27
  "photos": ["getSavePermissionStatus", "pick", "saveToLibrary"],
28
28
  "presigned_upload": ["put", "putFile"],
29
- "push": ["cancelAllLocal", "cancelLocal", "clearDelivered", "getBadge", "getDeviceToken", "getPermissionStatus", "listDelivered", "requestPermission", "scheduleLocal", "setBadge"],
29
+ "push": ["cancelAllLocal", "cancelLocal", "clearDelivered", "getBadge", "getDeviceToken", "getPermissionStatus", "listDelivered", "openSettings", "requestPermission", "scheduleLocal", "setBadge"],
30
30
  "release_control": ["active", "available", "list", "select"],
31
31
  "secure_storage": ["availability", "read", "remove", "write"],
32
32
  "share": ["availability", "share"],
@@ -41,7 +41,7 @@ var CAPABILITY_REGISTRY = {
41
41
  "pdf": ["isAvailable", "open"],
42
42
  "photos": ["getSavePermissionStatus", "pick", "saveToLibrary"],
43
43
  "presigned_upload": ["put", "putFile"],
44
- "push": ["cancelAllLocal", "cancelLocal", "clearDelivered", "getBadge", "getDeviceToken", "getPermissionStatus", "listDelivered", "requestPermission", "scheduleLocal", "setBadge"],
44
+ "push": ["cancelAllLocal", "cancelLocal", "clearDelivered", "getBadge", "getDeviceToken", "getPermissionStatus", "listDelivered", "openSettings", "requestPermission", "scheduleLocal", "setBadge"],
45
45
  "release_control": ["active", "available", "list", "select"],
46
46
  "secure_storage": ["availability", "read", "remove", "write"],
47
47
  "share": ["availability", "share"],
package/dist/cli.mjs CHANGED
@@ -23567,7 +23567,6 @@ function shouldRevealError(args) {
23567
23567
  var EMAIL_RE, URL_HOST_RE, INTEGER_RE, NUMBER_RE;
23568
23568
  var init_validation = __esm({
23569
23569
  "../../core/ts/src/validation.ts"() {
23570
- "use strict";
23571
23570
  EMAIL_RE = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*\.[A-Za-z]{2,}$/;
23572
23571
  URL_HOST_RE = /^[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(:[0-9]+)?$/;
23573
23572
  INTEGER_RE = /^[+-]?[0-9]+$/;
@@ -24227,7 +24226,6 @@ function validateWorkerSubtree(raw, slotId, policy, actionCatalog) {
24227
24226
  var WORKER_SUBTREE_CEILINGS, ID_PART, ACTION_ID;
24228
24227
  var init_worker_subtree = __esm({
24229
24228
  "../../core/ts/src/worker-subtree.ts"() {
24230
- "use strict";
24231
24229
  init_worker_subtree_safe_types_generated();
24232
24230
  WORKER_SUBTREE_CEILINGS = Object.freeze({
24233
24231
  maxEncodedBytes: 65536,
@@ -59090,21 +59088,21 @@ var init_preview_assets_generated = __esm({
59090
59088
  "../../packages/serve/src/preview-assets.generated.ts"() {
59091
59089
  init_preview_assets_format();
59092
59090
  PREVIEW_ASSET_MANIFEST = [
59093
- { key: "assets/index-MTleSNX5.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 1105924, sha256: "cd795ed12abde9ce83261aa3031594c0290b9b939f5d760c183e6eab445037e8" },
59094
- { key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 1105932, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
59095
- { key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 1110542, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
59096
- { key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 1599126, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
59097
- { key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 1690050, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
59098
- { key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 1781034, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
59099
- { key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 1872014, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
59100
- { key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 1962886, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
59101
- { key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 2053866, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
59102
- { key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 2162502, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
59103
- { key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 2271586, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
59104
- { key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 2380634, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
59105
- { key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 2488334, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
59106
- { key: "index.html", contentType: "text/html; charset=utf-8", offset: 2576442, length: 4947, sha256: "19a6a0d5ddc194f08dcd03c96099db31994445a051fad14a09bcfaa724f51298" },
59107
- { key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 2581389, length: 17209, sha256: "dffc9718e2faa63ae2cc919e0a842f585ed565aaaa7c53778e90379442c731b6" }
59091
+ { key: "assets/index-DmgAgpqU.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 1106099, sha256: "b9a50991da0d7ccf02a7a3adfaf7c5151e96d20ba88c48f5d18035e3e0581147" },
59092
+ { key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 1106107, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
59093
+ { key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 1110717, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
59094
+ { key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 1599301, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
59095
+ { key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 1690225, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
59096
+ { key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 1781209, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
59097
+ { key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 1872189, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
59098
+ { key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 1963061, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
59099
+ { key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 2054041, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
59100
+ { key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 2162677, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
59101
+ { key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 2271761, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
59102
+ { key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 2380809, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
59103
+ { key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 2488509, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
59104
+ { key: "index.html", contentType: "text/html; charset=utf-8", offset: 2576617, length: 4947, sha256: "1a1b2faf9584d7b41d338d5ff54c4eb0d1cbf7f1a63efd9abe30339f5ff55c94" },
59105
+ { key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 2581564, length: 17209, sha256: "dffc9718e2faa63ae2cc919e0a842f585ed565aaaa7c53778e90379442c731b6" }
59108
59106
  ];
59109
59107
  }
59110
59108
  });
Binary file
@@ -2646,6 +2646,12 @@
2646
2646
  "jsdoc": "/** Request the OS notification permission, prompting if still undetermined.\n * Resolves with the resulting status. */",
2647
2647
  "decl": "export async function requestPermission(): Promise<PushPermission>;"
2648
2648
  },
2649
+ {
2650
+ "name": "openSettings",
2651
+ "kind": "function",
2652
+ "jsdoc": "/** Open this app's notification settings in the OS (iOS 16+: the app's Notifications pane;\n * Android 8+: the app's notification settings; earlier: the app's settings page). The only\n * way back after a denial — once denied, `requestPermission()` can never prompt again — so\n * offer it when `getPermissionStatus()` is \"denied\". Resolves `true` when the OS opened it.\n * It does not report the outcome; re-read `getPermissionStatus()` when the app returns. */",
2653
+ "decl": "export async function openSettings(): Promise<boolean>;"
2654
+ },
2649
2655
  {
2650
2656
  "name": "scheduleLocal",
2651
2657
  "kind": "function",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1147.0",
3
+ "version": "0.1149.0",
4
4
  "type": "module",
5
5
  "description": "himi — the Himalaya authoring CLI. Build a Tier-5 content package on your own machine, push it to the production serve as a draft, preview it on web + Himi Player, and read worker logs back — the remote dev loop. Wraps @himalaya/serve-cli for transport.",
6
6
  "keywords": [
@@ -67,5 +67,5 @@
67
67
  "artifactId": "himalaya-cli"
68
68
  }
69
69
  },
70
- "falconPackageHash": "6e0244443eef84efe49d5d233a08bbf3819c2286723fe287fe7c1cc8"
70
+ "falconPackageHash": "7dcb6d8baa768508ec09111079e55c159970ed86e7d815415c252815"
71
71
  }