@dcloudio/vue-cli-plugin-uni 2.0.0 → 2.0.1-32920211122002

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 (269) hide show
  1. package/commands/build.js +64 -33
  2. package/commands/serve.js +12 -17
  3. package/generator.js +6 -2
  4. package/index.js +5 -3
  5. package/lib/chain-webpack.js +8 -1
  6. package/lib/check-update.js +56 -0
  7. package/lib/commands/custom.js +7 -4
  8. package/lib/commands/invoke.js +5 -4
  9. package/lib/configure-webpack.js +35 -5
  10. package/lib/copy-webpack-options.js +60 -20
  11. package/lib/env.js +99 -51
  12. package/lib/error-reporting.js +9 -3
  13. package/lib/mp/index.js +31 -16
  14. package/lib/options.js +6 -3
  15. package/lib/util.js +5 -6
  16. package/package.json +3 -3
  17. package/packages/@vue/component-compiler-utils/MODIFY.md +5 -0
  18. package/packages/@vue/component-compiler-utils/dist/compileStyle.js +11 -0
  19. package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/API.md +873 -0
  20. package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/CHANGELOG.md +466 -0
  21. package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/LICENSE-MIT +22 -0
  22. package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/README.md +49 -0
  23. package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/dist/index.js +26 -0
  24. package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/dist/parser.js +1088 -0
  25. package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/dist/processor.js +185 -0
  26. package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/dist/selectors/attribute.js +468 -0
  27. package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/dist/selectors/className.js +67 -0
  28. package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/dist/selectors/combinator.js +35 -0
  29. package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/dist/selectors/comment.js +35 -0
  30. package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/dist/selectors/constructors.js +91 -0
  31. package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/dist/selectors/container.js +392 -0
  32. package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/dist/selectors/guards.js +54 -0
  33. package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/dist/selectors/id.js +39 -0
  34. package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/dist/selectors/index.js +39 -0
  35. package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/dist/selectors/namespace.js +98 -0
  36. package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/dist/selectors/nesting.js +36 -0
  37. package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/dist/selectors/node.js +216 -0
  38. package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/dist/selectors/pseudo.js +40 -0
  39. package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/dist/selectors/root.js +60 -0
  40. package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/dist/selectors/selector.js +35 -0
  41. package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/dist/selectors/string.js +35 -0
  42. package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/dist/selectors/tag.js +35 -0
  43. package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/dist/selectors/types.js +15 -0
  44. package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/dist/selectors/universal.js +36 -0
  45. package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/dist/sortAscending.js +10 -0
  46. package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/dist/tokenTypes.js +39 -0
  47. package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/dist/tokenize.js +271 -0
  48. package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/dist/util/ensureObject.js +20 -0
  49. package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/dist/util/getProp.js +22 -0
  50. package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/dist/util/index.js +41 -0
  51. package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/dist/util/stripComments.js +21 -0
  52. package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/dist/util/unesc.js +18 -0
  53. package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/package.json +76 -0
  54. package/packages/@vue/component-compiler-utils/node_modules/postcss-selector-parser/postcss-selector-parser.d.ts +499 -0
  55. package/packages/@vue/devtools-api/lib/cjs/api/api.d.ts +90 -0
  56. package/packages/@vue/devtools-api/lib/cjs/api/api.js +2 -0
  57. package/packages/@vue/devtools-api/lib/cjs/api/app.d.ts +1 -0
  58. package/packages/@vue/devtools-api/lib/cjs/api/app.js +2 -0
  59. package/packages/@vue/devtools-api/lib/cjs/api/component.d.ts +76 -0
  60. package/packages/@vue/devtools-api/lib/cjs/api/component.js +2 -0
  61. package/packages/@vue/devtools-api/lib/cjs/api/context.d.ts +5 -0
  62. package/packages/@vue/devtools-api/lib/cjs/api/context.js +2 -0
  63. package/packages/@vue/devtools-api/lib/cjs/api/hooks.d.ts +169 -0
  64. package/packages/@vue/devtools-api/lib/cjs/api/hooks.js +2 -0
  65. package/packages/@vue/devtools-api/lib/cjs/api/index.d.ts +6 -0
  66. package/packages/@vue/devtools-api/lib/cjs/api/index.js +18 -0
  67. package/packages/@vue/devtools-api/lib/cjs/api/util.d.ts +4 -0
  68. package/packages/@vue/devtools-api/lib/cjs/api/util.js +2 -0
  69. package/packages/@vue/devtools-api/lib/cjs/const.d.ts +1 -0
  70. package/packages/@vue/devtools-api/lib/cjs/const.js +4 -0
  71. package/packages/@vue/devtools-api/lib/cjs/env.d.ts +10 -0
  72. package/packages/@vue/devtools-api/lib/cjs/env.js +16 -0
  73. package/packages/@vue/devtools-api/lib/cjs/index.d.ts +14 -0
  74. package/packages/@vue/devtools-api/lib/cjs/index.js +31 -0
  75. package/packages/@vue/devtools-api/lib/esm/api/api.js +0 -0
  76. package/packages/@vue/devtools-api/lib/esm/api/app.js +0 -0
  77. package/packages/@vue/devtools-api/lib/esm/api/component.js +0 -0
  78. package/packages/@vue/devtools-api/lib/esm/api/context.js +0 -0
  79. package/packages/@vue/devtools-api/lib/esm/api/hooks.js +0 -0
  80. package/packages/@vue/devtools-api/lib/esm/api/index.js +6 -0
  81. package/packages/@vue/devtools-api/lib/esm/api/util.js +0 -0
  82. package/packages/@vue/devtools-api/lib/esm/const.js +1 -0
  83. package/packages/@vue/devtools-api/lib/esm/env.js +11 -0
  84. package/packages/@vue/devtools-api/lib/esm/index.js +17 -0
  85. package/packages/@vue/devtools-api/package.json +38 -0
  86. package/packages/app-vue-style-loader/lib/addStylesClient.js +1 -1
  87. package/packages/h5-vue-style-loader/lib/addStylesClient.js +1 -1
  88. package/packages/mp-vue/dist/mp.runtime.esm.js +3 -2
  89. package/packages/mp-vue/package.json +1 -0
  90. package/packages/uni-app/LICENSE +202 -0
  91. package/packages/uni-app/dist/uni-app.cjs.js +165 -0
  92. package/packages/uni-app/dist/uni-app.d.ts +61 -0
  93. package/packages/uni-app/dist/uni-app.es.js +108 -0
  94. package/packages/uni-app/package.json +22 -0
  95. package/packages/uni-cloud/dist/index.js +1 -1
  96. package/packages/uni-stat/dist/uni-stat.cjs.js +961 -0
  97. package/packages/uni-stat/dist/uni-stat.es.js +959 -0
  98. package/packages/uni-stat/lib/uni.plugin.js +68 -0
  99. package/packages/uni-stat/package.json +25 -0
  100. package/packages/vue3/node_modules/.yarn-integrity +27 -0
  101. package/packages/vue3/node_modules/@intlify/core-base/LICENSE +20 -0
  102. package/packages/vue3/node_modules/@intlify/core-base/README.md +7 -0
  103. package/packages/vue3/node_modules/@intlify/core-base/dist/core-base.cjs.js +989 -0
  104. package/packages/vue3/node_modules/@intlify/core-base/dist/core-base.cjs.prod.js +735 -0
  105. package/packages/vue3/node_modules/@intlify/core-base/dist/core-base.d.ts +576 -0
  106. package/packages/vue3/node_modules/@intlify/core-base/dist/core-base.esm-browser.js +2771 -0
  107. package/packages/vue3/node_modules/@intlify/core-base/dist/core-base.esm-browser.prod.js +6 -0
  108. package/packages/vue3/node_modules/@intlify/core-base/dist/core-base.esm-bundler.js +965 -0
  109. package/packages/vue3/node_modules/@intlify/core-base/dist/core-base.global.js +2814 -0
  110. package/packages/vue3/node_modules/@intlify/core-base/dist/core-base.global.prod.js +6 -0
  111. package/packages/vue3/node_modules/@intlify/core-base/index.js +7 -0
  112. package/packages/vue3/node_modules/@intlify/core-base/package.json +59 -0
  113. package/packages/vue3/node_modules/@intlify/devtools-if/LICENSE +20 -0
  114. package/packages/vue3/node_modules/@intlify/devtools-if/README.md +13 -0
  115. package/packages/vue3/node_modules/@intlify/devtools-if/dist/devtools-if.cjs.js +15 -0
  116. package/packages/vue3/node_modules/@intlify/devtools-if/dist/devtools-if.cjs.prod.js +15 -0
  117. package/packages/vue3/node_modules/@intlify/devtools-if/dist/devtools-if.d.ts +43 -0
  118. package/packages/vue3/node_modules/@intlify/devtools-if/dist/devtools-if.esm-bundler.js +11 -0
  119. package/packages/vue3/node_modules/@intlify/devtools-if/index.js +7 -0
  120. package/packages/vue3/node_modules/@intlify/devtools-if/package.json +49 -0
  121. package/packages/vue3/node_modules/@intlify/message-compiler/LICENSE +20 -0
  122. package/packages/vue3/node_modules/@intlify/message-compiler/README.md +7 -0
  123. package/packages/vue3/node_modules/@intlify/message-compiler/dist/message-compiler.cjs.js +1400 -0
  124. package/packages/vue3/node_modules/@intlify/message-compiler/dist/message-compiler.cjs.prod.js +1395 -0
  125. package/packages/vue3/node_modules/@intlify/message-compiler/dist/message-compiler.d.ts +197 -0
  126. package/packages/vue3/node_modules/@intlify/message-compiler/dist/message-compiler.esm-browser.js +1348 -0
  127. package/packages/vue3/node_modules/@intlify/message-compiler/dist/message-compiler.esm-browser.prod.js +6 -0
  128. package/packages/vue3/node_modules/@intlify/message-compiler/dist/message-compiler.esm-bundler.js +1329 -0
  129. package/packages/vue3/node_modules/@intlify/message-compiler/dist/message-compiler.global.js +1365 -0
  130. package/packages/vue3/node_modules/@intlify/message-compiler/dist/message-compiler.global.prod.js +6 -0
  131. package/packages/vue3/node_modules/@intlify/message-compiler/index.js +7 -0
  132. package/packages/vue3/node_modules/@intlify/message-compiler/package.json +56 -0
  133. package/packages/vue3/node_modules/@intlify/message-resolver/LICENSE +20 -0
  134. package/packages/vue3/node_modules/@intlify/message-resolver/README.md +7 -0
  135. package/packages/vue3/node_modules/@intlify/message-resolver/dist/message-resolver.cjs.js +302 -0
  136. package/packages/vue3/node_modules/@intlify/message-resolver/dist/message-resolver.cjs.prod.js +302 -0
  137. package/packages/vue3/node_modules/@intlify/message-resolver/dist/message-resolver.d.ts +21 -0
  138. package/packages/vue3/node_modules/@intlify/message-resolver/dist/message-resolver.esm-bundler.js +297 -0
  139. package/packages/vue3/node_modules/@intlify/message-resolver/index.js +7 -0
  140. package/packages/vue3/node_modules/@intlify/message-resolver/package.json +46 -0
  141. package/packages/vue3/node_modules/@intlify/runtime/LICENSE +20 -0
  142. package/packages/vue3/node_modules/@intlify/runtime/README.md +7 -0
  143. package/packages/vue3/node_modules/@intlify/runtime/dist/runtime.cjs.js +116 -0
  144. package/packages/vue3/node_modules/@intlify/runtime/dist/runtime.cjs.prod.js +116 -0
  145. package/packages/vue3/node_modules/@intlify/runtime/dist/runtime.d.ts +95 -0
  146. package/packages/vue3/node_modules/@intlify/runtime/dist/runtime.esm-bundler.js +111 -0
  147. package/packages/vue3/node_modules/@intlify/runtime/index.js +7 -0
  148. package/packages/vue3/node_modules/@intlify/runtime/package.json +51 -0
  149. package/packages/vue3/node_modules/@intlify/shared/LICENSE +20 -0
  150. package/packages/vue3/node_modules/@intlify/shared/README.md +18 -0
  151. package/packages/vue3/node_modules/@intlify/shared/dist/shared.cjs.js +222 -0
  152. package/packages/vue3/node_modules/@intlify/shared/dist/shared.cjs.prod.js +209 -0
  153. package/packages/vue3/node_modules/@intlify/shared/dist/shared.d.ts +145 -0
  154. package/packages/vue3/node_modules/@intlify/shared/dist/shared.esm-bundler.js +192 -0
  155. package/packages/vue3/node_modules/@intlify/shared/index.js +7 -0
  156. package/packages/vue3/node_modules/@intlify/shared/package.json +46 -0
  157. package/packages/vue3/node_modules/@intlify/vue-devtools/LICENSE +20 -0
  158. package/packages/vue3/node_modules/@intlify/vue-devtools/README.md +7 -0
  159. package/packages/vue3/node_modules/@intlify/vue-devtools/dist/vue-devtools.cjs.js +24 -0
  160. package/packages/vue3/node_modules/@intlify/vue-devtools/dist/vue-devtools.cjs.prod.js +24 -0
  161. package/packages/vue3/node_modules/@intlify/vue-devtools/dist/vue-devtools.d.ts +81 -0
  162. package/packages/vue3/node_modules/@intlify/vue-devtools/dist/vue-devtools.esm-bundler.js +18 -0
  163. package/packages/vue3/node_modules/@intlify/vue-devtools/index.js +7 -0
  164. package/packages/vue3/node_modules/@intlify/vue-devtools/package.json +51 -0
  165. package/packages/vue3/node_modules/@vue/devtools-api/lib/cjs/api/api.d.ts +90 -0
  166. package/packages/vue3/node_modules/@vue/devtools-api/lib/cjs/api/api.js +2 -0
  167. package/packages/vue3/node_modules/@vue/devtools-api/lib/cjs/api/app.d.ts +1 -0
  168. package/packages/vue3/node_modules/@vue/devtools-api/lib/cjs/api/app.js +2 -0
  169. package/packages/vue3/node_modules/@vue/devtools-api/lib/cjs/api/component.d.ts +76 -0
  170. package/packages/vue3/node_modules/@vue/devtools-api/lib/cjs/api/component.js +2 -0
  171. package/packages/vue3/node_modules/@vue/devtools-api/lib/cjs/api/context.d.ts +5 -0
  172. package/packages/vue3/node_modules/@vue/devtools-api/lib/cjs/api/context.js +2 -0
  173. package/packages/vue3/node_modules/@vue/devtools-api/lib/cjs/api/hooks.d.ts +169 -0
  174. package/packages/vue3/node_modules/@vue/devtools-api/lib/cjs/api/hooks.js +2 -0
  175. package/packages/vue3/node_modules/@vue/devtools-api/lib/cjs/api/index.d.ts +6 -0
  176. package/packages/vue3/node_modules/@vue/devtools-api/lib/cjs/api/index.js +18 -0
  177. package/packages/vue3/node_modules/@vue/devtools-api/lib/cjs/api/util.d.ts +4 -0
  178. package/packages/vue3/node_modules/@vue/devtools-api/lib/cjs/api/util.js +2 -0
  179. package/packages/vue3/node_modules/@vue/devtools-api/lib/cjs/const.d.ts +1 -0
  180. package/packages/vue3/node_modules/@vue/devtools-api/lib/cjs/const.js +4 -0
  181. package/packages/vue3/node_modules/@vue/devtools-api/lib/cjs/env.d.ts +10 -0
  182. package/packages/vue3/node_modules/@vue/devtools-api/lib/cjs/env.js +16 -0
  183. package/packages/vue3/node_modules/@vue/devtools-api/lib/cjs/index.d.ts +14 -0
  184. package/packages/vue3/node_modules/@vue/devtools-api/lib/cjs/index.js +31 -0
  185. package/packages/vue3/node_modules/@vue/devtools-api/lib/esm/api/api.js +0 -0
  186. package/packages/vue3/node_modules/@vue/devtools-api/lib/esm/api/app.js +0 -0
  187. package/packages/vue3/node_modules/@vue/devtools-api/lib/esm/api/component.js +0 -0
  188. package/packages/vue3/node_modules/@vue/devtools-api/lib/esm/api/context.js +0 -0
  189. package/packages/vue3/node_modules/@vue/devtools-api/lib/esm/api/hooks.js +0 -0
  190. package/packages/vue3/node_modules/@vue/devtools-api/lib/esm/api/index.js +6 -0
  191. package/packages/vue3/node_modules/@vue/devtools-api/lib/esm/api/util.js +0 -0
  192. package/packages/vue3/node_modules/@vue/devtools-api/lib/esm/const.js +1 -0
  193. package/packages/vue3/node_modules/@vue/devtools-api/lib/esm/env.js +11 -0
  194. package/packages/vue3/node_modules/@vue/devtools-api/lib/esm/index.js +17 -0
  195. package/packages/vue3/node_modules/@vue/devtools-api/package.json +38 -0
  196. package/packages/vue3/node_modules/source-map/CHANGELOG.md +301 -0
  197. package/packages/vue3/node_modules/source-map/LICENSE +28 -0
  198. package/packages/vue3/node_modules/source-map/README.md +742 -0
  199. package/packages/vue3/node_modules/source-map/dist/source-map.debug.js +3234 -0
  200. package/packages/vue3/node_modules/source-map/dist/source-map.js +3233 -0
  201. package/packages/vue3/node_modules/source-map/dist/source-map.min.js +2 -0
  202. package/packages/vue3/node_modules/source-map/dist/source-map.min.js.map +1 -0
  203. package/packages/vue3/node_modules/source-map/lib/array-set.js +121 -0
  204. package/packages/vue3/node_modules/source-map/lib/base64-vlq.js +140 -0
  205. package/packages/vue3/node_modules/source-map/lib/base64.js +67 -0
  206. package/packages/vue3/node_modules/source-map/lib/binary-search.js +111 -0
  207. package/packages/vue3/node_modules/source-map/lib/mapping-list.js +79 -0
  208. package/packages/vue3/node_modules/source-map/lib/quick-sort.js +114 -0
  209. package/packages/vue3/node_modules/source-map/lib/source-map-consumer.js +1145 -0
  210. package/packages/vue3/node_modules/source-map/lib/source-map-generator.js +425 -0
  211. package/packages/vue3/node_modules/source-map/lib/source-node.js +413 -0
  212. package/packages/vue3/node_modules/source-map/lib/util.js +488 -0
  213. package/packages/vue3/node_modules/source-map/package.json +73 -0
  214. package/packages/vue3/node_modules/source-map/source-map.d.ts +98 -0
  215. package/packages/vue3/node_modules/source-map/source-map.js +8 -0
  216. package/packages/vue3/node_modules/vue-i18n/LICENSE +20 -0
  217. package/packages/vue3/node_modules/vue-i18n/README.md +74 -0
  218. package/packages/vue3/node_modules/vue-i18n/dist/vue-i18n.cjs.js +1801 -0
  219. package/packages/vue3/node_modules/vue-i18n/dist/vue-i18n.cjs.prod.js +1685 -0
  220. package/packages/vue3/node_modules/vue-i18n/dist/vue-i18n.d.ts +3302 -0
  221. package/packages/vue3/node_modules/vue-i18n/dist/vue-i18n.esm-browser.js +5052 -0
  222. package/packages/vue3/node_modules/vue-i18n/dist/vue-i18n.esm-browser.prod.js +6 -0
  223. package/packages/vue3/node_modules/vue-i18n/dist/vue-i18n.esm-bundler.js +2226 -0
  224. package/packages/vue3/node_modules/vue-i18n/dist/vue-i18n.global.js +5065 -0
  225. package/packages/vue3/node_modules/vue-i18n/dist/vue-i18n.global.prod.js +6 -0
  226. package/packages/vue3/node_modules/vue-i18n/dist/vue-i18n.runtime.esm-browser.js +3724 -0
  227. package/packages/vue3/node_modules/vue-i18n/dist/vue-i18n.runtime.esm-browser.prod.js +6 -0
  228. package/packages/vue3/node_modules/vue-i18n/dist/vue-i18n.runtime.esm-bundler.js +2224 -0
  229. package/packages/vue3/node_modules/vue-i18n/dist/vue-i18n.runtime.global.js +3737 -0
  230. package/packages/vue3/node_modules/vue-i18n/dist/vue-i18n.runtime.global.prod.js +6 -0
  231. package/packages/vue3/node_modules/vue-i18n/index.js +7 -0
  232. package/packages/vue3/node_modules/vue-i18n/package.json +69 -0
  233. package/packages/vue3/node_modules/vue-i18n/vetur/attributes.json +62 -0
  234. package/packages/vue3/node_modules/vue-i18n/vetur/tags.json +14 -0
  235. package/packages/vue3/package.json +15 -0
  236. package/packages/vue3/yarn.lock +79 -0
  237. package/packages/vuex/CHANGELOG.md +604 -0
  238. package/packages/vuex/LICENSE +21 -0
  239. package/packages/vuex/README.md +55 -0
  240. package/packages/vuex/dist/vuex.cjs.js +1474 -0
  241. package/packages/vuex/dist/vuex.esm-browser.js +1472 -0
  242. package/packages/vuex/dist/vuex.esm-browser.prod.js +1307 -0
  243. package/packages/vuex/dist/vuex.esm-bundler.js +1473 -0
  244. package/packages/vuex/dist/vuex.global.js +1499 -0
  245. package/packages/vuex/dist/vuex.global.prod.js +6 -0
  246. package/packages/vuex/dist/vuex.mjs +32 -0
  247. package/packages/vuex/package.json +99 -0
  248. package/packages/vuex/types/helpers.d.ts +86 -0
  249. package/packages/vuex/types/index.d.ts +167 -0
  250. package/packages/vuex/types/logger.d.ts +20 -0
  251. package/packages/vuex/types/vue.d.ts +12 -0
  252. package/packages/vuex3/CHANGELOG.md +356 -0
  253. package/packages/vuex3/LICENSE +21 -0
  254. package/packages/vuex3/README.md +59 -0
  255. package/packages/vuex3/dist/logger.js +155 -0
  256. package/packages/vuex3/dist/vuex.common.js +1244 -0
  257. package/packages/vuex3/dist/vuex.esm.browser.js +1200 -0
  258. package/packages/vuex3/dist/vuex.esm.browser.min.js +6 -0
  259. package/packages/vuex3/dist/vuex.esm.js +1243 -0
  260. package/packages/vuex3/dist/vuex.js +1250 -0
  261. package/packages/vuex3/dist/vuex.min.js +6 -0
  262. package/packages/vuex3/dist/vuex.mjs +26 -0
  263. package/packages/vuex3/package.json +96 -0
  264. package/packages/vuex3/types/helpers.d.ts +86 -0
  265. package/packages/vuex3/types/index.d.ts +164 -0
  266. package/packages/vuex3/types/logger.d.ts +20 -0
  267. package/packages/vuex3/types/vue.d.ts +18 -0
  268. package/packages/webpack-uni-app-loader/plugin/index.js +8 -2
  269. package/packages/webpack-uni-app-loader/view/main.js +12 -0
@@ -0,0 +1,499 @@
1
+ // Type definitions for postcss-selector-parser 2.2.3
2
+ // Definitions by: Chris Eppstein <chris@eppsteins.net>
3
+
4
+ /*~ Note that ES6 modules cannot directly export callable functions.
5
+ *~ This file should be imported using the CommonJS-style:
6
+ *~ import x = require('someLibrary');
7
+ *~
8
+ *~ Refer to the documentation to understand common
9
+ *~ workarounds for this limitation of ES6 modules.
10
+ */
11
+
12
+ /*~ This declaration specifies that the function
13
+ *~ is the exported object from the file
14
+ */
15
+ export = parser;
16
+
17
+ // TODO: Conditional types in TS 1.8 will really clean this up.
18
+ declare function parser(): parser.Processor<never>;
19
+ declare function parser<Transform>(processor: parser.AsyncProcessor<Transform>): parser.Processor<Transform, never>;
20
+ declare function parser(processor: parser.AsyncProcessor<void>): parser.Processor<never, never>;
21
+ declare function parser<Transform>(processor: parser.SyncProcessor<Transform>): parser.Processor<Transform>;
22
+ declare function parser(processor: parser.SyncProcessor<void>): parser.Processor<never>;
23
+ declare function parser<Transform>(processor?: parser.SyncProcessor<Transform> | parser.AsyncProcessor<Transform>): parser.Processor<Transform>;
24
+
25
+ /*~ If you want to expose types from your module as well, you can
26
+ *~ place them in this block. Often you will want to describe the
27
+ *~ shape of the return type of the function; that type should
28
+ *~ be declared in here, as this example shows.
29
+ */
30
+ declare namespace parser {
31
+ /* copied from postcss -- so we don't need to add a dependency */
32
+ type ErrorOptions = {
33
+ plugin?: string;
34
+ word?: string;
35
+ index?: number
36
+ };
37
+ /* the bits we use of postcss.Rule, copied from postcss -- so we don't need to add a dependency */
38
+ type PostCSSRuleNode = {
39
+ selector: string
40
+ /**
41
+ * @returns postcss.CssSyntaxError but it's a complex object, caller
42
+ * should cast to it if they have a dependency on postcss.
43
+ */
44
+ error(message: string, options?: ErrorOptions): Error;
45
+ };
46
+ /** Accepts a string */
47
+ type Selectors = string | PostCSSRuleNode
48
+ type ProcessorFn<ReturnType = void> = (root: parser.Root) => ReturnType;
49
+ type SyncProcessor<Transform = void> = ProcessorFn<Transform>;
50
+ type AsyncProcessor<Transform = void> = ProcessorFn<PromiseLike<Transform>>;
51
+
52
+ const TAG: "tag";
53
+ const STRING: "string";
54
+ const SELECTOR: "selector";
55
+ const ROOT: "root";
56
+ const PSEUDO: "pseudo";
57
+ const NESTING: "nesting";
58
+ const ID: "id";
59
+ const COMMENT: "comment";
60
+ const COMBINATOR: "combinator";
61
+ const CLASS: "class";
62
+ const ATTRIBUTE: "attribute";
63
+ const UNIVERSAL: "universal";
64
+
65
+ interface NodeTypes {
66
+ tag: Tag,
67
+ string: String,
68
+ selector: Selector,
69
+ root: Root,
70
+ pseudo: Pseudo,
71
+ nesting: Nesting,
72
+ id: Identifier,
73
+ comment: Comment,
74
+ combinator: Combinator,
75
+ class: ClassName,
76
+ attribute: Attribute,
77
+ universal: Universal
78
+ }
79
+
80
+ type Node = NodeTypes[keyof NodeTypes];
81
+
82
+ function isNode(node: any): node is Node;
83
+
84
+ interface Options {
85
+ /**
86
+ * Preserve whitespace when true. Default: false;
87
+ */
88
+ lossless: boolean;
89
+ /**
90
+ * When true and a postcss.Rule is passed, set the result of
91
+ * processing back onto the rule when done. Default: false.
92
+ */
93
+ updateSelector: boolean;
94
+ }
95
+ class Processor<
96
+ TransformType = never,
97
+ SyncSelectorsType extends Selectors | never = Selectors
98
+ > {
99
+ res: Root;
100
+ readonly result: String;
101
+ ast(selectors: Selectors, options?: Partial<Options>): Promise<Root>;
102
+ astSync(selectors: SyncSelectorsType, options?: Partial<Options>): Root;
103
+ transform(selectors: Selectors, options?: Partial<Options>): Promise<TransformType>;
104
+ transformSync(selectors: SyncSelectorsType, options?: Partial<Options>): TransformType;
105
+ process(selectors: Selectors, options?: Partial<Options>): Promise<string>;
106
+ processSync(selectors: SyncSelectorsType, options?: Partial<Options>): string;
107
+ }
108
+ interface ParserOptions {
109
+ css: string;
110
+ error: (message: string, options: ErrorOptions) => Error;
111
+ options: Options;
112
+ }
113
+ class Parser {
114
+ input: ParserOptions;
115
+ lossy: boolean;
116
+ position: number;
117
+ root: Root;
118
+ selectors: string;
119
+ current: Selector;
120
+ constructor(input: ParserOptions);
121
+ /**
122
+ * Raises an error, if the processor is invoked on
123
+ * a postcss Rule node, a better error message is raised.
124
+ */
125
+ error(message: string, options?: ErrorOptions): void;
126
+ }
127
+ interface NodeSource {
128
+ start?: {
129
+ line: number,
130
+ column: number
131
+ },
132
+ end?: {
133
+ line: number,
134
+ column: number
135
+ }
136
+ }
137
+ interface SpaceAround {
138
+ before: string;
139
+ after: string;
140
+ }
141
+ interface Spaces extends SpaceAround {
142
+ [spaceType: string]: string | Partial<SpaceAround> | undefined;
143
+ }
144
+ interface NodeOptions<Value = string> {
145
+ value: Value;
146
+ spaces?: Partial<Spaces>;
147
+ source?: NodeSource;
148
+ sourceIndex?: number;
149
+ }
150
+ interface Base<
151
+ Value extends string | undefined = string,
152
+ ParentType extends Container | undefined = Container | undefined
153
+ > {
154
+ type: keyof NodeTypes;
155
+ parent: ParentType;
156
+ value: Value;
157
+ spaces: Spaces;
158
+ source?: NodeSource;
159
+ sourceIndex: number;
160
+ rawSpaceBefore: string;
161
+ rawSpaceAfter: string;
162
+ remove(): Node;
163
+ replaceWith(...nodes: Node[]): Node;
164
+ next(): Node;
165
+ prev(): Node;
166
+ clone(opts: {[override: string]:any}): Node;
167
+ /**
168
+ * Return whether this node includes the character at the position of the given line and column.
169
+ * Returns undefined if the nodes lack sufficient source metadata to determine the position.
170
+ * @param line 1-index based line number relative to the start of the selector.
171
+ * @param column 1-index based column number relative to the start of the selector.
172
+ */
173
+ isAtPosition(line: number, column: number): boolean | undefined;
174
+ /**
175
+ * Some non-standard syntax doesn't follow normal escaping rules for css,
176
+ * this allows the escaped value to be specified directly, allowing illegal characters to be
177
+ * directly inserted into css output.
178
+ * @param name the property to set
179
+ * @param value the unescaped value of the property
180
+ * @param valueEscaped optional. the escaped value of the property.
181
+ */
182
+ setPropertyAndEscape(name: string, value: any, valueEscaped: string): void;
183
+ /**
184
+ * When you want a value to passed through to CSS directly. This method
185
+ * deletes the corresponding raw value causing the stringifier to fallback
186
+ * to the unescaped value.
187
+ * @param name the property to set.
188
+ * @param value The value that is both escaped and unescaped.
189
+ */
190
+ setPropertyWithoutEscape(name: string, value: any): void;
191
+ /**
192
+ * Some non-standard syntax doesn't follow normal escaping rules for css.
193
+ * This allows non standard syntax to be appended to an existing property
194
+ * by specifying the escaped value. By specifying the escaped value,
195
+ * illegal characters are allowed to be directly inserted into css output.
196
+ * @param {string} name the property to set
197
+ * @param {any} value the unescaped value of the property
198
+ * @param {string} valueEscaped optional. the escaped value of the property.
199
+ */
200
+ appendToPropertyAndEscape(name: string, value: any, valueEscaped: string): void;
201
+ toString(): string;
202
+ }
203
+ interface ContainerOptions extends NodeOptions {
204
+ nodes?: Array<Node>;
205
+ }
206
+ interface Container<Value extends string | undefined = string> extends Base<Value> {
207
+ nodes: Array<Node>;
208
+ append(selector: Selector): Container;
209
+ prepend(selector: Selector): Container;
210
+ at(index: number): Node;
211
+ /**
212
+ * Return the most specific node at the line and column number given.
213
+ * The source location is based on the original parsed location, locations aren't
214
+ * updated as selector nodes are mutated.
215
+ *
216
+ * Note that this location is relative to the location of the first character
217
+ * of the selector, and not the location of the selector in the overall document
218
+ * when used in conjunction with postcss.
219
+ *
220
+ * If not found, returns undefined.
221
+ * @param line The line number of the node to find. (1-based index)
222
+ * @param col The column number of the node to find. (1-based index)
223
+ */
224
+ atPosition(line: number, column: number): Node;
225
+ index(child: Node): number;
226
+ readonly first: Node;
227
+ readonly last: Node;
228
+ readonly length: number;
229
+ removeChild(child: Node): Container;
230
+ removeAll(): Container;
231
+ empty(): Container;
232
+ insertAfter(oldNode: Node, newNode: Node): Container;
233
+ insertBefore(oldNode: Node, newNode: Node): Container;
234
+ each(callback: (node: Node) => boolean | void): boolean | undefined;
235
+ walk(callback: (node: Node) => boolean | void): boolean | undefined;
236
+ walkAttributes(callback: (node: Node) => boolean | void): boolean | undefined;
237
+ walkClasses(callback: (node: Node) => boolean | void): boolean | undefined;
238
+ walkCombinators(callback: (node: Node) => boolean | void): boolean | undefined;
239
+ walkComments(callback: (node: Node) => boolean | void): boolean | undefined;
240
+ walkIds(callback: (node: Node) => boolean | void): boolean | undefined;
241
+ walkNesting(callback: (node: Node) => boolean | void): boolean | undefined;
242
+ walkPseudos(callback: (node: Node) => boolean | void): boolean | undefined;
243
+ walkTags(callback: (node: Node) => boolean | void): boolean | undefined;
244
+ split(callback: (node: Node) => boolean): [Node[], Node[]];
245
+ map(callback: (node: Node) => Node): Node[];
246
+ reduce<T>(callback: (node: Node) => Node, memo: T): T;
247
+ every(callback: (node: Node) => boolean): boolean;
248
+ some(callback: (node: Node) => boolean): boolean;
249
+ filter(callback: (node: Node) => boolean): Node[];
250
+ sort(callback: (nodeA: Node, nodeB: Node) => number): Node[];
251
+ toString(): string;
252
+ }
253
+ function isContainer(node: any): node is Root | Selector | Pseudo;
254
+
255
+ interface NamespaceOptions<Value extends string | undefined = string> extends NodeOptions<Value> {
256
+ namespace?: string | true;
257
+ }
258
+ interface Namespace<Value extends string | undefined = string> extends Base<Value> {
259
+ /** alias for namespace */
260
+ ns: string | true;
261
+ /**
262
+ * namespace prefix.
263
+ */
264
+ namespace: string | true;
265
+ /**
266
+ * If a namespace exists, prefix the value provided with it, separated by |.
267
+ */
268
+ qualifiedName(value: string): string;
269
+ /**
270
+ * A string representing the namespace suitable for output.
271
+ */
272
+ readonly namespaceString: string;
273
+ }
274
+ function isNamespace(node: any): node is Attribute | Tag;
275
+
276
+ interface Root extends Container<undefined> {
277
+ type: "root";
278
+ /**
279
+ * Raises an error, if the processor is invoked on
280
+ * a postcss Rule node, a better error message is raised.
281
+ */
282
+ error(message: string, options?: ErrorOptions): Error;
283
+ nodeAt(line: number, column: number): Node
284
+ }
285
+ function root(opts: ContainerOptions): Root;
286
+ function isRoot(node: any): node is Root;
287
+
288
+ interface Selector extends Container {
289
+ type: "selector";
290
+ }
291
+ function selector(opts: ContainerOptions): Selector;
292
+ function isSelector(node: any): node is Selector;
293
+
294
+ interface Combinator extends Base {
295
+ type: "combinator"
296
+ }
297
+ function combinator(opts: NodeOptions): Combinator;
298
+ function isCombinator(node: any): node is Combinator;
299
+
300
+ interface ClassName extends Base {
301
+ type: "class";
302
+ }
303
+ function className(opts: NamespaceOptions): ClassName;
304
+ function isClassName(node: any): node is ClassName;
305
+
306
+ type AttributeOperator = "=" | "~=" | "|=" | "^=" | "$=" | "*=";
307
+ type QuoteMark = '"' | "'" | null;
308
+ interface PreferredQuoteMarkOptions {
309
+ quoteMark?: QuoteMark;
310
+ preferCurrentQuoteMark?: boolean;
311
+ }
312
+ interface SmartQuoteMarkOptions extends PreferredQuoteMarkOptions {
313
+ smart?: boolean;
314
+ }
315
+ interface AttributeOptions extends NamespaceOptions<string | undefined> {
316
+ attribute: string;
317
+ operator?: AttributeOperator;
318
+ insensitive?: boolean;
319
+ quoteMark?: QuoteMark;
320
+ /** @deprecated Use quoteMark instead. */
321
+ quoted?: boolean;
322
+ spaces?: {
323
+ before?: string;
324
+ after?: string;
325
+ attribute?: Partial<SpaceAround>;
326
+ operator?: Partial<SpaceAround>;
327
+ value?: Partial<SpaceAround>;
328
+ insensitive?: Partial<SpaceAround>;
329
+ }
330
+ raws: {
331
+ unquoted?: string;
332
+ attribute?: string;
333
+ operator?: string;
334
+ value?: string;
335
+ insensitive?: string;
336
+ spaces?: {
337
+ attribute?: Partial<Spaces>;
338
+ operator?: Partial<Spaces>;
339
+ value?: Partial<Spaces>;
340
+ insensitive?: Partial<Spaces>;
341
+ }
342
+ };
343
+ }
344
+ interface Attribute extends Namespace<string | undefined> {
345
+ type: "attribute";
346
+ attribute: string;
347
+ operator?: AttributeOperator;
348
+ insensitive?: boolean;
349
+ quoteMark: QuoteMark;
350
+ quoted?: boolean;
351
+ spaces: {
352
+ before: string;
353
+ after: string;
354
+ attribute?: Partial<Spaces>;
355
+ operator?: Partial<Spaces>;
356
+ value?: Partial<Spaces>;
357
+ insensitive?: Partial<Spaces>;
358
+ }
359
+ raws: {
360
+ /** @deprecated The attribute value is unquoted, use that instead.. */
361
+ unquoted?: string;
362
+ attribute?: string;
363
+ operator?: string;
364
+ /** The value of the attribute with quotes and escapes. */
365
+ value?: string;
366
+ insensitive?: string;
367
+ spaces?: {
368
+ attribute?: Partial<Spaces>;
369
+ operator?: Partial<Spaces>;
370
+ value?: Partial<Spaces>;
371
+ insensitive?: Partial<Spaces>;
372
+ }
373
+ };
374
+ /**
375
+ * The attribute name after having been qualified with a namespace.
376
+ */
377
+ readonly qualifiedAttribute: string;
378
+
379
+ /**
380
+ * The case insensitivity flag or an empty string depending on whether this
381
+ * attribute is case insensitive.
382
+ */
383
+ readonly insensitiveFlag : 'i' | '';
384
+
385
+ /**
386
+ * Returns the attribute's value quoted such that it would be legal to use
387
+ * in the value of a css file. The original value's quotation setting
388
+ * used for stringification is left unchanged. See `setValue(value, options)`
389
+ * if you want to control the quote settings of a new value for the attribute or
390
+ * `set quoteMark(mark)` if you want to change the quote settings of the current
391
+ * value.
392
+ *
393
+ * You can also change the quotation used for the current value by setting quoteMark.
394
+ **/
395
+ getQuotedValue(options?: SmartQuoteMarkOptions): string;
396
+
397
+ /**
398
+ * Set the unescaped value with the specified quotation options. The value
399
+ * provided must not include any wrapping quote marks -- those quotes will
400
+ * be interpreted as part of the value and escaped accordingly.
401
+ * @param value
402
+ */
403
+ setValue(value: string, options?: SmartQuoteMarkOptions): void;
404
+
405
+ /**
406
+ * Intelligently select a quoteMark value based on the value's contents. If
407
+ * the value is a legal CSS ident, it will not be quoted. Otherwise a quote
408
+ * mark will be picked that minimizes the number of escapes.
409
+ *
410
+ * If there's no clear winner, the quote mark from these options is used,
411
+ * then the source quote mark (this is inverted if `preferCurrentQuoteMark` is
412
+ * true). If the quoteMark is unspecified, a double quote is used.
413
+ **/
414
+ smartQuoteMark(options: PreferredQuoteMarkOptions): QuoteMark;
415
+
416
+ /**
417
+ * Selects the preferred quote mark based on the options and the current quote mark value.
418
+ * If you want the quote mark to depend on the attribute value, call `smartQuoteMark(opts)`
419
+ * instead.
420
+ */
421
+ preferredQuoteMark(options: PreferredQuoteMarkOptions): QuoteMark
422
+
423
+ /**
424
+ * returns the offset of the attribute part specified relative to the
425
+ * start of the node of the output string.
426
+ *
427
+ * * "ns" - alias for "namespace"
428
+ * * "namespace" - the namespace if it exists.
429
+ * * "attribute" - the attribute name
430
+ * * "attributeNS" - the start of the attribute or its namespace
431
+ * * "operator" - the match operator of the attribute
432
+ * * "value" - The value (string or identifier)
433
+ * * "insensitive" - the case insensitivity flag;
434
+ * @param part One of the possible values inside an attribute.
435
+ * @returns -1 if the name is invalid or the value doesn't exist in this attribute.
436
+ */
437
+ offsetOf(part: "ns" | "namespace" | "attribute" | "attributeNS" | "operator" | "value" | "insensitive"): number;
438
+ }
439
+ function attribute(opts: AttributeOptions): Attribute;
440
+ function isAttribute(node: any): node is Attribute;
441
+
442
+ interface Pseudo extends Container {
443
+ type: "pseudo";
444
+ }
445
+ function pseudo(opts: ContainerOptions): Pseudo;
446
+ /**
447
+ * Checks wether the node is the Psuedo subtype of node.
448
+ */
449
+ function isPseudo(node: any): node is Pseudo;
450
+
451
+ /**
452
+ * Checks wether the node is, specifically, a pseudo element instead of
453
+ * pseudo class.
454
+ */
455
+ function isPseudoElement(node: any): node is Pseudo;
456
+
457
+ /**
458
+ * Checks wether the node is, specifically, a pseudo class instead of
459
+ * pseudo element.
460
+ */
461
+ function isPseudoClass(node: any): node is Pseudo;
462
+
463
+
464
+ interface Tag extends Namespace {
465
+ type: "tag";
466
+ }
467
+ function tag(opts: NamespaceOptions): Tag;
468
+ function isTag(node: any): node is Tag;
469
+
470
+ interface Comment extends Base {
471
+ type: "comment";
472
+ }
473
+ function comment(opts: NodeOptions): Comment;
474
+ function isComment(node: any): node is Comment;
475
+
476
+ interface Identifier extends Base {
477
+ type: "id";
478
+ }
479
+ function id(opts: any): any;
480
+ function isIdentifier(node: any): node is Identifier;
481
+
482
+ interface Nesting extends Base {
483
+ type: "nesting";
484
+ }
485
+ function nesting(opts: any): any;
486
+ function isNesting(node: any): node is Nesting;
487
+
488
+ interface String extends Base {
489
+ type: "string";
490
+ }
491
+ function string(opts: NodeOptions): String;
492
+ function isString(node: any): node is String;
493
+
494
+ interface Universal extends Base {
495
+ type: "universal";
496
+ }
497
+ function universal(opts?: NamespaceOptions): any;
498
+ function isUniversal(node: any): node is Universal;
499
+ }
@@ -0,0 +1,90 @@
1
+ import { ComponentBounds, Hookable } from './hooks';
2
+ import { Context } from './context';
3
+ import { ComponentInstance, ComponentState, StateBase } from './component';
4
+ import { App } from './app';
5
+ import { ID } from './util';
6
+ export interface DevtoolsPluginApi {
7
+ on: Hookable<Context>;
8
+ notifyComponentUpdate(instance?: ComponentInstance): any;
9
+ addTimelineLayer(options: TimelineLayerOptions): any;
10
+ addTimelineEvent(options: TimelineEventOptions): any;
11
+ addInspector(options: CustomInspectorOptions): any;
12
+ sendInspectorTree(inspectorId: string): any;
13
+ sendInspectorState(inspectorId: string): any;
14
+ selectInspectorNode(inspectorId: string, nodeId: string): any;
15
+ getComponentBounds(instance: ComponentInstance): Promise<ComponentBounds>;
16
+ getComponentName(instance: ComponentInstance): Promise<string>;
17
+ getComponentInstances(app: App): Promise<ComponentInstance[]>;
18
+ highlightElement(instance: ComponentInstance): any;
19
+ unhighlightElement(): any;
20
+ }
21
+ export interface AppRecord {
22
+ id: number;
23
+ name: string;
24
+ instanceMap: Map<string, ComponentInstance>;
25
+ rootInstance: ComponentInstance;
26
+ }
27
+ export interface TimelineLayerOptions<TData = any, TMeta = any> {
28
+ id: string;
29
+ label: string;
30
+ color: number;
31
+ skipScreenshots?: boolean;
32
+ groupsOnly?: boolean;
33
+ ignoreNoDurationGroups?: boolean;
34
+ screenshotOverlayRender?: (event: TimelineEvent<TData, TMeta> & ScreenshotOverlayEvent, ctx: ScreenshotOverlayRenderContext) => ScreenshotOverlayRenderResult | Promise<ScreenshotOverlayRenderResult>;
35
+ }
36
+ export interface ScreenshotOverlayEvent {
37
+ layerId: string;
38
+ renderMeta: any;
39
+ }
40
+ export interface ScreenshotOverlayRenderContext<TData = any, TMeta = any> {
41
+ screenshot: ScreenshotData;
42
+ events: (TimelineEvent<TData, TMeta> & ScreenshotOverlayEvent)[];
43
+ index: number;
44
+ }
45
+ export declare type ScreenshotOverlayRenderResult = HTMLElement | string | false;
46
+ export interface ScreenshotData {
47
+ time: number;
48
+ }
49
+ export interface TimelineEventOptions {
50
+ layerId: string;
51
+ event: TimelineEvent;
52
+ all?: boolean;
53
+ }
54
+ export interface TimelineEvent<TData = any, TMeta = any> {
55
+ time: number;
56
+ data: TData;
57
+ logType?: 'default' | 'warning' | 'error';
58
+ meta?: TMeta;
59
+ groupId?: ID;
60
+ title?: string;
61
+ subtitle?: string;
62
+ }
63
+ export interface CustomInspectorOptions {
64
+ id: string;
65
+ label: string;
66
+ icon?: string;
67
+ treeFilterPlaceholder?: string;
68
+ stateFilterPlaceholder?: string;
69
+ noSelectionText?: string;
70
+ actions?: {
71
+ icon: string;
72
+ tooltip?: string;
73
+ action: () => void | Promise<void>;
74
+ }[];
75
+ }
76
+ export interface CustomInspectorNode {
77
+ id: string;
78
+ label: string;
79
+ children?: CustomInspectorNode[];
80
+ tags?: InspectorNodeTag[];
81
+ }
82
+ export interface InspectorNodeTag {
83
+ label: string;
84
+ textColor: number;
85
+ backgroundColor: number;
86
+ tooltip?: string;
87
+ }
88
+ export interface CustomInspectorState {
89
+ [key: string]: (StateBase | Omit<ComponentState, 'type'>)[];
90
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export declare type App = any;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,76 @@
1
+ import { InspectorNodeTag } from './api';
2
+ import { ID } from './util';
3
+ export declare type ComponentInstance = any;
4
+ export interface ComponentTreeNode {
5
+ uid: ID;
6
+ id: string;
7
+ name: string;
8
+ renderKey: string | number;
9
+ inactive: boolean;
10
+ isFragment: boolean;
11
+ hasChildren: boolean;
12
+ children: ComponentTreeNode[];
13
+ positionTop?: number;
14
+ consoleId?: string;
15
+ isRouterView?: boolean;
16
+ macthedRouteSegment?: string;
17
+ tags: InspectorNodeTag[];
18
+ meta?: any;
19
+ }
20
+ export interface InspectedComponentData {
21
+ id: string;
22
+ name: string;
23
+ file: string;
24
+ state: ComponentState[];
25
+ functional?: boolean;
26
+ }
27
+ export interface StateBase {
28
+ key: string;
29
+ value: any;
30
+ editable?: boolean;
31
+ objectType?: 'ref' | 'reactive' | 'computed' | 'other';
32
+ raw?: string;
33
+ }
34
+ export interface ComponentStateBase extends StateBase {
35
+ type: string;
36
+ }
37
+ export interface ComponentPropState extends ComponentStateBase {
38
+ meta?: {
39
+ type: string;
40
+ required: boolean;
41
+ /** Vue 1 only */
42
+ mode?: 'default' | 'sync' | 'once';
43
+ };
44
+ }
45
+ export declare type ComponentBuiltinCustomStateTypes = 'function' | 'map' | 'set' | 'reference' | 'component' | 'component-definition' | 'router' | 'store';
46
+ export interface ComponentCustomState extends ComponentStateBase {
47
+ value: CustomState;
48
+ }
49
+ export declare type CustomState = {
50
+ _custom: {
51
+ type: ComponentBuiltinCustomStateTypes | string;
52
+ display?: string;
53
+ tooltip?: string;
54
+ value?: any;
55
+ abstract?: boolean;
56
+ file?: string;
57
+ uid?: number;
58
+ readOnly?: boolean;
59
+ /** Configure immediate child fields */
60
+ fields?: {
61
+ abstract?: boolean;
62
+ };
63
+ id?: any;
64
+ actions?: {
65
+ icon: string;
66
+ tooltip?: string;
67
+ action: () => void | Promise<void>;
68
+ }[];
69
+ /** internal */
70
+ _reviveId?: number;
71
+ };
72
+ };
73
+ export declare type ComponentState = ComponentStateBase | ComponentPropState | ComponentCustomState;
74
+ export interface ComponentDevtoolsOptions {
75
+ hide?: boolean;
76
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ import { AppRecord } from './api';
2
+ export interface Context {
3
+ currentTab: string;
4
+ currentAppRecord: AppRecord;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });