@tarojs/taro 3.5.0-canary.1 → 3.5.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.
Files changed (109) hide show
  1. package/html.css +50 -14
  2. package/html5.css +167 -64
  3. package/index.js +3 -4
  4. package/package.json +21 -11
  5. package/types/api/ad/index.d.ts +2 -2
  6. package/types/api/ai/face.d.ts +133 -0
  7. package/types/api/ai/visionkit.d.ts +303 -0
  8. package/types/api/base/crypto.d.ts +90 -0
  9. package/types/api/base/debug.d.ts +152 -13
  10. package/types/api/base/env.d.ts +2 -1
  11. package/types/api/base/index.d.ts +11 -3
  12. package/types/api/base/performance.d.ts +195 -0
  13. package/types/api/base/system.d.ts +541 -103
  14. package/types/api/base/update.d.ts +60 -8
  15. package/types/api/base/weapp/app-event.d.ts +99 -37
  16. package/types/api/base/weapp/life-cycle.d.ts +142 -2
  17. package/types/api/canvas/index.d.ts +151 -137
  18. package/types/api/cloud/index.d.ts +17 -2
  19. package/types/api/data-analysis/index.d.ts +1 -1
  20. package/types/api/device/accelerometer.d.ts +6 -6
  21. package/types/api/device/accessibility.d.ts +26 -0
  22. package/types/api/device/battery.d.ts +2 -2
  23. package/types/api/device/{ble.d.ts → bluetooth-ble.d.ts} +228 -62
  24. package/types/api/device/bluetooth-peripheral.d.ts +430 -0
  25. package/types/api/device/bluetooth.d.ts +67 -2
  26. package/types/api/device/calendar.d.ts +88 -0
  27. package/types/api/device/clipboard.d.ts +2 -2
  28. package/types/api/device/compass.d.ts +3 -3
  29. package/types/api/device/contact.d.ts +74 -50
  30. package/types/api/device/gyroscope.d.ts +6 -6
  31. package/types/api/device/iBeacon.d.ts +33 -19
  32. package/types/api/{ui → device}/keyboard.d.ts +1 -1
  33. package/types/api/device/{performance.d.ts → memory.d.ts} +5 -5
  34. package/types/api/device/motion.d.ts +3 -3
  35. package/types/api/device/network.d.ts +56 -15
  36. package/types/api/device/nfc.d.ts +1089 -13
  37. package/types/api/device/phone.d.ts +1 -1
  38. package/types/api/device/scan.d.ts +1 -1
  39. package/types/api/device/screen.d.ts +42 -14
  40. package/types/api/device/vibrate.d.ts +6 -2
  41. package/types/api/device/wifi.d.ts +44 -9
  42. package/types/api/ext/index.d.ts +2 -2
  43. package/types/api/files/index.d.ts +392 -205
  44. package/types/api/framework/index.d.ts +5 -4
  45. package/types/api/location/index.d.ts +156 -53
  46. package/types/api/media/audio.d.ts +629 -38
  47. package/types/api/media/background-audio.d.ts +9 -9
  48. package/types/api/media/camera.d.ts +41 -22
  49. package/types/api/media/editor.d.ts +22 -2
  50. package/types/api/media/image.d.ts +64 -35
  51. package/types/api/media/live.d.ts +66 -6
  52. package/types/api/media/map.d.ts +474 -54
  53. package/types/api/media/media-recorder.d.ts +92 -0
  54. package/types/api/media/recorder.d.ts +21 -21
  55. package/types/api/media/video-decoder.d.ts +117 -0
  56. package/types/api/media/video-processing.d.ts +11 -7
  57. package/types/api/media/video.d.ts +47 -18
  58. package/types/api/media/voip.d.ts +290 -0
  59. package/types/api/{open-api/navigate.d.ts → navigate/index.d.ts} +65 -27
  60. package/types/api/network/download.d.ts +61 -19
  61. package/types/api/network/request.d.ts +129 -41
  62. package/types/api/network/tcp.d.ts +181 -0
  63. package/types/api/network/udp.d.ts +154 -83
  64. package/types/api/network/upload.d.ts +55 -28
  65. package/types/api/network/websocket.d.ts +20 -19
  66. package/types/api/open-api/address.d.ts +1 -1
  67. package/types/api/open-api/authorize.d.ts +42 -3
  68. package/types/api/open-api/channels.d.ts +178 -0
  69. package/types/api/open-api/facial.d.ts +3 -0
  70. package/types/api/open-api/favorites.d.ts +100 -0
  71. package/types/api/open-api/group.d.ts +59 -0
  72. package/types/api/open-api/invoice.d.ts +2 -2
  73. package/types/api/open-api/license-plate.d.ts +27 -0
  74. package/types/api/open-api/login.d.ts +21 -0
  75. package/types/api/open-api/redpackage.d.ts +24 -0
  76. package/types/api/open-api/settings.d.ts +82 -17
  77. package/types/api/open-api/soter.d.ts +2 -2
  78. package/types/api/open-api/subscribe-message.d.ts +89 -4
  79. package/types/api/open-api/user-info.d.ts +56 -19
  80. package/types/api/open-api/werun.d.ts +33 -6
  81. package/types/api/payment/index.d.ts +119 -0
  82. package/types/api/route/index.d.ts +18 -14
  83. package/types/api/share/index.d.ts +192 -9
  84. package/types/api/storage/index.d.ts +38 -92
  85. package/types/api/swan/index.d.ts +1 -1
  86. package/types/api/ui/animation.d.ts +105 -155
  87. package/types/api/ui/background.d.ts +4 -2
  88. package/types/api/ui/custom-component.d.ts +1 -1
  89. package/types/api/ui/fonts.d.ts +27 -31
  90. package/types/api/ui/interaction.d.ts +6 -6
  91. package/types/api/ui/menu.d.ts +1 -1
  92. package/types/api/ui/navigation-bar.d.ts +6 -5
  93. package/types/api/ui/pull-down-refresh.d.ts +2 -2
  94. package/types/api/ui/scroll.d.ts +75 -7
  95. package/types/api/ui/sticky.d.ts +4 -4
  96. package/types/api/ui/tab-bar.d.ts +8 -8
  97. package/types/api/ui/window.d.ts +22 -2
  98. package/types/api/worker/index.d.ts +9 -1
  99. package/types/api/wxml/index.d.ts +116 -112
  100. package/types/compile.d.ts +57 -6
  101. package/types/global.d.ts +142 -111
  102. package/types/taro.api.d.ts +79 -62
  103. package/types/taro.component.d.ts +21 -65
  104. package/types/taro.config.d.ts +31 -0
  105. package/types/taro.extend.d.ts +31 -18
  106. package/types/taro.hooks.d.ts +55 -3
  107. package/types/taro.lifecycle.d.ts +21 -14
  108. package/LICENSE +0 -21
  109. package/types/api/open-api/payment.d.ts +0 -61
package/html5.css CHANGED
@@ -1,28 +1,36 @@
1
1
  .h5-html {
2
2
  display: block;
3
3
  }
4
+
4
5
  .h5-head {
5
6
  display: none;
6
7
  }
8
+
7
9
  .h5-meta {
8
10
  display: none;
9
11
  }
12
+
10
13
  .h5-title {
11
14
  display: none;
12
15
  }
16
+
13
17
  .h5-link {
14
18
  display: none;
15
19
  }
20
+
16
21
  .h5-style {
17
22
  display: none;
18
23
  }
24
+
19
25
  .h5-script {
20
26
  display: none;
21
27
  }
28
+
22
29
  .h5-body {
23
30
  display: block;
24
31
  margin: 8px;
25
32
  }
33
+
26
34
  .h5-p {
27
35
  display: block;
28
36
  margin-block-start: 1em;
@@ -30,12 +38,15 @@
30
38
  margin-inline-start: 0;
31
39
  margin-inline-end: 0;
32
40
  }
41
+
33
42
  .h5-div {
34
43
  display: block;
35
44
  }
45
+
36
46
  .h5-layer {
37
47
  display: block;
38
48
  }
49
+
39
50
  .h5-article,
40
51
  .h5-aside,
41
52
  .h5-footer,
@@ -46,13 +57,16 @@
46
57
  .h5-section {
47
58
  display: block;
48
59
  }
60
+
49
61
  .h5-marquee {
50
62
  display: inline-block;
51
- width: -webkit-fill-available;
63
+ width: fill-available;
52
64
  }
65
+
53
66
  .h5-address {
54
67
  display: block;
55
68
  }
69
+
56
70
  .h5-blockquote {
57
71
  display: block;
58
72
  margin-block-start: 1em;
@@ -60,9 +74,11 @@
60
74
  margin-inline-start: 40px;
61
75
  margin-inline-end: 40px;
62
76
  }
77
+
63
78
  .h5-figcaption {
64
79
  display: block;
65
80
  }
81
+
66
82
  .h5-figure {
67
83
  display: block;
68
84
  margin-block-start: 1em;
@@ -70,88 +86,104 @@
70
86
  margin-inline-start: 40px;
71
87
  margin-inline-end: 40px;
72
88
  }
89
+
73
90
  .h5-q {
74
91
  display: inline;
75
92
  }
76
- .h5-q:before {
93
+
94
+ .h5-q::before {
77
95
  content: open-quote;
78
96
  }
79
- .h5-q:after {
97
+
98
+ .h5-q::after {
80
99
  content: close-quote;
81
100
  }
101
+
82
102
  .h5-center {
83
103
  display: block;
84
104
  text-align: -webkit-center;
85
105
  }
106
+
86
107
  .h5-hr {
87
108
  display: block;
88
109
  overflow: hidden;
110
+ border-width: 1px;
111
+ border-style: inset;
89
112
  unicode-bidi: isolate;
90
113
  margin-block-start: 0.5em;
91
114
  margin-block-end: 0.5em;
92
115
  margin-inline-start: auto;
93
116
  margin-inline-end: auto;
94
- border-style: inset;
95
- border-width: 1px;
96
117
  }
118
+
97
119
  .h5-map {
98
120
  display: inline;
99
121
  }
122
+
100
123
  .h5-video {
101
124
  object-fit: contain;
102
125
  }
126
+
103
127
  .h5-h1 {
104
128
  display: block;
129
+ font-weight: bold;
105
130
  font-size: 2em;
106
131
  margin-block-start: 0.67em;
107
132
  margin-block-end: 0.67em;
108
133
  margin-inline-start: 0;
109
134
  margin-inline-end: 0;
110
- font-weight: bold;
111
135
  }
136
+
112
137
  :-webkit-any(.h5-article) .h5-h1 {
113
138
  font-size: 1.5em;
114
139
  margin-block-start: 0.83em;
115
140
  margin-block-end: 0.83em;
116
141
  }
142
+
117
143
  :-webkit-any(.h5-article) :-webkit-any(.h5-article) .h5-h1 {
118
144
  font-size: 1.17em;
119
145
  margin-block-start: 1em;
120
146
  margin-block-end: 1em;
121
147
  }
148
+
122
149
  :-webkit-any(.h5-article) :-webkit-any(.h5-article) :-webkit-any(.h5-article) .h5-h1 {
123
150
  font-size: 1em;
124
151
  margin-block-start: 1.33em;
125
152
  margin-block-end: 1.33em;
126
153
  }
154
+
127
155
  :-webkit-any(.h5-article) :-webkit-any(.h5-article) :-webkit-any(.h5-article) :-webkit-any(.h5-article) .h5-h1 {
128
156
  font-size: 0.83em;
129
157
  margin-block-start: 1.67em;
130
158
  margin-block-end: 1.67em;
131
159
  }
160
+
132
161
  :-webkit-any(.h5-article) :-webkit-any(.h5-article) :-webkit-any(.h5-article) :-webkit-any(.h5-article) :-webkit-any(.h5-article) .h5-h1 {
133
162
  font-size: 0.67em;
134
163
  margin-block-start: 2.33em;
135
164
  margin-block-end: 2.33em;
136
165
  }
166
+
137
167
  .h5-h2 {
138
168
  display: block;
169
+ font-weight: bold;
139
170
  font-size: 1.5em;
140
171
  margin-block-start: 0.83em;
141
172
  margin-block-end: 0.83em;
142
173
  margin-inline-start: 0;
143
174
  margin-inline-end: 0;
144
- font-weight: bold;
145
175
  }
176
+
146
177
  .h5-h3 {
147
178
  display: block;
179
+ font-weight: bold;
148
180
  font-size: 1.17em;
149
181
  margin-block-start: 1em;
150
182
  margin-block-end: 1em;
151
183
  margin-inline-start: 0;
152
184
  margin-inline-end: 0;
153
- font-weight: bold;
154
185
  }
186
+
155
187
  .h5-h4 {
156
188
  display: block;
157
189
  margin-block-start: 1.33em;
@@ -160,74 +192,88 @@
160
192
  margin-inline-end: 0;
161
193
  font-weight: bold;
162
194
  }
195
+
163
196
  .h5-h5 {
164
197
  display: block;
198
+ font-weight: bold;
165
199
  font-size: 0.83em;
166
200
  margin-block-start: 1.67em;
167
201
  margin-block-end: 1.67em;
168
202
  margin-inline-start: 0;
169
203
  margin-inline-end: 0;
170
- font-weight: bold;
171
204
  }
205
+
172
206
  .h5-h6 {
173
207
  display: block;
208
+ font-weight: bold;
174
209
  font-size: 0.67em;
175
210
  margin-block-start: 2.33em;
176
211
  margin-block-end: 2.33em;
177
212
  margin-inline-start: 0;
178
213
  margin-inline-end: 0;
179
- font-weight: bold;
180
214
  }
215
+
181
216
  .h5-table {
182
217
  display: table;
183
218
  border-collapse: separate;
184
219
  border-spacing: 2px;
185
- border-color: gray;
186
220
  box-sizing: border-box;
221
+ border-color: gray;
187
222
  text-indent: initial;
188
223
  }
224
+
189
225
  .h5-thead {
190
226
  display: table-header-group;
191
- vertical-align: middle;
192
227
  border-color: inherit;
228
+ vertical-align: middle;
193
229
  }
230
+
194
231
  .h5-tbody {
195
232
  display: table-row-group;
196
- vertical-align: middle;
197
233
  border-color: inherit;
234
+ vertical-align: middle;
198
235
  }
236
+
199
237
  .h5-tfoot {
200
238
  display: table-footer-group;
201
- vertical-align: middle;
202
239
  border-color: inherit;
240
+ vertical-align: middle;
203
241
  }
242
+
204
243
  .h5-table > .h5-tr {
205
244
  vertical-align: middle;
206
245
  }
246
+
207
247
  .h5-col {
208
248
  display: table-column;
209
249
  }
250
+
210
251
  .h5-colgroup {
211
252
  display: table-column-group;
212
253
  }
254
+
213
255
  .h5-tr {
214
256
  display: table-row;
215
- vertical-align: inherit;
216
257
  border-color: inherit;
258
+ vertical-align: inherit;
217
259
  }
260
+
218
261
  .h5-td,
219
262
  .h5-th {
220
263
  display: table-cell;
221
264
  vertical-align: inherit;
222
265
  }
266
+
223
267
  .h5-th {
224
- font-weight: bold;
225
268
  text-align: -internal-center;
269
+ font-weight: bold;
226
270
  }
271
+
227
272
  .h5-caption {
228
273
  display: table-caption;
229
274
  text-align: -webkit-center;
230
275
  }
276
+
231
277
  .h5-ul,
232
278
  .h5-menu,
233
279
  .h5-dir {
@@ -239,6 +285,7 @@
239
285
  margin-inline-end: 0;
240
286
  padding-inline-start: 40px;
241
287
  }
288
+
242
289
  .h5-ol {
243
290
  display: block;
244
291
  list-style-type: decimal;
@@ -248,24 +295,29 @@
248
295
  margin-inline-end: 0;
249
296
  padding-inline-start: 40px;
250
297
  }
298
+
251
299
  .h5-li {
252
300
  display: list-item;
253
301
  text-align: -webkit-match-parent;
254
302
  }
303
+
255
304
  .h5-ul .h5-ul,
256
305
  .h5-ol .h5-ul {
257
306
  list-style-type: circle;
258
307
  }
308
+
259
309
  .h5-ol .h5-ol .h5-ul,
260
310
  .h5-ol .h5-ul .h5-ul,
261
311
  .h5-ul .h5-ol .h5-ul,
262
312
  .h5-ul .h5-ul .h5-ul {
263
313
  list-style-type: square;
264
314
  }
315
+
265
316
  .h5-dd {
266
317
  display: block;
267
318
  margin-inline-start: 40px;
268
319
  }
320
+
269
321
  .h5-dl {
270
322
  display: block;
271
323
  margin-block-start: 1em;
@@ -273,9 +325,11 @@
273
325
  margin-inline-start: 0;
274
326
  margin-inline-end: 0;
275
327
  }
328
+
276
329
  .h5-dt {
277
330
  display: block;
278
331
  }
332
+
279
333
  .h5-ol .h5-ul,
280
334
  .h5-ul .h5-ol,
281
335
  .h5-ul .h5-ul,
@@ -283,19 +337,23 @@
283
337
  margin-block-start: 0;
284
338
  margin-block-end: 0;
285
339
  }
340
+
286
341
  .h5-form {
287
342
  display: block;
288
- margin-top: 0em;
343
+ margin-top: 0;
289
344
  }
345
+
290
346
  .h5-label {
291
347
  cursor: default;
292
348
  }
349
+
293
350
  .h5-legend {
294
351
  display: block;
295
352
  padding-inline-start: 2px;
296
353
  padding-inline-end: 2px;
297
354
  border: none;
298
355
  }
356
+
299
357
  .h5-fieldset {
300
358
  display: block;
301
359
  margin-inline-start: 2px;
@@ -307,122 +365,141 @@
307
365
  border: 2px groove ThreeDFace;
308
366
  min-inline-size: min-content;
309
367
  }
368
+
310
369
  .h5-button {
311
370
  appearance: auto;
312
371
  }
372
+
313
373
  .h5-input,
314
374
  .h5-textarea,
315
375
  .h5-select,
316
376
  .h5-button,
317
377
  .h5-meter,
318
378
  .h5-progress {
319
- -webkit-writing-mode: horizontal-tb !important;
379
+ writing-mode: horizontal-tb !important;
320
380
  }
381
+
321
382
  .h5-input,
322
383
  .h5-textarea,
323
384
  .h5-select,
324
385
  .h5-button {
325
- margin: 0em;
326
- font: -webkit-small-control;
327
- text-rendering: auto;
328
- color: black;
329
- letter-spacing: normal;
330
- word-spacing: normal;
386
+ display: inline-block;
387
+ margin: 0;
331
388
  line-height: normal;
332
- text-transform: none;
389
+ text-align: start;
333
390
  text-indent: 0;
334
391
  text-shadow: none;
335
- display: inline-block;
336
- text-align: start;
392
+ text-transform: none;
393
+ font-variant: small-control;
394
+ color: black;
395
+ word-spacing: normal;
396
+ letter-spacing: normal;
397
+ text-rendering: auto;
337
398
  }
399
+
338
400
  .h5-textarea {
339
- appearance: auto;
340
- border: 1px solid #767676;
341
401
  column-count: initial !important;
342
- -webkit-rtl-ordering: logical;
402
+ padding: 2px;
403
+ border: 1px solid #767676;
404
+ appearance: auto;
405
+ background-color: #fff;
343
406
  resize: auto;
344
407
  cursor: text;
345
- padding: 2px;
346
- white-space: pre-wrap;
347
- word-wrap: break-word;
348
- background-color: #ffffff;
349
408
  font-family: monospace;
409
+ word-wrap: break-word;
410
+ white-space: pre-wrap;
411
+ -webkit-rtl-ordering: logical;
350
412
  }
413
+
351
414
  .h5-input {
352
- appearance: auto;
353
415
  padding: 1px 0;
354
416
  border: 2px inset #767676;
355
- -webkit-rtl-ordering: logical;
417
+ appearance: auto;
418
+ background-color: #fff;
356
419
  cursor: text;
357
- background-color: #ffffff;
420
+ -webkit-rtl-ordering: logical;
358
421
  }
422
+
359
423
  .h5-option:-internal-spatial-navigation-focus {
360
424
  outline: black dashed 1px;
361
425
  outline-offset: -1px;
362
426
  }
427
+
363
428
  .h5-datalist {
364
429
  display: none;
365
430
  }
431
+
366
432
  .h5-area {
367
433
  display: inline;
368
434
  }
435
+
369
436
  .h5-param {
370
437
  display: none;
371
438
  }
439
+
372
440
  .h5-select {
373
- appearance: auto;
374
- box-sizing: border-box;
375
441
  align-items: center;
376
- white-space: pre;
377
- -webkit-rtl-ordering: logical;
378
- color: black;
379
- background-color: #ffffff;
442
+ box-sizing: border-box;
380
443
  border: 1px solid #767676;
381
- cursor: default;
382
444
  border-radius: 0;
445
+ appearance: auto;
446
+ background-color: #fff;
447
+ cursor: default;
448
+ color: black;
449
+ white-space: pre;
450
+ -webkit-rtl-ordering: logical;
383
451
  }
452
+
384
453
  .h5-optgroup {
385
- font-weight: bolder;
386
454
  display: block;
455
+ font-weight: bolder;
387
456
  }
457
+
388
458
  .h5-option {
389
- font-weight: normal;
390
459
  display: block;
391
- padding: 0 2px 1px 2px;
392
- white-space: nowrap;
460
+ padding: 0 2px 1px;
393
461
  min-height: 1.2em;
462
+ font-weight: normal;
463
+ white-space: nowrap;
394
464
  }
465
+
395
466
  .h5-selectmenu {
396
467
  display: inline-block;
397
468
  }
469
+
398
470
  .h5-output {
399
471
  display: inline;
400
472
  }
473
+
401
474
  .h5-meter {
402
- appearance: auto;
403
- box-sizing: border-box;
404
475
  display: inline-block;
405
- height: 1em;
476
+ box-sizing: border-box;
406
477
  width: 5em;
407
- vertical-align: -0.2em;
478
+ height: 1em;
479
+ appearance: auto;
408
480
  -webkit-user-modify: read-only !important;
481
+ vertical-align: -0.2em;
409
482
  }
483
+
410
484
  .h5-progress {
411
- appearance: auto;
412
- box-sizing: border-box;
413
485
  display: inline-block;
414
- height: 1em;
486
+ box-sizing: border-box;
415
487
  width: 10em;
488
+ height: 1em;
489
+ appearance: auto;
416
490
  vertical-align: -0.2em;
417
491
  }
492
+
418
493
  .h5-u,
419
494
  .h5-ins {
420
495
  text-decoration: underline;
421
496
  }
497
+
422
498
  .h5-strong,
423
499
  .h5-b {
424
500
  font-weight: bold;
425
501
  }
502
+
426
503
  .h5-i,
427
504
  .h5-cite,
428
505
  .h5-em,
@@ -431,116 +508,142 @@
431
508
  .h5-dfn {
432
509
  font-style: italic;
433
510
  }
511
+
434
512
  .h5-tt,
435
513
  .h5-code,
436
514
  .h5-kbd,
437
515
  .h5-samp {
438
516
  font-family: monospace;
439
517
  }
518
+
440
519
  .h5-pre,
441
520
  .h5-xmp,
442
521
  .h5-plaintext,
443
522
  .h5-listing {
444
523
  display: block;
524
+ margin: 1em 0;
445
525
  font-family: monospace;
446
526
  white-space: pre;
447
- margin: 1em 0;
448
527
  }
528
+
449
529
  .h5-mark {
450
530
  background-color: yellow;
451
531
  color: black;
452
532
  }
533
+
453
534
  .h5-big {
454
535
  font-size: larger;
455
536
  }
537
+
456
538
  .h5-small {
457
539
  font-size: smaller;
458
540
  }
541
+
459
542
  .h5-s,
460
543
  .h5-strike,
461
544
  .h5-del {
462
545
  text-decoration: line-through;
463
546
  }
547
+
464
548
  .h5-sub {
465
549
  vertical-align: sub;
466
550
  font-size: smaller;
467
551
  }
552
+
468
553
  .h5-sup {
469
554
  vertical-align: super;
470
555
  font-size: smaller;
471
556
  }
557
+
472
558
  .h5-nobr {
473
559
  white-space: nowrap;
474
560
  }
561
+
475
562
  .h5-ruby,
476
563
  .h5-rt {
477
564
  text-indent: 0;
478
565
  }
566
+
479
567
  .h5-rt {
480
568
  line-height: normal;
481
- -webkit-text-emphasis: none;
569
+ text-emphasis: none;
482
570
  }
571
+
483
572
  .h5-ruby > .h5-rt {
484
573
  display: block;
485
- font-size: 50%;
486
574
  text-align: start;
575
+ font-size: 50%;
487
576
  }
577
+
488
578
  .h5-rp {
489
579
  display: none;
490
580
  }
581
+
491
582
  .h5-noframes {
492
583
  display: none;
493
584
  }
585
+
494
586
  .h5-frameset,
495
587
  .h5-frame {
496
588
  display: block;
497
589
  }
590
+
498
591
  .h5-frameset {
499
592
  border-color: inherit;
500
593
  }
594
+
501
595
  .h5-iframe {
502
596
  border: 2px inset;
503
597
  }
598
+
504
599
  .h5-details {
505
600
  display: block;
506
601
  }
602
+
507
603
  .h5-summary {
508
604
  display: block;
509
605
  }
606
+
510
607
  .h5-template {
511
608
  display: none;
512
609
  }
610
+
513
611
  .h5-bdi,
514
612
  .h5-output {
515
613
  unicode-bidi: isolate;
516
614
  }
615
+
517
616
  .h5-bdo {
518
617
  unicode-bidi: bidi-override;
519
618
  }
619
+
520
620
  .h5-dialog:not([open]) {
521
621
  display: none;
522
622
  }
623
+
523
624
  .h5-dialog {
524
625
  display: block;
525
626
  position: absolute;
526
627
  left: 0;
527
628
  right: 0;
528
- width: fit-content;
529
- height: fit-content;
530
629
  margin: auto;
531
- border: solid;
532
630
  padding: 1em;
631
+ border: solid;
632
+ width: fit-content;
633
+ height: fit-content;
533
634
  background: white;
534
635
  color: black;
535
636
  }
637
+
536
638
  .h5-dialog::backdrop {
537
639
  position: fixed;
538
- top: 0;
640
+ left: 0;
539
641
  right: 0;
642
+ top: 0;
540
643
  bottom: 0;
541
- left: 0;
542
- background: rgba(0, 0, 0, 0.1);
644
+ background: rgb(0 0 0 / 10%);
543
645
  }
646
+
544
647
  .h5-slot {
545
648
  display: contents;
546
649
  }
package/index.js CHANGED
@@ -1,9 +1,8 @@
1
- const { container, SERVICE_IDENTIFIER } = require('@tarojs/runtime')
1
+ const { hooks } = require('@tarojs/runtime')
2
2
  const taro = require('@tarojs/api').default
3
3
 
4
- const hooks = container.get(SERVICE_IDENTIFIER.Hooks)
5
- if (typeof hooks.initNativeApi === 'function') {
6
- hooks.initNativeApi(taro)
4
+ if (hooks.isExist('initNativeApi')) {
5
+ hooks.call('initNativeApi', taro)
7
6
  }
8
7
 
9
8
  module.exports = taro