mazey-wechat-launch-app 2.1.2 → 2.1.4

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/README.md CHANGED
@@ -102,11 +102,11 @@ window.mazey = mazey;
102
102
 
103
103
  | 参数 | 说明 | 类型 | 值 |
104
104
  | :------------ | :------------ | :------------ | :------------ |
105
- | `weixinJsSdkTicket` | [jsapi_ticket](https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/JS-SDK.html#62) 公众号用于调用微信JS接口的临时票据 | string | (必填)例如:`bxLdikRXVb` |
105
+ | `weixinJsSdkTicket` | [jsapi_ticket](https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/JS-SDK.html#62) 公众号用于调用微信 JS 接口的临时票据 | string | (必填)例如:`bxLdikRXVb` |
106
106
  | `launchContainerQuery` | [selectors](https://developer.mozilla.org/zh-CN/docs/Web/CSS/CSS_Selectors) 有效的 CSS 选择器字符串,通常是填充按钮的父容器 | string | (必填)例如:`.example-btn`, `#example-btn` |
107
107
  | `serviceAccountAppId` | 公众号的唯一标识 AppId | string | (必填)例如:`wx123` |
108
108
  | `openPlatformMobileAppId` | 开放平台内所需跳转的移动应用的 AppId | string | (必填)例如:`wx456` |
109
- | `extInfo` | [extinfo](https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/Wechat_Open_Tag.html#%E8%B7%B3%E8%BD%ACAPP%EF%BC%9Awx-open-launch-app) 跳转所需额外信息 | string | (可选)例如:'example://example/example' |
109
+ | `extInfo` | [extinfo](https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/Wechat_Open_Tag.html#%E8%B7%B3%E8%BD%ACAPP%EF%BC%9Awx-open-launch-app) 跳转所需额外信息 | string | (可选)例如:`example://example/example` |
110
110
  | `launchBtnStyle` | 按钮内联样式 | string | (可选)例如:`top:0;right:0;bottom:0;left:0;` |
111
111
  | `launchBtnText` | 按钮文字 | string | (可选)例如:`打开 App` |
112
112
 
@@ -114,9 +114,9 @@ window.mazey = mazey;
114
114
 
115
115
  | 方法 | 说明 | 类型 |
116
116
  | :------------ | :------------ | :------------ |
117
- | start | 生成 | function |
118
- | update | 更新 | function |
119
- | destroy | 销毁 | function |
117
+ | `start` | 生成 | function |
118
+ | `update` | 更新 | function |
119
+ | `destroy` | 销毁 | function |
120
120
 
121
121
  ## FAQ
122
122
 
package/lib/index.cjs.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * mazey-wechat-launch-app v2.1.2 https://www.npmjs.com/package/mazey-wechat-launch-app
2
+ * mazey-wechat-launch-app v2.1.4 https://www.npmjs.com/package/mazey-wechat-launch-app
3
3
  * (c) 2018-2023 Mazey Chu
4
4
  * Released under the MIT License.
5
5
  */
package/lib/index.esm.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * mazey-wechat-launch-app v2.1.2 https://www.npmjs.com/package/mazey-wechat-launch-app
2
+ * mazey-wechat-launch-app v2.1.4 https://www.npmjs.com/package/mazey-wechat-launch-app
3
3
  * (c) 2018-2023 Mazey Chu
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * mazey-wechat-launch-app v2.1.2 https://www.npmjs.com/package/mazey-wechat-launch-app
2
+ * mazey-wechat-launch-app v2.1.4 https://www.npmjs.com/package/mazey-wechat-launch-app
3
3
  * (c) 2018-2023 Mazey Chu
4
4
  * Released under the MIT License.
5
5
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mazey-wechat-launch-app",
3
- "version": "2.1.2",
3
+ "version": "2.1.4",
4
4
  "description": "Launch App in WeChat/Weixin",
5
5
  "main": "lib/index.cjs.js",
6
6
  "module": "lib/index.esm.js",
@@ -1,20 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8">
5
- <title>Test Page: mazey-wechat-launch-app</title>
6
- <link rel="shortcut icon" type="image/png" href="https://mazey.cn/fav/logo-dark-circle-transparent-144x144.png">
7
- <style>
8
- .box {
9
- color: #333;
10
- }
11
- </style>
12
- </head>
13
- <body>
14
- <div class="container">
15
- <div class="box">
16
- <span>Content: mazey-wechat-launch-app </span>
17
- </div>
18
- </div>
19
- </body>
20
- </html>
package/examples/index.ts DELETED
@@ -1 +0,0 @@
1
- console.log('dev: mazey-wechat-launch-app');
package/scripts/env.sh DELETED
@@ -1,2 +0,0 @@
1
- # Node Version
2
- nvm use 14.21.3
@@ -1,6 +0,0 @@
1
- /* eslint-disable @typescript-eslint/no-var-requires */
2
- /* eslint-disable no-undef */
3
- // release
4
- const { release } = require('mazey/scripts/git-helper.js');
5
-
6
- release(undefined, { defaultBranch: 'main' });
@@ -1,40 +0,0 @@
1
- /* eslint-disable @typescript-eslint/no-var-requires */
2
- /* eslint-disable no-undef */
3
- const HtmlWebpackPlugin = require('html-webpack-plugin');
4
- const CleanWebpackPlugin = require('clean-webpack-plugin');
5
- const path = require('path');
6
- const _resolve = (_path) => path.resolve(__dirname, _path);
7
-
8
- module.exports = {
9
- entry: {
10
- index: _resolve('../examples/index.ts'),
11
- },
12
- output: {
13
- filename: '[name].js',
14
- path: _resolve('../dist'),
15
- },
16
- devServer: {
17
- contentBase: _resolve('../dist'),
18
- },
19
- module: {
20
- rules: [
21
- {
22
- test: /\.tsx?$/,
23
- use: 'ts-loader',
24
- exclude: /node_modules/,
25
- },
26
- ],
27
- },
28
- plugins: [
29
- new HtmlWebpackPlugin({
30
- filename: _resolve('../dist/index.html'),
31
- template: _resolve('../examples/index.html'),
32
- inject: true,
33
- chunksSortMode: 'dependency',
34
- }),
35
- new CleanWebpackPlugin([_resolve('../dist')]),
36
- ],
37
- resolve: {
38
- extensions: ['.tsx', '.ts', '.js'],
39
- },
40
- };