@lo-ink/miniapp-sdk 0.19.0 → 0.19.1

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/client.js CHANGED
@@ -3,6 +3,7 @@ import { readRequestOptions } from "./request-options.js";
3
3
  const MAX_TIMEOUT_MS = 2_147_483_647;
4
4
  const operationCapability = {
5
5
  ready: "ready",
6
+ close: "close",
6
7
  expand: "expand",
7
8
  requestFullscreen: "fullscreen",
8
9
  exitFullscreen: "fullscreen",
@@ -1,5 +1,5 @@
1
1
  /** Stable, platform-neutral features a host can advertise. */
2
- export declare const MINI_APP_CAPABILITIES: readonly ["ready", "expand", "fullscreen", "hideKeyboard", "orientation", "backButton", "mainButton", "secondaryButton", "settingsButton", "closingConfirmation", "headerColor", "backgroundColor", "bottomBarColor", "haptics", "popup", "openLink", "sendData", "switchInlineQuery", "clipboard", "location", "biometry", "sensors", "downloadFile", "qrScanner", "requestWriteAccess", "requestContact", "shareMessage", "shareToStory", "invoice", "cloudStorage", "deviceStorage", "secureStorage"];
2
+ export declare const MINI_APP_CAPABILITIES: readonly ["ready", "close", "expand", "fullscreen", "hideKeyboard", "orientation", "backButton", "mainButton", "secondaryButton", "settingsButton", "closingConfirmation", "headerColor", "backgroundColor", "bottomBarColor", "haptics", "popup", "openLink", "sendData", "switchInlineQuery", "clipboard", "location", "biometry", "sensors", "downloadFile", "qrScanner", "requestWriteAccess", "requestContact", "shareMessage", "shareToStory", "invoice", "cloudStorage", "deviceStorage", "secureStorage"];
3
3
  export type Capability = (typeof MINI_APP_CAPABILITIES)[number];
4
4
  export declare const MINI_APP_PROTOCOL_VERSION: 1;
5
5
  export declare const MINI_APP_LIMITS: Readonly<{
@@ -137,6 +137,10 @@ export type MiniAppOperationMap = {
137
137
  input: undefined;
138
138
  output: void;
139
139
  };
140
+ close: {
141
+ input: undefined;
142
+ output: void;
143
+ };
140
144
  expand: {
141
145
  input: undefined;
142
146
  output: void;
@@ -192,7 +196,7 @@ export type MiniAppOperationMap = {
192
196
  };
193
197
  haptic: {
194
198
  input: {
195
- kind: "success" | "warning" | "error" | "light" | "medium" | "heavy" | "rigid" | "soft";
199
+ kind: "success" | "warning" | "error" | "light" | "medium" | "heavy" | "rigid" | "soft" | "selection";
196
200
  };
197
201
  output: void;
198
202
  };
package/dist/protocol.js CHANGED
@@ -1,6 +1,7 @@
1
1
  /** Stable, platform-neutral features a host can advertise. */
2
2
  export const MINI_APP_CAPABILITIES = [
3
3
  "ready",
4
+ "close",
4
5
  "expand",
5
6
  "fullscreen",
6
7
  "hideKeyboard",
@@ -8,6 +8,7 @@ const request_options_js_1 = require("./request-options.js");
8
8
  const MAX_TIMEOUT_MS = 2_147_483_647;
9
9
  const operationCapability = {
10
10
  ready: "ready",
11
+ close: "close",
11
12
  expand: "expand",
12
13
  requestFullscreen: "fullscreen",
13
14
  exitFullscreen: "fullscreen",
@@ -1,5 +1,5 @@
1
1
  /** Stable, platform-neutral features a host can advertise. */
2
- export declare const MINI_APP_CAPABILITIES: readonly ["ready", "expand", "fullscreen", "hideKeyboard", "orientation", "backButton", "mainButton", "secondaryButton", "settingsButton", "closingConfirmation", "headerColor", "backgroundColor", "bottomBarColor", "haptics", "popup", "openLink", "sendData", "switchInlineQuery", "clipboard", "location", "biometry", "sensors", "downloadFile", "qrScanner", "requestWriteAccess", "requestContact", "shareMessage", "shareToStory", "invoice", "cloudStorage", "deviceStorage", "secureStorage"];
2
+ export declare const MINI_APP_CAPABILITIES: readonly ["ready", "close", "expand", "fullscreen", "hideKeyboard", "orientation", "backButton", "mainButton", "secondaryButton", "settingsButton", "closingConfirmation", "headerColor", "backgroundColor", "bottomBarColor", "haptics", "popup", "openLink", "sendData", "switchInlineQuery", "clipboard", "location", "biometry", "sensors", "downloadFile", "qrScanner", "requestWriteAccess", "requestContact", "shareMessage", "shareToStory", "invoice", "cloudStorage", "deviceStorage", "secureStorage"];
3
3
  export type Capability = (typeof MINI_APP_CAPABILITIES)[number];
4
4
  export declare const MINI_APP_PROTOCOL_VERSION: 1;
5
5
  export declare const MINI_APP_LIMITS: Readonly<{
@@ -137,6 +137,10 @@ export type MiniAppOperationMap = {
137
137
  input: undefined;
138
138
  output: void;
139
139
  };
140
+ close: {
141
+ input: undefined;
142
+ output: void;
143
+ };
140
144
  expand: {
141
145
  input: undefined;
142
146
  output: void;
@@ -192,7 +196,7 @@ export type MiniAppOperationMap = {
192
196
  };
193
197
  haptic: {
194
198
  input: {
195
- kind: "success" | "warning" | "error" | "light" | "medium" | "heavy" | "rigid" | "soft";
199
+ kind: "success" | "warning" | "error" | "light" | "medium" | "heavy" | "rigid" | "soft" | "selection";
196
200
  };
197
201
  output: void;
198
202
  };
@@ -4,6 +4,7 @@ exports.MINI_APP_LIMITS = exports.MINI_APP_PROTOCOL_VERSION = exports.MINI_APP_C
4
4
  /** Stable, platform-neutral features a host can advertise. */
5
5
  exports.MINI_APP_CAPABILITIES = [
6
6
  "ready",
7
+ "close",
7
8
  "expand",
8
9
  "fullscreen",
9
10
  "hideKeyboard",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lo-ink/miniapp-sdk",
3
- "version": "0.19.0",
3
+ "version": "0.19.1",
4
4
  "description": "Typed, platform-neutral SDK for LO Mini Apps",
5
5
  "type": "module",
6
6
  "license": "MIT",