@rsmax/wechat 1.3.14 → 2.0.0-canary.91

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.
Files changed (217) hide show
  1. package/cjs/hostComponents/ChannelLive/node.d.ts +9 -2
  2. package/cjs/hostComponents/ChannelLive/node.js +8 -1
  3. package/cjs/hostComponents/ChannelVideo/index.d.ts +2 -2
  4. package/cjs/hostComponents/ChannelVideo/index.js +3 -2
  5. package/cjs/hostComponents/ChannelVideo/node.d.ts +11 -0
  6. package/cjs/hostComponents/ChannelVideo/node.js +11 -0
  7. package/cjs/hostComponents/DraggableSheet/index.d.ts +24 -0
  8. package/cjs/hostComponents/DraggableSheet/index.js +12 -0
  9. package/cjs/hostComponents/DraggableSheet/node.d.ts +13 -0
  10. package/cjs/hostComponents/DraggableSheet/node.js +16 -0
  11. package/cjs/hostComponents/EditorPortal/index.d.ts +3 -3
  12. package/cjs/hostComponents/EditorPortal/index.js +0 -3
  13. package/cjs/hostComponents/FunctionalPageNavigator/node.d.ts +5 -0
  14. package/cjs/hostComponents/FunctionalPageNavigator/node.js +5 -0
  15. package/cjs/hostComponents/GridBuilder/index.d.ts +29 -0
  16. package/cjs/hostComponents/GridBuilder/index.js +9 -0
  17. package/cjs/hostComponents/GridBuilder/node.d.ts +17 -0
  18. package/cjs/hostComponents/GridBuilder/node.js +20 -0
  19. package/cjs/hostComponents/GridView/index.d.ts +21 -0
  20. package/cjs/hostComponents/GridView/index.js +9 -0
  21. package/cjs/hostComponents/GridView/node.d.ts +13 -0
  22. package/cjs/hostComponents/GridView/node.js +16 -0
  23. package/cjs/hostComponents/Input/node.d.ts +2 -1
  24. package/cjs/hostComponents/Input/node.js +2 -1
  25. package/cjs/hostComponents/KeyboardAccessory/index.js +1 -1
  26. package/cjs/hostComponents/KeyboardAccessory/node.d.ts +8 -1
  27. package/cjs/hostComponents/KeyboardAccessory/node.js +9 -2
  28. package/cjs/hostComponents/ListBuilder/index.d.ts +25 -0
  29. package/cjs/hostComponents/ListBuilder/index.js +10 -0
  30. package/cjs/hostComponents/ListBuilder/node.d.ts +15 -0
  31. package/cjs/hostComponents/ListBuilder/node.js +18 -0
  32. package/cjs/hostComponents/ListView/index.d.ts +11 -0
  33. package/cjs/hostComponents/ListView/index.js +8 -0
  34. package/cjs/hostComponents/ListView/node.d.ts +8 -0
  35. package/cjs/hostComponents/ListView/node.js +11 -0
  36. package/cjs/hostComponents/MatchMedia/node.d.ts +4 -0
  37. package/cjs/hostComponents/MatchMedia/node.js +4 -0
  38. package/cjs/hostComponents/NavigationBar/node.d.ts +4 -0
  39. package/cjs/hostComponents/NavigationBar/node.js +4 -0
  40. package/cjs/hostComponents/NestedScrollBody/index.d.ts +11 -0
  41. package/cjs/hostComponents/NestedScrollBody/index.js +8 -0
  42. package/cjs/hostComponents/NestedScrollBody/node.d.ts +8 -0
  43. package/cjs/hostComponents/NestedScrollBody/node.js +11 -0
  44. package/cjs/hostComponents/NestedScrollHeader/index.d.ts +9 -0
  45. package/cjs/hostComponents/NestedScrollHeader/index.js +5 -0
  46. package/cjs/hostComponents/NestedScrollHeader/node.d.ts +7 -0
  47. package/cjs/hostComponents/NestedScrollHeader/node.js +10 -0
  48. package/cjs/hostComponents/OfficialAccount/node.d.ts +4 -0
  49. package/cjs/hostComponents/OfficialAccount/node.js +4 -0
  50. package/cjs/hostComponents/OfficialAccountPublish/index.d.ts +24 -0
  51. package/cjs/hostComponents/OfficialAccountPublish/index.js +14 -0
  52. package/cjs/hostComponents/OfficialAccountPublish/node.d.ts +15 -0
  53. package/cjs/hostComponents/OfficialAccountPublish/node.js +18 -0
  54. package/cjs/hostComponents/OpenContainer/index.d.ts +27 -0
  55. package/cjs/hostComponents/OpenContainer/index.js +11 -0
  56. package/cjs/hostComponents/OpenContainer/node.d.ts +16 -0
  57. package/cjs/hostComponents/OpenContainer/node.js +19 -0
  58. package/cjs/hostComponents/OpenData/node.d.ts +4 -0
  59. package/cjs/hostComponents/OpenData/node.js +9 -1
  60. package/cjs/hostComponents/OpenDataItem/index.d.ts +9 -0
  61. package/cjs/hostComponents/OpenDataItem/index.js +5 -0
  62. package/cjs/hostComponents/OpenDataItem/node.d.ts +7 -0
  63. package/cjs/hostComponents/OpenDataItem/node.js +10 -0
  64. package/cjs/hostComponents/OpenDataList/index.d.ts +13 -0
  65. package/cjs/hostComponents/OpenDataList/index.js +5 -0
  66. package/cjs/hostComponents/OpenDataList/node.d.ts +9 -0
  67. package/cjs/hostComponents/OpenDataList/node.js +12 -0
  68. package/cjs/hostComponents/PageContainer/node.d.ts +4 -0
  69. package/cjs/hostComponents/PageContainer/node.js +5 -1
  70. package/cjs/hostComponents/ScrollView/node.d.ts +1 -0
  71. package/cjs/hostComponents/ScrollView/node.js +1 -0
  72. package/cjs/hostComponents/Span/index.d.ts +9 -0
  73. package/cjs/hostComponents/Span/index.js +5 -0
  74. package/cjs/hostComponents/Span/node.d.ts +7 -0
  75. package/cjs/hostComponents/Span/node.js +10 -0
  76. package/cjs/hostComponents/StickyHeader/index.d.ts +17 -0
  77. package/cjs/hostComponents/StickyHeader/index.js +10 -0
  78. package/cjs/hostComponents/StickyHeader/node.d.ts +11 -0
  79. package/cjs/hostComponents/StickyHeader/node.js +14 -0
  80. package/cjs/hostComponents/StickySection/index.d.ts +9 -0
  81. package/cjs/hostComponents/StickySection/index.js +5 -0
  82. package/cjs/hostComponents/StickySection/node.d.ts +7 -0
  83. package/cjs/hostComponents/StickySection/node.js +10 -0
  84. package/cjs/hostComponents/StoreCoupon/index.d.ts +20 -0
  85. package/cjs/hostComponents/StoreCoupon/index.js +8 -0
  86. package/cjs/hostComponents/StoreCoupon/node.d.ts +13 -0
  87. package/cjs/hostComponents/StoreCoupon/node.js +16 -0
  88. package/cjs/hostComponents/StoreGift/index.d.ts +18 -0
  89. package/cjs/hostComponents/StoreGift/index.js +11 -0
  90. package/cjs/hostComponents/StoreGift/node.d.ts +12 -0
  91. package/cjs/hostComponents/StoreGift/node.js +15 -0
  92. package/cjs/hostComponents/StoreHome/index.d.ts +10 -0
  93. package/cjs/hostComponents/StoreHome/index.js +8 -0
  94. package/cjs/hostComponents/StoreHome/node.d.ts +8 -0
  95. package/cjs/hostComponents/StoreHome/node.js +11 -0
  96. package/cjs/hostComponents/StoreProduct/index.d.ts +28 -0
  97. package/cjs/hostComponents/StoreProduct/index.js +13 -0
  98. package/cjs/hostComponents/StoreProduct/node.d.ts +17 -0
  99. package/cjs/hostComponents/StoreProduct/node.js +20 -0
  100. package/cjs/hostComponents/index.d.ts +18 -0
  101. package/cjs/hostComponents/index.js +18 -0
  102. package/cjs/hostComponents/node.js +21 -11
  103. package/cjs/index.d.ts +2 -3
  104. package/cjs/index.js +25 -6
  105. package/cjs/node/index.js +17 -7
  106. package/esm/hostComponents/ChannelLive/node.d.ts +9 -2
  107. package/esm/hostComponents/ChannelLive/node.js +8 -1
  108. package/esm/hostComponents/ChannelVideo/index.d.ts +2 -2
  109. package/esm/hostComponents/ChannelVideo/index.js +3 -2
  110. package/esm/hostComponents/ChannelVideo/node.d.ts +11 -0
  111. package/esm/hostComponents/ChannelVideo/node.js +11 -0
  112. package/esm/hostComponents/DraggableSheet/index.d.ts +24 -0
  113. package/esm/hostComponents/DraggableSheet/index.js +9 -0
  114. package/esm/hostComponents/DraggableSheet/node.d.ts +13 -0
  115. package/esm/hostComponents/DraggableSheet/node.js +13 -0
  116. package/esm/hostComponents/EditorPortal/index.d.ts +3 -3
  117. package/esm/hostComponents/EditorPortal/index.js +0 -3
  118. package/esm/hostComponents/FunctionalPageNavigator/node.d.ts +5 -0
  119. package/esm/hostComponents/FunctionalPageNavigator/node.js +5 -0
  120. package/esm/hostComponents/GridBuilder/index.d.ts +29 -0
  121. package/esm/hostComponents/GridBuilder/index.js +6 -0
  122. package/esm/hostComponents/GridBuilder/node.d.ts +17 -0
  123. package/esm/hostComponents/GridBuilder/node.js +17 -0
  124. package/esm/hostComponents/GridView/index.d.ts +21 -0
  125. package/esm/hostComponents/GridView/index.js +6 -0
  126. package/esm/hostComponents/GridView/node.d.ts +13 -0
  127. package/esm/hostComponents/GridView/node.js +13 -0
  128. package/esm/hostComponents/Input/node.d.ts +2 -1
  129. package/esm/hostComponents/Input/node.js +2 -1
  130. package/esm/hostComponents/KeyboardAccessory/index.js +1 -1
  131. package/esm/hostComponents/KeyboardAccessory/node.d.ts +8 -1
  132. package/esm/hostComponents/KeyboardAccessory/node.js +9 -2
  133. package/esm/hostComponents/ListBuilder/index.d.ts +25 -0
  134. package/esm/hostComponents/ListBuilder/index.js +7 -0
  135. package/esm/hostComponents/ListBuilder/node.d.ts +15 -0
  136. package/esm/hostComponents/ListBuilder/node.js +15 -0
  137. package/esm/hostComponents/ListView/index.d.ts +11 -0
  138. package/esm/hostComponents/ListView/index.js +5 -0
  139. package/esm/hostComponents/ListView/node.d.ts +8 -0
  140. package/esm/hostComponents/ListView/node.js +8 -0
  141. package/esm/hostComponents/MatchMedia/node.d.ts +4 -0
  142. package/esm/hostComponents/MatchMedia/node.js +4 -0
  143. package/esm/hostComponents/NavigationBar/node.d.ts +4 -0
  144. package/esm/hostComponents/NavigationBar/node.js +4 -0
  145. package/esm/hostComponents/NestedScrollBody/index.d.ts +11 -0
  146. package/esm/hostComponents/NestedScrollBody/index.js +5 -0
  147. package/esm/hostComponents/NestedScrollBody/node.d.ts +8 -0
  148. package/esm/hostComponents/NestedScrollBody/node.js +8 -0
  149. package/esm/hostComponents/NestedScrollHeader/index.d.ts +9 -0
  150. package/esm/hostComponents/NestedScrollHeader/index.js +2 -0
  151. package/esm/hostComponents/NestedScrollHeader/node.d.ts +7 -0
  152. package/esm/hostComponents/NestedScrollHeader/node.js +7 -0
  153. package/esm/hostComponents/OfficialAccount/node.d.ts +4 -0
  154. package/esm/hostComponents/OfficialAccount/node.js +4 -0
  155. package/esm/hostComponents/OfficialAccountPublish/index.d.ts +24 -0
  156. package/esm/hostComponents/OfficialAccountPublish/index.js +11 -0
  157. package/esm/hostComponents/OfficialAccountPublish/node.d.ts +15 -0
  158. package/esm/hostComponents/OfficialAccountPublish/node.js +15 -0
  159. package/esm/hostComponents/OpenContainer/index.d.ts +27 -0
  160. package/esm/hostComponents/OpenContainer/index.js +8 -0
  161. package/esm/hostComponents/OpenContainer/node.d.ts +16 -0
  162. package/esm/hostComponents/OpenContainer/node.js +16 -0
  163. package/esm/hostComponents/OpenData/node.d.ts +4 -0
  164. package/esm/hostComponents/OpenData/node.js +9 -1
  165. package/esm/hostComponents/OpenDataItem/index.d.ts +9 -0
  166. package/esm/hostComponents/OpenDataItem/index.js +2 -0
  167. package/esm/hostComponents/OpenDataItem/node.d.ts +7 -0
  168. package/esm/hostComponents/OpenDataItem/node.js +7 -0
  169. package/esm/hostComponents/OpenDataList/index.d.ts +13 -0
  170. package/esm/hostComponents/OpenDataList/index.js +2 -0
  171. package/esm/hostComponents/OpenDataList/node.d.ts +9 -0
  172. package/esm/hostComponents/OpenDataList/node.js +9 -0
  173. package/esm/hostComponents/PageContainer/node.d.ts +4 -0
  174. package/esm/hostComponents/PageContainer/node.js +5 -1
  175. package/esm/hostComponents/ScrollView/node.d.ts +1 -0
  176. package/esm/hostComponents/ScrollView/node.js +1 -0
  177. package/esm/hostComponents/Span/index.d.ts +9 -0
  178. package/esm/hostComponents/Span/index.js +2 -0
  179. package/esm/hostComponents/Span/node.d.ts +7 -0
  180. package/esm/hostComponents/Span/node.js +7 -0
  181. package/esm/hostComponents/StickyHeader/index.d.ts +17 -0
  182. package/esm/hostComponents/StickyHeader/index.js +7 -0
  183. package/esm/hostComponents/StickyHeader/node.d.ts +11 -0
  184. package/esm/hostComponents/StickyHeader/node.js +11 -0
  185. package/esm/hostComponents/StickySection/index.d.ts +9 -0
  186. package/esm/hostComponents/StickySection/index.js +2 -0
  187. package/esm/hostComponents/StickySection/node.d.ts +7 -0
  188. package/esm/hostComponents/StickySection/node.js +7 -0
  189. package/esm/hostComponents/StoreCoupon/index.d.ts +20 -0
  190. package/esm/hostComponents/StoreCoupon/index.js +5 -0
  191. package/esm/hostComponents/StoreCoupon/node.d.ts +13 -0
  192. package/esm/hostComponents/StoreCoupon/node.js +13 -0
  193. package/esm/hostComponents/StoreGift/index.d.ts +18 -0
  194. package/esm/hostComponents/StoreGift/index.js +8 -0
  195. package/esm/hostComponents/StoreGift/node.d.ts +12 -0
  196. package/esm/hostComponents/StoreGift/node.js +12 -0
  197. package/esm/hostComponents/StoreHome/index.d.ts +10 -0
  198. package/esm/hostComponents/StoreHome/index.js +5 -0
  199. package/esm/hostComponents/StoreHome/node.d.ts +8 -0
  200. package/esm/hostComponents/StoreHome/node.js +8 -0
  201. package/esm/hostComponents/StoreProduct/index.d.ts +28 -0
  202. package/esm/hostComponents/StoreProduct/index.js +10 -0
  203. package/esm/hostComponents/StoreProduct/node.d.ts +17 -0
  204. package/esm/hostComponents/StoreProduct/node.js +17 -0
  205. package/esm/hostComponents/index.d.ts +18 -0
  206. package/esm/hostComponents/index.js +18 -0
  207. package/esm/hostComponents/node.js +4 -4
  208. package/esm/index.d.ts +2 -3
  209. package/esm/index.js +2 -3
  210. package/package.json +38 -8
  211. package/templates/base.ejs +34 -18
  212. package/templates/children.ejs +5 -5
  213. package/templates/page.ejs +6 -0
  214. package/cjs/api/index.d.ts +0 -466
  215. package/cjs/api/index.js +0 -587
  216. package/esm/api/index.d.ts +0 -466
  217. package/esm/api/index.js +0 -575
@@ -0,0 +1,8 @@
1
+ export declare const alias: {
2
+ id: string;
3
+ className: string;
4
+ style: string;
5
+ animation: string;
6
+ appid: string;
7
+ };
8
+ export declare const props: string[];
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.props = exports.alias = void 0;
4
+ exports.alias = {
5
+ id: 'id',
6
+ className: 'class',
7
+ style: 'style',
8
+ animation: 'animation',
9
+ appid: 'appid',
10
+ };
11
+ exports.props = Object.values(exports.alias);
@@ -0,0 +1,28 @@
1
+ import type React from 'react';
2
+ import type { BaseProps, GenericEvent } from '../../types/component';
3
+ export interface StoreProductProps extends BaseProps {
4
+ /** 小店appid 3.5.5 */
5
+ appid?: string;
6
+ /** 商品id 3.5.5 */
7
+ productId?: string;
8
+ /** 带货商品跟佣信息 3.5.5 */
9
+ productPromotionLink?: string;
10
+ /** 媒体文件id 3.7.1 */
11
+ mediaId?: string;
12
+ /** 自定义样式 3.7.1 */
13
+ customStyle?: Record<string, string | number>;
14
+ /** 开启自定义插槽 3.7.2 */
15
+ customContent?: boolean;
16
+ /** 设置点击打开的页面(同时开启 custom-content 后生效)3.7.4 */
17
+ openPage?: 'product-detail' | 'gift-product-detail' | 'buy';
18
+ /** 设置小店标识的位置(同时开启 custom-content 后生效)3.7.2 */
19
+ logoPosition?: 'bottom-left' | 'bottom-right';
20
+ /** 跳转小店成功的回调 3.7.1 */
21
+ onEnterSuccess?: (event: GenericEvent) => void;
22
+ /** 跳转小店失败的回调,event.detail={code,message} 3.7.1 */
23
+ onEnterError?: (event: GenericEvent) => void;
24
+ }
25
+ /**
26
+ * https://developers.weixin.qq.com/miniprogram/dev/component/store-product.html
27
+ */
28
+ export declare const StoreProduct: React.ComponentType<StoreProductProps>;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StoreProduct = void 0;
4
+ const runtime_1 = require("@rsmax/runtime");
5
+ /**
6
+ * https://developers.weixin.qq.com/miniprogram/dev/component/store-product.html
7
+ */
8
+ exports.StoreProduct = (0, runtime_1.createHostComponent)('store-product');
9
+ exports.StoreProduct.defaultProps = {
10
+ customContent: false,
11
+ openPage: 'product-detail',
12
+ logoPosition: 'bottom-left',
13
+ };
@@ -0,0 +1,17 @@
1
+ export declare const alias: {
2
+ id: string;
3
+ className: string;
4
+ style: string;
5
+ animation: string;
6
+ appid: string;
7
+ productId: string;
8
+ productPromotionLink: string;
9
+ mediaId: string;
10
+ customStyle: string;
11
+ customContent: string;
12
+ openPage: string;
13
+ logoPosition: string;
14
+ onEnterSuccess: string;
15
+ onEnterError: string;
16
+ };
17
+ export declare const props: string[];
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.props = exports.alias = void 0;
4
+ exports.alias = {
5
+ id: 'id',
6
+ className: 'class',
7
+ style: 'style',
8
+ animation: 'animation',
9
+ appid: 'appid',
10
+ productId: 'product-id',
11
+ productPromotionLink: 'product-promotion-link',
12
+ mediaId: 'media-id',
13
+ customStyle: 'custom-style',
14
+ customContent: 'custom-content',
15
+ openPage: 'open-page',
16
+ logoPosition: 'logo-position',
17
+ onEnterSuccess: 'bindentersuccess',
18
+ onEnterError: 'bindentererror',
19
+ };
20
+ exports.props = Object.values(exports.alias);
@@ -53,3 +53,21 @@ export * from './AdCustom';
53
53
  export * from './PageMeta';
54
54
  export * from './NavigationBar';
55
55
  export * from './Selection';
56
+ export * from './OfficialAccountPublish';
57
+ export * from './StoreCoupon';
58
+ export * from './StoreGift';
59
+ export * from './StoreHome';
60
+ export * from './StoreProduct';
61
+ export * from './DraggableSheet';
62
+ export * from './GridBuilder';
63
+ export * from './ListView';
64
+ export * from './ListBuilder';
65
+ export * from './GridView';
66
+ export * from './OpenContainer';
67
+ export * from './NestedScrollBody';
68
+ export * from './OpenDataList';
69
+ export * from './OpenDataItem';
70
+ export * from './StickyHeader';
71
+ export * from './StickySection';
72
+ export * from './Span';
73
+ export * from './NestedScrollHeader';
@@ -69,3 +69,21 @@ __exportStar(require("./AdCustom"), exports);
69
69
  __exportStar(require("./PageMeta"), exports);
70
70
  __exportStar(require("./NavigationBar"), exports);
71
71
  __exportStar(require("./Selection"), exports);
72
+ __exportStar(require("./OfficialAccountPublish"), exports);
73
+ __exportStar(require("./StoreCoupon"), exports);
74
+ __exportStar(require("./StoreGift"), exports);
75
+ __exportStar(require("./StoreHome"), exports);
76
+ __exportStar(require("./StoreProduct"), exports);
77
+ __exportStar(require("./DraggableSheet"), exports);
78
+ __exportStar(require("./GridBuilder"), exports);
79
+ __exportStar(require("./ListView"), exports);
80
+ __exportStar(require("./ListBuilder"), exports);
81
+ __exportStar(require("./GridView"), exports);
82
+ __exportStar(require("./OpenContainer"), exports);
83
+ __exportStar(require("./NestedScrollBody"), exports);
84
+ __exportStar(require("./OpenDataList"), exports);
85
+ __exportStar(require("./OpenDataItem"), exports);
86
+ __exportStar(require("./StickyHeader"), exports);
87
+ __exportStar(require("./StickySection"), exports);
88
+ __exportStar(require("./Span"), exports);
89
+ __exportStar(require("./NestedScrollHeader"), exports);
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  Object.defineProperty(exports, "__esModule", { value: true });
26
36
  const ad = __importStar(require("./Ad/node"));
27
37
  const adCustom = __importStar(require("./AdCustom/node"));
@@ -29,8 +39,8 @@ const audio = __importStar(require("./Audio/node"));
29
39
  const button = __importStar(require("./Button/node"));
30
40
  const camera = __importStar(require("./Camera/node"));
31
41
  const canvas = __importStar(require("./Canvas/node"));
32
- const channelLive = __importStar(require("./ChannelLive"));
33
- const channelVideo = __importStar(require("./ChannelVideo"));
42
+ const channelLive = __importStar(require("./ChannelLive/node"));
43
+ const channelVideo = __importStar(require("./ChannelVideo/node"));
34
44
  const checkbox = __importStar(require("./Checkbox/node"));
35
45
  const checkboxGroup = __importStar(require("./CheckboxGroup/node"));
36
46
  const coverImage = __importStar(require("./CoverImage/node"));
@@ -65,10 +75,10 @@ const radioGroup = __importStar(require("./RadioGroup/node"));
65
75
  const richText = __importStar(require("./RichText/node"));
66
76
  const rootPortal = __importStar(require("./RootPortal/node"));
67
77
  const scrollView = __importStar(require("./ScrollView/node"));
68
- const selection = __importStar(require("./Selection"));
78
+ const selection = __importStar(require("./Selection/node"));
69
79
  const shareElement = __importStar(require("./ShareElement/node"));
70
80
  const slider = __importStar(require("./Slider/node"));
71
- const snapshot = __importStar(require("./Snapshot"));
81
+ const snapshot = __importStar(require("./Snapshot/node"));
72
82
  const swiper = __importStar(require("./Swiper/node"));
73
83
  const swiperItem = __importStar(require("./SwiperItem/node"));
74
84
  const switchComponent = __importStar(require("./Switch/node"));
package/cjs/index.d.ts CHANGED
@@ -1,3 +1,2 @@
1
- export * from './hostComponents';
2
- export * from './api';
3
- export * from './types';
1
+ export * as component from './hostComponents';
2
+ export * as types from './types';
package/cjs/index.js CHANGED
@@ -10,10 +10,29 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
10
10
  if (k2 === undefined) k2 = k;
11
11
  o[k2] = m[k];
12
12
  }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
16
35
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./hostComponents"), exports);
18
- __exportStar(require("./api"), exports);
19
- __exportStar(require("./types"), exports);
36
+ exports.types = exports.component = void 0;
37
+ exports.component = __importStar(require("./hostComponents"));
38
+ exports.types = __importStar(require("./types"));
package/cjs/node/index.js CHANGED
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  var __importDefault = (this && this.__importDefault) || function (mod) {
26
36
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
37
  };
@@ -1,2 +1,9 @@
1
- export declare const alias: {};
2
- export declare const props: unknown[];
1
+ export declare const alias: {
2
+ id: string;
3
+ className: string;
4
+ style: string;
5
+ animation: string;
6
+ feedId: string;
7
+ finderUserName: string;
8
+ };
9
+ export declare const props: string[];
@@ -1,2 +1,9 @@
1
- export const alias = {};
1
+ export const alias = {
2
+ id: 'id',
3
+ className: 'class',
4
+ style: 'style',
5
+ animation: 'animation',
6
+ feedId: 'feed-id',
7
+ finderUserName: 'finder-user-name',
8
+ };
2
9
  export const props = Object.values(alias);
@@ -25,8 +25,8 @@ export interface ChannelVideoProps extends BaseProps {
25
25
  feedToken?: string;
26
26
  autoplay?: boolean;
27
27
  loop?: boolean;
28
- muted?: 'contain' | 'fill' | 'cover';
29
- objectFit?: boolean;
28
+ muted?: boolean;
29
+ objectFit?: 'contain' | 'fill' | 'cover';
30
30
  }
31
31
  /**
32
32
  * @see https://developers.weixin.qq.com/miniprogram/dev/component/checkbox.html
@@ -2,12 +2,13 @@ import { createHostComponent } from '@rsmax/runtime';
2
2
  /**
3
3
  * @see https://developers.weixin.qq.com/miniprogram/dev/component/checkbox.html
4
4
  */
5
- export const ChannelVideo = createHostComponent('channel-live');
5
+ export const ChannelVideo = createHostComponent('channel-video');
6
6
  ChannelVideo.defaultProps = {
7
7
  feedId: '',
8
8
  finderUserName: '',
9
9
  feedToken: '',
10
10
  autoplay: true,
11
11
  loop: false,
12
- muted: 'contain',
12
+ muted: false,
13
+ objectFit: 'contain',
13
14
  };
@@ -1,4 +1,15 @@
1
1
  export declare const alias: {
2
+ id: string;
3
+ className: string;
4
+ style: string;
5
+ animation: string;
6
+ feedId: string;
7
+ finderUserName: string;
8
+ feedToken: string;
9
+ autoplay: string;
10
+ loop: string;
11
+ muted: string;
12
+ objectFit: string;
2
13
  onError: string;
3
14
  };
4
15
  export declare const props: string[];
@@ -1,4 +1,15 @@
1
1
  export const alias = {
2
+ id: 'id',
3
+ className: 'class',
4
+ style: 'style',
5
+ animation: 'animation',
6
+ feedId: 'feed-id',
7
+ finderUserName: 'finder-user-name',
8
+ feedToken: 'feed-token',
9
+ autoplay: 'autoplay',
10
+ loop: 'loop',
11
+ muted: 'muted',
12
+ objectFit: 'object-fit',
2
13
  onError: 'binderror',
3
14
  };
4
15
  export const props = Object.values(alias);
@@ -0,0 +1,24 @@
1
+ import type * as React from 'react';
2
+ import type { BaseProps } from '../../types/component';
3
+ /**
4
+ * Skyline 半屏可拖拽组件,仅 Skyline 支持
5
+ * https://developers.weixin.qq.com/miniprogram/dev/component/draggable-sheet.html
6
+ */
7
+ export interface DraggableSheetProps extends BaseProps {
8
+ /** 初始时占父容器的比例 3.2.0 */
9
+ initialChildSize?: number;
10
+ /** 最小时占父容器的比例 3.2.0 */
11
+ minChildSize?: number;
12
+ /** 最大时占父容器的比例 3.2.0 */
13
+ maxChildSize?: number;
14
+ /** 拖拽后是否自动对齐关键点 3.2.0 */
15
+ snap?: boolean;
16
+ /** 拖拽后对齐的关键点,无需包含最小和最大值 3.2.0 */
17
+ snapSizes?: number[];
18
+ /** 尺寸发生变化时触发(仅支持 worklet 回调)event = {pixels, size} 3.2.0 */
19
+ workletOnSizeUpdate?: (event: {
20
+ pixels: number;
21
+ size: number;
22
+ }) => void;
23
+ }
24
+ export declare const DraggableSheet: React.ComponentType<DraggableSheetProps>;
@@ -0,0 +1,9 @@
1
+ import { createHostComponent } from '@rsmax/runtime';
2
+ export const DraggableSheet = createHostComponent('draggable-sheet');
3
+ DraggableSheet.defaultProps = {
4
+ initialChildSize: 0.5,
5
+ minChildSize: 0.25,
6
+ maxChildSize: 1.0,
7
+ snap: false,
8
+ snapSizes: [],
9
+ };
@@ -0,0 +1,13 @@
1
+ export declare const alias: {
2
+ id: string;
3
+ className: string;
4
+ style: string;
5
+ animation: string;
6
+ initialChildSize: string;
7
+ minChildSize: string;
8
+ maxChildSize: string;
9
+ snap: string;
10
+ snapSizes: string;
11
+ workletOnSizeUpdate: string;
12
+ };
13
+ export declare const props: string[];
@@ -0,0 +1,13 @@
1
+ export const alias = {
2
+ id: 'id',
3
+ className: 'class',
4
+ style: 'style',
5
+ animation: 'animation',
6
+ initialChildSize: 'initial-child-size',
7
+ minChildSize: 'min-child-size',
8
+ maxChildSize: 'max-child-size',
9
+ snap: 'snap',
10
+ snapSizes: 'snap-sizes',
11
+ workletOnSizeUpdate: 'worklet:onsizeupdate',
12
+ };
13
+ export const props = Object.values(alias);
@@ -1,10 +1,10 @@
1
1
  import type React from 'react';
2
2
  import type { BaseProps } from '../../types/component';
3
- export interface EditorPortal extends BaseProps {
4
- key: string;
3
+ export interface EditorPortalProps extends BaseProps {
4
+ portalKey: string;
5
5
  }
6
6
  /**
7
7
  * 3.7.11
8
8
  * @see https://developers.weixin.qq.com/miniprogram/dev/component/editor-portal.html
9
9
  */
10
- export declare const EditorPortal: React.ComponentType<EditorPortal>;
10
+ export declare const EditorPortal: React.ComponentType<EditorPortalProps>;
@@ -4,6 +4,3 @@ import { createHostComponent } from '@rsmax/runtime';
4
4
  * @see https://developers.weixin.qq.com/miniprogram/dev/component/editor-portal.html
5
5
  */
6
6
  export const EditorPortal = createHostComponent('editor-portal');
7
- EditorPortal.defaultProps = {
8
- key: '',
9
- };
@@ -1,8 +1,13 @@
1
1
  export declare const alias: {
2
+ id: string;
3
+ className: string;
4
+ style: string;
5
+ animation: string;
2
6
  version: string;
3
7
  name: string;
4
8
  args: string;
5
9
  onSuccess: string;
6
10
  onFail: string;
11
+ onCancel: string;
7
12
  };
8
13
  export declare const props: string[];
@@ -1,8 +1,13 @@
1
1
  export const alias = {
2
+ id: 'id',
3
+ className: 'class',
4
+ style: 'style',
5
+ animation: 'animation',
2
6
  version: 'version',
3
7
  name: 'name',
4
8
  args: 'args',
5
9
  onSuccess: 'bindsuccess',
6
10
  onFail: 'bindfail',
11
+ onCancel: 'bindcancel',
7
12
  };
8
13
  export const props = Object.values(alias);
@@ -0,0 +1,29 @@
1
+ import type * as React from 'react';
2
+ import type { BaseProps, GenericEvent } from '../../types/component';
3
+ /**
4
+ * Skyline 网格构造器,仅 Skyline 支持
5
+ * https://developers.weixin.qq.com/miniprogram/dev/component/grid-builder.html
6
+ */
7
+ export interface GridBuilderProps extends BaseProps {
8
+ /** 内边距,按 top、right、bottom、left 顺序 3.4.0 */
9
+ padding?: [number, number, number, number];
10
+ /** 用于渲染的列表 3.4.0 */
11
+ list?: unknown[];
12
+ /** 完整列表的长度,不传则取 list 的长度 3.4.0 */
13
+ childCount?: number;
14
+ /** 布局方式 aligned/masonry 3.4.0 */
15
+ type?: 'aligned' | 'masonry';
16
+ /** 交叉轴元素数量 3.4.0 */
17
+ crossAxisCount?: number;
18
+ /** 交叉轴元素最大范围 3.4.0 */
19
+ maxCrossAxisExtent?: number;
20
+ /** 主轴方向间隔 3.4.0 */
21
+ mainAxisGap?: number;
22
+ /** 交叉轴方向间隔 3.4.0 */
23
+ crossAxisGap?: number;
24
+ /** 列表项创建时触发 event.detail = {index} 3.4.0 */
25
+ onItemBuild?: (event: GenericEvent) => void;
26
+ /** 列表项回收时触发 event.detail = {index} 3.4.0 */
27
+ onItemDispose?: (event: GenericEvent) => void;
28
+ }
29
+ export declare const GridBuilder: React.ComponentType<GridBuilderProps>;
@@ -0,0 +1,6 @@
1
+ import { createHostComponent } from '@rsmax/runtime';
2
+ export const GridBuilder = createHostComponent('grid-builder');
3
+ GridBuilder.defaultProps = {
4
+ type: 'aligned',
5
+ padding: [0, 0, 0, 0],
6
+ };
@@ -0,0 +1,17 @@
1
+ export declare const alias: {
2
+ id: string;
3
+ className: string;
4
+ style: string;
5
+ animation: string;
6
+ padding: string;
7
+ list: string;
8
+ childCount: string;
9
+ type: string;
10
+ crossAxisCount: string;
11
+ maxCrossAxisExtent: string;
12
+ mainAxisGap: string;
13
+ crossAxisGap: string;
14
+ onItemBuild: string;
15
+ onItemDispose: string;
16
+ };
17
+ export declare const props: string[];
@@ -0,0 +1,17 @@
1
+ export const alias = {
2
+ id: 'id',
3
+ className: 'class',
4
+ style: 'style',
5
+ animation: 'animation',
6
+ padding: 'padding',
7
+ list: 'list',
8
+ childCount: 'child-count',
9
+ type: 'type',
10
+ crossAxisCount: 'cross-axis-count',
11
+ maxCrossAxisExtent: 'max-cross-axis-extent',
12
+ mainAxisGap: 'main-axis-gap',
13
+ crossAxisGap: 'cross-axis-gap',
14
+ onItemBuild: 'binditembuild',
15
+ onItemDispose: 'binditemdispose',
16
+ };
17
+ export const props = Object.values(alias);
@@ -0,0 +1,21 @@
1
+ import type * as React from 'react';
2
+ import type { BaseProps } from '../../types/component';
3
+ /**
4
+ * Skyline 网格/瀑布流布局容器
5
+ * https://developers.weixin.qq.com/miniprogram/dev/component/grid-view.html
6
+ */
7
+ export interface GridViewProps extends BaseProps {
8
+ /** 布局方式 aligned/masonry */
9
+ type?: 'aligned' | 'masonry';
10
+ /** 交叉轴元素数量 */
11
+ crossAxisCount?: number;
12
+ /** 交叉轴元素最大范围 */
13
+ maxCrossAxisExtent?: number;
14
+ /** 主轴方向间隔 */
15
+ mainAxisGap?: number;
16
+ /** 交叉轴方向间隔 */
17
+ crossAxisGap?: number;
18
+ /** 内边距,按 top、right、bottom、left 顺序 3.0.0 */
19
+ padding?: [number, number, number, number];
20
+ }
21
+ export declare const GridView: React.ComponentType<GridViewProps>;
@@ -0,0 +1,6 @@
1
+ import { createHostComponent } from '@rsmax/runtime';
2
+ export const GridView = createHostComponent('grid-view');
3
+ GridView.defaultProps = {
4
+ type: 'aligned',
5
+ padding: [0, 0, 0, 0],
6
+ };
@@ -0,0 +1,13 @@
1
+ export declare const alias: {
2
+ id: string;
3
+ className: string;
4
+ style: string;
5
+ animation: string;
6
+ type: string;
7
+ crossAxisCount: string;
8
+ maxCrossAxisExtent: string;
9
+ mainAxisGap: string;
10
+ crossAxisGap: string;
11
+ padding: string;
12
+ };
13
+ export declare const props: string[];
@@ -0,0 +1,13 @@
1
+ export const alias = {
2
+ id: 'id',
3
+ className: 'class',
4
+ style: 'style',
5
+ animation: 'animation',
6
+ type: 'type',
7
+ crossAxisCount: 'cross-axis-count',
8
+ maxCrossAxisExtent: 'max-cross-axis-extent',
9
+ mainAxisGap: 'main-axis-gap',
10
+ crossAxisGap: 'cross-axis-gap',
11
+ padding: 'padding',
12
+ };
13
+ export const props = Object.values(alias);
@@ -3,7 +3,7 @@ export declare const alias: {
3
3
  autoFocus: string;
4
4
  className: string;
5
5
  focus: string;
6
- alwayEmbed: string;
6
+ alwaysEmbed: string;
7
7
  name: string;
8
8
  maxlength: string;
9
9
  value: string;
@@ -17,6 +17,7 @@ export declare const alias: {
17
17
  selectionStart: string;
18
18
  selectionEnd: string;
19
19
  adjustPosition: string;
20
+ holdKeyboard: string;
20
21
  placeholder: string;
21
22
  placeholderStyle: string;
22
23
  placeholderClass: string;