@tarojs/plugin-platform-qq 4.0.0-canary.0 → 4.0.0-canary.10
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/LICENSE +14 -0
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/package.json +8 -5
package/LICENSE
CHANGED
|
@@ -158,3 +158,17 @@ MIT (stencil-vue2-output-target):
|
|
|
158
158
|
The following files embed [stencil-vue2-output-target](https://github.com/diondree/stencil-vue2-output-target) MIT:
|
|
159
159
|
`/packages/taro-components-library-vue2/src/vue-component-lib/utils.ts`
|
|
160
160
|
See `/LICENSE` for details of the license.
|
|
161
|
+
|
|
162
|
+
==================
|
|
163
|
+
|
|
164
|
+
MIT (weui):
|
|
165
|
+
The following files embed [stencil-vue2-output-target](https://github.com/Tencent/weui) MIT:
|
|
166
|
+
`/packages/taro-components/src/components/*.scss`
|
|
167
|
+
See `/LICENSE.txt` for details of the license.
|
|
168
|
+
|
|
169
|
+
==================
|
|
170
|
+
|
|
171
|
+
Apache-2.0 (intersection-observer):
|
|
172
|
+
The following files embed [intersection-observer](https://github.com/GoogleChromeLabs/intersection-observer) Apache-2.0:
|
|
173
|
+
`/packages/taro-api/src/polyfill/intersection-observer.ts`
|
|
174
|
+
See `/LICENSE.txt` for details of the license.
|
package/dist/index.js
CHANGED
|
@@ -27,7 +27,12 @@ function __awaiter(thisArg, _arguments, P, generator) {
|
|
|
27
27
|
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
28
28
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
29
29
|
});
|
|
30
|
-
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
33
|
+
var e = new Error(message);
|
|
34
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
35
|
+
};
|
|
31
36
|
|
|
32
37
|
const components = {
|
|
33
38
|
// ======== 调整属性 ========
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/components.ts","../src/program.ts","../src/index.ts"],"sourcesContent":["export const components = {\n // ======== 调整属性 ========\n Button: {\n 'app-packagename': '',\n 'app-bundleid': '',\n 'app-connect-id': '',\n 'group-id': '',\n 'public-id': '',\n 'guild-id': '',\n 'share-type': '27',\n 'share-mode': '[\\'qq\\', \\'qzone\\']',\n 'aria-label': '',\n 'open-id': '',\n 'share-message-friend-info': '',\n bindAddFriend: '',\n bindAddGroupApp: ''\n },\n Ad: {\n 'type': 'banner',\n 'ad-left': '',\n 'ad-top': '',\n 'ad-width': '',\n 'ad-height': '',\n 'block-size': '1',\n 'block-orientation': 'landscape',\n 'test-banner-type': 'three',\n bindsize: '',\n }\n}\n","import { Weapp } from '@tarojs/plugin-platform-weapp'\n\nimport { components } from './components'\n\nimport type { IOptions } from '@tarojs/plugin-platform-weapp'\n\nconst PACKAGE_NAME = '@tarojs/plugin-platform-qq'\n\nexport default class QQ extends Weapp {\n platform = 'qq'\n globalObject = 'qq'\n projectConfigJson = 'project.qq.json'\n runtimePath = `${PACKAGE_NAME}/dist/runtime`\n fileType = {\n templ: '.qml',\n style: '.qss',\n config: '.json',\n script: '.js',\n xs: '.wxs'\n }\n\n /**\n * 1. setupTransaction - init\n * 2. setup\n * 3. setupTransaction - close\n * 4. buildTransaction - init\n * 5. build\n * 6. buildTransaction - close\n */\n constructor (ctx, config, pluginOptions: IOptions) {\n super(ctx, config, pluginOptions)\n\n this.buildTransaction.addWrapper({\n init: this.beforeBuild\n })\n }\n\n beforeBuild () {\n // 处理 QQ 与微信的组件差异\n this.template.mergeComponents(this.ctx, components)\n this.template.Adapter = {\n if: 'qq:if',\n else: 'qq:else',\n elseif: 'qq:elif',\n for: 'qq:for',\n forItem: 'qq:for-item',\n forIndex: 'qq:for-index',\n key: 'qq:key',\n xs: 'wxs',\n type: 'qq'\n }\n }\n}\n","import QQ from './program'\n\nimport type { IOptions } from '@tarojs/plugin-platform-weapp'\nimport type { IPluginContext } from '@tarojs/service'\n\nexport { QQ }\n\nexport default (ctx: IPluginContext, options: IOptions) => {\n ctx.registerPlatform({\n name: 'qq',\n useConfigName: 'mini',\n async fn ({ config }) {\n const program = new QQ(ctx, config, options)\n await program.start()\n }\n })\n}\n"],"names":["Weapp"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/components.ts","../src/program.ts","../src/index.ts"],"sourcesContent":["export const components = {\n // ======== 调整属性 ========\n Button: {\n 'app-packagename': '',\n 'app-bundleid': '',\n 'app-connect-id': '',\n 'group-id': '',\n 'public-id': '',\n 'guild-id': '',\n 'share-type': '27',\n 'share-mode': '[\\'qq\\', \\'qzone\\']',\n 'aria-label': '',\n 'open-id': '',\n 'share-message-friend-info': '',\n bindAddFriend: '',\n bindAddGroupApp: ''\n },\n Ad: {\n 'type': 'banner',\n 'ad-left': '',\n 'ad-top': '',\n 'ad-width': '',\n 'ad-height': '',\n 'block-size': '1',\n 'block-orientation': 'landscape',\n 'test-banner-type': 'three',\n bindsize: '',\n }\n}\n","import { Weapp } from '@tarojs/plugin-platform-weapp'\n\nimport { components } from './components'\n\nimport type { IOptions } from '@tarojs/plugin-platform-weapp'\n\nconst PACKAGE_NAME = '@tarojs/plugin-platform-qq'\n\nexport default class QQ extends Weapp {\n platform = 'qq'\n globalObject = 'qq'\n projectConfigJson = 'project.qq.json'\n runtimePath = `${PACKAGE_NAME}/dist/runtime`\n fileType = {\n templ: '.qml',\n style: '.qss',\n config: '.json',\n script: '.js',\n xs: '.wxs'\n }\n\n /**\n * 1. setupTransaction - init\n * 2. setup\n * 3. setupTransaction - close\n * 4. buildTransaction - init\n * 5. build\n * 6. buildTransaction - close\n */\n constructor (ctx, config, pluginOptions: IOptions) {\n super(ctx, config, pluginOptions)\n\n this.buildTransaction.addWrapper({\n init: this.beforeBuild\n })\n }\n\n beforeBuild () {\n // 处理 QQ 与微信的组件差异\n this.template.mergeComponents(this.ctx, components)\n this.template.Adapter = {\n if: 'qq:if',\n else: 'qq:else',\n elseif: 'qq:elif',\n for: 'qq:for',\n forItem: 'qq:for-item',\n forIndex: 'qq:for-index',\n key: 'qq:key',\n xs: 'wxs',\n type: 'qq'\n }\n }\n}\n","import QQ from './program'\n\nimport type { IOptions } from '@tarojs/plugin-platform-weapp'\nimport type { IPluginContext } from '@tarojs/service'\n\nexport { QQ }\n\nexport default (ctx: IPluginContext, options: IOptions) => {\n ctx.registerPlatform({\n name: 'qq',\n useConfigName: 'mini',\n async fn ({ config }) {\n const program = new QQ(ctx, config, options)\n await program.start()\n }\n })\n}\n"],"names":["Weapp"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAO,MAAM,UAAU,GAAG;;AAExB,IAAA,MAAM,EAAE;AACN,QAAA,iBAAiB,EAAE,EAAE;AACrB,QAAA,cAAc,EAAE,EAAE;AAClB,QAAA,gBAAgB,EAAE,EAAE;AACpB,QAAA,UAAU,EAAE,EAAE;AACd,QAAA,WAAW,EAAE,EAAE;AACf,QAAA,UAAU,EAAE,EAAE;AACd,QAAA,YAAY,EAAE,IAAI;AAClB,QAAA,YAAY,EAAE,qBAAqB;AACnC,QAAA,YAAY,EAAE,EAAE;AAChB,QAAA,SAAS,EAAE,EAAE;AACb,QAAA,2BAA2B,EAAE,EAAE;AAC/B,QAAA,aAAa,EAAE,EAAE;AACjB,QAAA,eAAe,EAAE,EAAE;AACpB,KAAA;AACD,IAAA,EAAE,EAAE;AACF,QAAA,MAAM,EAAE,QAAQ;AAChB,QAAA,SAAS,EAAE,EAAE;AACb,QAAA,QAAQ,EAAE,EAAE;AACZ,QAAA,UAAU,EAAE,EAAE;AACd,QAAA,WAAW,EAAE,EAAE;AACf,QAAA,YAAY,EAAE,GAAG;AACjB,QAAA,mBAAmB,EAAE,WAAW;AAChC,QAAA,kBAAkB,EAAE,OAAO;AAC3B,QAAA,QAAQ,EA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C,GAAmB,EAAE,OAAiB,KAAI;IACxD,GAAG,CAAC,gBAAgB,CAAC;AACnB,QAAA,IAAI,EAAE,IAAI;AACV,QAAA,aAAa,EAAE,MAAM;QACf,EAAE,CAAE,EAAE,MAAM,EAAE,EAAA;;gBAClB,MAAM,OAAO,GAAG,IAAI,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,CAAA;AAC5C,gBAAA,MAAM,OAAO,CAAC,KAAK,EAAE,CAAA;aACtB,CAAA,CAAA;AAAA,SAAA;AACF,KAAA,CAAC,CAAA;AACJ,CAAC;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/plugin-platform-qq",
|
|
3
|
-
"version": "4.0.0-canary.
|
|
3
|
+
"version": "4.0.0-canary.10",
|
|
4
4
|
"description": "QQ 小程序平台插件",
|
|
5
5
|
"author": "Chen-jj",
|
|
6
6
|
"homepage": "https://github.com/nervjs/taro/tree/master/packages/taro-qq#readme",
|
|
@@ -22,15 +22,18 @@
|
|
|
22
22
|
"url": "https://github.com/NervJS/taro/issues"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@tarojs/plugin-platform-weapp": "4.0.0-canary.
|
|
26
|
-
"@tarojs/service": "4.0.0-canary.
|
|
27
|
-
"@tarojs/shared": "4.0.0-canary.0"
|
|
25
|
+
"@tarojs/plugin-platform-weapp": "4.0.0-canary.10",
|
|
26
|
+
"@tarojs/service": "4.0.0-canary.10"
|
|
28
27
|
},
|
|
29
28
|
"devDependencies": {
|
|
30
29
|
"rollup": "^2.79.0",
|
|
31
30
|
"rollup-plugin-node-externals": "^5.0.0",
|
|
32
31
|
"rollup-plugin-ts": "^3.0.2",
|
|
33
|
-
"typescript": "^4.7.4"
|
|
32
|
+
"typescript": "^4.7.4",
|
|
33
|
+
"@tarojs/shared": "4.0.0-canary.10"
|
|
34
|
+
},
|
|
35
|
+
"peerDependencies": {
|
|
36
|
+
"@tarojs/shared": "~4.0.0-canary.10"
|
|
34
37
|
},
|
|
35
38
|
"scripts": {
|
|
36
39
|
"build": "rollup -c",
|