@tarojs/plugin-platform-jd 3.7.0-alpha.7 → 3.7.0-alpha.8

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.
@@ -2,6 +2,12 @@ import { processApis, singleQuote } from '@tarojs/shared';
2
2
 
3
3
  function initNativeApi(taro) {
4
4
  processApis(taro, jd);
5
+ taro.getTabBar = function (pageCtx) {
6
+ var _a;
7
+ if (typeof (pageCtx === null || pageCtx === void 0 ? void 0 : pageCtx.getTabBar) === 'function') {
8
+ return (_a = pageCtx.getTabBar()) === null || _a === void 0 ? void 0 : _a.$taroInstances;
9
+ }
10
+ };
5
11
  }
6
12
 
7
13
  const components = {
@@ -1 +1 @@
1
- {"version":3,"file":"runtime-utils.js","sources":["../src/apis.ts","../src/components.ts","../src/runtime-utils.ts"],"sourcesContent":["import { processApis } from '@tarojs/shared'\n\ndeclare const jd: any\n\nexport function initNativeApi (taro) {\n processApis(taro, jd)\n}\n","import { singleQuote } from '@tarojs/shared'\n\nexport const components = {\n // ======== 调整属性 ========\n Swiper: {\n 'easing-function': singleQuote('default')\n },\n Canvas: {\n type: ''\n },\n Button: {\n bindGetPhoneNumber: ''\n },\n Map: {\n bindRegionChange: ''\n },\n WebView: {\n height: ''\n }\n}\n","import { initNativeApi } from './apis'\n\nexport { initNativeApi }\nexport * from './components'\nexport const hostConfig = {\n initNativeApi\n}\n"],"names":[],"mappings":";;AAIM,SAAU,aAAa,CAAE,IAAI,EAAA;AACjC,IAAA,WAAW,CAAC,IAAI,EAAE,EAAE,CAAC,CAAA;AACvB;;ACJa,MAAA,UAAU,GAAG;;AAExB,IAAA,MAAM,EAAE;AACN,QAAA,iBAAiB,EAAE,WAAW,CAAC,SAAS,CAAC;AAC1C,KAAA;AACD,IAAA,MAAM,EAAE;AACN,QAAA,IAAI,EAAE,EAAE;AACT,KAAA;AACD,IAAA,MAAM,EAAE;AACN,QAAA,kBAAkB,EAAE,EAAE;AACvB,KAAA;AACD,IAAA,GAAG,EAAE;AACH,QAAA,gBAAgB,EAAE,EAAE;AACrB,KAAA;AACD,IAAA,OAAO,EAAE;AACP,QAAA,MAAM,EAAE,EAAE;AACX,KAAA;;;ACdU,MAAA,UAAU,GAAG;IACxB,aAAa;;;;;"}
1
+ {"version":3,"file":"runtime-utils.js","sources":["../src/apis.ts","../src/components.ts","../src/runtime-utils.ts"],"sourcesContent":["import { processApis } from '@tarojs/shared'\n\ndeclare const jd: any\n\nexport function initNativeApi (taro) {\n processApis(taro, jd)\n \n taro.getTabBar = function (pageCtx) {\n if (typeof pageCtx?.getTabBar === 'function') {\n return pageCtx.getTabBar()?.$taroInstances\n }\n }\n}\n","import { singleQuote } from '@tarojs/shared'\n\nexport const components = {\n // ======== 调整属性 ========\n Swiper: {\n 'easing-function': singleQuote('default')\n },\n Canvas: {\n type: ''\n },\n Button: {\n bindGetPhoneNumber: ''\n },\n Map: {\n bindRegionChange: ''\n },\n WebView: {\n height: ''\n }\n}\n","import { initNativeApi } from './apis'\n\nexport { initNativeApi }\nexport * from './components'\nexport const hostConfig = {\n initNativeApi\n}\n"],"names":[],"mappings":";;AAIM,SAAU,aAAa,CAAE,IAAI,EAAA;AACjC,IAAA,WAAW,CAAC,IAAI,EAAE,EAAE,CAAC,CAAA;AAErB,IAAA,IAAI,CAAC,SAAS,GAAG,UAAU,OAAO,EAAA;;AAChC,QAAA,IAAI,QAAO,OAAO,KAAA,IAAA,IAAP,OAAO,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAP,OAAO,CAAE,SAAS,CAAA,KAAK,UAAU,EAAE;AAC5C,YAAA,OAAO,MAAA,OAAO,CAAC,SAAS,EAAE,MAAA,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAE,cAAc,CAAA;AAC3C,SAAA;AACH,KAAC,CAAA;AACH;;ACVa,MAAA,UAAU,GAAG;;AAExB,IAAA,MAAM,EAAE;AACN,QAAA,iBAAiB,EAAE,WAAW,CAAC,SAAS,CAAC;AAC1C,KAAA;AACD,IAAA,MAAM,EAAE;AACN,QAAA,IAAI,EAAE,EAAE;AACT,KAAA;AACD,IAAA,MAAM,EAAE;AACN,QAAA,kBAAkB,EAAE,EAAE;AACvB,KAAA;AACD,IAAA,GAAG,EAAE;AACH,QAAA,gBAAgB,EAAE,EAAE;AACrB,KAAA;AACD,IAAA,OAAO,EAAE;AACP,QAAA,MAAM,EAAE,EAAE;AACX,KAAA;;;ACdU,MAAA,UAAU,GAAG;IACxB,aAAa;;;;;"}
package/dist/runtime.js CHANGED
@@ -2,6 +2,12 @@ import { processApis, singleQuote, mergeReconciler, mergeInternalComponents } fr
2
2
 
3
3
  function initNativeApi(taro) {
4
4
  processApis(taro, jd);
5
+ taro.getTabBar = function (pageCtx) {
6
+ var _a;
7
+ if (typeof (pageCtx === null || pageCtx === void 0 ? void 0 : pageCtx.getTabBar) === 'function') {
8
+ return (_a = pageCtx.getTabBar()) === null || _a === void 0 ? void 0 : _a.$taroInstances;
9
+ }
10
+ };
5
11
  }
6
12
 
7
13
  const components = {
@@ -1 +1 @@
1
- {"version":3,"file":"runtime.js","sources":["../src/apis.ts","../src/components.ts","../src/runtime-utils.ts","../src/runtime.ts"],"sourcesContent":["import { processApis } from '@tarojs/shared'\n\ndeclare const jd: any\n\nexport function initNativeApi (taro) {\n processApis(taro, jd)\n}\n","import { singleQuote } from '@tarojs/shared'\n\nexport const components = {\n // ======== 调整属性 ========\n Swiper: {\n 'easing-function': singleQuote('default')\n },\n Canvas: {\n type: ''\n },\n Button: {\n bindGetPhoneNumber: ''\n },\n Map: {\n bindRegionChange: ''\n },\n WebView: {\n height: ''\n }\n}\n","import { initNativeApi } from './apis'\n\nexport { initNativeApi }\nexport * from './components'\nexport const hostConfig = {\n initNativeApi\n}\n","import { mergeInternalComponents, mergeReconciler } from '@tarojs/shared'\n\nimport { components, hostConfig } from './runtime-utils'\n\nmergeReconciler(hostConfig)\nmergeInternalComponents(components)\n"],"names":[],"mappings":";;AAIM,SAAU,aAAa,CAAE,IAAI,EAAA;AACjC,IAAA,WAAW,CAAC,IAAI,EAAE,EAAE,CAAC,CAAA;AACvB;;ACJO,MAAM,UAAU,GAAG;;AAExB,IAAA,MAAM,EAAE;AACN,QAAA,iBAAiB,EAAE,WAAW,CAAC,SAAS,CAAC;AAC1C,KAAA;AACD,IAAA,MAAM,EAAE;AACN,QAAA,IAAI,EAAE,EAAE;AACT,KAAA;AACD,IAAA,MAAM,EAAE;AACN,QAAA,kBAAkB,EAAE,EAAE;AACvB,KAAA;AACD,IAAA,GAAG,EAAE;AACH,QAAA,gBAAgB,EAAE,EAAE;AACrB,KAAA;AACD,IAAA,OAAO,EAAE;AACP,QAAA,MAAM,EAAE,EAAE;AACX,KAAA;CACF;;ACfM,MAAM,UAAU,GAAG;IACxB,aAAa;CACd;;ACFD,eAAe,CAAC,UAAU,CAAC,CAAA;AAC3B,uBAAuB,CAAC,UAAU,CAAC"}
1
+ {"version":3,"file":"runtime.js","sources":["../src/apis.ts","../src/components.ts","../src/runtime-utils.ts","../src/runtime.ts"],"sourcesContent":["import { processApis } from '@tarojs/shared'\n\ndeclare const jd: any\n\nexport function initNativeApi (taro) {\n processApis(taro, jd)\n \n taro.getTabBar = function (pageCtx) {\n if (typeof pageCtx?.getTabBar === 'function') {\n return pageCtx.getTabBar()?.$taroInstances\n }\n }\n}\n","import { singleQuote } from '@tarojs/shared'\n\nexport const components = {\n // ======== 调整属性 ========\n Swiper: {\n 'easing-function': singleQuote('default')\n },\n Canvas: {\n type: ''\n },\n Button: {\n bindGetPhoneNumber: ''\n },\n Map: {\n bindRegionChange: ''\n },\n WebView: {\n height: ''\n }\n}\n","import { initNativeApi } from './apis'\n\nexport { initNativeApi }\nexport * from './components'\nexport const hostConfig = {\n initNativeApi\n}\n","import { mergeInternalComponents, mergeReconciler } from '@tarojs/shared'\n\nimport { components, hostConfig } from './runtime-utils'\n\nmergeReconciler(hostConfig)\nmergeInternalComponents(components)\n"],"names":[],"mappings":";;AAIM,SAAU,aAAa,CAAE,IAAI,EAAA;AACjC,IAAA,WAAW,CAAC,IAAI,EAAE,EAAE,CAAC,CAAA;AAErB,IAAA,IAAI,CAAC,SAAS,GAAG,UAAU,OAAO,EAAA;;AAChC,QAAA,IAAI,QAAO,OAAO,KAAA,IAAA,IAAP,OAAO,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAP,OAAO,CAAE,SAAS,CAAA,KAAK,UAAU,EAAE;AAC5C,YAAA,OAAO,MAAA,OAAO,CAAC,SAAS,EAAE,MAAA,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAE,cAAc,CAAA;AAC3C,SAAA;AACH,KAAC,CAAA;AACH;;ACVO,MAAM,UAAU,GAAG;;AAExB,IAAA,MAAM,EAAE;AACN,QAAA,iBAAiB,EAAE,WAAW,CAAC,SAAS,CAAC;AAC1C,KAAA;AACD,IAAA,MAAM,EAAE;AACN,QAAA,IAAI,EAAE,EAAE;AACT,KAAA;AACD,IAAA,MAAM,EAAE;AACN,QAAA,kBAAkB,EAAE,EAAE;AACvB,KAAA;AACD,IAAA,GAAG,EAAE;AACH,QAAA,gBAAgB,EAAE,EAAE;AACrB,KAAA;AACD,IAAA,OAAO,EAAE;AACP,QAAA,MAAM,EAAE,EAAE;AACX,KAAA;CACF;;ACfM,MAAM,UAAU,GAAG;IACxB,aAAa;CACd;;ACFD,eAAe,CAAC,UAAU,CAAC,CAAA;AAC3B,uBAAuB,CAAC,UAAU,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tarojs/plugin-platform-jd",
3
- "version": "3.7.0-alpha.7",
3
+ "version": "3.7.0-alpha.8",
4
4
  "description": "京东小程序平台插件",
5
5
  "author": "Chen-jj",
6
6
  "homepage": "https://github.com/nervjs/taro/tree/master/packages/taro-jd#readme",
@@ -23,8 +23,8 @@
23
23
  "url": "https://github.com/NervJS/taro/issues"
24
24
  },
25
25
  "dependencies": {
26
- "@tarojs/service": "3.7.0-alpha.7",
27
- "@tarojs/shared": "3.7.0-alpha.7"
26
+ "@tarojs/service": "3.7.0-alpha.8",
27
+ "@tarojs/shared": "3.7.0-alpha.8"
28
28
  },
29
29
  "devDependencies": {
30
30
  "rollup": "^2.79.0",