@poveste/vendors 0.14.0 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (266) hide show
  1. package/README.md +15 -1
  2. package/iconify.d.ts +5 -0
  3. package/iconify.js +5 -0
  4. package/package.json +39 -33
  5. package/pinia.d.ts +5 -0
  6. package/pinia.js +5 -0
  7. package/vue-router.d.ts +5 -0
  8. package/vue-router.js +5 -0
  9. package/vue-use.d.ts +5 -0
  10. package/vue-use.js +5 -0
  11. package/vue.d.ts +5 -0
  12. package/vue.js +9 -0
  13. package/dist/client/b-floating-vue.d.ts +0 -3
  14. package/dist/client/b-floating-vue.js +0 -3377
  15. package/dist/client/b-iconify.d.ts +0 -1
  16. package/dist/client/b-iconify.js +0 -1883
  17. package/dist/client/b-pinia.d.ts +0 -1
  18. package/dist/client/b-pinia.js +0 -2069
  19. package/dist/client/b-scroll.d.ts +0 -2
  20. package/dist/client/b-scroll.js +0 -7
  21. package/dist/client/b-vue-router.d.ts +0 -1
  22. package/dist/client/b-vue-router.js +0 -2773
  23. package/dist/client/b-vue-use.d.ts +0 -1
  24. package/dist/client/b-vue-use.js +0 -10644
  25. package/dist/client/b-vue.d.ts +0 -1
  26. package/dist/client/b-vue.js +0 -1
  27. package/dist/client/index.js +0 -169
  28. package/dist/client/node_modules/@babel/helper-string-parser/package.json +0 -31
  29. package/dist/client/node_modules/@babel/helper-validator-identifier/package.json +0 -31
  30. package/dist/client/node_modules/@babel/parser/package.json +0 -50
  31. package/dist/client/node_modules/@babel/parser/typings/babel-parser.d.ts +0 -262
  32. package/dist/client/node_modules/@babel/types/lib/index-legacy.d.ts +0 -2796
  33. package/dist/client/node_modules/@babel/types/lib/index.d.ts +0 -3616
  34. package/dist/client/node_modules/@babel/types/package.json +0 -39
  35. package/dist/client/node_modules/@floating-ui/core/dist/floating-ui.core.d.mts +0 -535
  36. package/dist/client/node_modules/@floating-ui/core/dist/floating-ui.core.d.ts +0 -535
  37. package/dist/client/node_modules/@floating-ui/core/package.json +0 -63
  38. package/dist/client/node_modules/@floating-ui/dom/index.d.ts +0 -1
  39. package/dist/client/node_modules/@floating-ui/dom/package.json +0 -74
  40. package/dist/client/node_modules/@floating-ui/dom/src/autoUpdate.d.ts +0 -31
  41. package/dist/client/node_modules/@floating-ui/dom/src/index.d.ts +0 -11
  42. package/dist/client/node_modules/@floating-ui/dom/src/platform.d.ts +0 -2
  43. package/dist/client/node_modules/@floating-ui/dom/src/types.d.ts +0 -128
  44. package/dist/client/node_modules/@floating-ui/dom/src/utils/convertOffsetParentRelativeRectToViewportRelativeRect.d.ts +0 -6
  45. package/dist/client/node_modules/@floating-ui/dom/src/utils/getBoundingClientRect.d.ts +0 -2
  46. package/dist/client/node_modules/@floating-ui/dom/src/utils/getClippingRect.d.ts +0 -12
  47. package/dist/client/node_modules/@floating-ui/dom/src/utils/getComputedStyle.d.ts +0 -1
  48. package/dist/client/node_modules/@floating-ui/dom/src/utils/getCssDimensions.d.ts +0 -4
  49. package/dist/client/node_modules/@floating-ui/dom/src/utils/getDimensions.d.ts +0 -2
  50. package/dist/client/node_modules/@floating-ui/dom/src/utils/getDocumentElement.d.ts +0 -1
  51. package/dist/client/node_modules/@floating-ui/dom/src/utils/getDocumentRect.d.ts +0 -2
  52. package/dist/client/node_modules/@floating-ui/dom/src/utils/getNearestOverflowAncestor.d.ts +0 -1
  53. package/dist/client/node_modules/@floating-ui/dom/src/utils/getNodeName.d.ts +0 -1
  54. package/dist/client/node_modules/@floating-ui/dom/src/utils/getNodeScroll.d.ts +0 -2
  55. package/dist/client/node_modules/@floating-ui/dom/src/utils/getOffsetParent.d.ts +0 -1
  56. package/dist/client/node_modules/@floating-ui/dom/src/utils/getOverflowAncestors.d.ts +0 -3
  57. package/dist/client/node_modules/@floating-ui/dom/src/utils/getParentNode.d.ts +0 -1
  58. package/dist/client/node_modules/@floating-ui/dom/src/utils/getRectRelativeToOffsetParent.d.ts +0 -2
  59. package/dist/client/node_modules/@floating-ui/dom/src/utils/getScale.d.ts +0 -7
  60. package/dist/client/node_modules/@floating-ui/dom/src/utils/getViewportRect.d.ts +0 -2
  61. package/dist/client/node_modules/@floating-ui/dom/src/utils/getWindowScrollBarX.d.ts +0 -1
  62. package/dist/client/node_modules/@floating-ui/dom/src/utils/is.d.ts +0 -17
  63. package/dist/client/node_modules/@floating-ui/dom/src/utils/math.d.ts +0 -3
  64. package/dist/client/node_modules/@floating-ui/dom/src/utils/unwrapElement.d.ts +0 -2
  65. package/dist/client/node_modules/@floating-ui/dom/src/utils/userAgent.d.ts +0 -1
  66. package/dist/client/node_modules/@floating-ui/dom/src/utils/window.d.ts +0 -1
  67. package/dist/client/node_modules/@floating-ui/utils/dist/floating-ui.utils.d.mts +0 -105
  68. package/dist/client/node_modules/@floating-ui/utils/dist/floating-ui.utils.d.ts +0 -105
  69. package/dist/client/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.d.mts +0 -47
  70. package/dist/client/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.d.ts +0 -47
  71. package/dist/client/node_modules/@floating-ui/utils/dom/floating-ui.utils.dom.d.ts +0 -47
  72. package/dist/client/node_modules/@floating-ui/utils/dom/package.json +0 -6
  73. package/dist/client/node_modules/@floating-ui/utils/package.json +0 -70
  74. package/dist/client/node_modules/@iconify/types/package.json +0 -23
  75. package/dist/client/node_modules/@iconify/types/provider.d.ts +0 -44
  76. package/dist/client/node_modules/@iconify/types/types.d.ts +0 -272
  77. package/dist/client/node_modules/@iconify/vue/dist/iconify.d.ts +0 -475
  78. package/dist/client/node_modules/@iconify/vue/dist/offline.d.ts +0 -114
  79. package/dist/client/node_modules/@iconify/vue/offline/package.json +0 -14
  80. package/dist/client/node_modules/@iconify/vue/package.json +0 -65
  81. package/dist/client/node_modules/@jridgewell/sourcemap-codec/package.json +0 -64
  82. package/dist/client/node_modules/@jridgewell/sourcemap-codec/types/range-mappings.d.mts +0 -5
  83. package/dist/client/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.mts +0 -50
  84. package/dist/client/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.mts +0 -11
  85. package/dist/client/node_modules/@jridgewell/sourcemap-codec/types/strings.d.mts +0 -16
  86. package/dist/client/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.mts +0 -9
  87. package/dist/client/node_modules/@types/web-bluetooth/index.d.ts +0 -265
  88. package/dist/client/node_modules/@types/web-bluetooth/package.json +0 -46
  89. package/dist/client/node_modules/@vue/compiler-core/dist/compiler-core.d.ts +0 -1120
  90. package/dist/client/node_modules/@vue/compiler-core/package.json +0 -58
  91. package/dist/client/node_modules/@vue/compiler-dom/dist/compiler-dom.d.ts +0 -45
  92. package/dist/client/node_modules/@vue/compiler-dom/package.json +0 -57
  93. package/dist/client/node_modules/@vue/compiler-sfc/dist/compiler-sfc.d.ts +0 -487
  94. package/dist/client/node_modules/@vue/compiler-sfc/package.json +0 -67
  95. package/dist/client/node_modules/@vue/compiler-ssr/dist/compiler-ssr.d.ts +0 -4
  96. package/dist/client/node_modules/@vue/compiler-ssr/package.json +0 -34
  97. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/api.d.ts +0 -108
  98. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/app.d.ts +0 -1
  99. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/component.d.ts +0 -78
  100. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/context.d.ts +0 -5
  101. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/hooks.d.ts +0 -180
  102. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/index.d.ts +0 -6
  103. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/util.d.ts +0 -4
  104. package/dist/client/node_modules/@vue/devtools-api/lib/esm/const.d.ts +0 -2
  105. package/dist/client/node_modules/@vue/devtools-api/lib/esm/env.d.ts +0 -15
  106. package/dist/client/node_modules/@vue/devtools-api/lib/esm/index.d.ts +0 -18
  107. package/dist/client/node_modules/@vue/devtools-api/lib/esm/plugin.d.ts +0 -47
  108. package/dist/client/node_modules/@vue/devtools-api/lib/esm/proxy.d.ts +0 -20
  109. package/dist/client/node_modules/@vue/devtools-api/lib/esm/time.d.ts +0 -2
  110. package/dist/client/node_modules/@vue/devtools-api/package.json +0 -37
  111. package/dist/client/node_modules/@vue/reactivity/dist/reactivity.d.ts +0 -757
  112. package/dist/client/node_modules/@vue/reactivity/package.json +0 -55
  113. package/dist/client/node_modules/@vue/runtime-core/dist/runtime-core.d.ts +0 -1868
  114. package/dist/client/node_modules/@vue/runtime-core/package.json +0 -52
  115. package/dist/client/node_modules/@vue/runtime-dom/dist/runtime-dom.d.ts +0 -1452
  116. package/dist/client/node_modules/@vue/runtime-dom/package.json +0 -60
  117. package/dist/client/node_modules/@vue/server-renderer/dist/server-renderer.d.ts +0 -65
  118. package/dist/client/node_modules/@vue/server-renderer/package.json +0 -53
  119. package/dist/client/node_modules/@vue/shared/dist/shared.d.ts +0 -334
  120. package/dist/client/node_modules/@vue/shared/package.json +0 -47
  121. package/dist/client/node_modules/@vueuse/core/dist/index.d.ts +0 -5748
  122. package/dist/client/node_modules/@vueuse/core/dist/metadata.d.mts +0 -1
  123. package/dist/client/node_modules/@vueuse/core/package.json +0 -49
  124. package/dist/client/node_modules/@vueuse/metadata/dist/index.d.ts +0 -81
  125. package/dist/client/node_modules/@vueuse/metadata/package.json +0 -38
  126. package/dist/client/node_modules/@vueuse/shared/dist/index.d.ts +0 -1511
  127. package/dist/client/node_modules/@vueuse/shared/package.json +0 -42
  128. package/dist/client/node_modules/compute-scroll-into-view/dist/index.d.ts +0 -75
  129. package/dist/client/node_modules/compute-scroll-into-view/package.json +0 -82
  130. package/dist/client/node_modules/csstype/index.d.ts +0 -22569
  131. package/dist/client/node_modules/csstype/package.json +0 -70
  132. package/dist/client/node_modules/entities/decode.d.ts +0 -3
  133. package/dist/client/node_modules/entities/dist/commonjs/decode-codepoint.d.ts +0 -19
  134. package/dist/client/node_modules/entities/dist/commonjs/decode.d.ts +0 -205
  135. package/dist/client/node_modules/entities/dist/commonjs/encode.d.ts +0 -22
  136. package/dist/client/node_modules/entities/dist/commonjs/escape.d.ts +0 -46
  137. package/dist/client/node_modules/entities/dist/commonjs/generated/decode-data-html.d.ts +0 -2
  138. package/dist/client/node_modules/entities/dist/commonjs/generated/decode-data-xml.d.ts +0 -2
  139. package/dist/client/node_modules/entities/dist/commonjs/generated/encode-html.d.ts +0 -3
  140. package/dist/client/node_modules/entities/dist/commonjs/index.d.ts +0 -96
  141. package/dist/client/node_modules/entities/dist/commonjs/internal/bin-trie-flags.d.ts +0 -17
  142. package/dist/client/node_modules/entities/dist/commonjs/internal/decode-shared.d.ts +0 -2
  143. package/dist/client/node_modules/entities/dist/commonjs/internal/encode-shared.d.ts +0 -32
  144. package/dist/client/node_modules/entities/dist/commonjs/package.json +0 -3
  145. package/dist/client/node_modules/entities/dist/esm/decode-codepoint.d.ts +0 -19
  146. package/dist/client/node_modules/entities/dist/esm/decode.d.ts +0 -205
  147. package/dist/client/node_modules/entities/dist/esm/encode.d.ts +0 -22
  148. package/dist/client/node_modules/entities/dist/esm/escape.d.ts +0 -46
  149. package/dist/client/node_modules/entities/dist/esm/generated/decode-data-html.d.ts +0 -2
  150. package/dist/client/node_modules/entities/dist/esm/generated/decode-data-xml.d.ts +0 -2
  151. package/dist/client/node_modules/entities/dist/esm/generated/encode-html.d.ts +0 -3
  152. package/dist/client/node_modules/entities/dist/esm/index.d.ts +0 -96
  153. package/dist/client/node_modules/entities/dist/esm/internal/bin-trie-flags.d.ts +0 -17
  154. package/dist/client/node_modules/entities/dist/esm/internal/decode-shared.d.ts +0 -2
  155. package/dist/client/node_modules/entities/dist/esm/internal/encode-shared.d.ts +0 -32
  156. package/dist/client/node_modules/entities/dist/esm/package.json +0 -3
  157. package/dist/client/node_modules/entities/escape.d.ts +0 -3
  158. package/dist/client/node_modules/entities/package.json +0 -120
  159. package/dist/client/node_modules/estree-walker/dist/esm/package.json +0 -1
  160. package/dist/client/node_modules/estree-walker/package.json +0 -37
  161. package/dist/client/node_modules/estree-walker/src/package.json +0 -1
  162. package/dist/client/node_modules/estree-walker/types/async.d.ts +0 -53
  163. package/dist/client/node_modules/estree-walker/types/index.d.ts +0 -56
  164. package/dist/client/node_modules/estree-walker/types/sync.d.ts +0 -53
  165. package/dist/client/node_modules/estree-walker/types/walker.d.ts +0 -37
  166. package/dist/client/node_modules/floating-vue/dist/components/Dropdown.d.ts +0 -398
  167. package/dist/client/node_modules/floating-vue/dist/components/Menu.d.ts +0 -398
  168. package/dist/client/node_modules/floating-vue/dist/components/Popper.d.ts +0 -495
  169. package/dist/client/node_modules/floating-vue/dist/components/Popper.vue.d.ts +0 -474
  170. package/dist/client/node_modules/floating-vue/dist/components/PopperContent.vue.d.ts +0 -37
  171. package/dist/client/node_modules/floating-vue/dist/components/PopperMethods.d.ts +0 -9
  172. package/dist/client/node_modules/floating-vue/dist/components/PopperWrapper.vue.d.ts +0 -414
  173. package/dist/client/node_modules/floating-vue/dist/components/ThemeClass.d.ts +0 -6
  174. package/dist/client/node_modules/floating-vue/dist/components/Tooltip.d.ts +0 -398
  175. package/dist/client/node_modules/floating-vue/dist/components/TooltipDirective.vue.d.ts +0 -67
  176. package/dist/client/node_modules/floating-vue/dist/config.d.ts +0 -11
  177. package/dist/client/node_modules/floating-vue/dist/directives/v-close-popper.d.ts +0 -13
  178. package/dist/client/node_modules/floating-vue/dist/directives/v-tooltip.d.ts +0 -27
  179. package/dist/client/node_modules/floating-vue/dist/directives/v-tooltip.spec.d.ts +0 -1
  180. package/dist/client/node_modules/floating-vue/dist/index.d.ts +0 -2239
  181. package/dist/client/node_modules/floating-vue/dist/util/assign-deep.d.ts +0 -1
  182. package/dist/client/node_modules/floating-vue/dist/util/env.d.ts +0 -2
  183. package/dist/client/node_modules/floating-vue/dist/util/events.d.ts +0 -14
  184. package/dist/client/node_modules/floating-vue/dist/util/frame.d.ts +0 -1
  185. package/dist/client/node_modules/floating-vue/dist/util/lang.d.ts +0 -1
  186. package/dist/client/node_modules/floating-vue/dist/util/popper.d.ts +0 -3
  187. package/dist/client/node_modules/floating-vue/package.json +0 -80
  188. package/dist/client/node_modules/magic-string/dist/magic-string.cjs.d.ts +0 -289
  189. package/dist/client/node_modules/magic-string/dist/magic-string.es.d.mts +0 -289
  190. package/dist/client/node_modules/magic-string/package.json +0 -67
  191. package/dist/client/node_modules/nanoid/async/index.d.ts +0 -56
  192. package/dist/client/node_modules/nanoid/async/package.json +0 -12
  193. package/dist/client/node_modules/nanoid/index.d.ts +0 -91
  194. package/dist/client/node_modules/nanoid/non-secure/index.d.ts +0 -33
  195. package/dist/client/node_modules/nanoid/non-secure/package.json +0 -6
  196. package/dist/client/node_modules/nanoid/package.json +0 -89
  197. package/dist/client/node_modules/nanoid/url-alphabet/package.json +0 -6
  198. package/dist/client/node_modules/picocolors/package.json +0 -25
  199. package/dist/client/node_modules/picocolors/picocolors.d.ts +0 -5
  200. package/dist/client/node_modules/picocolors/types.d.ts +0 -51
  201. package/dist/client/node_modules/pinia/dist/pinia.d.ts +0 -1074
  202. package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/index.d.ts +0 -22
  203. package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v2/index.d.ts +0 -33
  204. package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v2.7/index.d.ts +0 -38
  205. package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v3/index.d.ts +0 -22
  206. package/dist/client/node_modules/pinia/node_modules/vue-demi/package.json +0 -47
  207. package/dist/client/node_modules/pinia/package.json +0 -96
  208. package/dist/client/node_modules/postcss/lib/at-rule.d.ts +0 -139
  209. package/dist/client/node_modules/postcss/lib/comment.d.ts +0 -67
  210. package/dist/client/node_modules/postcss/lib/container.d.ts +0 -474
  211. package/dist/client/node_modules/postcss/lib/css-syntax-error.d.ts +0 -247
  212. package/dist/client/node_modules/postcss/lib/declaration.d.ts +0 -150
  213. package/dist/client/node_modules/postcss/lib/document.d.ts +0 -68
  214. package/dist/client/node_modules/postcss/lib/fromJSON.d.ts +0 -9
  215. package/dist/client/node_modules/postcss/lib/input.d.ts +0 -226
  216. package/dist/client/node_modules/postcss/lib/lazy-result.d.ts +0 -189
  217. package/dist/client/node_modules/postcss/lib/list.d.ts +0 -60
  218. package/dist/client/node_modules/postcss/lib/no-work-result.d.ts +0 -45
  219. package/dist/client/node_modules/postcss/lib/node.d.ts +0 -555
  220. package/dist/client/node_modules/postcss/lib/parse.d.ts +0 -9
  221. package/dist/client/node_modules/postcss/lib/postcss.d.mts +0 -66
  222. package/dist/client/node_modules/postcss/lib/postcss.d.ts +0 -464
  223. package/dist/client/node_modules/postcss/lib/previous-map.d.ts +0 -80
  224. package/dist/client/node_modules/postcss/lib/processor.d.ts +0 -114
  225. package/dist/client/node_modules/postcss/lib/result.d.ts +0 -204
  226. package/dist/client/node_modules/postcss/lib/root.d.ts +0 -86
  227. package/dist/client/node_modules/postcss/lib/rule.d.ts +0 -126
  228. package/dist/client/node_modules/postcss/lib/stringifier.d.ts +0 -45
  229. package/dist/client/node_modules/postcss/lib/stringify.d.ts +0 -9
  230. package/dist/client/node_modules/postcss/lib/warning.d.ts +0 -146
  231. package/dist/client/node_modules/postcss/package.json +0 -88
  232. package/dist/client/node_modules/scroll-into-view-if-needed/dist/index.d.ts +0 -79
  233. package/dist/client/node_modules/scroll-into-view-if-needed/package.json +0 -80
  234. package/dist/client/node_modules/source-map-js/lib/source-map-consumer.d.ts +0 -1
  235. package/dist/client/node_modules/source-map-js/lib/source-map-generator.d.ts +0 -1
  236. package/dist/client/node_modules/source-map-js/lib/source-node.d.ts +0 -1
  237. package/dist/client/node_modules/source-map-js/package.json +0 -71
  238. package/dist/client/node_modules/source-map-js/source-map.d.ts +0 -104
  239. package/dist/client/node_modules/vue/compiler-sfc/index.d.mts +0 -1
  240. package/dist/client/node_modules/vue/compiler-sfc/index.d.ts +0 -1
  241. package/dist/client/node_modules/vue/compiler-sfc/package.json +0 -4
  242. package/dist/client/node_modules/vue/dist/vue.d.mts +0 -7
  243. package/dist/client/node_modules/vue/dist/vue.d.ts +0 -7
  244. package/dist/client/node_modules/vue/jsx-runtime/index.d.ts +0 -25
  245. package/dist/client/node_modules/vue/jsx-runtime/package.json +0 -5
  246. package/dist/client/node_modules/vue/jsx.d.ts +0 -22
  247. package/dist/client/node_modules/vue/package.json +0 -112
  248. package/dist/client/node_modules/vue/server-renderer/index.d.mts +0 -1
  249. package/dist/client/node_modules/vue/server-renderer/index.d.ts +0 -1
  250. package/dist/client/node_modules/vue/server-renderer/package.json +0 -4
  251. package/dist/client/node_modules/vue-resize/package.json +0 -77
  252. package/dist/client/node_modules/vue-router/dist/experimental/index.d.mts +0 -38
  253. package/dist/client/node_modules/vue-router/dist/router-CWoNjPRp.d.mts +0 -1973
  254. package/dist/client/node_modules/vue-router/dist/vue-router.d.mts +0 -361
  255. package/dist/client/node_modules/vue-router/package.json +0 -153
  256. package/dist/client/node_modules/vue-router/vue-router-auto-resolver.d.mts +0 -22
  257. package/dist/client/node_modules/vue-router/vue-router-auto-routes.d.ts +0 -4
  258. package/dist/client/node_modules/vue-router/vue-router-auto.d.ts +0 -1
  259. package/dist/client/vue.runtime.esm-bundler.js +0 -13564
  260. package/src/client/b-floating-vue.ts +0 -5
  261. package/src/client/b-iconify.ts +0 -1
  262. package/src/client/b-pinia.ts +0 -1
  263. package/src/client/b-scroll.ts +0 -4
  264. package/src/client/b-vue-router.ts +0 -1
  265. package/src/client/b-vue-use.ts +0 -1
  266. package/src/client/b-vue.ts +0 -1
@@ -1,150 +0,0 @@
1
- import { ContainerWithChildren } from './container.js'
2
- import Node, { NodeProps } 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 extends NodeProps {
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
@@ -1,68 +0,0 @@
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
@@ -1,9 +0,0 @@
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
@@ -1,226 +0,0 @@
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
@@ -1,189 +0,0 @@
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
@@ -1,60 +0,0 @@
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