@we-debug/plugin-appdata 0.44.2 → 0.46.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,22 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [0.46.0](https://github.com/dlhandsome/we-debug/compare/v0.45.2...v0.46.0) (2025-03-11)
7
+
8
+ **Note:** Version bump only for package @we-debug/plugin-appdata
9
+
10
+
11
+
12
+
13
+
14
+ # [0.45.0](https://github.com/dlhandsome/we-debug/compare/v0.44.2...v0.45.0) (2025-03-11)
15
+
16
+ **Note:** Version bump only for package @we-debug/plugin-appdata
17
+
18
+
19
+
20
+
21
+
6
22
  ## [0.44.2](https://github.com/dlhandsome/we-debug/compare/v0.44.1...v0.44.2) (2025-03-10)
7
23
 
8
24
 
@@ -0,0 +1,4 @@
1
+ export declare const showToast: (options: WechatMiniprogram.ShowToastOption) => Promise<void>;
2
+ export declare const showModal: (options: WechatMiniprogram.ShowModalOption) => Promise<WechatMiniprogram.ShowModalSuccessCallbackResult>;
3
+ export declare const showActionSheet: (options: WechatMiniprogram.ShowActionSheetOption) => Promise<WechatMiniprogram.ShowActionSheetSuccessCallbackResult>;
4
+ export declare const setClipboardData: (data: string) => Promise<void>;
package/dist/utils.js ADDED
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.setClipboardData = exports.showActionSheet = exports.showModal = exports.showToast = void 0;
15
+ var showToast = function (options) {
16
+ return new Promise(function (resolve, reject) {
17
+ wx.showToast(__assign(__assign({}, options), { success: function () { return resolve(); }, fail: reject }));
18
+ });
19
+ };
20
+ exports.showToast = showToast;
21
+ var showModal = function (options) {
22
+ return new Promise(function (resolve, reject) {
23
+ wx.showModal(__assign(__assign({}, options), { success: resolve, fail: reject }));
24
+ });
25
+ };
26
+ exports.showModal = showModal;
27
+ var showActionSheet = function (options) {
28
+ return new Promise(function (resolve, reject) {
29
+ wx.showActionSheet(__assign(__assign({}, options), { success: resolve, fail: reject }));
30
+ });
31
+ };
32
+ exports.showActionSheet = showActionSheet;
33
+ var setClipboardData = function (data) {
34
+ return new Promise(function (resolve, reject) {
35
+ wx.setClipboardData({
36
+ data: data,
37
+ success: function () { return resolve(); },
38
+ fail: reject,
39
+ });
40
+ });
41
+ };
42
+ exports.setClipboardData = setClipboardData;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@we-debug/plugin-appdata",
3
- "version": "0.44.2",
3
+ "version": "0.46.0",
4
4
  "description": "> TODO: description",
5
5
  "author": "Sail <505441575@qq.com>",
6
6
  "homepage": "https://github.com/dlhandsome/we-debug/tree/master/packages/runtime/plugin-appdata#readme",
@@ -20,5 +20,5 @@
20
20
  "bugs": {
21
21
  "url": "https://github.com/dlhandsome/we-debug/issues"
22
22
  },
23
- "gitHead": "3a4399d3b313fcc56a5e77ab0631a5602b9341b6"
23
+ "gitHead": "cd22b31111c7a9fb47c561395228b33c157b45ef"
24
24
  }