@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 +1 -0
- package/dist/protocol.d.ts +6 -2
- package/dist/protocol.js +1 -0
- package/dist-cjs/client.js +1 -0
- package/dist-cjs/protocol.d.ts +6 -2
- package/dist-cjs/protocol.js +1 -0
- package/package.json +1 -1
package/dist/client.js
CHANGED
package/dist/protocol.d.ts
CHANGED
|
@@ -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
package/dist-cjs/client.js
CHANGED
package/dist-cjs/protocol.d.ts
CHANGED
|
@@ -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-cjs/protocol.js
CHANGED