@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,204 @@
1
+ import {
2
+ Document,
3
+ Node,
4
+ Plugin,
5
+ ProcessOptions,
6
+ Root,
7
+ SourceMap,
8
+ TransformCallback,
9
+ Warning,
10
+ WarningOptions
11
+ } from './postcss.js'
12
+ import Processor from './processor.js'
13
+
14
+ declare namespace Result {
15
+ export interface Message {
16
+ [others: string]: any
17
+
18
+ /**
19
+ * Source PostCSS plugin name.
20
+ */
21
+ plugin?: string
22
+
23
+ /**
24
+ * Message type.
25
+ */
26
+ type: string
27
+ }
28
+
29
+ export interface ResultOptions extends ProcessOptions {
30
+ /**
31
+ * The CSS node that was the source of the warning.
32
+ */
33
+ node?: Node
34
+
35
+ /**
36
+ * Name of plugin that created this warning. `Result#warn` will fill it
37
+ * automatically with `Plugin#postcssPlugin` value.
38
+ */
39
+ plugin?: string
40
+ }
41
+
42
+ export { Result_ as default }
43
+ }
44
+
45
+ /**
46
+ * Provides the result of the PostCSS transformations.
47
+ *
48
+ * A Result instance is returned by `LazyResult#then`
49
+ * or `Root#toResult` methods.
50
+ *
51
+ * ```js
52
+ * postcss([autoprefixer]).process(css).then(result => {
53
+ * console.log(result.css)
54
+ * })
55
+ * ```
56
+ *
57
+ * ```js
58
+ * const result2 = postcss.parse(css).toResult()
59
+ * ```
60
+ */
61
+ declare class Result_<RootNode = Document | Root> {
62
+ /**
63
+ * A CSS string representing of `Result#root`.
64
+ *
65
+ * ```js
66
+ * postcss.parse('a{}').toResult().css //=> "a{}"
67
+ * ```
68
+ */
69
+ css: string
70
+
71
+ /**
72
+ * Last runned PostCSS plugin.
73
+ */
74
+ lastPlugin: Plugin | TransformCallback
75
+
76
+ /**
77
+ * An instance of `SourceMapGenerator` class from the `source-map` library,
78
+ * representing changes to the `Result#root` instance.
79
+ *
80
+ * ```js
81
+ * result.map.toJSON() //=> { version: 3, file: 'a.css', … }
82
+ * ```
83
+ *
84
+ * ```js
85
+ * if (result.map) {
86
+ * fs.writeFileSync(result.opts.to + '.map', result.map.toString())
87
+ * }
88
+ * ```
89
+ */
90
+ map: SourceMap
91
+
92
+ /**
93
+ * Contains messages from plugins (e.g., warnings or custom messages).
94
+ * Each message should have type and plugin properties.
95
+ *
96
+ * ```js
97
+ * AtRule: {
98
+ * import: (atRule, { result }) {
99
+ * const importedFile = parseImport(atRule)
100
+ * result.messages.push({
101
+ * type: 'dependency',
102
+ * plugin: 'postcss-import',
103
+ * file: importedFile,
104
+ * parent: result.opts.from
105
+ * })
106
+ * }
107
+ * }
108
+ * ```
109
+ */
110
+ messages: Result.Message[]
111
+
112
+ /**
113
+ * Options from the `Processor#process` or `Root#toResult` call
114
+ * that produced this Result instance.]
115
+ *
116
+ * ```js
117
+ * root.toResult(opts).opts === opts
118
+ * ```
119
+ */
120
+ opts: Result.ResultOptions
121
+
122
+ /**
123
+ * The Processor instance used for this transformation.
124
+ *
125
+ * ```js
126
+ * for (const plugin of result.processor.plugins) {
127
+ * if (plugin.postcssPlugin === 'postcss-bad') {
128
+ * throw 'postcss-good is incompatible with postcss-bad'
129
+ * }
130
+ * })
131
+ * ```
132
+ */
133
+ processor: Processor
134
+
135
+ /**
136
+ * Root node after all transformations.
137
+ *
138
+ * ```js
139
+ * root.toResult().root === root
140
+ * ```
141
+ */
142
+ root: RootNode
143
+
144
+ /**
145
+ * An alias for the `Result#css` property.
146
+ * Use it with syntaxes that generate non-CSS output.
147
+ *
148
+ * ```js
149
+ * result.css === result.content
150
+ * ```
151
+ */
152
+ get content(): string
153
+
154
+ /**
155
+ * @param processor Processor used for this transformation.
156
+ * @param root Root node after all transformations.
157
+ * @param opts Options from the `Processor#process` or `Root#toResult`.
158
+ */
159
+ constructor(processor: Processor, root: RootNode, opts: Result.ResultOptions)
160
+
161
+ /**
162
+ * Returns for `Result#css` content.
163
+ *
164
+ * ```js
165
+ * result + '' === result.css
166
+ * ```
167
+ *
168
+ * @return String representing of `Result#root`.
169
+ */
170
+ toString(): string
171
+
172
+ /**
173
+ * Creates an instance of `Warning` and adds it to `Result#messages`.
174
+ *
175
+ * ```js
176
+ * if (decl.important) {
177
+ * result.warn('Avoid !important', { node: decl, word: '!important' })
178
+ * }
179
+ * ```
180
+ *
181
+ * @param text Warning message.
182
+ * @param opts Warning options.
183
+ * @return Created warning.
184
+ */
185
+ warn(message: string, options?: WarningOptions): Warning
186
+
187
+ /**
188
+ * Returns warnings from plugins. Filters `Warning` instances
189
+ * from `Result#messages`.
190
+ *
191
+ * ```js
192
+ * result.warnings().forEach(warn => {
193
+ * console.warn(warn.toString())
194
+ * })
195
+ * ```
196
+ *
197
+ * @return Warnings from plugins.
198
+ */
199
+ warnings(): Warning[]
200
+ }
201
+
202
+ declare class Result<RootNode = Document | Root> extends Result_<RootNode> {}
203
+
204
+ export = Result
@@ -0,0 +1,86 @@
1
+ import Container, { ContainerProps } from './container.js'
2
+ import Document from './document.js'
3
+ import { ProcessOptions } from './postcss.js'
4
+ import Result from './result.js'
5
+
6
+ declare namespace Root {
7
+ export interface RootRaws extends Record<string, any> {
8
+ /**
9
+ * The space symbols after the last child to the end of file.
10
+ */
11
+ after?: string
12
+
13
+ /**
14
+ * Non-CSS code after `Root`, when `Root` is inside `Document`.
15
+ *
16
+ * **Experimental:** some aspects of this node could change within minor
17
+ * or patch version releases.
18
+ */
19
+ codeAfter?: string
20
+
21
+ /**
22
+ * Non-CSS code before `Root`, when `Root` is inside `Document`.
23
+ *
24
+ * **Experimental:** some aspects of this node could change within minor
25
+ * or patch version releases.
26
+ */
27
+ codeBefore?: string
28
+
29
+ /**
30
+ * Is the last child has an (optional) semicolon.
31
+ */
32
+ semicolon?: boolean
33
+ }
34
+
35
+ export interface RootProps extends ContainerProps {
36
+ /**
37
+ * Information used to generate byte-to-byte equal node string
38
+ * as it was in the origin input.
39
+ * */
40
+ raws?: RootRaws
41
+ }
42
+
43
+ export { Root_ as default }
44
+ }
45
+
46
+ /**
47
+ * Represents a CSS file and contains all its parsed nodes.
48
+ *
49
+ * ```js
50
+ * const root = postcss.parse('a{color:black} b{z-index:2}')
51
+ * root.type //=> 'root'
52
+ * root.nodes.length //=> 2
53
+ * ```
54
+ */
55
+ declare class Root_ extends Container {
56
+ nodes: NonNullable<Container['nodes']>
57
+ parent: Document | undefined
58
+ raws: Root.RootRaws
59
+ type: 'root'
60
+
61
+ constructor(defaults?: Root.RootProps)
62
+
63
+ assign(overrides: object | Root.RootProps): this
64
+ clone(overrides?: Partial<Root.RootProps>): this
65
+ cloneAfter(overrides?: Partial<Root.RootProps>): this
66
+ cloneBefore(overrides?: Partial<Root.RootProps>): this
67
+
68
+ /**
69
+ * Returns a `Result` instance representing the root’s CSS.
70
+ *
71
+ * ```js
72
+ * const root1 = postcss.parse(css1, { from: 'a.css' })
73
+ * const root2 = postcss.parse(css2, { from: 'b.css' })
74
+ * root1.append(root2)
75
+ * const result = root1.toResult({ to: 'all.css', map: true })
76
+ * ```
77
+ *
78
+ * @param options Options.
79
+ * @return Result with current root’s CSS.
80
+ */
81
+ toResult(options?: ProcessOptions): Result
82
+ }
83
+
84
+ declare class Root extends Root_ {}
85
+
86
+ export = Root
@@ -0,0 +1,126 @@
1
+ import Container, {
2
+ ContainerProps,
3
+ ContainerWithChildren
4
+ } from './container.js'
5
+
6
+ declare namespace Rule {
7
+ export interface RuleRaws extends Record<string, unknown> {
8
+ /**
9
+ * The space symbols after the last child of the node to the end of the node.
10
+ */
11
+ after?: string
12
+
13
+ /**
14
+ * The space symbols before the node. It also stores `*`
15
+ * and `_` symbols before the declaration (IE hack).
16
+ */
17
+ before?: string
18
+
19
+ /**
20
+ * The symbols between the selector and `{` for rules.
21
+ */
22
+ between?: string
23
+
24
+ /**
25
+ * Contains the text of the semicolon after this rule.
26
+ */
27
+ ownSemicolon?: string
28
+
29
+ /**
30
+ * The rule’s selector with comments.
31
+ */
32
+ selector?: {
33
+ raw: string
34
+ value: string
35
+ }
36
+
37
+ /**
38
+ * Contains `true` if the last child has an (optional) semicolon.
39
+ */
40
+ semicolon?: boolean
41
+ }
42
+
43
+ export type RuleProps = {
44
+ /** Information used to generate byte-to-byte equal node string as it was in the origin input. */
45
+ raws?: RuleRaws
46
+ } & (
47
+ | {
48
+ /** Selector or selectors of the rule. */
49
+ selector: string
50
+ selectors?: never
51
+ }
52
+ | {
53
+ selector?: never
54
+ /** Selectors of the rule represented as an array of strings. */
55
+ selectors: readonly string[]
56
+ }
57
+ ) &
58
+ ContainerProps
59
+
60
+ export { Rule_ as default }
61
+ }
62
+
63
+ /**
64
+ * Represents a CSS rule: a selector followed by a declaration block.
65
+ *
66
+ * ```js
67
+ * Once (root, { Rule }) {
68
+ * let a = new Rule({ selector: 'a' })
69
+ * a.append(…)
70
+ * root.append(a)
71
+ * }
72
+ * ```
73
+ *
74
+ * ```js
75
+ * const root = postcss.parse('a{}')
76
+ * const rule = root.first
77
+ * rule.type //=> 'rule'
78
+ * rule.toString() //=> 'a{}'
79
+ * ```
80
+ */
81
+ declare class Rule_ extends Container {
82
+ nodes: NonNullable<Container['nodes']>
83
+ parent: ContainerWithChildren | undefined
84
+ raws: Rule.RuleRaws
85
+ type: 'rule'
86
+ /**
87
+ * The rule’s full selector represented as a string.
88
+ *
89
+ * ```js
90
+ * const root = postcss.parse('a, b { }')
91
+ * const rule = root.first
92
+ * rule.selector //=> 'a, b'
93
+ * ```
94
+ */
95
+ get selector(): string
96
+
97
+ set selector(value: string)
98
+ /**
99
+ * An array containing the rule’s individual selectors.
100
+ * Groups of selectors are split at commas.
101
+ *
102
+ * ```js
103
+ * const root = postcss.parse('a, b { }')
104
+ * const rule = root.first
105
+ *
106
+ * rule.selector //=> 'a, b'
107
+ * rule.selectors //=> ['a', 'b']
108
+ *
109
+ * rule.selectors = ['a', 'strong']
110
+ * rule.selector //=> 'a, strong'
111
+ * ```
112
+ */
113
+ get selectors(): string[]
114
+
115
+ set selectors(values: string[])
116
+
117
+ constructor(defaults?: Rule.RuleProps)
118
+ assign(overrides: object | Rule.RuleProps): this
119
+ clone(overrides?: Partial<Rule.RuleProps>): this
120
+ cloneAfter(overrides?: Partial<Rule.RuleProps>): this
121
+ cloneBefore(overrides?: Partial<Rule.RuleProps>): this
122
+ }
123
+
124
+ declare class Rule extends Rule_ {}
125
+
126
+ export = Rule
@@ -0,0 +1,45 @@
1
+ import {
2
+ AnyNode,
3
+ AtRule,
4
+ Builder,
5
+ Comment,
6
+ Container,
7
+ Declaration,
8
+ Document,
9
+ Root,
10
+ Rule
11
+ } from './postcss.js'
12
+
13
+ declare namespace Stringifier {
14
+ export { Stringifier_ as default }
15
+ }
16
+
17
+ declare class Stringifier_ {
18
+ builder: Builder
19
+ constructor(builder: Builder)
20
+ atrule(node: AtRule, semicolon?: boolean): void
21
+ beforeAfter(node: AnyNode, detect: 'after' | 'before'): string
22
+ block(node: AnyNode, start: string): void
23
+ body(node: Container): void
24
+ comment(node: Comment): void
25
+ decl(node: Declaration, semicolon?: boolean): void
26
+ document(node: Document): void
27
+ raw(node: AnyNode, own: null | string, detect?: string): boolean | string
28
+ rawBeforeClose(root: Root): string | undefined
29
+ rawBeforeComment(root: Root, node: Comment): string | undefined
30
+ rawBeforeDecl(root: Root, node: Declaration): string | undefined
31
+ rawBeforeOpen(root: Root): string | undefined
32
+ rawBeforeRule(root: Root): string | undefined
33
+ rawColon(root: Root): string | undefined
34
+ rawEmptyBody(root: Root): string | undefined
35
+ rawIndent(root: Root): string | undefined
36
+ rawSemicolon(root: Root): boolean | undefined
37
+ rawValue(node: AnyNode, prop: string): number | string
38
+ root(node: Root): void
39
+ rule(node: Rule): void
40
+ stringify(node: AnyNode, semicolon?: boolean): void
41
+ }
42
+
43
+ declare class Stringifier extends Stringifier_ {}
44
+
45
+ export = Stringifier
@@ -0,0 +1,9 @@
1
+ import { Stringifier } from './postcss.js'
2
+
3
+ interface Stringify extends Stringifier {
4
+ default: Stringify
5
+ }
6
+
7
+ declare let stringify: Stringify
8
+
9
+ export = stringify
@@ -0,0 +1,146 @@
1
+ import { RangePosition } from './css-syntax-error.js'
2
+ import Node from './node.js'
3
+
4
+ declare namespace Warning {
5
+ export interface WarningOptions {
6
+ /**
7
+ * End position, exclusive, in CSS node string that caused the warning.
8
+ */
9
+ end?: RangePosition
10
+
11
+ /**
12
+ * End index, exclusive, in CSS node string that caused the warning.
13
+ */
14
+ endIndex?: number
15
+
16
+ /**
17
+ * Start index, inclusive, in CSS node string that caused the warning.
18
+ */
19
+ index?: number
20
+
21
+ /**
22
+ * CSS node that caused the warning.
23
+ */
24
+ node?: Node
25
+
26
+ /**
27
+ * Name of the plugin that created this warning. `Result#warn` fills
28
+ * this property automatically.
29
+ */
30
+ plugin?: string
31
+
32
+ /**
33
+ * Start position, inclusive, in CSS node string that caused the warning.
34
+ */
35
+ start?: RangePosition
36
+
37
+ /**
38
+ * Word in CSS source that caused the warning.
39
+ */
40
+ word?: string
41
+ }
42
+
43
+ export { Warning_ as default }
44
+ }
45
+
46
+ /**
47
+ * Represents a plugin’s warning. It can be created using `Node#warn`.
48
+ *
49
+ * ```js
50
+ * if (decl.important) {
51
+ * decl.warn(result, 'Avoid !important', { word: '!important' })
52
+ * }
53
+ * ```
54
+ */
55
+ declare class Warning_ {
56
+ /**
57
+ * Column for inclusive start position in the input file with this warning’s source.
58
+ *
59
+ * ```js
60
+ * warning.column //=> 6
61
+ * ```
62
+ */
63
+ column: number
64
+
65
+ /**
66
+ * Column for exclusive end position in the input file with this warning’s source.
67
+ *
68
+ * ```js
69
+ * warning.endColumn //=> 4
70
+ * ```
71
+ */
72
+ endColumn?: number
73
+
74
+ /**
75
+ * Line for exclusive end position in the input file with this warning’s source.
76
+ *
77
+ * ```js
78
+ * warning.endLine //=> 6
79
+ * ```
80
+ */
81
+ endLine?: number
82
+
83
+ /**
84
+ * Line for inclusive start position in the input file with this warning’s source.
85
+ *
86
+ * ```js
87
+ * warning.line //=> 5
88
+ * ```
89
+ */
90
+ line: number
91
+
92
+ /**
93
+ * Contains the CSS node that caused the warning.
94
+ *
95
+ * ```js
96
+ * warning.node.toString() //=> 'color: white !important'
97
+ * ```
98
+ */
99
+ node: Node
100
+
101
+ /**
102
+ * The name of the plugin that created this warning.
103
+ * When you call `Node#warn` it will fill this property automatically.
104
+ *
105
+ * ```js
106
+ * warning.plugin //=> 'postcss-important'
107
+ * ```
108
+ */
109
+ plugin: string
110
+
111
+ /**
112
+ * The warning message.
113
+ *
114
+ * ```js
115
+ * warning.text //=> 'Try to avoid !important'
116
+ * ```
117
+ */
118
+ text: string
119
+
120
+ /**
121
+ * Type to filter warnings from `Result#messages`.
122
+ * Always equal to `"warning"`.
123
+ */
124
+ type: 'warning'
125
+
126
+ /**
127
+ * @param text Warning message.
128
+ * @param opts Warning options.
129
+ */
130
+ constructor(text: string, opts?: Warning.WarningOptions)
131
+
132
+ /**
133
+ * Returns a warning position and message.
134
+ *
135
+ * ```js
136
+ * warning.toString() //=> 'postcss-lint:a.css:10:14: Avoid !important'
137
+ * ```
138
+ *
139
+ * @return Warning position and message.
140
+ */
141
+ toString(): string
142
+ }
143
+
144
+ declare class Warning extends Warning_ {}
145
+
146
+ export = Warning
@@ -0,0 +1,88 @@
1
+ {
2
+ "name": "postcss",
3
+ "version": "8.5.25",
4
+ "description": "Tool for transforming styles with JS plugins",
5
+ "keywords": [
6
+ "css",
7
+ "manipulation",
8
+ "parser",
9
+ "postcss",
10
+ "preprocessor",
11
+ "rework",
12
+ "source map",
13
+ "transform",
14
+ "transpiler"
15
+ ],
16
+ "homepage": "https://postcss.org/",
17
+ "bugs": {
18
+ "url": "https://github.com/postcss/postcss/issues"
19
+ },
20
+ "license": "MIT",
21
+ "author": "Andrey Sitnik <andrey@sitnik.es>",
22
+ "repository": "postcss/postcss",
23
+ "funding": [
24
+ {
25
+ "type": "opencollective",
26
+ "url": "https://opencollective.com/postcss/"
27
+ },
28
+ {
29
+ "type": "tidelift",
30
+ "url": "https://tidelift.com/funding/github/npm/postcss"
31
+ },
32
+ {
33
+ "type": "github",
34
+ "url": "https://github.com/sponsors/ai"
35
+ }
36
+ ],
37
+ "main": "./lib/postcss.js",
38
+ "browser": {
39
+ "./lib/terminal-highlight": false,
40
+ "source-map-js": false,
41
+ "path": false,
42
+ "url": false,
43
+ "fs": false
44
+ },
45
+ "types": "./lib/postcss.d.ts",
46
+ "exports": {
47
+ ".": {
48
+ "import": "./lib/postcss.mjs",
49
+ "require": "./lib/postcss.js"
50
+ },
51
+ "./lib/at-rule": "./lib/at-rule.js",
52
+ "./lib/comment": "./lib/comment.js",
53
+ "./lib/container": "./lib/container.js",
54
+ "./lib/css-syntax-error": "./lib/css-syntax-error.js",
55
+ "./lib/declaration": "./lib/declaration.js",
56
+ "./lib/fromJSON": "./lib/fromJSON.js",
57
+ "./lib/input": "./lib/input.js",
58
+ "./lib/lazy-result": "./lib/lazy-result.js",
59
+ "./lib/no-work-result": "./lib/no-work-result.js",
60
+ "./lib/list": "./lib/list.js",
61
+ "./lib/map-generator": "./lib/map-generator.js",
62
+ "./lib/node": "./lib/node.js",
63
+ "./lib/parse": "./lib/parse.js",
64
+ "./lib/parser": "./lib/parser.js",
65
+ "./lib/postcss": "./lib/postcss.js",
66
+ "./lib/previous-map": "./lib/previous-map.js",
67
+ "./lib/processor": "./lib/processor.js",
68
+ "./lib/result": "./lib/result.js",
69
+ "./lib/root": "./lib/root.js",
70
+ "./lib/rule": "./lib/rule.js",
71
+ "./lib/stringifier": "./lib/stringifier.js",
72
+ "./lib/stringify": "./lib/stringify.js",
73
+ "./lib/symbols": "./lib/symbols.js",
74
+ "./lib/terminal-highlight": "./lib/terminal-highlight.js",
75
+ "./lib/tokenize": "./lib/tokenize.js",
76
+ "./lib/warn-once": "./lib/warn-once.js",
77
+ "./lib/warning": "./lib/warning.js",
78
+ "./package.json": "./package.json"
79
+ },
80
+ "dependencies": {
81
+ "nanoid": "^3.3.16",
82
+ "picocolors": "^1.1.1",
83
+ "source-map-js": "^1.2.1"
84
+ },
85
+ "engines": {
86
+ "node": "^10 || ^12 || >=14"
87
+ }
88
+ }