@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,150 @@
1
+ import { ContainerWithChildren } from './container.js'
2
+ import Node from './node.js'
3
+
4
+ declare namespace Declaration {
5
+ export interface DeclarationRaws extends Record<string, unknown> {
6
+ /**
7
+ * The space symbols before the node. It also stores `*`
8
+ * and `_` symbols before the declaration (IE hack).
9
+ */
10
+ before?: string
11
+
12
+ /**
13
+ * The symbols between the property and value for declarations.
14
+ */
15
+ between?: string
16
+
17
+ /**
18
+ * The content of the important statement, if it is not just `!important`.
19
+ */
20
+ important?: string
21
+
22
+ /**
23
+ * Declaration value with comments.
24
+ */
25
+ value?: {
26
+ raw: string
27
+ value: string
28
+ }
29
+ }
30
+
31
+ export interface DeclarationProps {
32
+ /** Whether the declaration has an `!important` annotation. */
33
+ important?: boolean
34
+ /** Name of the declaration. */
35
+ prop: string
36
+ /** Information used to generate byte-to-byte equal node string as it was in the origin input. */
37
+ raws?: DeclarationRaws
38
+ /** Value of the declaration. */
39
+ value: string
40
+ }
41
+
42
+ export { Declaration_ as default }
43
+ }
44
+
45
+ /**
46
+ * It represents a class that handles
47
+ * [CSS declarations](https://developer.mozilla.org/en-US/docs/Web/CSS/Syntax#css_declarations)
48
+ *
49
+ * ```js
50
+ * Once (root, { Declaration }) {
51
+ * const color = new Declaration({ prop: 'color', value: 'black' })
52
+ * root.append(color)
53
+ * }
54
+ * ```
55
+ *
56
+ * ```js
57
+ * const root = postcss.parse('a { color: black }')
58
+ * const decl = root.first?.first
59
+ *
60
+ * decl.type //=> 'decl'
61
+ * decl.toString() //=> ' color: black'
62
+ * ```
63
+ */
64
+ declare class Declaration_ extends Node {
65
+ parent: ContainerWithChildren | undefined
66
+ raws: Declaration.DeclarationRaws
67
+
68
+ type: 'decl'
69
+
70
+ /**
71
+ * It represents a specificity of the declaration.
72
+ *
73
+ * If true, the CSS declaration will have an
74
+ * [important](https://developer.mozilla.org/en-US/docs/Web/CSS/important)
75
+ * specifier.
76
+ *
77
+ * ```js
78
+ * const root = postcss.parse('a { color: black !important; color: red }')
79
+ *
80
+ * root.first.first.important //=> true
81
+ * root.first.last.important //=> undefined
82
+ * ```
83
+ */
84
+ get important(): boolean
85
+ set important(value: boolean)
86
+
87
+ /**
88
+ * The property name for a CSS declaration.
89
+ *
90
+ * ```js
91
+ * const root = postcss.parse('a { color: black }')
92
+ * const decl = root.first.first
93
+ *
94
+ * decl.prop //=> 'color'
95
+ * ```
96
+ */
97
+ get prop(): string
98
+
99
+ set prop(value: string)
100
+
101
+ /**
102
+ * The property value for a CSS declaration.
103
+ *
104
+ * Any CSS comments inside the value string will be filtered out.
105
+ * CSS comments present in the source value will be available in
106
+ * the `raws` property.
107
+ *
108
+ * Assigning new `value` would ignore the comments in `raws`
109
+ * property while compiling node to string.
110
+ *
111
+ * ```js
112
+ * const root = postcss.parse('a { color: black }')
113
+ * const decl = root.first.first
114
+ *
115
+ * decl.value //=> 'black'
116
+ * ```
117
+ */
118
+ get value(): string
119
+ set value(value: string)
120
+
121
+ /**
122
+ * It represents a getter that returns `true` if a declaration starts with
123
+ * `--` or `$`, which are used to declare variables in CSS and SASS/SCSS.
124
+ *
125
+ * ```js
126
+ * const root = postcss.parse(':root { --one: 1 }')
127
+ * const one = root.first.first
128
+ *
129
+ * one.variable //=> true
130
+ * ```
131
+ *
132
+ * ```js
133
+ * const root = postcss.parse('$one: 1')
134
+ * const one = root.first
135
+ *
136
+ * one.variable //=> true
137
+ * ```
138
+ */
139
+ get variable(): boolean
140
+ constructor(defaults?: Declaration.DeclarationProps)
141
+
142
+ assign(overrides: Declaration.DeclarationProps | object): this
143
+ clone(overrides?: Partial<Declaration.DeclarationProps>): this
144
+ cloneAfter(overrides?: Partial<Declaration.DeclarationProps>): this
145
+ cloneBefore(overrides?: Partial<Declaration.DeclarationProps>): this
146
+ }
147
+
148
+ declare class Declaration extends Declaration_ {}
149
+
150
+ export = Declaration
@@ -0,0 +1,68 @@
1
+ import Container, { ContainerProps } from './container.js'
2
+ import { ProcessOptions } from './postcss.js'
3
+ import Result from './result.js'
4
+ import Root from './root.js'
5
+
6
+ declare namespace Document {
7
+ export interface DocumentProps extends ContainerProps {
8
+ nodes?: readonly Root[]
9
+
10
+ /**
11
+ * Information to generate byte-to-byte equal node string as it was
12
+ * in the origin input.
13
+ *
14
+ * Every parser saves its own properties.
15
+ */
16
+ raws?: Record<string, any>
17
+ }
18
+
19
+ export { Document_ as default }
20
+ }
21
+
22
+ /**
23
+ * Represents a file and contains all its parsed nodes.
24
+ *
25
+ * **Experimental:** some aspects of this node could change within minor
26
+ * or patch version releases.
27
+ *
28
+ * ```js
29
+ * const document = htmlParser(
30
+ * '<html><style>a{color:black}</style><style>b{z-index:2}</style>'
31
+ * )
32
+ * document.type //=> 'document'
33
+ * document.nodes.length //=> 2
34
+ * ```
35
+ */
36
+ declare class Document_ extends Container<Root> {
37
+ nodes: Root[]
38
+ parent: undefined
39
+ type: 'document'
40
+
41
+ constructor(defaults?: Document.DocumentProps)
42
+
43
+ assign(overrides: Document.DocumentProps | object): this
44
+ clone(overrides?: Partial<Document.DocumentProps>): this
45
+ cloneAfter(overrides?: Partial<Document.DocumentProps>): this
46
+ cloneBefore(overrides?: Partial<Document.DocumentProps>): this
47
+
48
+ /**
49
+ * Returns a `Result` instance representing the document’s CSS roots.
50
+ *
51
+ * ```js
52
+ * const root1 = postcss.parse(css1, { from: 'a.css' })
53
+ * const root2 = postcss.parse(css2, { from: 'b.css' })
54
+ * const document = postcss.document()
55
+ * document.append(root1)
56
+ * document.append(root2)
57
+ * const result = document.toResult({ to: 'all.css', map: true })
58
+ * ```
59
+ *
60
+ * @param opts Options.
61
+ * @return Result with current document’s CSS.
62
+ */
63
+ toResult(options?: ProcessOptions): Result
64
+ }
65
+
66
+ declare class Document extends Document_ {}
67
+
68
+ export = Document
@@ -0,0 +1,9 @@
1
+ import { JSONHydrator } from './postcss.js'
2
+
3
+ interface FromJSON extends JSONHydrator {
4
+ default: FromJSON
5
+ }
6
+
7
+ declare let fromJSON: FromJSON
8
+
9
+ export = fromJSON
@@ -0,0 +1,226 @@
1
+ import { CssSyntaxError, ProcessOptions } from './postcss.js'
2
+ import PreviousMap from './previous-map.js'
3
+
4
+ declare namespace Input {
5
+ export interface FilePosition {
6
+ /**
7
+ * Column of inclusive start position in source file.
8
+ */
9
+ column: number
10
+
11
+ /**
12
+ * Column of exclusive end position in source file.
13
+ */
14
+ endColumn?: number
15
+
16
+ /**
17
+ * Line of exclusive end position in source file.
18
+ */
19
+ endLine?: number
20
+
21
+ /**
22
+ * Offset of exclusive end position in source file.
23
+ */
24
+ endOffset?: number
25
+
26
+ /**
27
+ * Absolute path to the source file.
28
+ */
29
+ file?: string
30
+
31
+ /**
32
+ * Line of inclusive start position in source file.
33
+ */
34
+ line: number
35
+
36
+ /**
37
+ * Offset of inclusive start position in source file.
38
+ */
39
+ offset: number
40
+
41
+ /**
42
+ * Source code.
43
+ */
44
+ source?: string
45
+
46
+ /**
47
+ * URL for the source file.
48
+ */
49
+ url: string
50
+ }
51
+
52
+ export { Input_ as default }
53
+ }
54
+
55
+ /**
56
+ * Represents the source CSS.
57
+ *
58
+ * ```js
59
+ * const root = postcss.parse(css, { from: file })
60
+ * const input = root.source.input
61
+ * ```
62
+ */
63
+ declare class Input_ {
64
+ /**
65
+ * Input CSS source.
66
+ *
67
+ * ```js
68
+ * const input = postcss.parse('a{}', { from: file }).input
69
+ * input.css //=> "a{}"
70
+ * ```
71
+ */
72
+ css: string
73
+
74
+ /**
75
+ * Input source with support for non-CSS documents.
76
+ *
77
+ * ```js
78
+ * const input = postcss.parse('a{}', { from: file, document: '<style>a {}</style>' }).input
79
+ * input.document //=> "<style>a {}</style>"
80
+ * input.css //=> "a{}"
81
+ * ```
82
+ */
83
+ document: string
84
+
85
+ /**
86
+ * The absolute path to the CSS source file defined
87
+ * with the `from` option.
88
+ *
89
+ * ```js
90
+ * const root = postcss.parse(css, { from: 'a.css' })
91
+ * root.source.input.file //=> '/home/ai/a.css'
92
+ * ```
93
+ */
94
+ file?: string
95
+
96
+ /**
97
+ * The flag to indicate whether or not the source code has Unicode BOM.
98
+ */
99
+ hasBOM: boolean
100
+
101
+ /**
102
+ * The unique ID of the CSS source. It will be created if `from` option
103
+ * is not provided (because PostCSS does not know the file path).
104
+ *
105
+ * ```js
106
+ * const root = postcss.parse(css)
107
+ * root.source.input.file //=> undefined
108
+ * root.source.input.id //=> "<input css 8LZeVF>"
109
+ * ```
110
+ */
111
+ id?: string
112
+
113
+ /**
114
+ * The input source map passed from a compilation step before PostCSS
115
+ * (for example, from Sass compiler).
116
+ *
117
+ * ```js
118
+ * root.source.input.map.consumer().sources //=> ['a.sass']
119
+ * ```
120
+ */
121
+ map: PreviousMap
122
+
123
+ /**
124
+ * The CSS source identifier. Contains `Input#file` if the user
125
+ * set the `from` option, or `Input#id` if they did not.
126
+ *
127
+ * ```js
128
+ * const root = postcss.parse(css, { from: 'a.css' })
129
+ * root.source.input.from //=> "/home/ai/a.css"
130
+ *
131
+ * const root = postcss.parse(css)
132
+ * root.source.input.from //=> "<input css 1>"
133
+ * ```
134
+ */
135
+ get from(): string
136
+
137
+ /**
138
+ * @param css Input CSS source.
139
+ * @param opts Process options.
140
+ */
141
+ constructor(css: string, opts?: ProcessOptions)
142
+
143
+ /**
144
+ * Returns `CssSyntaxError` with information about the error and its position.
145
+ */
146
+ error(
147
+ message: string,
148
+ start:
149
+ | {
150
+ column: number
151
+ line: number
152
+ }
153
+ | {
154
+ offset: number
155
+ },
156
+ end:
157
+ | {
158
+ column: number
159
+ line: number
160
+ }
161
+ | {
162
+ offset: number
163
+ },
164
+ opts?: { plugin?: CssSyntaxError['plugin'] }
165
+ ): CssSyntaxError
166
+ error(
167
+ message: string,
168
+ line: number,
169
+ column: number,
170
+ opts?: { plugin?: CssSyntaxError['plugin'] }
171
+ ): CssSyntaxError
172
+ error(
173
+ message: string,
174
+ offset: number,
175
+ opts?: { plugin?: CssSyntaxError['plugin'] }
176
+ ): CssSyntaxError
177
+
178
+ /**
179
+ * Converts source line and column to offset.
180
+ *
181
+ * @param line Source line.
182
+ * @param column Source column.
183
+ * @return Source offset.
184
+ */
185
+ fromLineAndColumn(line: number, column: number): number
186
+
187
+ /**
188
+ * Converts source offset to line and column.
189
+ *
190
+ * @param offset Source offset.
191
+ */
192
+ fromOffset(offset: number): { col: number; line: number } | null
193
+
194
+ /**
195
+ * Reads the input source map and returns a symbol position
196
+ * in the input source (e.g., in a Sass file that was compiled
197
+ * to CSS before being passed to PostCSS). Optionally takes an
198
+ * end position, exclusive.
199
+ *
200
+ * ```js
201
+ * root.source.input.origin(1, 1) //=> { file: 'a.css', line: 3, column: 1 }
202
+ * root.source.input.origin(1, 1, 1, 4)
203
+ * //=> { file: 'a.css', line: 3, column: 1, endLine: 3, endColumn: 4 }
204
+ * ```
205
+ *
206
+ * @param line Line for inclusive start position in input CSS.
207
+ * @param column Column for inclusive start position in input CSS.
208
+ * @param endLine Line for exclusive end position in input CSS.
209
+ * @param endColumn Column for exclusive end position in input CSS.
210
+ *
211
+ * @return Position in input source.
212
+ */
213
+ origin(
214
+ line: number,
215
+ column: number,
216
+ endLine?: number,
217
+ endColumn?: number
218
+ ): false | Input.FilePosition
219
+
220
+ /** Converts this to a JSON-friendly object representation. */
221
+ toJSON(): object
222
+ }
223
+
224
+ declare class Input extends Input_ {}
225
+
226
+ export = Input
@@ -0,0 +1,189 @@
1
+ import Document from './document.js'
2
+ import { SourceMap } from './postcss.js'
3
+ import Processor from './processor.js'
4
+ import Result, { Message, ResultOptions } from './result.js'
5
+ import Root from './root.js'
6
+ import Warning from './warning.js'
7
+
8
+ declare namespace LazyResult {
9
+ export { LazyResult_ as default }
10
+ }
11
+
12
+ /**
13
+ * A Promise proxy for the result of PostCSS transformations.
14
+ *
15
+ * A `LazyResult` instance is returned by `Processor#process`.
16
+ *
17
+ * ```js
18
+ * const lazy = postcss([autoprefixer]).process(css)
19
+ * ```
20
+ */
21
+ declare class LazyResult_<RootNode = Document | Root> implements PromiseLike<
22
+ Result<RootNode>
23
+ > {
24
+ /**
25
+ * Processes input CSS through synchronous and asynchronous plugins
26
+ * and calls onRejected for each error thrown in any plugin.
27
+ *
28
+ * It implements standard Promise API.
29
+ *
30
+ * ```js
31
+ * postcss([autoprefixer]).process(css).then(result => {
32
+ * console.log(result.css)
33
+ * }).catch(error => {
34
+ * console.error(error)
35
+ * })
36
+ * ```
37
+ */
38
+ catch: Promise<Result<RootNode>>['catch']
39
+
40
+ /**
41
+ * Processes input CSS through synchronous and asynchronous plugins
42
+ * and calls onFinally on any error or when all plugins will finish work.
43
+ *
44
+ * It implements standard Promise API.
45
+ *
46
+ * ```js
47
+ * postcss([autoprefixer]).process(css).finally(() => {
48
+ * console.log('processing ended')
49
+ * })
50
+ * ```
51
+ */
52
+ finally: Promise<Result<RootNode>>['finally']
53
+
54
+ /**
55
+ * Processes input CSS through synchronous and asynchronous plugins
56
+ * and calls `onFulfilled` with a Result instance. If a plugin throws
57
+ * an error, the `onRejected` callback will be executed.
58
+ *
59
+ * It implements standard Promise API.
60
+ *
61
+ * ```js
62
+ * postcss([autoprefixer]).process(css, { from: cssPath }).then(result => {
63
+ * console.log(result.css)
64
+ * })
65
+ * ```
66
+ */
67
+ then: Promise<Result<RootNode>>['then']
68
+
69
+ /**
70
+ * An alias for the `css` property. Use it with syntaxes
71
+ * that generate non-CSS output.
72
+ *
73
+ * This property will only work with synchronous plugins.
74
+ * If the processor contains any asynchronous plugins
75
+ * it will throw an error.
76
+ *
77
+ * PostCSS runners should always use `LazyResult#then`.
78
+ */
79
+ get content(): string
80
+
81
+ /**
82
+ * Processes input CSS through synchronous plugins, converts `Root`
83
+ * to a CSS string and returns `Result#css`.
84
+ *
85
+ * This property will only work with synchronous plugins.
86
+ * If the processor contains any asynchronous plugins
87
+ * it will throw an error.
88
+ *
89
+ * PostCSS runners should always use `LazyResult#then`.
90
+ */
91
+ get css(): string
92
+
93
+ /**
94
+ * Processes input CSS through synchronous plugins
95
+ * and returns `Result#map`.
96
+ *
97
+ * This property will only work with synchronous plugins.
98
+ * If the processor contains any asynchronous plugins
99
+ * it will throw an error.
100
+ *
101
+ * PostCSS runners should always use `LazyResult#then`.
102
+ */
103
+ get map(): SourceMap
104
+
105
+ /**
106
+ * Processes input CSS through synchronous plugins
107
+ * and returns `Result#messages`.
108
+ *
109
+ * This property will only work with synchronous plugins. If the processor
110
+ * contains any asynchronous plugins it will throw an error.
111
+ *
112
+ * PostCSS runners should always use `LazyResult#then`.
113
+ */
114
+ get messages(): Message[]
115
+
116
+ /**
117
+ * Options from the `Processor#process` call.
118
+ */
119
+ get opts(): ResultOptions
120
+
121
+ /**
122
+ * Returns a `Processor` instance, which will be used
123
+ * for CSS transformations.
124
+ */
125
+ get processor(): Processor
126
+
127
+ /**
128
+ * Processes input CSS through synchronous plugins
129
+ * and returns `Result#root`.
130
+ *
131
+ * This property will only work with synchronous plugins. If the processor
132
+ * contains any asynchronous plugins it will throw an error.
133
+ *
134
+ * PostCSS runners should always use `LazyResult#then`.
135
+ */
136
+ get root(): RootNode
137
+
138
+ /**
139
+ * Returns the default string description of an object.
140
+ * Required to implement the Promise interface.
141
+ */
142
+ get [Symbol.toStringTag](): string
143
+
144
+ /**
145
+ * @param processor Processor used for this transformation.
146
+ * @param css CSS to parse and transform.
147
+ * @param opts Options from the `Processor#process` or `Root#toResult`.
148
+ */
149
+ constructor(processor: Processor, css: string, opts: ResultOptions)
150
+
151
+ /**
152
+ * Run plugin in async way and return `Result`.
153
+ *
154
+ * @return Result with output content.
155
+ */
156
+ async(): Promise<Result<RootNode>>
157
+
158
+ /**
159
+ * Run plugin in sync way and return `Result`.
160
+ *
161
+ * @return Result with output content.
162
+ */
163
+ sync(): Result<RootNode>
164
+
165
+ /**
166
+ * Alias for the `LazyResult#css` property.
167
+ *
168
+ * ```js
169
+ * lazy + '' === lazy.css
170
+ * ```
171
+ *
172
+ * @return Output CSS.
173
+ */
174
+ toString(): string
175
+
176
+ /**
177
+ * Processes input CSS through synchronous plugins
178
+ * and calls `Result#warnings`.
179
+ *
180
+ * @return Warnings from plugins.
181
+ */
182
+ warnings(): Warning[]
183
+ }
184
+
185
+ declare class LazyResult<
186
+ RootNode = Document | Root
187
+ > extends LazyResult_<RootNode> {}
188
+
189
+ export = LazyResult
@@ -0,0 +1,60 @@
1
+ declare namespace list {
2
+ type List = {
3
+ /**
4
+ * Safely splits comma-separated values (such as those for `transition-*`
5
+ * and `background` properties).
6
+ *
7
+ * ```js
8
+ * Once (root, { list }) {
9
+ * list.comma('black, linear-gradient(white, black)')
10
+ * //=> ['black', 'linear-gradient(white, black)']
11
+ * }
12
+ * ```
13
+ *
14
+ * @param str Comma-separated values.
15
+ * @return Split values.
16
+ */
17
+ comma(str: string): string[]
18
+
19
+ default: List
20
+
21
+ /**
22
+ * Safely splits space-separated values (such as those for `background`,
23
+ * `border-radius`, and other shorthand properties).
24
+ *
25
+ * ```js
26
+ * Once (root, { list }) {
27
+ * list.space('1px calc(10% + 1px)') //=> ['1px', 'calc(10% + 1px)']
28
+ * }
29
+ * ```
30
+ *
31
+ * @param str Space-separated values.
32
+ * @return Split values.
33
+ */
34
+ space(str: string): string[]
35
+
36
+ /**
37
+ * Safely splits values.
38
+ *
39
+ * ```js
40
+ * Once (root, { list }) {
41
+ * list.split('1px calc(10% + 1px)', [' ', '\n', '\t']) //=> ['1px', 'calc(10% + 1px)']
42
+ * }
43
+ * ```
44
+ *
45
+ * @param string separated values.
46
+ * @param separators array of separators.
47
+ * @param last boolean indicator.
48
+ * @return Split values.
49
+ */
50
+ split(
51
+ string: string,
52
+ separators: readonly string[],
53
+ last: boolean
54
+ ): string[]
55
+ }
56
+ }
57
+
58
+ declare let list: list.List
59
+
60
+ export = list