@poveste/vendors 0.14.0 → 0.16.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 (266) hide show
  1. package/README.md +15 -1
  2. package/iconify.d.ts +5 -0
  3. package/iconify.js +5 -0
  4. package/package.json +39 -33
  5. package/pinia.d.ts +5 -0
  6. package/pinia.js +5 -0
  7. package/vue-router.d.ts +5 -0
  8. package/vue-router.js +5 -0
  9. package/vue-use.d.ts +5 -0
  10. package/vue-use.js +5 -0
  11. package/vue.d.ts +5 -0
  12. package/vue.js +9 -0
  13. package/dist/client/b-floating-vue.d.ts +0 -3
  14. package/dist/client/b-floating-vue.js +0 -3377
  15. package/dist/client/b-iconify.d.ts +0 -1
  16. package/dist/client/b-iconify.js +0 -1883
  17. package/dist/client/b-pinia.d.ts +0 -1
  18. package/dist/client/b-pinia.js +0 -2069
  19. package/dist/client/b-scroll.d.ts +0 -2
  20. package/dist/client/b-scroll.js +0 -7
  21. package/dist/client/b-vue-router.d.ts +0 -1
  22. package/dist/client/b-vue-router.js +0 -2773
  23. package/dist/client/b-vue-use.d.ts +0 -1
  24. package/dist/client/b-vue-use.js +0 -10644
  25. package/dist/client/b-vue.d.ts +0 -1
  26. package/dist/client/b-vue.js +0 -1
  27. package/dist/client/index.js +0 -169
  28. package/dist/client/node_modules/@babel/helper-string-parser/package.json +0 -31
  29. package/dist/client/node_modules/@babel/helper-validator-identifier/package.json +0 -31
  30. package/dist/client/node_modules/@babel/parser/package.json +0 -50
  31. package/dist/client/node_modules/@babel/parser/typings/babel-parser.d.ts +0 -262
  32. package/dist/client/node_modules/@babel/types/lib/index-legacy.d.ts +0 -2796
  33. package/dist/client/node_modules/@babel/types/lib/index.d.ts +0 -3616
  34. package/dist/client/node_modules/@babel/types/package.json +0 -39
  35. package/dist/client/node_modules/@floating-ui/core/dist/floating-ui.core.d.mts +0 -535
  36. package/dist/client/node_modules/@floating-ui/core/dist/floating-ui.core.d.ts +0 -535
  37. package/dist/client/node_modules/@floating-ui/core/package.json +0 -63
  38. package/dist/client/node_modules/@floating-ui/dom/index.d.ts +0 -1
  39. package/dist/client/node_modules/@floating-ui/dom/package.json +0 -74
  40. package/dist/client/node_modules/@floating-ui/dom/src/autoUpdate.d.ts +0 -31
  41. package/dist/client/node_modules/@floating-ui/dom/src/index.d.ts +0 -11
  42. package/dist/client/node_modules/@floating-ui/dom/src/platform.d.ts +0 -2
  43. package/dist/client/node_modules/@floating-ui/dom/src/types.d.ts +0 -128
  44. package/dist/client/node_modules/@floating-ui/dom/src/utils/convertOffsetParentRelativeRectToViewportRelativeRect.d.ts +0 -6
  45. package/dist/client/node_modules/@floating-ui/dom/src/utils/getBoundingClientRect.d.ts +0 -2
  46. package/dist/client/node_modules/@floating-ui/dom/src/utils/getClippingRect.d.ts +0 -12
  47. package/dist/client/node_modules/@floating-ui/dom/src/utils/getComputedStyle.d.ts +0 -1
  48. package/dist/client/node_modules/@floating-ui/dom/src/utils/getCssDimensions.d.ts +0 -4
  49. package/dist/client/node_modules/@floating-ui/dom/src/utils/getDimensions.d.ts +0 -2
  50. package/dist/client/node_modules/@floating-ui/dom/src/utils/getDocumentElement.d.ts +0 -1
  51. package/dist/client/node_modules/@floating-ui/dom/src/utils/getDocumentRect.d.ts +0 -2
  52. package/dist/client/node_modules/@floating-ui/dom/src/utils/getNearestOverflowAncestor.d.ts +0 -1
  53. package/dist/client/node_modules/@floating-ui/dom/src/utils/getNodeName.d.ts +0 -1
  54. package/dist/client/node_modules/@floating-ui/dom/src/utils/getNodeScroll.d.ts +0 -2
  55. package/dist/client/node_modules/@floating-ui/dom/src/utils/getOffsetParent.d.ts +0 -1
  56. package/dist/client/node_modules/@floating-ui/dom/src/utils/getOverflowAncestors.d.ts +0 -3
  57. package/dist/client/node_modules/@floating-ui/dom/src/utils/getParentNode.d.ts +0 -1
  58. package/dist/client/node_modules/@floating-ui/dom/src/utils/getRectRelativeToOffsetParent.d.ts +0 -2
  59. package/dist/client/node_modules/@floating-ui/dom/src/utils/getScale.d.ts +0 -7
  60. package/dist/client/node_modules/@floating-ui/dom/src/utils/getViewportRect.d.ts +0 -2
  61. package/dist/client/node_modules/@floating-ui/dom/src/utils/getWindowScrollBarX.d.ts +0 -1
  62. package/dist/client/node_modules/@floating-ui/dom/src/utils/is.d.ts +0 -17
  63. package/dist/client/node_modules/@floating-ui/dom/src/utils/math.d.ts +0 -3
  64. package/dist/client/node_modules/@floating-ui/dom/src/utils/unwrapElement.d.ts +0 -2
  65. package/dist/client/node_modules/@floating-ui/dom/src/utils/userAgent.d.ts +0 -1
  66. package/dist/client/node_modules/@floating-ui/dom/src/utils/window.d.ts +0 -1
  67. package/dist/client/node_modules/@floating-ui/utils/dist/floating-ui.utils.d.mts +0 -105
  68. package/dist/client/node_modules/@floating-ui/utils/dist/floating-ui.utils.d.ts +0 -105
  69. package/dist/client/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.d.mts +0 -47
  70. package/dist/client/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.d.ts +0 -47
  71. package/dist/client/node_modules/@floating-ui/utils/dom/floating-ui.utils.dom.d.ts +0 -47
  72. package/dist/client/node_modules/@floating-ui/utils/dom/package.json +0 -6
  73. package/dist/client/node_modules/@floating-ui/utils/package.json +0 -70
  74. package/dist/client/node_modules/@iconify/types/package.json +0 -23
  75. package/dist/client/node_modules/@iconify/types/provider.d.ts +0 -44
  76. package/dist/client/node_modules/@iconify/types/types.d.ts +0 -272
  77. package/dist/client/node_modules/@iconify/vue/dist/iconify.d.ts +0 -475
  78. package/dist/client/node_modules/@iconify/vue/dist/offline.d.ts +0 -114
  79. package/dist/client/node_modules/@iconify/vue/offline/package.json +0 -14
  80. package/dist/client/node_modules/@iconify/vue/package.json +0 -65
  81. package/dist/client/node_modules/@jridgewell/sourcemap-codec/package.json +0 -64
  82. package/dist/client/node_modules/@jridgewell/sourcemap-codec/types/range-mappings.d.mts +0 -5
  83. package/dist/client/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.mts +0 -50
  84. package/dist/client/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.mts +0 -11
  85. package/dist/client/node_modules/@jridgewell/sourcemap-codec/types/strings.d.mts +0 -16
  86. package/dist/client/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.mts +0 -9
  87. package/dist/client/node_modules/@types/web-bluetooth/index.d.ts +0 -265
  88. package/dist/client/node_modules/@types/web-bluetooth/package.json +0 -46
  89. package/dist/client/node_modules/@vue/compiler-core/dist/compiler-core.d.ts +0 -1120
  90. package/dist/client/node_modules/@vue/compiler-core/package.json +0 -58
  91. package/dist/client/node_modules/@vue/compiler-dom/dist/compiler-dom.d.ts +0 -45
  92. package/dist/client/node_modules/@vue/compiler-dom/package.json +0 -57
  93. package/dist/client/node_modules/@vue/compiler-sfc/dist/compiler-sfc.d.ts +0 -487
  94. package/dist/client/node_modules/@vue/compiler-sfc/package.json +0 -67
  95. package/dist/client/node_modules/@vue/compiler-ssr/dist/compiler-ssr.d.ts +0 -4
  96. package/dist/client/node_modules/@vue/compiler-ssr/package.json +0 -34
  97. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/api.d.ts +0 -108
  98. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/app.d.ts +0 -1
  99. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/component.d.ts +0 -78
  100. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/context.d.ts +0 -5
  101. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/hooks.d.ts +0 -180
  102. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/index.d.ts +0 -6
  103. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/util.d.ts +0 -4
  104. package/dist/client/node_modules/@vue/devtools-api/lib/esm/const.d.ts +0 -2
  105. package/dist/client/node_modules/@vue/devtools-api/lib/esm/env.d.ts +0 -15
  106. package/dist/client/node_modules/@vue/devtools-api/lib/esm/index.d.ts +0 -18
  107. package/dist/client/node_modules/@vue/devtools-api/lib/esm/plugin.d.ts +0 -47
  108. package/dist/client/node_modules/@vue/devtools-api/lib/esm/proxy.d.ts +0 -20
  109. package/dist/client/node_modules/@vue/devtools-api/lib/esm/time.d.ts +0 -2
  110. package/dist/client/node_modules/@vue/devtools-api/package.json +0 -37
  111. package/dist/client/node_modules/@vue/reactivity/dist/reactivity.d.ts +0 -757
  112. package/dist/client/node_modules/@vue/reactivity/package.json +0 -55
  113. package/dist/client/node_modules/@vue/runtime-core/dist/runtime-core.d.ts +0 -1868
  114. package/dist/client/node_modules/@vue/runtime-core/package.json +0 -52
  115. package/dist/client/node_modules/@vue/runtime-dom/dist/runtime-dom.d.ts +0 -1452
  116. package/dist/client/node_modules/@vue/runtime-dom/package.json +0 -60
  117. package/dist/client/node_modules/@vue/server-renderer/dist/server-renderer.d.ts +0 -65
  118. package/dist/client/node_modules/@vue/server-renderer/package.json +0 -53
  119. package/dist/client/node_modules/@vue/shared/dist/shared.d.ts +0 -334
  120. package/dist/client/node_modules/@vue/shared/package.json +0 -47
  121. package/dist/client/node_modules/@vueuse/core/dist/index.d.ts +0 -5748
  122. package/dist/client/node_modules/@vueuse/core/dist/metadata.d.mts +0 -1
  123. package/dist/client/node_modules/@vueuse/core/package.json +0 -49
  124. package/dist/client/node_modules/@vueuse/metadata/dist/index.d.ts +0 -81
  125. package/dist/client/node_modules/@vueuse/metadata/package.json +0 -38
  126. package/dist/client/node_modules/@vueuse/shared/dist/index.d.ts +0 -1511
  127. package/dist/client/node_modules/@vueuse/shared/package.json +0 -42
  128. package/dist/client/node_modules/compute-scroll-into-view/dist/index.d.ts +0 -75
  129. package/dist/client/node_modules/compute-scroll-into-view/package.json +0 -82
  130. package/dist/client/node_modules/csstype/index.d.ts +0 -22569
  131. package/dist/client/node_modules/csstype/package.json +0 -70
  132. package/dist/client/node_modules/entities/decode.d.ts +0 -3
  133. package/dist/client/node_modules/entities/dist/commonjs/decode-codepoint.d.ts +0 -19
  134. package/dist/client/node_modules/entities/dist/commonjs/decode.d.ts +0 -205
  135. package/dist/client/node_modules/entities/dist/commonjs/encode.d.ts +0 -22
  136. package/dist/client/node_modules/entities/dist/commonjs/escape.d.ts +0 -46
  137. package/dist/client/node_modules/entities/dist/commonjs/generated/decode-data-html.d.ts +0 -2
  138. package/dist/client/node_modules/entities/dist/commonjs/generated/decode-data-xml.d.ts +0 -2
  139. package/dist/client/node_modules/entities/dist/commonjs/generated/encode-html.d.ts +0 -3
  140. package/dist/client/node_modules/entities/dist/commonjs/index.d.ts +0 -96
  141. package/dist/client/node_modules/entities/dist/commonjs/internal/bin-trie-flags.d.ts +0 -17
  142. package/dist/client/node_modules/entities/dist/commonjs/internal/decode-shared.d.ts +0 -2
  143. package/dist/client/node_modules/entities/dist/commonjs/internal/encode-shared.d.ts +0 -32
  144. package/dist/client/node_modules/entities/dist/commonjs/package.json +0 -3
  145. package/dist/client/node_modules/entities/dist/esm/decode-codepoint.d.ts +0 -19
  146. package/dist/client/node_modules/entities/dist/esm/decode.d.ts +0 -205
  147. package/dist/client/node_modules/entities/dist/esm/encode.d.ts +0 -22
  148. package/dist/client/node_modules/entities/dist/esm/escape.d.ts +0 -46
  149. package/dist/client/node_modules/entities/dist/esm/generated/decode-data-html.d.ts +0 -2
  150. package/dist/client/node_modules/entities/dist/esm/generated/decode-data-xml.d.ts +0 -2
  151. package/dist/client/node_modules/entities/dist/esm/generated/encode-html.d.ts +0 -3
  152. package/dist/client/node_modules/entities/dist/esm/index.d.ts +0 -96
  153. package/dist/client/node_modules/entities/dist/esm/internal/bin-trie-flags.d.ts +0 -17
  154. package/dist/client/node_modules/entities/dist/esm/internal/decode-shared.d.ts +0 -2
  155. package/dist/client/node_modules/entities/dist/esm/internal/encode-shared.d.ts +0 -32
  156. package/dist/client/node_modules/entities/dist/esm/package.json +0 -3
  157. package/dist/client/node_modules/entities/escape.d.ts +0 -3
  158. package/dist/client/node_modules/entities/package.json +0 -120
  159. package/dist/client/node_modules/estree-walker/dist/esm/package.json +0 -1
  160. package/dist/client/node_modules/estree-walker/package.json +0 -37
  161. package/dist/client/node_modules/estree-walker/src/package.json +0 -1
  162. package/dist/client/node_modules/estree-walker/types/async.d.ts +0 -53
  163. package/dist/client/node_modules/estree-walker/types/index.d.ts +0 -56
  164. package/dist/client/node_modules/estree-walker/types/sync.d.ts +0 -53
  165. package/dist/client/node_modules/estree-walker/types/walker.d.ts +0 -37
  166. package/dist/client/node_modules/floating-vue/dist/components/Dropdown.d.ts +0 -398
  167. package/dist/client/node_modules/floating-vue/dist/components/Menu.d.ts +0 -398
  168. package/dist/client/node_modules/floating-vue/dist/components/Popper.d.ts +0 -495
  169. package/dist/client/node_modules/floating-vue/dist/components/Popper.vue.d.ts +0 -474
  170. package/dist/client/node_modules/floating-vue/dist/components/PopperContent.vue.d.ts +0 -37
  171. package/dist/client/node_modules/floating-vue/dist/components/PopperMethods.d.ts +0 -9
  172. package/dist/client/node_modules/floating-vue/dist/components/PopperWrapper.vue.d.ts +0 -414
  173. package/dist/client/node_modules/floating-vue/dist/components/ThemeClass.d.ts +0 -6
  174. package/dist/client/node_modules/floating-vue/dist/components/Tooltip.d.ts +0 -398
  175. package/dist/client/node_modules/floating-vue/dist/components/TooltipDirective.vue.d.ts +0 -67
  176. package/dist/client/node_modules/floating-vue/dist/config.d.ts +0 -11
  177. package/dist/client/node_modules/floating-vue/dist/directives/v-close-popper.d.ts +0 -13
  178. package/dist/client/node_modules/floating-vue/dist/directives/v-tooltip.d.ts +0 -27
  179. package/dist/client/node_modules/floating-vue/dist/directives/v-tooltip.spec.d.ts +0 -1
  180. package/dist/client/node_modules/floating-vue/dist/index.d.ts +0 -2239
  181. package/dist/client/node_modules/floating-vue/dist/util/assign-deep.d.ts +0 -1
  182. package/dist/client/node_modules/floating-vue/dist/util/env.d.ts +0 -2
  183. package/dist/client/node_modules/floating-vue/dist/util/events.d.ts +0 -14
  184. package/dist/client/node_modules/floating-vue/dist/util/frame.d.ts +0 -1
  185. package/dist/client/node_modules/floating-vue/dist/util/lang.d.ts +0 -1
  186. package/dist/client/node_modules/floating-vue/dist/util/popper.d.ts +0 -3
  187. package/dist/client/node_modules/floating-vue/package.json +0 -80
  188. package/dist/client/node_modules/magic-string/dist/magic-string.cjs.d.ts +0 -289
  189. package/dist/client/node_modules/magic-string/dist/magic-string.es.d.mts +0 -289
  190. package/dist/client/node_modules/magic-string/package.json +0 -67
  191. package/dist/client/node_modules/nanoid/async/index.d.ts +0 -56
  192. package/dist/client/node_modules/nanoid/async/package.json +0 -12
  193. package/dist/client/node_modules/nanoid/index.d.ts +0 -91
  194. package/dist/client/node_modules/nanoid/non-secure/index.d.ts +0 -33
  195. package/dist/client/node_modules/nanoid/non-secure/package.json +0 -6
  196. package/dist/client/node_modules/nanoid/package.json +0 -89
  197. package/dist/client/node_modules/nanoid/url-alphabet/package.json +0 -6
  198. package/dist/client/node_modules/picocolors/package.json +0 -25
  199. package/dist/client/node_modules/picocolors/picocolors.d.ts +0 -5
  200. package/dist/client/node_modules/picocolors/types.d.ts +0 -51
  201. package/dist/client/node_modules/pinia/dist/pinia.d.ts +0 -1074
  202. package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/index.d.ts +0 -22
  203. package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v2/index.d.ts +0 -33
  204. package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v2.7/index.d.ts +0 -38
  205. package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v3/index.d.ts +0 -22
  206. package/dist/client/node_modules/pinia/node_modules/vue-demi/package.json +0 -47
  207. package/dist/client/node_modules/pinia/package.json +0 -96
  208. package/dist/client/node_modules/postcss/lib/at-rule.d.ts +0 -139
  209. package/dist/client/node_modules/postcss/lib/comment.d.ts +0 -67
  210. package/dist/client/node_modules/postcss/lib/container.d.ts +0 -474
  211. package/dist/client/node_modules/postcss/lib/css-syntax-error.d.ts +0 -247
  212. package/dist/client/node_modules/postcss/lib/declaration.d.ts +0 -150
  213. package/dist/client/node_modules/postcss/lib/document.d.ts +0 -68
  214. package/dist/client/node_modules/postcss/lib/fromJSON.d.ts +0 -9
  215. package/dist/client/node_modules/postcss/lib/input.d.ts +0 -226
  216. package/dist/client/node_modules/postcss/lib/lazy-result.d.ts +0 -189
  217. package/dist/client/node_modules/postcss/lib/list.d.ts +0 -60
  218. package/dist/client/node_modules/postcss/lib/no-work-result.d.ts +0 -45
  219. package/dist/client/node_modules/postcss/lib/node.d.ts +0 -555
  220. package/dist/client/node_modules/postcss/lib/parse.d.ts +0 -9
  221. package/dist/client/node_modules/postcss/lib/postcss.d.mts +0 -66
  222. package/dist/client/node_modules/postcss/lib/postcss.d.ts +0 -464
  223. package/dist/client/node_modules/postcss/lib/previous-map.d.ts +0 -80
  224. package/dist/client/node_modules/postcss/lib/processor.d.ts +0 -114
  225. package/dist/client/node_modules/postcss/lib/result.d.ts +0 -204
  226. package/dist/client/node_modules/postcss/lib/root.d.ts +0 -86
  227. package/dist/client/node_modules/postcss/lib/rule.d.ts +0 -126
  228. package/dist/client/node_modules/postcss/lib/stringifier.d.ts +0 -45
  229. package/dist/client/node_modules/postcss/lib/stringify.d.ts +0 -9
  230. package/dist/client/node_modules/postcss/lib/warning.d.ts +0 -146
  231. package/dist/client/node_modules/postcss/package.json +0 -88
  232. package/dist/client/node_modules/scroll-into-view-if-needed/dist/index.d.ts +0 -79
  233. package/dist/client/node_modules/scroll-into-view-if-needed/package.json +0 -80
  234. package/dist/client/node_modules/source-map-js/lib/source-map-consumer.d.ts +0 -1
  235. package/dist/client/node_modules/source-map-js/lib/source-map-generator.d.ts +0 -1
  236. package/dist/client/node_modules/source-map-js/lib/source-node.d.ts +0 -1
  237. package/dist/client/node_modules/source-map-js/package.json +0 -71
  238. package/dist/client/node_modules/source-map-js/source-map.d.ts +0 -104
  239. package/dist/client/node_modules/vue/compiler-sfc/index.d.mts +0 -1
  240. package/dist/client/node_modules/vue/compiler-sfc/index.d.ts +0 -1
  241. package/dist/client/node_modules/vue/compiler-sfc/package.json +0 -4
  242. package/dist/client/node_modules/vue/dist/vue.d.mts +0 -7
  243. package/dist/client/node_modules/vue/dist/vue.d.ts +0 -7
  244. package/dist/client/node_modules/vue/jsx-runtime/index.d.ts +0 -25
  245. package/dist/client/node_modules/vue/jsx-runtime/package.json +0 -5
  246. package/dist/client/node_modules/vue/jsx.d.ts +0 -22
  247. package/dist/client/node_modules/vue/package.json +0 -112
  248. package/dist/client/node_modules/vue/server-renderer/index.d.mts +0 -1
  249. package/dist/client/node_modules/vue/server-renderer/index.d.ts +0 -1
  250. package/dist/client/node_modules/vue/server-renderer/package.json +0 -4
  251. package/dist/client/node_modules/vue-resize/package.json +0 -77
  252. package/dist/client/node_modules/vue-router/dist/experimental/index.d.mts +0 -38
  253. package/dist/client/node_modules/vue-router/dist/router-CWoNjPRp.d.mts +0 -1973
  254. package/dist/client/node_modules/vue-router/dist/vue-router.d.mts +0 -361
  255. package/dist/client/node_modules/vue-router/package.json +0 -153
  256. package/dist/client/node_modules/vue-router/vue-router-auto-resolver.d.mts +0 -22
  257. package/dist/client/node_modules/vue-router/vue-router-auto-routes.d.ts +0 -4
  258. package/dist/client/node_modules/vue-router/vue-router-auto.d.ts +0 -1
  259. package/dist/client/vue.runtime.esm-bundler.js +0 -13564
  260. package/src/client/b-floating-vue.ts +0 -5
  261. package/src/client/b-iconify.ts +0 -1
  262. package/src/client/b-pinia.ts +0 -1
  263. package/src/client/b-scroll.ts +0 -4
  264. package/src/client/b-vue-router.ts +0 -1
  265. package/src/client/b-vue-use.ts +0 -1
  266. package/src/client/b-vue.ts +0 -1
@@ -1,474 +0,0 @@
1
- import AtRule from './at-rule.js'
2
- import Comment from './comment.js'
3
- import Declaration from './declaration.js'
4
- import Node, { ChildNode, ChildProps, NodeProps } from './node.js'
5
- import { Root } from './postcss.js'
6
- import Rule from './rule.js'
7
-
8
- declare namespace Container {
9
- export type ContainerWithChildren<Child extends Node = ChildNode> = {
10
- nodes: Child[]
11
- } & (AtRule | Root | Rule)
12
-
13
- export interface ValueOptions {
14
- /**
15
- * String that’s used to narrow down values and speed up the regexp search.
16
- */
17
- fast?: string
18
-
19
- /**
20
- * An array of property names.
21
- */
22
- props?: readonly string[]
23
- }
24
-
25
- export interface ContainerProps extends NodeProps {
26
- nodes?: readonly (ChildProps | Node)[]
27
- }
28
-
29
- /**
30
- * All types that can be passed into container methods to create or add a new
31
- * child node.
32
- */
33
- export type NewChild =
34
- | ChildProps
35
- | Node
36
- | readonly ChildProps[]
37
- | readonly Node[]
38
- | readonly string[]
39
- | string
40
- | undefined
41
-
42
- export { Container_ as default }
43
- }
44
-
45
- /**
46
- * The `Root`, `AtRule`, and `Rule` container nodes
47
- * inherit some common methods to help work with their children.
48
- *
49
- * Note that all containers can store any content. If you write a rule inside
50
- * a rule, PostCSS will parse it.
51
- */
52
- declare abstract class Container_<Child extends Node = ChildNode> extends Node {
53
- /**
54
- * An array containing the container’s children.
55
- *
56
- * ```js
57
- * const root = postcss.parse('a { color: black }')
58
- * root.nodes.length //=> 1
59
- * root.nodes[0].selector //=> 'a'
60
- * root.nodes[0].nodes[0].prop //=> 'color'
61
- * ```
62
- */
63
- nodes: Child[] | undefined
64
-
65
- /**
66
- * The container’s first child.
67
- *
68
- * ```js
69
- * rule.first === rules.nodes[0]
70
- * ```
71
- */
72
- get first(): Child | undefined
73
-
74
- /**
75
- * The container’s last child.
76
- *
77
- * ```js
78
- * rule.last === rule.nodes[rule.nodes.length - 1]
79
- * ```
80
- */
81
- get last(): Child | undefined
82
- /**
83
- * Inserts new nodes to the end of the container.
84
- *
85
- * ```js
86
- * const decl1 = new Declaration({ prop: 'color', value: 'black' })
87
- * const decl2 = new Declaration({ prop: 'background-color', value: 'white' })
88
- * rule.append(decl1, decl2)
89
- *
90
- * root.append({ name: 'charset', params: '"UTF-8"' }) // at-rule
91
- * root.append({ selector: 'a' }) // rule
92
- * rule.append({ prop: 'color', value: 'black' }) // declaration
93
- * rule.append({ text: 'Comment' }) // comment
94
- *
95
- * root.append('a {}')
96
- * root.first.append('color: black; z-index: 1')
97
- * ```
98
- *
99
- * @param nodes New nodes.
100
- * @return This node for methods chain.
101
- */
102
- append(...nodes: Container.NewChild[]): this
103
- assign(overrides: Container.ContainerProps | object): this
104
- clone(overrides?: Partial<Container.ContainerProps>): this
105
-
106
- cloneAfter(overrides?: Partial<Container.ContainerProps>): this
107
-
108
- cloneBefore(overrides?: Partial<Container.ContainerProps>): this
109
- /**
110
- * Iterates through the container’s immediate children,
111
- * calling `callback` for each child.
112
- *
113
- * Returning `false` in the callback will break iteration.
114
- *
115
- * This method only iterates through the container’s immediate children.
116
- * If you need to recursively iterate through all the container’s descendant
117
- * nodes, use `Container#walk`.
118
- *
119
- * Unlike the for `{}`-cycle or `Array#forEach` this iterator is safe
120
- * if you are mutating the array of child nodes during iteration.
121
- * PostCSS will adjust the current index to match the mutations.
122
- *
123
- * ```js
124
- * const root = postcss.parse('a { color: black; z-index: 1 }')
125
- * const rule = root.first
126
- *
127
- * for (const decl of rule.nodes) {
128
- * decl.cloneBefore({ prop: '-webkit-' + decl.prop })
129
- * // Cycle will be infinite, because cloneBefore moves the current node
130
- * // to the next index
131
- * }
132
- *
133
- * rule.each(decl => {
134
- * decl.cloneBefore({ prop: '-webkit-' + decl.prop })
135
- * // Will be executed only for color and z-index
136
- * })
137
- * ```
138
- *
139
- * @param callback Iterator receives each node and index.
140
- * @return Returns `false` if iteration was broke.
141
- */
142
- each(
143
- callback: (node: Child, index: number) => false | void
144
- ): false | undefined
145
-
146
- /**
147
- * Returns `true` if callback returns `true`
148
- * for all of the container’s children.
149
- *
150
- * ```js
151
- * const noPrefixes = rule.every(i => i.prop[0] !== '-')
152
- * ```
153
- *
154
- * @param condition Iterator returns true or false.
155
- * @return Is every child pass condition.
156
- */
157
- every(
158
- condition: (node: Child, index: number, nodes: Child[]) => boolean
159
- ): boolean
160
- /**
161
- * Returns a `child`’s index within the `Container#nodes` array.
162
- *
163
- * ```js
164
- * rule.index( rule.nodes[2] ) //=> 2
165
- * ```
166
- *
167
- * @param child Child of the current container.
168
- * @return Child index.
169
- */
170
- index(child: Child | number): number
171
-
172
- /**
173
- * Insert new node after old node within the container.
174
- *
175
- * @param oldNode Child or child’s index.
176
- * @param newNode New node.
177
- * @return This node for methods chain.
178
- */
179
- insertAfter(oldNode: Child | number, newNode: Container.NewChild): this
180
-
181
- /**
182
- * Insert new node before old node within the container.
183
- *
184
- * ```js
185
- * rule.insertBefore(decl, decl.clone({ prop: '-webkit-' + decl.prop }))
186
- * ```
187
- *
188
- * @param oldNode Child or child’s index.
189
- * @param newNode New node.
190
- * @return This node for methods chain.
191
- */
192
- insertBefore(oldNode: Child | number, newNode: Container.NewChild): this
193
- /**
194
- * Inserts new nodes to the start of the container.
195
- *
196
- * ```js
197
- * const decl1 = new Declaration({ prop: 'color', value: 'black' })
198
- * const decl2 = new Declaration({ prop: 'background-color', value: 'white' })
199
- * rule.prepend(decl1, decl2)
200
- *
201
- * root.append({ name: 'charset', params: '"UTF-8"' }) // at-rule
202
- * root.append({ selector: 'a' }) // rule
203
- * rule.append({ prop: 'color', value: 'black' }) // declaration
204
- * rule.append({ text: 'Comment' }) // comment
205
- *
206
- * root.append('a {}')
207
- * root.first.append('color: black; z-index: 1')
208
- * ```
209
- *
210
- * @param nodes New nodes.
211
- * @return This node for methods chain.
212
- */
213
- prepend(...nodes: Container.NewChild[]): this
214
-
215
- /**
216
- * Add child to the end of the node.
217
- *
218
- * ```js
219
- * rule.push(new Declaration({ prop: 'color', value: 'black' }))
220
- * ```
221
- *
222
- * @param child New node.
223
- * @return This node for methods chain.
224
- */
225
- push(child: Child): this
226
-
227
- /**
228
- * Removes all children from the container
229
- * and cleans their parent properties.
230
- *
231
- * ```js
232
- * rule.removeAll()
233
- * rule.nodes.length //=> 0
234
- * ```
235
- *
236
- * @return This node for methods chain.
237
- */
238
- removeAll(): this
239
-
240
- /**
241
- * Removes node from the container and cleans the parent properties
242
- * from the node and its children.
243
- *
244
- * ```js
245
- * rule.nodes.length //=> 5
246
- * rule.removeChild(decl)
247
- * rule.nodes.length //=> 4
248
- * decl.parent //=> undefined
249
- * ```
250
- *
251
- * @param child Child or child’s index.
252
- * @return This node for methods chain.
253
- */
254
- removeChild(child: Child | number): this
255
-
256
- replaceValues(
257
- pattern: RegExp | string,
258
- replaced: { (substring: string, ...args: any[]): string } | string
259
- ): this
260
- /**
261
- * Passes all declaration values within the container that match pattern
262
- * through callback, replacing those values with the returned result
263
- * of callback.
264
- *
265
- * This method is useful if you are using a custom unit or function
266
- * and need to iterate through all values.
267
- *
268
- * ```js
269
- * root.replaceValues(/\d+rem/, { fast: 'rem' }, string => {
270
- * return 15 * parseInt(string) + 'px'
271
- * })
272
- * ```
273
- *
274
- * @param pattern Replace pattern.
275
- * @param {object} options Options to speed up the search.
276
- * @param replaced String to replace pattern or callback
277
- * that returns a new value. The callback
278
- * will receive the same arguments
279
- * as those passed to a function parameter
280
- * of `String#replace`.
281
- * @return This node for methods chain.
282
- */
283
- replaceValues(
284
- pattern: RegExp | string,
285
- options: Container.ValueOptions,
286
- replaced: { (substring: string, ...args: any[]): string } | string
287
- ): this
288
-
289
- /**
290
- * Returns `true` if callback returns `true` for (at least) one
291
- * of the container’s children.
292
- *
293
- * ```js
294
- * const hasPrefix = rule.some(i => i.prop[0] === '-')
295
- * ```
296
- *
297
- * @param condition Iterator returns true or false.
298
- * @return Is some child pass condition.
299
- */
300
- some(
301
- condition: (node: Child, index: number, nodes: Child[]) => boolean
302
- ): boolean
303
-
304
- /**
305
- * Traverses the container’s descendant nodes, calling callback
306
- * for each node.
307
- *
308
- * Like container.each(), this method is safe to use
309
- * if you are mutating arrays during iteration.
310
- *
311
- * If you only need to iterate through the container’s immediate children,
312
- * use `Container#each`.
313
- *
314
- * ```js
315
- * root.walk(node => {
316
- * // Traverses all descendant nodes.
317
- * })
318
- * ```
319
- *
320
- * @param callback Iterator receives each node and index.
321
- * @return Returns `false` if iteration was broke.
322
- */
323
- walk(
324
- callback: (node: ChildNode, index: number) => false | void
325
- ): false | undefined
326
-
327
- /**
328
- * Traverses the container’s descendant nodes, calling callback
329
- * for each at-rule node.
330
- *
331
- * If you pass a filter, iteration will only happen over at-rules
332
- * that have matching names.
333
- *
334
- * Like `Container#each`, this method is safe
335
- * to use if you are mutating arrays during iteration.
336
- *
337
- * ```js
338
- * root.walkAtRules(rule => {
339
- * if (isOld(rule.name)) rule.remove()
340
- * })
341
- *
342
- * let first = false
343
- * root.walkAtRules('charset', rule => {
344
- * if (!first) {
345
- * first = true
346
- * } else {
347
- * rule.remove()
348
- * }
349
- * })
350
- * ```
351
- *
352
- * @param name String or regular expression to filter at-rules by name.
353
- * @param callback Iterator receives each node and index.
354
- * @return Returns `false` if iteration was broke.
355
- */
356
- walkAtRules(
357
- nameFilter: RegExp | string,
358
- callback: (atRule: AtRule, index: number) => false | void
359
- ): false | undefined
360
- walkAtRules(
361
- callback: (atRule: AtRule, index: number) => false | void
362
- ): false | undefined
363
-
364
- /**
365
- * Traverses the container’s descendant nodes, calling callback
366
- * for each comment node.
367
- *
368
- * Like `Container#each`, this method is safe
369
- * to use if you are mutating arrays during iteration.
370
- *
371
- * ```js
372
- * root.walkComments(comment => {
373
- * comment.remove()
374
- * })
375
- * ```
376
- *
377
- * @param callback Iterator receives each node and index.
378
- * @return Returns `false` if iteration was broke.
379
- */
380
- walkComments(
381
- callback: (comment: Comment, indexed: number) => false | void
382
- ): false | undefined
383
-
384
- /**
385
- * Traverses the container’s descendant nodes, calling callback
386
- * for each declaration node.
387
- *
388
- * If you pass a filter, iteration will only happen over declarations
389
- * with matching properties.
390
- *
391
- * ```js
392
- * root.walkDecls(decl => {
393
- * checkPropertySupport(decl.prop)
394
- * })
395
- *
396
- * root.walkDecls('border-radius', decl => {
397
- * decl.remove()
398
- * })
399
- *
400
- * root.walkDecls(/^background/, decl => {
401
- * decl.value = takeFirstColorFromGradient(decl.value)
402
- * })
403
- * ```
404
- *
405
- * Like `Container#each`, this method is safe
406
- * to use if you are mutating arrays during iteration.
407
- *
408
- * @param prop String or regular expression to filter declarations
409
- * by property name.
410
- * @param callback Iterator receives each node and index.
411
- * @return Returns `false` if iteration was broke.
412
- */
413
- walkDecls(
414
- propFilter: RegExp | string,
415
- callback: (decl: Declaration, index: number) => false | void
416
- ): false | undefined
417
- walkDecls(
418
- callback: (decl: Declaration, index: number) => false | void
419
- ): false | undefined
420
- /**
421
- * Traverses the container’s descendant nodes, calling callback
422
- * for each rule node.
423
- *
424
- * If you pass a filter, iteration will only happen over rules
425
- * with matching selectors.
426
- *
427
- * Like `Container#each`, this method is safe
428
- * to use if you are mutating arrays during iteration.
429
- *
430
- * ```js
431
- * const selectors = []
432
- * root.walkRules(rule => {
433
- * selectors.push(rule.selector)
434
- * })
435
- * console.log(`Your CSS uses ${ selectors.length } selectors`)
436
- * ```
437
- *
438
- * @param selector String or regular expression to filter rules by selector.
439
- * @param callback Iterator receives each node and index.
440
- * @return Returns `false` if iteration was broke.
441
- */
442
- walkRules(
443
- selectorFilter: RegExp | string,
444
- callback: (rule: Rule, index: number) => false | void
445
- ): false | undefined
446
- walkRules(
447
- callback: (rule: Rule, index: number) => false | void
448
- ): false | undefined
449
- /**
450
- * An internal method that converts a {@link NewChild} into a list of actual
451
- * child nodes that can then be added to this container.
452
- *
453
- * This ensures that the nodes' parent is set to this container, that they use
454
- * the correct prototype chain, and that they're marked as dirty.
455
- *
456
- * @param mnodes The new node or nodes to add.
457
- * @param sample A node from whose raws the new node's `before` raw should be
458
- * taken.
459
- * @param type This should be set to `'prepend'` if the new nodes will be
460
- * inserted at the beginning of the container.
461
- * @hidden
462
- */
463
- protected normalize(
464
- nodes: Container.NewChild,
465
- sample: Node | undefined,
466
- type?: 'prepend' | false
467
- ): Child[]
468
- }
469
-
470
- declare class Container<
471
- Child extends Node = ChildNode
472
- > extends Container_<Child> {}
473
-
474
- export = Container
@@ -1,247 +0,0 @@
1
- import { FilePosition } from './input.js'
2
-
3
- declare namespace CssSyntaxError {
4
- /**
5
- * A position that is part of a range.
6
- */
7
- export interface RangePosition {
8
- /**
9
- * The column number in the input.
10
- */
11
- column: number
12
-
13
- /**
14
- * The line number in the input.
15
- */
16
- line: number
17
- }
18
-
19
- export { CssSyntaxError_ as default }
20
- }
21
-
22
- /**
23
- * The CSS parser throws this error for broken CSS.
24
- *
25
- * Custom parsers can throw this error for broken custom syntax using
26
- * the `Node#error` method.
27
- *
28
- * PostCSS will use the input source map to detect the original error location.
29
- * If you wrote a Sass file, compiled it to CSS and then parsed it with PostCSS,
30
- * PostCSS will show the original position in the Sass file.
31
- *
32
- * If you need the position in the PostCSS input
33
- * (e.g., to debug the previous compiler), use `error.input.file`.
34
- *
35
- * ```js
36
- * // Raising error from plugin
37
- * throw node.error('Unknown variable', { plugin: 'postcss-vars' })
38
- * ```
39
- *
40
- * ```js
41
- * // Catching and checking syntax error
42
- * try {
43
- * postcss.parse('a{')
44
- * } catch (error) {
45
- * if (error.name === 'CssSyntaxError') {
46
- * error //=> CssSyntaxError
47
- * }
48
- * }
49
- * ```
50
- */
51
- declare class CssSyntaxError_ extends Error {
52
- /**
53
- * Source column of the error.
54
- *
55
- * ```js
56
- * error.column //=> 1
57
- * error.input.column //=> 4
58
- * ```
59
- *
60
- * PostCSS will use the input source map to detect the original location.
61
- * If you need the position in the PostCSS input, use `error.input.column`.
62
- */
63
- column?: number
64
-
65
- /**
66
- * Source column of the error's end, exclusive. Provided if the error pertains
67
- * to a range.
68
- *
69
- * ```js
70
- * error.endColumn //=> 1
71
- * error.input.endColumn //=> 4
72
- * ```
73
- *
74
- * PostCSS will use the input source map to detect the original location.
75
- * If you need the position in the PostCSS input, use `error.input.endColumn`.
76
- */
77
- endColumn?: number
78
-
79
- /**
80
- * Source line of the error's end, exclusive. Provided if the error pertains
81
- * to a range.
82
- *
83
- * ```js
84
- * error.endLine //=> 3
85
- * error.input.endLine //=> 4
86
- * ```
87
- *
88
- * PostCSS will use the input source map to detect the original location.
89
- * If you need the position in the PostCSS input, use `error.input.endLine`.
90
- */
91
- endLine?: number
92
-
93
- /**
94
- * Absolute path to the broken file.
95
- *
96
- * ```js
97
- * error.file //=> 'a.sass'
98
- * error.input.file //=> 'a.css'
99
- * ```
100
- *
101
- * PostCSS will use the input source map to detect the original location.
102
- * If you need the position in the PostCSS input, use `error.input.file`.
103
- */
104
- file?: string
105
-
106
- /**
107
- * Input object with PostCSS internal information
108
- * about input file. If input has source map
109
- * from previous tool, PostCSS will use origin
110
- * (for example, Sass) source. You can use this
111
- * object to get PostCSS input source.
112
- *
113
- * ```js
114
- * error.input.file //=> 'a.css'
115
- * error.file //=> 'a.sass'
116
- * ```
117
- */
118
- input?: FilePosition
119
-
120
- /**
121
- * Source line of the error.
122
- *
123
- * ```js
124
- * error.line //=> 2
125
- * error.input.line //=> 4
126
- * ```
127
- *
128
- * PostCSS will use the input source map to detect the original location.
129
- * If you need the position in the PostCSS input, use `error.input.line`.
130
- */
131
- line?: number
132
-
133
- /**
134
- * Full error text in the GNU error format
135
- * with plugin, file, line and column.
136
- *
137
- * ```js
138
- * error.message //=> 'a.css:1:1: Unclosed block'
139
- * ```
140
- */
141
- message: string
142
-
143
- /**
144
- * Always equal to `'CssSyntaxError'`. You should always check error type
145
- * by `error.name === 'CssSyntaxError'`
146
- * instead of `error instanceof CssSyntaxError`,
147
- * because npm could have several PostCSS versions.
148
- *
149
- * ```js
150
- * if (error.name === 'CssSyntaxError') {
151
- * error //=> CssSyntaxError
152
- * }
153
- * ```
154
- */
155
- name: 'CssSyntaxError'
156
-
157
- /**
158
- * Plugin name, if error came from plugin.
159
- *
160
- * ```js
161
- * error.plugin //=> 'postcss-vars'
162
- * ```
163
- */
164
- plugin?: string
165
-
166
- /**
167
- * Error message.
168
- *
169
- * ```js
170
- * error.message //=> 'Unclosed block'
171
- * ```
172
- */
173
- reason: string
174
-
175
- /**
176
- * Source code of the broken file.
177
- *
178
- * ```js
179
- * error.source //=> 'a { b {} }'
180
- * error.input.source //=> 'a b { }'
181
- * ```
182
- */
183
- source?: string
184
-
185
- stack: string
186
-
187
- /**
188
- * Instantiates a CSS syntax error. Can be instantiated for a single position
189
- * or for a range.
190
- * @param message Error message.
191
- * @param lineOrStartPos If for a single position, the line number, or if for
192
- * a range, the inclusive start position of the error.
193
- * @param columnOrEndPos If for a single position, the column number, or if for
194
- * a range, the exclusive end position of the error.
195
- * @param source Source code of the broken file.
196
- * @param file Absolute path to the broken file.
197
- * @param plugin PostCSS plugin name, if error came from plugin.
198
- */
199
- constructor(
200
- message: string,
201
- lineOrStartPos?: CssSyntaxError.RangePosition | number,
202
- columnOrEndPos?: CssSyntaxError.RangePosition | number,
203
- source?: string,
204
- file?: string,
205
- plugin?: string
206
- )
207
-
208
- /**
209
- * Returns a few lines of CSS source that caused the error.
210
- *
211
- * If the CSS has an input source map without `sourceContent`,
212
- * this method will return an empty string.
213
- *
214
- * ```js
215
- * error.showSourceCode() //=> " 4 | }
216
- * // 5 | a {
217
- * // > 6 | bad
218
- * // | ^
219
- * // 7 | }
220
- * // 8 | b {"
221
- * ```
222
- *
223
- * @param color Whether arrow will be colored red by terminal
224
- * color codes. By default, PostCSS will detect
225
- * color support by `process.stdout.isTTY`
226
- * and `process.env.NODE_DISABLE_COLORS`.
227
- * @return Few lines of CSS source that caused the error.
228
- */
229
- showSourceCode(color?: boolean): string
230
-
231
- /**
232
- * Returns error position, message and source code of the broken part.
233
- *
234
- * ```js
235
- * error.toString() //=> "CssSyntaxError: app.css:1:1: Unclosed block
236
- * // > 1 | a {
237
- * // | ^"
238
- * ```
239
- *
240
- * @return Error position, message and source code.
241
- */
242
- toString(): string
243
- }
244
-
245
- declare class CssSyntaxError extends CssSyntaxError_ {}
246
-
247
- export = CssSyntaxError