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