@histoire/vendors 0.17.17 → 1.0.0-alpha.2
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.
- package/dist/client/b-floating-vue.js +2175 -2150
- package/dist/client/b-iconify.js +663 -850
- package/dist/client/b-pinia.js +130 -68
- package/dist/client/b-scroll.js +3 -52
- package/dist/client/b-vue-router.js +385 -237
- package/dist/client/b-vue-use.js +4578 -3115
- package/dist/client/b-vue.js +1 -1
- package/dist/client/index.js +162 -20
- package/dist/client/node_modules/@babel/helper-string-parser/package.json +31 -0
- package/dist/client/node_modules/@babel/helper-validator-identifier/package.json +31 -0
- package/dist/client/node_modules/@babel/parser/package.json +10 -6
- package/dist/client/node_modules/@babel/parser/typings/babel-parser.d.ts +167 -188
- package/dist/client/node_modules/@babel/types/lib/index-legacy.d.ts +2786 -0
- package/dist/client/node_modules/@babel/types/lib/index.d.ts +3286 -0
- package/dist/client/node_modules/@babel/types/package.json +39 -0
- package/dist/client/node_modules/@floating-ui/core/dist/floating-ui.core.d.ts +525 -0
- package/dist/client/node_modules/@floating-ui/core/package.json +32 -39
- package/dist/client/node_modules/@floating-ui/dom/package.json +23 -24
- package/dist/client/node_modules/@floating-ui/dom/src/autoUpdate.d.ts +31 -0
- package/dist/client/node_modules/@floating-ui/dom/src/index.d.ts +11 -7
- package/dist/client/node_modules/@floating-ui/dom/src/platform.d.ts +1 -1
- package/dist/client/node_modules/@floating-ui/dom/src/types.d.ts +121 -20
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getBoundingClientRect.d.ts +1 -1
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getClippingRect.d.ts +12 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getCssDimensions.d.ts +4 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getDimensions.d.ts +1 -1
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getNearestOverflowAncestor.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getOverflowAncestors.d.ts +3 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getScale.d.ts +7 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getViewportRect.d.ts +2 -2
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getWindowScrollBarX.d.ts +1 -1
- package/dist/client/node_modules/@floating-ui/dom/src/utils/is.d.ts +3 -1
- package/dist/client/node_modules/@floating-ui/dom/src/utils/unwrapElement.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/userAgent.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/window.d.ts +1 -2
- package/dist/client/node_modules/@floating-ui/utils/dist/floating-ui.utils.d.ts +103 -0
- package/dist/client/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.d.ts +47 -0
- package/dist/client/node_modules/@floating-ui/utils/dom/floating-ui.utils.dom.d.ts +47 -0
- package/dist/client/node_modules/@floating-ui/utils/dom/package.json +6 -0
- package/dist/client/node_modules/@floating-ui/utils/package.json +70 -0
- package/dist/client/node_modules/@iconify/types/package.json +23 -0
- package/dist/client/node_modules/@iconify/types/provider.d.ts +44 -0
- package/dist/client/node_modules/@iconify/types/types.d.ts +272 -0
- package/dist/client/node_modules/@iconify/vue/dist/iconify.d.ts +122 -327
- package/dist/client/node_modules/@iconify/vue/dist/offline.d.ts +36 -269
- package/dist/client/node_modules/@iconify/vue/package.json +64 -60
- package/dist/client/node_modules/@jridgewell/sourcemap-codec/dist/types/scopes.d.ts +49 -0
- package/dist/client/node_modules/@jridgewell/sourcemap-codec/dist/types/sourcemap-codec.d.ts +2 -0
- package/dist/client/node_modules/@jridgewell/sourcemap-codec/dist/types/strings.d.ts +15 -0
- package/dist/client/node_modules/@jridgewell/sourcemap-codec/dist/types/vlq.d.ts +6 -0
- package/dist/client/node_modules/@jridgewell/sourcemap-codec/package.json +3 -2
- package/dist/client/node_modules/@types/web-bluetooth/index.d.ts +33 -14
- package/dist/client/node_modules/@types/web-bluetooth/package.json +12 -12
- package/dist/client/node_modules/@vue/compiler-core/dist/compiler-core.d.ts +218 -125
- package/dist/client/node_modules/@vue/compiler-core/package.json +20 -5
- package/dist/client/node_modules/@vue/compiler-dom/dist/compiler-dom.d.ts +6 -3
- package/dist/client/node_modules/@vue/compiler-dom/package.json +17 -3
- package/dist/client/node_modules/@vue/compiler-sfc/dist/compiler-sfc.d.ts +35 -25
- package/dist/client/node_modules/@vue/compiler-sfc/package.json +27 -18
- package/dist/client/node_modules/@vue/compiler-ssr/dist/compiler-ssr.d.ts +2 -2
- package/dist/client/node_modules/@vue/compiler-ssr/package.json +3 -3
- package/dist/client/node_modules/@vue/devtools-api/package.json +1 -1
- package/dist/client/node_modules/@vue/reactivity/dist/reactivity.d.ts +268 -166
- package/dist/client/node_modules/@vue/reactivity/package.json +16 -2
- package/dist/client/node_modules/@vue/runtime-core/dist/runtime-core.d.ts +728 -529
- package/dist/client/node_modules/@vue/runtime-core/package.json +17 -3
- package/dist/client/node_modules/@vue/runtime-dom/dist/runtime-dom.d.ts +195 -86
- package/dist/client/node_modules/@vue/runtime-dom/package.json +22 -4
- package/dist/client/node_modules/@vue/server-renderer/dist/server-renderer.d.ts +4 -8
- package/dist/client/node_modules/@vue/server-renderer/package.json +18 -4
- package/dist/client/node_modules/@vue/shared/dist/shared.d.ts +45 -30
- package/dist/client/node_modules/@vue/shared/package.json +15 -1
- package/dist/client/node_modules/@vueuse/core/index.d.ts +2323 -666
- package/dist/client/node_modules/@vueuse/core/package.json +22 -12
- package/dist/client/node_modules/@vueuse/metadata/index.d.ts +7 -5
- package/dist/client/node_modules/@vueuse/metadata/package.json +14 -7
- package/dist/client/node_modules/@vueuse/shared/index.d.ts +451 -280
- package/dist/client/node_modules/@vueuse/shared/package.json +17 -6
- package/dist/client/node_modules/compute-scroll-into-view/dist/index.d.ts +75 -0
- package/dist/client/node_modules/compute-scroll-into-view/package.json +35 -45
- package/dist/client/node_modules/entities/lib/decode.d.ts +211 -0
- package/dist/client/node_modules/entities/lib/decode_codepoint.d.ts +19 -0
- package/dist/client/node_modules/entities/lib/encode.d.ts +22 -0
- package/dist/client/node_modules/entities/lib/escape.d.ts +43 -0
- package/dist/client/node_modules/entities/lib/esm/decode.d.ts +211 -0
- package/dist/client/node_modules/entities/lib/esm/decode_codepoint.d.ts +19 -0
- package/dist/client/node_modules/entities/lib/esm/encode.d.ts +22 -0
- package/dist/client/node_modules/entities/lib/esm/escape.d.ts +43 -0
- package/dist/client/node_modules/entities/lib/esm/generated/decode-data-html.d.ts +3 -0
- package/dist/client/node_modules/entities/lib/esm/generated/decode-data-xml.d.ts +3 -0
- package/dist/client/node_modules/entities/lib/esm/generated/encode-html.d.ts +8 -0
- package/dist/client/node_modules/entities/lib/esm/index.d.ts +96 -0
- package/dist/client/node_modules/entities/lib/esm/package.json +1 -0
- package/dist/client/node_modules/entities/lib/generated/decode-data-html.d.ts +3 -0
- package/dist/client/node_modules/entities/lib/generated/decode-data-xml.d.ts +3 -0
- package/dist/client/node_modules/entities/lib/generated/encode-html.d.ts +8 -0
- package/dist/client/node_modules/entities/lib/index.d.ts +96 -0
- package/dist/client/node_modules/entities/package.json +90 -0
- package/dist/client/node_modules/floating-vue/dist/components/Dropdown.d.ts +398 -0
- package/dist/client/node_modules/floating-vue/dist/components/Menu.d.ts +398 -0
- package/dist/client/node_modules/floating-vue/dist/components/Popper.d.ts +225 -105
- package/dist/client/node_modules/floating-vue/dist/components/Popper.vue.d.ts +471 -364
- package/dist/client/node_modules/floating-vue/dist/components/PopperContent.vue.d.ts +14 -25
- package/dist/client/node_modules/floating-vue/dist/components/PopperWrapper.vue.d.ts +392 -6
- package/dist/client/node_modules/floating-vue/dist/components/Tooltip.d.ts +398 -0
- package/dist/client/node_modules/floating-vue/dist/components/TooltipDirective.vue.d.ts +49 -10
- package/dist/client/node_modules/floating-vue/dist/config.d.ts +1 -1
- package/dist/client/node_modules/floating-vue/dist/index.d.ts +2071 -247
- package/dist/client/node_modules/floating-vue/dist/util/events.d.ts +2 -0
- package/dist/client/node_modules/floating-vue/dist/util/popper.d.ts +1 -1
- package/dist/client/node_modules/floating-vue/package.json +42 -33
- package/dist/client/node_modules/magic-string/dist/magic-string.cjs.d.ts +250 -229
- package/dist/client/node_modules/magic-string/package.json +24 -26
- package/dist/client/node_modules/nanoid/package.json +1 -1
- package/dist/client/node_modules/picocolors/package.json +2 -2
- package/dist/client/node_modules/picocolors/types.d.ts +51 -0
- package/dist/client/node_modules/pinia/dist/pinia.d.ts +116 -37
- package/dist/client/node_modules/pinia/package.json +7 -11
- package/dist/client/node_modules/postcss/lib/at-rule.d.ts +22 -19
- package/dist/client/node_modules/postcss/lib/comment.d.ts +6 -5
- package/dist/client/node_modules/postcss/lib/container.d.ts +72 -82
- package/dist/client/node_modules/postcss/lib/css-syntax-error.d.ts +1 -1
- package/dist/client/node_modules/postcss/lib/declaration.d.ts +16 -13
- package/dist/client/node_modules/postcss/lib/document.d.ts +4 -4
- package/dist/client/node_modules/postcss/lib/input.d.ts +28 -16
- package/dist/client/node_modules/postcss/lib/lazy-result.d.ts +40 -40
- package/dist/client/node_modules/postcss/lib/list.d.ts +5 -2
- package/dist/client/node_modules/postcss/lib/no-work-result.d.ts +5 -5
- package/dist/client/node_modules/postcss/lib/node.d.ts +19 -14
- package/dist/client/node_modules/postcss/lib/postcss.d.ts +25 -8
- package/dist/client/node_modules/postcss/lib/processor.d.ts +1 -1
- package/dist/client/node_modules/postcss/lib/result.d.ts +10 -11
- package/dist/client/node_modules/postcss/lib/root.d.ts +4 -4
- package/dist/client/node_modules/postcss/lib/rule.d.ts +22 -13
- package/dist/client/node_modules/postcss/package.json +4 -4
- package/dist/client/node_modules/scroll-into-view-if-needed/dist/index.d.ts +79 -0
- package/dist/client/node_modules/scroll-into-view-if-needed/package.json +28 -67
- package/dist/client/node_modules/source-map-js/lib/source-map-consumer.d.ts +1 -0
- package/dist/client/node_modules/source-map-js/lib/source-map-generator.d.ts +1 -0
- package/dist/client/node_modules/source-map-js/lib/source-node.d.ts +1 -0
- package/dist/client/node_modules/source-map-js/package.json +1 -1
- package/dist/client/node_modules/source-map-js/source-map.d.ts +88 -99
- package/dist/client/node_modules/vue/dist/vue.d.ts +0 -4
- package/dist/client/node_modules/vue/jsx-runtime/index.d.ts +2 -1
- package/dist/client/node_modules/vue/jsx.d.ts +2 -1
- package/dist/client/node_modules/vue/package.json +13 -14
- package/dist/client/node_modules/{pinia/node_modules/vue-demi → vue-demi}/package.json +1 -1
- package/dist/client/node_modules/vue-router/dist/vue-router.d.ts +410 -81
- package/dist/client/node_modules/vue-router/package.json +66 -37
- package/dist/client/node_modules/vue-router/vue-router-auto-routes.d.ts +4 -0
- package/dist/client/node_modules/vue-router/vue-router-auto.d.ts +4 -0
- package/dist/client/vue.runtime.esm-bundler.js +6458 -4714
- package/package.json +17 -17
- package/rollup.config.mjs +6 -6
- package/dist/client/index2.js +0 -168
- package/dist/client/node_modules/@floating-ui/core/index.d.ts +0 -1
- package/dist/client/node_modules/@floating-ui/core/src/_babel.d.ts +0 -1
- package/dist/client/node_modules/@floating-ui/core/src/computeCoordsFromPlacement.d.ts +0 -4
- package/dist/client/node_modules/@floating-ui/core/src/computePosition.d.ts +0 -2
- package/dist/client/node_modules/@floating-ui/core/src/detectOverflow.d.ts +0 -9
- package/dist/client/node_modules/@floating-ui/core/src/enums.d.ts +0 -4
- package/dist/client/node_modules/@floating-ui/core/src/index.d.ts +0 -11
- package/dist/client/node_modules/@floating-ui/core/src/middleware/arrow.d.ts +0 -6
- package/dist/client/node_modules/@floating-ui/core/src/middleware/autoPlacement.d.ts +0 -9
- package/dist/client/node_modules/@floating-ui/core/src/middleware/flip.d.ts +0 -10
- package/dist/client/node_modules/@floating-ui/core/src/middleware/hide.d.ts +0 -2
- package/dist/client/node_modules/@floating-ui/core/src/middleware/inline.d.ts +0 -5
- package/dist/client/node_modules/@floating-ui/core/src/middleware/offset.d.ts +0 -21
- package/dist/client/node_modules/@floating-ui/core/src/middleware/shift.d.ts +0 -32
- package/dist/client/node_modules/@floating-ui/core/src/middleware/size.d.ts +0 -6
- package/dist/client/node_modules/@floating-ui/core/src/types.d.ts +0 -148
- package/dist/client/node_modules/@floating-ui/core/src/utils/expandPaddingObject.d.ts +0 -2
- package/dist/client/node_modules/@floating-ui/core/src/utils/getAlignment.d.ts +0 -2
- package/dist/client/node_modules/@floating-ui/core/src/utils/getAlignmentSides.d.ts +0 -5
- package/dist/client/node_modules/@floating-ui/core/src/utils/getBasePlacement.d.ts +0 -2
- package/dist/client/node_modules/@floating-ui/core/src/utils/getCrossAxis.d.ts +0 -2
- package/dist/client/node_modules/@floating-ui/core/src/utils/getExpandedPlacements.d.ts +0 -2
- package/dist/client/node_modules/@floating-ui/core/src/utils/getLengthFromAxis.d.ts +0 -2
- package/dist/client/node_modules/@floating-ui/core/src/utils/getMainAxisFromPlacement.d.ts +0 -2
- package/dist/client/node_modules/@floating-ui/core/src/utils/getOppositeAlignmentPlacement.d.ts +0 -2
- package/dist/client/node_modules/@floating-ui/core/src/utils/getOppositePlacement.d.ts +0 -1
- package/dist/client/node_modules/@floating-ui/core/src/utils/getPaddingObject.d.ts +0 -2
- package/dist/client/node_modules/@floating-ui/core/src/utils/math.d.ts +0 -2
- package/dist/client/node_modules/@floating-ui/core/src/utils/rectToClientRect.d.ts +0 -2
- package/dist/client/node_modules/@floating-ui/core/src/utils/within.d.ts +0 -1
- package/dist/client/node_modules/@floating-ui/dom/src/utils/contains.d.ts +0 -1
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getClippingClientRect.d.ts +0 -6
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getScrollParent.d.ts +0 -1
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getScrollParents.d.ts +0 -1
- package/dist/client/node_modules/@vue/reactivity-transform/dist/reactivity-transform.d.ts +0 -43
- package/dist/client/node_modules/@vue/reactivity-transform/package.json +0 -41
- package/dist/client/node_modules/@vueuse/core/node_modules/vue-demi/package.json +0 -47
- package/dist/client/node_modules/@vueuse/shared/node_modules/vue-demi/lib/index.d.ts +0 -22
- package/dist/client/node_modules/@vueuse/shared/node_modules/vue-demi/lib/v2/index.d.ts +0 -33
- package/dist/client/node_modules/@vueuse/shared/node_modules/vue-demi/lib/v2.7/index.d.ts +0 -38
- package/dist/client/node_modules/@vueuse/shared/node_modules/vue-demi/lib/v3/index.d.ts +0 -22
- package/dist/client/node_modules/@vueuse/shared/node_modules/vue-demi/package.json +0 -47
- package/dist/client/node_modules/compute-scroll-into-view/typings/index.d.ts +0 -19
- package/dist/client/node_modules/floating-vue/dist/components/Dropdown.vue.d.ts +0 -25
- package/dist/client/node_modules/floating-vue/dist/components/Menu.vue.d.ts +0 -25
- package/dist/client/node_modules/floating-vue/dist/components/Tooltip.vue.d.ts +0 -25
- package/dist/client/node_modules/floating-vue/src/global-shim.d.ts +0 -1
- package/dist/client/node_modules/floating-vue/src/vue-shim.d.ts +0 -5
- package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/index.d.ts +0 -22
- package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v2/index.d.ts +0 -33
- package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v2.7/index.d.ts +0 -38
- package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v3/index.d.ts +0 -22
- package/dist/client/node_modules/scroll-into-view-if-needed/typings/index.d.ts +0 -13
- package/dist/client/node_modules/scroll-into-view-if-needed/typings/types.d.ts +0 -19
- package/dist/client/node_modules/vue/macros-global.d.ts +0 -19
- package/dist/client/node_modules/vue/macros.d.ts +0 -112
- package/dist/client/node_modules/vue/ref-macros.d.ts +0 -2
- /package/dist/client/node_modules/{@vueuse/core/node_modules/vue-demi → vue-demi}/lib/index.d.ts +0 -0
- /package/dist/client/node_modules/{@vueuse/core/node_modules/vue-demi → vue-demi}/lib/v2/index.d.ts +0 -0
- /package/dist/client/node_modules/{@vueuse/core/node_modules/vue-demi → vue-demi}/lib/v2.7/index.d.ts +0 -0
- /package/dist/client/node_modules/{@vueuse/core/node_modules/vue-demi → vue-demi}/lib/v3/index.d.ts +0 -0
|
@@ -20,13 +20,26 @@ declare namespace Container {
|
|
|
20
20
|
/**
|
|
21
21
|
* An array of property names.
|
|
22
22
|
*/
|
|
23
|
-
props?: string[]
|
|
23
|
+
props?: readonly string[]
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
export interface ContainerProps extends NodeProps {
|
|
27
|
-
nodes?: (
|
|
27
|
+
nodes?: readonly (ChildProps | Node)[]
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
+
/**
|
|
31
|
+
* All types that can be passed into container methods to create or add a new
|
|
32
|
+
* child node.
|
|
33
|
+
*/
|
|
34
|
+
export type NewChild =
|
|
35
|
+
| ChildProps
|
|
36
|
+
| Node
|
|
37
|
+
| readonly ChildProps[]
|
|
38
|
+
| readonly Node[]
|
|
39
|
+
| readonly string[]
|
|
40
|
+
| string
|
|
41
|
+
| undefined
|
|
42
|
+
|
|
30
43
|
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
|
31
44
|
export { Container_ as default }
|
|
32
45
|
}
|
|
@@ -51,6 +64,23 @@ declare abstract class Container_<Child extends Node = ChildNode> extends Node {
|
|
|
51
64
|
*/
|
|
52
65
|
nodes: Child[] | undefined
|
|
53
66
|
|
|
67
|
+
/**
|
|
68
|
+
* The container’s first child.
|
|
69
|
+
*
|
|
70
|
+
* ```js
|
|
71
|
+
* rule.first === rules.nodes[0]
|
|
72
|
+
* ```
|
|
73
|
+
*/
|
|
74
|
+
get first(): Child | undefined
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* The container’s last child.
|
|
78
|
+
*
|
|
79
|
+
* ```js
|
|
80
|
+
* rule.last === rule.nodes[rule.nodes.length - 1]
|
|
81
|
+
* ```
|
|
82
|
+
*/
|
|
83
|
+
get last(): Child | undefined
|
|
54
84
|
/**
|
|
55
85
|
* Inserts new nodes to the end of the container.
|
|
56
86
|
*
|
|
@@ -71,23 +101,13 @@ declare abstract class Container_<Child extends Node = ChildNode> extends Node {
|
|
|
71
101
|
* @param nodes New nodes.
|
|
72
102
|
* @return This node for methods chain.
|
|
73
103
|
*/
|
|
74
|
-
append(
|
|
75
|
-
...nodes: (
|
|
76
|
-
| ChildProps
|
|
77
|
-
| ChildProps[]
|
|
78
|
-
| Node
|
|
79
|
-
| Node[]
|
|
80
|
-
| string
|
|
81
|
-
| string[]
|
|
82
|
-
| undefined
|
|
83
|
-
)[]
|
|
84
|
-
): this
|
|
85
|
-
|
|
104
|
+
append(...nodes: Container.NewChild[]): this
|
|
86
105
|
assign(overrides: Container.ContainerProps | object): this
|
|
87
|
-
clone(overrides?: Partial<Container.ContainerProps>):
|
|
88
|
-
|
|
89
|
-
|
|
106
|
+
clone(overrides?: Partial<Container.ContainerProps>): this
|
|
107
|
+
|
|
108
|
+
cloneAfter(overrides?: Partial<Container.ContainerProps>): this
|
|
90
109
|
|
|
110
|
+
cloneBefore(overrides?: Partial<Container.ContainerProps>): this
|
|
91
111
|
/**
|
|
92
112
|
* Iterates through the container’s immediate children,
|
|
93
113
|
* calling `callback` for each child.
|
|
@@ -158,39 +178,7 @@ declare abstract class Container_<Child extends Node = ChildNode> extends Node {
|
|
|
158
178
|
* @param newNode New node.
|
|
159
179
|
* @return This node for methods chain.
|
|
160
180
|
*/
|
|
161
|
-
insertAfter(
|
|
162
|
-
oldNode: Child | number,
|
|
163
|
-
newNode:
|
|
164
|
-
| Child
|
|
165
|
-
| Child[]
|
|
166
|
-
| ChildProps
|
|
167
|
-
| ChildProps[]
|
|
168
|
-
| string
|
|
169
|
-
| string[]
|
|
170
|
-
| undefined
|
|
171
|
-
): this
|
|
172
|
-
/**
|
|
173
|
-
* Insert new node before old node within the container.
|
|
174
|
-
*
|
|
175
|
-
* ```js
|
|
176
|
-
* rule.insertBefore(decl, decl.clone({ prop: '-webkit-' + decl.prop }))
|
|
177
|
-
* ```
|
|
178
|
-
*
|
|
179
|
-
* @param oldNode Child or child’s index.
|
|
180
|
-
* @param newNode New node.
|
|
181
|
-
* @return This node for methods chain.
|
|
182
|
-
*/
|
|
183
|
-
insertBefore(
|
|
184
|
-
oldNode: Child | number,
|
|
185
|
-
newNode:
|
|
186
|
-
| Child
|
|
187
|
-
| Child[]
|
|
188
|
-
| ChildProps
|
|
189
|
-
| ChildProps[]
|
|
190
|
-
| string
|
|
191
|
-
| string[]
|
|
192
|
-
| undefined
|
|
193
|
-
): this
|
|
181
|
+
insertAfter(oldNode: Child | number, newNode: Container.NewChild): this
|
|
194
182
|
|
|
195
183
|
/**
|
|
196
184
|
* Traverses the container’s descendant nodes, calling callback
|
|
@@ -209,6 +197,18 @@ declare abstract class Container_<Child extends Node = ChildNode> extends Node {
|
|
|
209
197
|
* @return Returns `false` if iteration was broke.
|
|
210
198
|
*/
|
|
211
199
|
|
|
200
|
+
/**
|
|
201
|
+
* Insert new node before old node within the container.
|
|
202
|
+
*
|
|
203
|
+
* ```js
|
|
204
|
+
* rule.insertBefore(decl, decl.clone({ prop: '-webkit-' + decl.prop }))
|
|
205
|
+
* ```
|
|
206
|
+
*
|
|
207
|
+
* @param oldNode Child or child’s index.
|
|
208
|
+
* @param newNode New node.
|
|
209
|
+
* @return This node for methods chain.
|
|
210
|
+
*/
|
|
211
|
+
insertBefore(oldNode: Child | number, newNode: Container.NewChild): this
|
|
212
212
|
/**
|
|
213
213
|
* Inserts new nodes to the start of the container.
|
|
214
214
|
*
|
|
@@ -229,17 +229,8 @@ declare abstract class Container_<Child extends Node = ChildNode> extends Node {
|
|
|
229
229
|
* @param nodes New nodes.
|
|
230
230
|
* @return This node for methods chain.
|
|
231
231
|
*/
|
|
232
|
-
prepend(
|
|
233
|
-
|
|
234
|
-
| ChildProps
|
|
235
|
-
| ChildProps[]
|
|
236
|
-
| Node
|
|
237
|
-
| Node[]
|
|
238
|
-
| string
|
|
239
|
-
| string[]
|
|
240
|
-
| undefined
|
|
241
|
-
)[]
|
|
242
|
-
): this
|
|
232
|
+
prepend(...nodes: Container.NewChild[]): this
|
|
233
|
+
|
|
243
234
|
/**
|
|
244
235
|
* Add child to the end of the node.
|
|
245
236
|
*
|
|
@@ -285,7 +276,6 @@ declare abstract class Container_<Child extends Node = ChildNode> extends Node {
|
|
|
285
276
|
pattern: RegExp | string,
|
|
286
277
|
replaced: { (substring: string, ...args: any[]): string } | string
|
|
287
278
|
): this
|
|
288
|
-
|
|
289
279
|
/**
|
|
290
280
|
* Passes all declaration values within the container that match pattern
|
|
291
281
|
* through callback, replacing those values with the returned result
|
|
@@ -301,8 +291,8 @@ declare abstract class Container_<Child extends Node = ChildNode> extends Node {
|
|
|
301
291
|
* ```
|
|
302
292
|
*
|
|
303
293
|
* @param pattern Replace pattern.
|
|
304
|
-
* @param {object}
|
|
305
|
-
* @param
|
|
294
|
+
* @param {object} options Options to speed up the search.
|
|
295
|
+
* @param replaced String to replace pattern or callback
|
|
306
296
|
* that returns a new value. The callback
|
|
307
297
|
* will receive the same arguments
|
|
308
298
|
* as those passed to a function parameter
|
|
@@ -386,14 +376,13 @@ declare abstract class Container_<Child extends Node = ChildNode> extends Node {
|
|
|
386
376
|
nameFilter: RegExp | string,
|
|
387
377
|
callback: (atRule: AtRule, index: number) => false | void
|
|
388
378
|
): false | undefined
|
|
389
|
-
|
|
390
379
|
walkAtRules(
|
|
391
380
|
callback: (atRule: AtRule, index: number) => false | void
|
|
392
381
|
): false | undefined
|
|
382
|
+
|
|
393
383
|
walkComments(
|
|
394
384
|
callback: (comment: Comment, indexed: number) => false | void
|
|
395
385
|
): false | undefined
|
|
396
|
-
|
|
397
386
|
walkComments(
|
|
398
387
|
callback: (comment: Comment, indexed: number) => false | void
|
|
399
388
|
): false | undefined
|
|
@@ -431,11 +420,9 @@ declare abstract class Container_<Child extends Node = ChildNode> extends Node {
|
|
|
431
420
|
propFilter: RegExp | string,
|
|
432
421
|
callback: (decl: Declaration, index: number) => false | void
|
|
433
422
|
): false | undefined
|
|
434
|
-
|
|
435
423
|
walkDecls(
|
|
436
424
|
callback: (decl: Declaration, index: number) => false | void
|
|
437
425
|
): false | undefined
|
|
438
|
-
|
|
439
426
|
/**
|
|
440
427
|
* Traverses the container’s descendant nodes, calling callback
|
|
441
428
|
* for each rule node.
|
|
@@ -466,21 +453,24 @@ declare abstract class Container_<Child extends Node = ChildNode> extends Node {
|
|
|
466
453
|
callback: (rule: Rule, index: number) => false | void
|
|
467
454
|
): false | undefined
|
|
468
455
|
/**
|
|
469
|
-
*
|
|
470
|
-
*
|
|
471
|
-
*
|
|
472
|
-
*
|
|
473
|
-
*
|
|
456
|
+
* An internal method that converts a {@link NewChild} into a list of actual
|
|
457
|
+
* child nodes that can then be added to this container.
|
|
458
|
+
*
|
|
459
|
+
* This ensures that the nodes' parent is set to this container, that they use
|
|
460
|
+
* the correct prototype chain, and that they're marked as dirty.
|
|
461
|
+
*
|
|
462
|
+
* @param mnodes The new node or nodes to add.
|
|
463
|
+
* @param sample A node from whose raws the new node's `before` raw should be
|
|
464
|
+
* taken.
|
|
465
|
+
* @param type This should be set to `'prepend'` if the new nodes will be
|
|
466
|
+
* inserted at the beginning of the container.
|
|
467
|
+
* @hidden
|
|
474
468
|
*/
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
* rule.last === rule.nodes[rule.nodes.length - 1]
|
|
481
|
-
* ```
|
|
482
|
-
*/
|
|
483
|
-
get last(): Child | undefined
|
|
469
|
+
protected normalize(
|
|
470
|
+
nodes: Container.NewChild,
|
|
471
|
+
sample: Node | undefined,
|
|
472
|
+
type?: 'prepend' | false
|
|
473
|
+
): Child[]
|
|
484
474
|
}
|
|
485
475
|
|
|
486
476
|
declare class Container<
|
|
@@ -63,6 +63,11 @@ declare namespace Declaration {
|
|
|
63
63
|
* ```
|
|
64
64
|
*/
|
|
65
65
|
declare class Declaration_ extends Node {
|
|
66
|
+
parent: ContainerWithChildren | undefined
|
|
67
|
+
raws: Declaration.DeclarationRaws
|
|
68
|
+
|
|
69
|
+
type: 'decl'
|
|
70
|
+
|
|
66
71
|
/**
|
|
67
72
|
* It represents a specificity of the declaration.
|
|
68
73
|
*
|
|
@@ -77,9 +82,8 @@ declare class Declaration_ extends Node {
|
|
|
77
82
|
* root.first.last.important //=> undefined
|
|
78
83
|
* ```
|
|
79
84
|
*/
|
|
80
|
-
important: boolean
|
|
81
|
-
|
|
82
|
-
parent: ContainerWithChildren | undefined
|
|
85
|
+
get important(): boolean
|
|
86
|
+
set important(value: boolean)
|
|
83
87
|
|
|
84
88
|
/**
|
|
85
89
|
* The property name for a CSS declaration.
|
|
@@ -91,11 +95,9 @@ declare class Declaration_ extends Node {
|
|
|
91
95
|
* decl.prop //=> 'color'
|
|
92
96
|
* ```
|
|
93
97
|
*/
|
|
94
|
-
prop: string
|
|
95
|
-
|
|
96
|
-
raws: Declaration.DeclarationRaws
|
|
98
|
+
get prop(): string
|
|
97
99
|
|
|
98
|
-
|
|
100
|
+
set prop(value: string)
|
|
99
101
|
|
|
100
102
|
/**
|
|
101
103
|
* The property value for a CSS declaration.
|
|
@@ -114,7 +116,8 @@ declare class Declaration_ extends Node {
|
|
|
114
116
|
* decl.value //=> 'black'
|
|
115
117
|
* ```
|
|
116
118
|
*/
|
|
117
|
-
value: string
|
|
119
|
+
get value(): string
|
|
120
|
+
set value(value: string)
|
|
118
121
|
|
|
119
122
|
/**
|
|
120
123
|
* It represents a getter that returns `true` if a declaration starts with
|
|
@@ -134,13 +137,13 @@ declare class Declaration_ extends Node {
|
|
|
134
137
|
* one.variable //=> true
|
|
135
138
|
* ```
|
|
136
139
|
*/
|
|
137
|
-
variable: boolean
|
|
138
|
-
|
|
140
|
+
get variable(): boolean
|
|
139
141
|
constructor(defaults?: Declaration.DeclarationProps)
|
|
142
|
+
|
|
140
143
|
assign(overrides: Declaration.DeclarationProps | object): this
|
|
141
|
-
clone(overrides?: Partial<Declaration.DeclarationProps>):
|
|
142
|
-
cloneAfter(overrides?: Partial<Declaration.DeclarationProps>):
|
|
143
|
-
cloneBefore(overrides?: Partial<Declaration.DeclarationProps>):
|
|
144
|
+
clone(overrides?: Partial<Declaration.DeclarationProps>): this
|
|
145
|
+
cloneAfter(overrides?: Partial<Declaration.DeclarationProps>): this
|
|
146
|
+
cloneBefore(overrides?: Partial<Declaration.DeclarationProps>): this
|
|
144
147
|
}
|
|
145
148
|
|
|
146
149
|
declare class Declaration extends Declaration_ {}
|
|
@@ -5,7 +5,7 @@ import Root from './root.js'
|
|
|
5
5
|
|
|
6
6
|
declare namespace Document {
|
|
7
7
|
export interface DocumentProps extends ContainerProps {
|
|
8
|
-
nodes?: Root[]
|
|
8
|
+
nodes?: readonly Root[]
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Information to generate byte-to-byte equal node string as it was
|
|
@@ -42,9 +42,9 @@ declare class Document_ extends Container<Root> {
|
|
|
42
42
|
constructor(defaults?: Document.DocumentProps)
|
|
43
43
|
|
|
44
44
|
assign(overrides: Document.DocumentProps | object): this
|
|
45
|
-
clone(overrides?: Partial<Document.DocumentProps>):
|
|
46
|
-
cloneAfter(overrides?: Partial<Document.DocumentProps>):
|
|
47
|
-
cloneBefore(overrides?: Partial<Document.DocumentProps>):
|
|
45
|
+
clone(overrides?: Partial<Document.DocumentProps>): this
|
|
46
|
+
cloneAfter(overrides?: Partial<Document.DocumentProps>): this
|
|
47
|
+
cloneBefore(overrides?: Partial<Document.DocumentProps>): this
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
50
|
* Returns a `Result` instance representing the document’s CSS roots.
|
|
@@ -62,6 +62,17 @@ declare class Input_ {
|
|
|
62
62
|
*/
|
|
63
63
|
css: string
|
|
64
64
|
|
|
65
|
+
/**
|
|
66
|
+
* Input source with support for non-CSS documents.
|
|
67
|
+
*
|
|
68
|
+
* ```js
|
|
69
|
+
* const input = postcss.parse('a{}', { from: file, document: '<style>a {}</style>' }).input
|
|
70
|
+
* input.document //=> "<style>a {}</style>"
|
|
71
|
+
* input.css //=> "a{}"
|
|
72
|
+
* ```
|
|
73
|
+
*/
|
|
74
|
+
document: string
|
|
75
|
+
|
|
65
76
|
/**
|
|
66
77
|
* The absolute path to the CSS source file defined
|
|
67
78
|
* with the `from` option.
|
|
@@ -100,6 +111,20 @@ declare class Input_ {
|
|
|
100
111
|
*/
|
|
101
112
|
map: PreviousMap
|
|
102
113
|
|
|
114
|
+
/**
|
|
115
|
+
* The CSS source identifier. Contains `Input#file` if the user
|
|
116
|
+
* set the `from` option, or `Input#id` if they did not.
|
|
117
|
+
*
|
|
118
|
+
* ```js
|
|
119
|
+
* const root = postcss.parse(css, { from: 'a.css' })
|
|
120
|
+
* root.source.input.from //=> "/home/ai/a.css"
|
|
121
|
+
*
|
|
122
|
+
* const root = postcss.parse(css)
|
|
123
|
+
* root.source.input.from //=> "<input css 1>"
|
|
124
|
+
* ```
|
|
125
|
+
*/
|
|
126
|
+
get from(): string
|
|
127
|
+
|
|
103
128
|
/**
|
|
104
129
|
* @param css Input CSS source.
|
|
105
130
|
* @param opts Process options.
|
|
@@ -126,7 +151,6 @@ declare class Input_ {
|
|
|
126
151
|
},
|
|
127
152
|
opts?: { plugin?: CssSyntaxError['plugin'] }
|
|
128
153
|
): CssSyntaxError
|
|
129
|
-
|
|
130
154
|
/**
|
|
131
155
|
* Returns `CssSyntaxError` with information about the error and its position.
|
|
132
156
|
*/
|
|
@@ -136,13 +160,11 @@ declare class Input_ {
|
|
|
136
160
|
column: number,
|
|
137
161
|
opts?: { plugin?: CssSyntaxError['plugin'] }
|
|
138
162
|
): CssSyntaxError
|
|
139
|
-
|
|
140
163
|
error(
|
|
141
164
|
message: string,
|
|
142
165
|
offset: number,
|
|
143
166
|
opts?: { plugin?: CssSyntaxError['plugin'] }
|
|
144
167
|
): CssSyntaxError
|
|
145
|
-
|
|
146
168
|
/**
|
|
147
169
|
* Converts source offset to line and column.
|
|
148
170
|
*
|
|
@@ -174,19 +196,9 @@ declare class Input_ {
|
|
|
174
196
|
endLine?: number,
|
|
175
197
|
endColumn?: number
|
|
176
198
|
): false | Input.FilePosition
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
*
|
|
181
|
-
* ```js
|
|
182
|
-
* const root = postcss.parse(css, { from: 'a.css' })
|
|
183
|
-
* root.source.input.from //=> "/home/ai/a.css"
|
|
184
|
-
*
|
|
185
|
-
* const root = postcss.parse(css)
|
|
186
|
-
* root.source.input.from //=> "<input css 1>"
|
|
187
|
-
* ```
|
|
188
|
-
*/
|
|
189
|
-
get from(): string
|
|
199
|
+
|
|
200
|
+
/** Converts this to a JSON-friendly object representation. */
|
|
201
|
+
toJSON(): object
|
|
190
202
|
}
|
|
191
203
|
|
|
192
204
|
declare class Input extends Input_ {}
|
|
@@ -67,46 +67,6 @@ declare class LazyResult_<RootNode = Document | Root>
|
|
|
67
67
|
*/
|
|
68
68
|
then: Promise<Result<RootNode>>['then']
|
|
69
69
|
|
|
70
|
-
/**
|
|
71
|
-
* @param processor Processor used for this transformation.
|
|
72
|
-
* @param css CSS to parse and transform.
|
|
73
|
-
* @param opts Options from the `Processor#process` or `Root#toResult`.
|
|
74
|
-
*/
|
|
75
|
-
constructor(processor: Processor, css: string, opts: ResultOptions)
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* Run plugin in async way and return `Result`.
|
|
79
|
-
*
|
|
80
|
-
* @return Result with output content.
|
|
81
|
-
*/
|
|
82
|
-
async(): Promise<Result<RootNode>>
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* Run plugin in sync way and return `Result`.
|
|
86
|
-
*
|
|
87
|
-
* @return Result with output content.
|
|
88
|
-
*/
|
|
89
|
-
sync(): Result<RootNode>
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* Alias for the `LazyResult#css` property.
|
|
93
|
-
*
|
|
94
|
-
* ```js
|
|
95
|
-
* lazy + '' === lazy.css
|
|
96
|
-
* ```
|
|
97
|
-
*
|
|
98
|
-
* @return Output CSS.
|
|
99
|
-
*/
|
|
100
|
-
toString(): string
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* Processes input CSS through synchronous plugins
|
|
104
|
-
* and calls `Result#warnings`.
|
|
105
|
-
*
|
|
106
|
-
* @return Warnings from plugins.
|
|
107
|
-
*/
|
|
108
|
-
warnings(): Warning[]
|
|
109
|
-
|
|
110
70
|
/**
|
|
111
71
|
* An alias for the `css` property. Use it with syntaxes
|
|
112
72
|
* that generate non-CSS output.
|
|
@@ -181,6 +141,46 @@ declare class LazyResult_<RootNode = Document | Root>
|
|
|
181
141
|
* Required to implement the Promise interface.
|
|
182
142
|
*/
|
|
183
143
|
get [Symbol.toStringTag](): string
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* @param processor Processor used for this transformation.
|
|
147
|
+
* @param css CSS to parse and transform.
|
|
148
|
+
* @param opts Options from the `Processor#process` or `Root#toResult`.
|
|
149
|
+
*/
|
|
150
|
+
constructor(processor: Processor, css: string, opts: ResultOptions)
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Run plugin in async way and return `Result`.
|
|
154
|
+
*
|
|
155
|
+
* @return Result with output content.
|
|
156
|
+
*/
|
|
157
|
+
async(): Promise<Result<RootNode>>
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Run plugin in sync way and return `Result`.
|
|
161
|
+
*
|
|
162
|
+
* @return Result with output content.
|
|
163
|
+
*/
|
|
164
|
+
sync(): Result<RootNode>
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Alias for the `LazyResult#css` property.
|
|
168
|
+
*
|
|
169
|
+
* ```js
|
|
170
|
+
* lazy + '' === lazy.css
|
|
171
|
+
* ```
|
|
172
|
+
*
|
|
173
|
+
* @return Output CSS.
|
|
174
|
+
*/
|
|
175
|
+
toString(): string
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Processes input CSS through synchronous plugins
|
|
179
|
+
* and calls `Result#warnings`.
|
|
180
|
+
*
|
|
181
|
+
* @return Warnings from plugins.
|
|
182
|
+
*/
|
|
183
|
+
warnings(): Warning[]
|
|
184
184
|
}
|
|
185
185
|
|
|
186
186
|
declare class LazyResult<
|
|
@@ -47,11 +47,14 @@ declare namespace list {
|
|
|
47
47
|
* @param last boolean indicator.
|
|
48
48
|
* @return Split values.
|
|
49
49
|
*/
|
|
50
|
-
split(
|
|
50
|
+
split(
|
|
51
|
+
string: string,
|
|
52
|
+
separators: readonly string[],
|
|
53
|
+
last: boolean
|
|
54
|
+
): string[]
|
|
51
55
|
}
|
|
52
56
|
}
|
|
53
57
|
|
|
54
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
55
58
|
declare const list: list.List
|
|
56
59
|
|
|
57
60
|
export = list
|
|
@@ -26,11 +26,6 @@ declare class NoWorkResult_ implements LazyResult<Root> {
|
|
|
26
26
|
catch: Promise<Result<Root>>['catch']
|
|
27
27
|
finally: Promise<Result<Root>>['finally']
|
|
28
28
|
then: Promise<Result<Root>>['then']
|
|
29
|
-
constructor(processor: Processor, css: string, opts: ResultOptions)
|
|
30
|
-
async(): Promise<Result<Root>>
|
|
31
|
-
sync(): Result<Root>
|
|
32
|
-
toString(): string
|
|
33
|
-
warnings(): Warning[]
|
|
34
29
|
get content(): string
|
|
35
30
|
get css(): string
|
|
36
31
|
get map(): SourceMap
|
|
@@ -39,6 +34,11 @@ declare class NoWorkResult_ implements LazyResult<Root> {
|
|
|
39
34
|
get processor(): Processor
|
|
40
35
|
get root(): Root
|
|
41
36
|
get [Symbol.toStringTag](): string
|
|
37
|
+
constructor(processor: Processor, css: string, opts: ResultOptions)
|
|
38
|
+
async(): Promise<Result<Root>>
|
|
39
|
+
sync(): Result<Root>
|
|
40
|
+
toString(): string
|
|
41
|
+
warnings(): Warning[]
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
declare class NoWorkResult extends NoWorkResult_ {}
|
|
@@ -2,7 +2,7 @@ import AtRule = require('./at-rule.js')
|
|
|
2
2
|
|
|
3
3
|
import { AtRuleProps } from './at-rule.js'
|
|
4
4
|
import Comment, { CommentProps } from './comment.js'
|
|
5
|
-
import Container from './container.js'
|
|
5
|
+
import Container, { NewChild } from './container.js'
|
|
6
6
|
import CssSyntaxError from './css-syntax-error.js'
|
|
7
7
|
import Declaration, { DeclarationProps } from './declaration.js'
|
|
8
8
|
import Document from './document.js'
|
|
@@ -246,7 +246,9 @@ declare abstract class Node_ {
|
|
|
246
246
|
* @param newNode New node.
|
|
247
247
|
* @return This node for methods chain.
|
|
248
248
|
*/
|
|
249
|
-
after(
|
|
249
|
+
after(
|
|
250
|
+
newNode: Node | Node.ChildProps | readonly Node[] | string | undefined
|
|
251
|
+
): this
|
|
250
252
|
|
|
251
253
|
/**
|
|
252
254
|
* It assigns properties to an existing node instance.
|
|
@@ -273,7 +275,9 @@ declare abstract class Node_ {
|
|
|
273
275
|
* @param newNode New node.
|
|
274
276
|
* @return This node for methods chain.
|
|
275
277
|
*/
|
|
276
|
-
before(
|
|
278
|
+
before(
|
|
279
|
+
newNode: Node | Node.ChildProps | readonly Node[] | string | undefined
|
|
280
|
+
): this
|
|
277
281
|
|
|
278
282
|
/**
|
|
279
283
|
* Clear the code style properties for the node and its children.
|
|
@@ -303,7 +307,7 @@ declare abstract class Node_ {
|
|
|
303
307
|
*
|
|
304
308
|
* @return Duplicate of the node instance.
|
|
305
309
|
*/
|
|
306
|
-
clone(overrides?: object):
|
|
310
|
+
clone(overrides?: object): this
|
|
307
311
|
|
|
308
312
|
/**
|
|
309
313
|
* Shortcut to clone the node and insert the resulting cloned node
|
|
@@ -312,7 +316,7 @@ declare abstract class Node_ {
|
|
|
312
316
|
* @param overrides New properties to override in the clone.
|
|
313
317
|
* @return New node.
|
|
314
318
|
*/
|
|
315
|
-
cloneAfter(overrides?: object):
|
|
319
|
+
cloneAfter(overrides?: object): this
|
|
316
320
|
|
|
317
321
|
/**
|
|
318
322
|
* Shortcut to clone the node and insert the resulting cloned node
|
|
@@ -326,7 +330,7 @@ declare abstract class Node_ {
|
|
|
326
330
|
*
|
|
327
331
|
* @return New node
|
|
328
332
|
*/
|
|
329
|
-
cloneBefore(overrides?: object):
|
|
333
|
+
cloneBefore(overrides?: object): this
|
|
330
334
|
|
|
331
335
|
/**
|
|
332
336
|
* It creates an instance of the class `CssSyntaxError` and parameters passed
|
|
@@ -470,14 +474,7 @@ declare abstract class Node_ {
|
|
|
470
474
|
* @param nodes Mode(s) to replace current one.
|
|
471
475
|
* @return Current node to methods chain.
|
|
472
476
|
*/
|
|
473
|
-
replaceWith(
|
|
474
|
-
...nodes: (
|
|
475
|
-
| Node.ChildNode
|
|
476
|
-
| Node.ChildNode[]
|
|
477
|
-
| Node.ChildProps
|
|
478
|
-
| Node.ChildProps[]
|
|
479
|
-
)[]
|
|
480
|
-
): this
|
|
477
|
+
replaceWith(...nodes: NewChild[]): this
|
|
481
478
|
|
|
482
479
|
/**
|
|
483
480
|
* Finds the Root instance of the node’s tree.
|
|
@@ -529,6 +526,14 @@ declare abstract class Node_ {
|
|
|
529
526
|
* @return `Warning` instance is returned
|
|
530
527
|
*/
|
|
531
528
|
warn(result: Result, message: string, options?: WarningOptions): Warning
|
|
529
|
+
|
|
530
|
+
/**
|
|
531
|
+
* If this node isn't already dirty, marks it and its ancestors as such. This
|
|
532
|
+
* indicates to the LazyResult processor that the {@link Root} has been
|
|
533
|
+
* modified by the current plugin and may need to be processed again by other
|
|
534
|
+
* plugins.
|
|
535
|
+
*/
|
|
536
|
+
protected markDirty(): void
|
|
532
537
|
}
|
|
533
538
|
|
|
534
539
|
declare class Node extends Node_ {}
|