@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "magic-string",
|
|
3
|
-
"version": "0.30.
|
|
3
|
+
"version": "0.30.17",
|
|
4
4
|
"description": "Modify strings, generate sourcemaps",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"string",
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
"author": "Rich Harris",
|
|
15
15
|
"main": "./dist/magic-string.cjs.js",
|
|
16
16
|
"module": "./dist/magic-string.es.mjs",
|
|
17
|
+
"sideEffects": false,
|
|
17
18
|
"jsnext:main": "./dist/magic-string.es.mjs",
|
|
18
19
|
"types": "./dist/magic-string.cjs.d.ts",
|
|
19
20
|
"exports": {
|
|
@@ -28,38 +29,35 @@
|
|
|
28
29
|
"index.d.ts",
|
|
29
30
|
"README.md"
|
|
30
31
|
],
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"@eslint/js": "^9.16.0",
|
|
34
|
+
"@rollup/plugin-node-resolve": "^15.3.0",
|
|
35
|
+
"@rollup/plugin-replace": "^5.0.7",
|
|
36
|
+
"benchmark": "^2.1.4",
|
|
37
|
+
"bumpp": "^9.9.1",
|
|
38
|
+
"conventional-changelog-cli": "^3.0.0",
|
|
39
|
+
"eslint": "^9.16.0",
|
|
40
|
+
"prettier": "^3.4.2",
|
|
41
|
+
"publint": "^0.2.12",
|
|
42
|
+
"rollup": "^3.29.5",
|
|
43
|
+
"source-map-js": "^1.2.1",
|
|
44
|
+
"source-map-support": "^0.5.21",
|
|
45
|
+
"vitest": "^2.1.8"
|
|
46
|
+
},
|
|
47
|
+
"dependencies": {
|
|
48
|
+
"@jridgewell/sourcemap-codec": "^1.5.0"
|
|
49
|
+
},
|
|
31
50
|
"scripts": {
|
|
32
51
|
"build": "rollup -c",
|
|
33
52
|
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
|
|
34
|
-
"format": "prettier --single-quote --print-width 100 --use-tabs --write
|
|
53
|
+
"format": "prettier --single-quote --print-width 100 --use-tabs --write .",
|
|
35
54
|
"lint": "eslint src test && publint",
|
|
36
55
|
"lint:fix": "eslint src test --fix",
|
|
37
|
-
"prepare": "npm run build",
|
|
38
|
-
"prepublishOnly": "npm run lint && rm -rf dist && npm test",
|
|
39
56
|
"release": "bumpp -x \"npm run changelog\" --all --commit --tag --push && npm publish",
|
|
40
57
|
"pretest": "npm run build",
|
|
41
|
-
"test": "
|
|
58
|
+
"test": "vitest run",
|
|
59
|
+
"test:dev": "vitest",
|
|
42
60
|
"bench": "npm run build && node benchmark/index.mjs",
|
|
43
61
|
"watch": "rollup -cw"
|
|
44
|
-
},
|
|
45
|
-
"devDependencies": {
|
|
46
|
-
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
47
|
-
"@rollup/plugin-replace": "^5.0.5",
|
|
48
|
-
"benchmark": "^2.1.4",
|
|
49
|
-
"bumpp": "^9.3.0",
|
|
50
|
-
"conventional-changelog-cli": "^3.0.0",
|
|
51
|
-
"eslint": "^8.56.0",
|
|
52
|
-
"mocha": "^10.2.0",
|
|
53
|
-
"prettier": "^3.2.4",
|
|
54
|
-
"publint": "^0.2.7",
|
|
55
|
-
"rollup": "^3.28.0",
|
|
56
|
-
"source-map-js": "^1.0.2",
|
|
57
|
-
"source-map-support": "^0.5.21"
|
|
58
|
-
},
|
|
59
|
-
"engines": {
|
|
60
|
-
"node": ">=12"
|
|
61
|
-
},
|
|
62
|
-
"dependencies": {
|
|
63
|
-
"@jridgewell/sourcemap-codec": "^1.4.15"
|
|
64
62
|
}
|
|
65
|
-
}
|
|
63
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "picocolors",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"main": "./picocolors.js",
|
|
5
5
|
"types": "./picocolors.d.ts",
|
|
6
6
|
"browser": {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"description": "The tiniest and the fastest library for terminal output formatting with ANSI colors",
|
|
11
11
|
"files": [
|
|
12
12
|
"picocolors.*",
|
|
13
|
-
"types.ts"
|
|
13
|
+
"types.d.ts"
|
|
14
14
|
],
|
|
15
15
|
"keywords": [
|
|
16
16
|
"terminal",
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export type Formatter = (input: string | number | null | undefined) => string
|
|
2
|
+
|
|
3
|
+
export interface Colors {
|
|
4
|
+
isColorSupported: boolean
|
|
5
|
+
|
|
6
|
+
reset: Formatter
|
|
7
|
+
bold: Formatter
|
|
8
|
+
dim: Formatter
|
|
9
|
+
italic: Formatter
|
|
10
|
+
underline: Formatter
|
|
11
|
+
inverse: Formatter
|
|
12
|
+
hidden: Formatter
|
|
13
|
+
strikethrough: Formatter
|
|
14
|
+
|
|
15
|
+
black: Formatter
|
|
16
|
+
red: Formatter
|
|
17
|
+
green: Formatter
|
|
18
|
+
yellow: Formatter
|
|
19
|
+
blue: Formatter
|
|
20
|
+
magenta: Formatter
|
|
21
|
+
cyan: Formatter
|
|
22
|
+
white: Formatter
|
|
23
|
+
gray: Formatter
|
|
24
|
+
|
|
25
|
+
bgBlack: Formatter
|
|
26
|
+
bgRed: Formatter
|
|
27
|
+
bgGreen: Formatter
|
|
28
|
+
bgYellow: Formatter
|
|
29
|
+
bgBlue: Formatter
|
|
30
|
+
bgMagenta: Formatter
|
|
31
|
+
bgCyan: Formatter
|
|
32
|
+
bgWhite: Formatter
|
|
33
|
+
|
|
34
|
+
blackBright: Formatter
|
|
35
|
+
redBright: Formatter
|
|
36
|
+
greenBright: Formatter
|
|
37
|
+
yellowBright: Formatter
|
|
38
|
+
blueBright: Formatter
|
|
39
|
+
magentaBright: Formatter
|
|
40
|
+
cyanBright: Formatter
|
|
41
|
+
whiteBright: Formatter
|
|
42
|
+
|
|
43
|
+
bgBlackBright: Formatter
|
|
44
|
+
bgRedBright: Formatter
|
|
45
|
+
bgGreenBright: Formatter
|
|
46
|
+
bgYellowBright: Formatter
|
|
47
|
+
bgBlueBright: Formatter
|
|
48
|
+
bgMagentaBright: Formatter
|
|
49
|
+
bgCyanBright: Formatter
|
|
50
|
+
bgWhiteBright: Formatter
|
|
51
|
+
}
|
|
@@ -8,6 +8,7 @@ import { ToRef } from 'vue-demi';
|
|
|
8
8
|
import { ToRefs } from 'vue-demi';
|
|
9
9
|
import { UnwrapRef } from 'vue-demi';
|
|
10
10
|
import type { WatchOptions } from 'vue-demi';
|
|
11
|
+
import { WritableComputedRef } from 'vue-demi';
|
|
11
12
|
|
|
12
13
|
/**
|
|
13
14
|
* Creates an _accept_ function to pass to `import.meta.hot` in Vite applications.
|
|
@@ -74,6 +75,8 @@ export declare function defineStore<Id extends string, S extends StateTree = {},
|
|
|
74
75
|
* Creates a `useStore` function that retrieves the store instance
|
|
75
76
|
*
|
|
76
77
|
* @param options - options to define the store
|
|
78
|
+
*
|
|
79
|
+
* @deprecated use `defineStore(id, options)` instead
|
|
77
80
|
*/
|
|
78
81
|
export declare function defineStore<Id extends string, S extends StateTree = {}, G extends _GettersTree<S> = {}, A = {}>(options: DefineStoreOptions<Id, S, G, A>): StoreDefinition<Id, S, G, A>;
|
|
79
82
|
|
|
@@ -84,7 +87,7 @@ export declare function defineStore<Id extends string, S extends StateTree = {},
|
|
|
84
87
|
* @param storeSetup - function that defines the store
|
|
85
88
|
* @param options - extra options
|
|
86
89
|
*/
|
|
87
|
-
export declare function defineStore<Id extends string, SS>(id: Id, storeSetup: () => SS, options?: DefineSetupStoreOptions<Id, _ExtractStateFromSetupStore<SS>, _ExtractGettersFromSetupStore<SS>, _ExtractActionsFromSetupStore<SS>>): StoreDefinition<Id, _ExtractStateFromSetupStore<SS>, _ExtractGettersFromSetupStore<SS>, _ExtractActionsFromSetupStore<SS>>;
|
|
90
|
+
export declare function defineStore<Id extends string, SS>(id: Id, storeSetup: (helpers: SetupStoreHelpers) => SS, options?: DefineSetupStoreOptions<Id, _ExtractStateFromSetupStore<SS>, _ExtractGettersFromSetupStore<SS>, _ExtractActionsFromSetupStore<SS>>): StoreDefinition<Id, _ExtractStateFromSetupStore<SS>, _ExtractGettersFromSetupStore<SS>, _ExtractActionsFromSetupStore<SS>>;
|
|
88
91
|
|
|
89
92
|
/**
|
|
90
93
|
* Options parameter of `defineStore()` for option stores. Can be extended to
|
|
@@ -155,10 +158,19 @@ export declare interface DefineStoreOptionsInPlugin<Id extends string, S extends
|
|
|
155
158
|
actions: A;
|
|
156
159
|
}
|
|
157
160
|
|
|
161
|
+
/**
|
|
162
|
+
* Dispose a Pinia instance by stopping its effectScope and removing the state, plugins and stores. This is mostly
|
|
163
|
+
* useful in tests, with both a testing pinia or a regular pinia and in applications that use multiple pinia instances.
|
|
164
|
+
* Once disposed, the pinia instance cannot be used anymore.
|
|
165
|
+
*
|
|
166
|
+
* @param pinia - pinia instance
|
|
167
|
+
*/
|
|
168
|
+
export declare function disposePinia(pinia: Pinia): void;
|
|
169
|
+
|
|
158
170
|
/**
|
|
159
171
|
* For internal use **only**
|
|
160
172
|
*/
|
|
161
|
-
export declare type _ExtractActionsFromSetupStore<SS> = SS extends undefined | void ? {} :
|
|
173
|
+
export declare type _ExtractActionsFromSetupStore<SS> = SS extends undefined | void ? {} : Pick<SS, _ExtractActionsFromSetupStore_Keys<SS>>;
|
|
162
174
|
|
|
163
175
|
/**
|
|
164
176
|
* Type that enables refactoring through IDE.
|
|
@@ -171,7 +183,7 @@ export declare type _ExtractActionsFromSetupStore_Keys<SS> = keyof {
|
|
|
171
183
|
/**
|
|
172
184
|
* For internal use **only**
|
|
173
185
|
*/
|
|
174
|
-
export declare type _ExtractGettersFromSetupStore<SS> = SS extends undefined | void ? {} :
|
|
186
|
+
export declare type _ExtractGettersFromSetupStore<SS> = SS extends undefined | void ? {} : Pick<SS, _ExtractGettersFromSetupStore_Keys<SS>>;
|
|
175
187
|
|
|
176
188
|
/**
|
|
177
189
|
* Type that enables refactoring through IDE.
|
|
@@ -184,7 +196,7 @@ export declare type _ExtractGettersFromSetupStore_Keys<SS> = keyof {
|
|
|
184
196
|
/**
|
|
185
197
|
* For internal use **only**
|
|
186
198
|
*/
|
|
187
|
-
export declare type _ExtractStateFromSetupStore<SS> = SS extends undefined | void ? {} :
|
|
199
|
+
export declare type _ExtractStateFromSetupStore<SS> = SS extends undefined | void ? {} : Pick<SS, _ExtractStateFromSetupStore_Keys<SS>>;
|
|
188
200
|
|
|
189
201
|
/**
|
|
190
202
|
* Type that enables refactoring through IDE.
|
|
@@ -205,6 +217,21 @@ export declare const getActivePinia: () => Pinia | undefined;
|
|
|
205
217
|
*/
|
|
206
218
|
export declare type _GettersTree<S extends StateTree> = Record<string, ((state: UnwrapRef<S> & UnwrapRef<PiniaCustomStateProperties<S>>) => any) | (() => any)>;
|
|
207
219
|
|
|
220
|
+
/**
|
|
221
|
+
* Internal utility type
|
|
222
|
+
*/
|
|
223
|
+
declare type _IfEquals<X, Y, A = true, B = false> = (<T>() => T extends X ? 1 : 2) extends <T>() => T extends Y ? 1 : 2 ? A : B;
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* Internal utility type
|
|
227
|
+
*/
|
|
228
|
+
declare type _IsReadonly<T, K extends keyof T> = _IfEquals<{
|
|
229
|
+
[P in K]: T[P];
|
|
230
|
+
}, {
|
|
231
|
+
-readonly [P in K]: T[P];
|
|
232
|
+
}, false, // Property is not readonly if they are the same
|
|
233
|
+
true>;
|
|
234
|
+
|
|
208
235
|
/**
|
|
209
236
|
* Allows directly using actions from your store without using the composition
|
|
210
237
|
* API (`setup()`) by generating an object to be spread in the `methods` field
|
|
@@ -217,11 +244,11 @@ export declare type _GettersTree<S extends StateTree> = Record<string, ((state:
|
|
|
217
244
|
* methods: {
|
|
218
245
|
* // other methods properties
|
|
219
246
|
* // useCounterStore has two actions named `increment` and `setCount`
|
|
220
|
-
* ...mapActions(useCounterStore, {
|
|
247
|
+
* ...mapActions(useCounterStore, { more: 'increment', setIt: 'setCount' })
|
|
221
248
|
* },
|
|
222
249
|
*
|
|
223
250
|
* created() {
|
|
224
|
-
* this.
|
|
251
|
+
* this.more()
|
|
225
252
|
* this.setIt(2)
|
|
226
253
|
* }
|
|
227
254
|
* }
|
|
@@ -313,7 +340,9 @@ export declare const mapGetters: typeof mapState;
|
|
|
313
340
|
* @param useStore - store to map from
|
|
314
341
|
* @param keyMapper - object of state properties or getters
|
|
315
342
|
*/
|
|
316
|
-
export declare function mapState<Id extends string, S extends StateTree, G extends _GettersTree<S
|
|
343
|
+
export declare function mapState<Id extends string, S extends StateTree, G extends _GettersTree<S> | {
|
|
344
|
+
[key: string]: ComputedRef;
|
|
345
|
+
}, A, KeyMapper extends Record<string, keyof S | keyof G | ((store: Store<Id, S, G, A>) => any)>>(useStore: StoreDefinition<Id, S, G, A>, keyMapper: KeyMapper): _MapStateObjectReturn<Id, S, G, A, KeyMapper>;
|
|
317
346
|
|
|
318
347
|
/**
|
|
319
348
|
* Allows using state and getters from one store without using the composition
|
|
@@ -338,20 +367,26 @@ export declare function mapState<Id extends string, S extends StateTree, G exten
|
|
|
338
367
|
* @param useStore - store to map from
|
|
339
368
|
* @param keys - array of state properties or getters
|
|
340
369
|
*/
|
|
341
|
-
export declare function mapState<Id extends string, S extends StateTree, G extends _GettersTree<S
|
|
370
|
+
export declare function mapState<Id extends string, S extends StateTree, G extends _GettersTree<S> | {
|
|
371
|
+
[key: string]: ComputedRef;
|
|
372
|
+
}, A, Keys extends keyof S | keyof G>(useStore: StoreDefinition<Id, S, G, A>, keys: readonly Keys[]): _MapStateReturn<S, G, Keys>;
|
|
342
373
|
|
|
343
374
|
/**
|
|
344
375
|
* For internal use **only**
|
|
345
376
|
*/
|
|
346
|
-
export declare type _MapStateObjectReturn<Id extends string, S extends StateTree, G extends _GettersTree<S
|
|
377
|
+
export declare type _MapStateObjectReturn<Id extends string, S extends StateTree, G extends _GettersTree<S> | {
|
|
378
|
+
[key: string]: ComputedRef;
|
|
379
|
+
}, A, T extends Record<string, keyof S | keyof G | ((store: Store<Id, S, G, A>) => any)> = {}> = {
|
|
347
380
|
[key in keyof T]: () => T[key] extends (store: any) => infer R ? R : T[key] extends keyof Store<Id, S, G, A> ? Store<Id, S, G, A>[T[key]] : never;
|
|
348
381
|
};
|
|
349
382
|
|
|
350
383
|
/**
|
|
351
384
|
* For internal use **only**
|
|
352
385
|
*/
|
|
353
|
-
export declare type _MapStateReturn<S extends StateTree, G extends _GettersTree<S
|
|
354
|
-
[key
|
|
386
|
+
export declare type _MapStateReturn<S extends StateTree, G extends _GettersTree<S> | {
|
|
387
|
+
[key: string]: ComputedRef;
|
|
388
|
+
}, Keys extends keyof S | keyof G = keyof S | keyof G> = {
|
|
389
|
+
[key in Keys]: key extends keyof Store<string, S, G, {}> ? () => Store<string, S, G, {}>[key] : never;
|
|
355
390
|
};
|
|
356
391
|
|
|
357
392
|
/**
|
|
@@ -395,7 +430,7 @@ export declare interface MapStoresCustomization {
|
|
|
395
430
|
* @param useStore - store to map from
|
|
396
431
|
* @param keyMapper - object of state properties
|
|
397
432
|
*/
|
|
398
|
-
export declare function mapWritableState<Id extends string, S extends StateTree, G
|
|
433
|
+
export declare function mapWritableState<Id extends string, S extends StateTree, G, A, KeyMapper extends Record<string, _MapWritableStateKeys<S, G>>>(useStore: StoreDefinition<Id, S, G, A>, keyMapper: KeyMapper): _MapWritableStateObjectReturn<S, G, KeyMapper>;
|
|
399
434
|
|
|
400
435
|
/**
|
|
401
436
|
* Allows using state and getters from one store without using the composition
|
|
@@ -405,30 +440,30 @@ export declare function mapWritableState<Id extends string, S extends StateTree,
|
|
|
405
440
|
* @param useStore - store to map from
|
|
406
441
|
* @param keys - array of state properties
|
|
407
442
|
*/
|
|
408
|
-
export declare function mapWritableState<Id extends string, S extends StateTree, G
|
|
409
|
-
[K in Keys]: {
|
|
410
|
-
get: () => S[K];
|
|
411
|
-
set: (value: S[K]) => any;
|
|
412
|
-
};
|
|
413
|
-
};
|
|
443
|
+
export declare function mapWritableState<Id extends string, S extends StateTree, G, A, Keys extends _MapWritableStateKeys<S, G>>(useStore: StoreDefinition<Id, S, G, A>, keys: readonly Keys[]): Pick<_MapWritableStateReturn<S, G, Keys>, Keys>;
|
|
414
444
|
|
|
415
445
|
/**
|
|
416
446
|
* For internal use **only**
|
|
417
447
|
*/
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
448
|
+
declare type _MapWritableStateKeys<S extends StateTree, G> = keyof UnwrapRef<S> | keyof _StoreWithGetters_Writable<G>;
|
|
449
|
+
|
|
450
|
+
/**
|
|
451
|
+
* For internal use **only**
|
|
452
|
+
*/
|
|
453
|
+
export declare type _MapWritableStateObjectReturn<S extends StateTree, G, KeyMapper extends Record<string, _MapWritableStateKeys<S, G>>> = {
|
|
454
|
+
[key in keyof KeyMapper]: {
|
|
455
|
+
get: () => UnwrapRef<(S & G)[KeyMapper[key]]>;
|
|
456
|
+
set: (value: UnwrapRef<(S & G)[KeyMapper[key]]>) => any;
|
|
422
457
|
};
|
|
423
458
|
};
|
|
424
459
|
|
|
425
460
|
/**
|
|
426
461
|
* For internal use **only**
|
|
427
462
|
*/
|
|
428
|
-
export declare type _MapWritableStateReturn<S extends StateTree
|
|
429
|
-
[key in
|
|
430
|
-
get: () => S[key]
|
|
431
|
-
set: (value: S[key]) => any;
|
|
463
|
+
export declare type _MapWritableStateReturn<S extends StateTree, G, Keys extends _MapWritableStateKeys<S, G>> = {
|
|
464
|
+
[key in Keys]: {
|
|
465
|
+
get: () => UnwrapRef<(S & G)[key]>;
|
|
466
|
+
set: (value: UnwrapRef<(S & G)[key]>) => any;
|
|
432
467
|
};
|
|
433
468
|
};
|
|
434
469
|
|
|
@@ -596,6 +631,18 @@ export declare function setMapStoreSuffix(suffix: MapStoresCustomization extends
|
|
|
596
631
|
export declare interface SetupStoreDefinition<Id extends string, SS> extends StoreDefinition<Id, _ExtractStateFromSetupStore<SS>, _ExtractGettersFromSetupStore<SS>, _ExtractActionsFromSetupStore<SS>> {
|
|
597
632
|
}
|
|
598
633
|
|
|
634
|
+
declare interface SetupStoreHelpers {
|
|
635
|
+
action: <Fn extends _Method>(fn: Fn) => Fn;
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
/**
|
|
639
|
+
* Returns whether a value should be hydrated
|
|
640
|
+
*
|
|
641
|
+
* @param obj - target variable
|
|
642
|
+
* @returns true if `obj` should be hydrated
|
|
643
|
+
*/
|
|
644
|
+
export declare function shouldHydrate(obj: any): boolean;
|
|
645
|
+
|
|
599
646
|
/**
|
|
600
647
|
* Tells Pinia to skip the hydration process of a given object. This is useful in setup stores (only) when you return a
|
|
601
648
|
* stateful object in the store but it isn't really state. e.g. returning a router instance in a setup store.
|
|
@@ -613,7 +660,7 @@ export declare type _Spread<A extends readonly any[]> = A extends [infer L, ...i
|
|
|
613
660
|
/**
|
|
614
661
|
* Generic state of a Store
|
|
615
662
|
*/
|
|
616
|
-
export declare type StateTree = Record<
|
|
663
|
+
export declare type StateTree = Record<PropertyKey, any>;
|
|
617
664
|
|
|
618
665
|
/**
|
|
619
666
|
* Store type to build a store.
|
|
@@ -739,7 +786,7 @@ export declare type StoreState<SS> = SS extends Store<string, infer S, _GettersT
|
|
|
739
786
|
* Extracts the return type for `storeToRefs`.
|
|
740
787
|
* Will convert any `getters` into `ComputedRef`.
|
|
741
788
|
*/
|
|
742
|
-
declare type StoreToRefs<SS extends StoreGeneric> =
|
|
789
|
+
declare type StoreToRefs<SS extends StoreGeneric> = SS extends unknown ? _ToStateRefs<SS> & ToRefs<PiniaCustomStateProperties<StoreState<SS>>> & _ToComputedRefs<StoreGetters<SS>> : never;
|
|
743
790
|
|
|
744
791
|
/**
|
|
745
792
|
* Creates an object of references with all the state, getters, and plugin-added
|
|
@@ -763,8 +810,20 @@ export declare type _StoreWithActions<A> = {
|
|
|
763
810
|
* Store augmented with getters. For internal usage only.
|
|
764
811
|
* For internal use **only**
|
|
765
812
|
*/
|
|
766
|
-
export declare type _StoreWithGetters<G> =
|
|
767
|
-
|
|
813
|
+
export declare type _StoreWithGetters<G> = _StoreWithGetters_Readonly<G> & _StoreWithGetters_Writable<G>;
|
|
814
|
+
|
|
815
|
+
/**
|
|
816
|
+
* Store augmented with readonly getters. For internal usage **only**.
|
|
817
|
+
*/
|
|
818
|
+
declare type _StoreWithGetters_Readonly<G> = {
|
|
819
|
+
readonly [K in keyof G as G[K] extends (...args: any[]) => any ? K : ComputedRef extends G[K] ? K : never]: G[K] extends (...args: any[]) => infer R ? R : UnwrapRef<G[K]>;
|
|
820
|
+
};
|
|
821
|
+
|
|
822
|
+
/**
|
|
823
|
+
* Store augmented with writable getters. For internal usage **only**.
|
|
824
|
+
*/
|
|
825
|
+
declare type _StoreWithGetters_Writable<G> = {
|
|
826
|
+
[K in keyof G as G[K] extends WritableComputedRef<any> ? K : never]: G[K] extends Readonly<WritableComputedRef<infer R>> ? R : never;
|
|
768
827
|
};
|
|
769
828
|
|
|
770
829
|
/**
|
|
@@ -791,7 +850,6 @@ export declare interface _StoreWithState<Id extends string, S extends StateTree,
|
|
|
791
850
|
$patch<F extends (state: UnwrapRef<S>) => any>(stateMutator: ReturnType<F> extends Promise<any> ? never : F): void;
|
|
792
851
|
/**
|
|
793
852
|
* Resets the store to its initial state by building a new state object.
|
|
794
|
-
* TODO: make this options only
|
|
795
853
|
*/
|
|
796
854
|
$reset(): void;
|
|
797
855
|
/**
|
|
@@ -925,13 +983,24 @@ export declare interface SubscriptionCallbackMutationPatchObject<S> extends _Sub
|
|
|
925
983
|
/**
|
|
926
984
|
* Object passed to `store.$patch()`.
|
|
927
985
|
*/
|
|
928
|
-
payload: _DeepPartial<S
|
|
986
|
+
payload: _DeepPartial<UnwrapRef<S>>;
|
|
929
987
|
}
|
|
930
988
|
|
|
931
|
-
|
|
932
|
-
|
|
989
|
+
/**
|
|
990
|
+
* Extracts the getters of a store while keeping writable and readonly properties. **Internal type DO NOT USE**.
|
|
991
|
+
*/
|
|
992
|
+
declare type _ToComputedRefs<SS> = {
|
|
993
|
+
[K in keyof SS]: true extends _IsReadonly<SS, K> ? ComputedRef<SS[K]> : WritableComputedRef<SS[K]>;
|
|
933
994
|
};
|
|
934
995
|
|
|
996
|
+
/**
|
|
997
|
+
* Extracts the refs of a state object from a store. If the state value is a Ref or type that extends ref, it will be kept as is.
|
|
998
|
+
* Otherwise, it will be converted into a Ref. **Internal type DO NOT USE**.
|
|
999
|
+
*/
|
|
1000
|
+
declare type _ToStateRefs<SS> = SS extends Store<string, infer UnwrappedState, _GettersTree<StateTree>, _ActionsTree> ? UnwrappedState extends _UnwrapAll<Pick<infer State, infer Key>> ? {
|
|
1001
|
+
[K in Key]: ToRef<State[K]>;
|
|
1002
|
+
} : ToRefs<UnwrappedState> : ToRefs<StoreState<SS>>;
|
|
1003
|
+
|
|
935
1004
|
/**
|
|
936
1005
|
* Type that enables refactoring through IDE.
|
|
937
1006
|
* For internal use **only**
|
|
@@ -975,10 +1044,17 @@ declare module 'vue/types/options' {
|
|
|
975
1044
|
}
|
|
976
1045
|
}
|
|
977
1046
|
|
|
978
|
-
|
|
1047
|
+
/**
|
|
1048
|
+
* NOTE: Used to be `@vue/runtime-core` but it break types from time to time. Then, in Vue docs, we started recommending
|
|
1049
|
+
* to use `vue` instead of `@vue/runtime-core` but that broke others' types so we reverted it. Now, local types do not
|
|
1050
|
+
* work if we use `@vue/runtime-core` so we are using `vue` again.
|
|
1051
|
+
*/
|
|
979
1052
|
// @ts-ignore: works on Vue 3, fails in Vue 2
|
|
980
|
-
declare module '
|
|
981
|
-
|
|
1053
|
+
declare module 'vue' {
|
|
1054
|
+
// This seems to be needed to not break auto import types based on the order
|
|
1055
|
+
// https://github.com/vuejs/pinia/pull/2730
|
|
1056
|
+
interface GlobalComponents {}
|
|
1057
|
+
interface ComponentCustomProperties {
|
|
982
1058
|
/**
|
|
983
1059
|
* Access to the application's Pinia
|
|
984
1060
|
*/
|
|
@@ -993,3 +1069,6 @@ declare module '@vue/runtime-core' {
|
|
|
993
1069
|
_pStores?: Record<string, StoreGeneric>
|
|
994
1070
|
}
|
|
995
1071
|
}
|
|
1072
|
+
|
|
1073
|
+
// normally this is only needed in .d.ts files
|
|
1074
|
+
export {}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pinia",
|
|
3
|
-
"version": "2.1
|
|
3
|
+
"version": "2.3.1",
|
|
4
4
|
"description": "Intuitive, type safe and flexible Store for Vue",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "dist/pinia.mjs",
|
|
@@ -62,24 +62,20 @@
|
|
|
62
62
|
],
|
|
63
63
|
"license": "MIT",
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@microsoft/api-extractor": "7.
|
|
66
|
-
"@vue/test-utils": "^2.4.
|
|
65
|
+
"@microsoft/api-extractor": "7.48.0",
|
|
66
|
+
"@vue/test-utils": "^2.4.6"
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
|
-
"@vue/devtools-api": "^6.
|
|
70
|
-
"vue-demi": "
|
|
69
|
+
"@vue/devtools-api": "^6.6.3",
|
|
70
|
+
"vue-demi": "^0.14.10"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
73
|
-
"@vue/composition-api": "^1.4.0",
|
|
74
73
|
"typescript": ">=4.4.4",
|
|
75
|
-
"vue": "^2.
|
|
74
|
+
"vue": "^2.7.0 || ^3.5.11"
|
|
76
75
|
},
|
|
77
76
|
"peerDependenciesMeta": {
|
|
78
77
|
"typescript": {
|
|
79
78
|
"optional": true
|
|
80
|
-
},
|
|
81
|
-
"@vue/composition-api": {
|
|
82
|
-
"optional": true
|
|
83
79
|
}
|
|
84
80
|
},
|
|
85
81
|
"repository": {
|
|
@@ -95,6 +91,6 @@
|
|
|
95
91
|
"build:dts": "api-extractor run --local --verbose && tail -n +3 ./src/globalExtensions.ts >> dist/pinia.d.ts",
|
|
96
92
|
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s --commit-path . -l pinia -r 1",
|
|
97
93
|
"test:dts": "tsc -p ./test-dts/tsconfig.json",
|
|
98
|
-
"test": "
|
|
94
|
+
"test": "pnpm run build && pnpm run build:dts && pnpm test:dts"
|
|
99
95
|
}
|
|
100
96
|
}
|
|
@@ -79,16 +79,6 @@ declare namespace AtRule {
|
|
|
79
79
|
* ```
|
|
80
80
|
*/
|
|
81
81
|
declare class AtRule_ extends Container {
|
|
82
|
-
/**
|
|
83
|
-
* The at-rule’s name immediately follows the `@`.
|
|
84
|
-
*
|
|
85
|
-
* ```js
|
|
86
|
-
* const root = postcss.parse('@media print {}')
|
|
87
|
-
* const media = root.first
|
|
88
|
-
* media.name //=> 'media'
|
|
89
|
-
* ```
|
|
90
|
-
*/
|
|
91
|
-
name: string
|
|
92
82
|
/**
|
|
93
83
|
* An array containing the layer’s children.
|
|
94
84
|
*
|
|
@@ -107,7 +97,23 @@ declare class AtRule_ extends Container {
|
|
|
107
97
|
* layer.nodes //=> undefined
|
|
108
98
|
* ```
|
|
109
99
|
*/
|
|
110
|
-
nodes: Container['nodes']
|
|
100
|
+
nodes: Container['nodes'] | undefined
|
|
101
|
+
parent: ContainerWithChildren | undefined
|
|
102
|
+
|
|
103
|
+
raws: AtRule.AtRuleRaws
|
|
104
|
+
type: 'atrule'
|
|
105
|
+
/**
|
|
106
|
+
* The at-rule’s name immediately follows the `@`.
|
|
107
|
+
*
|
|
108
|
+
* ```js
|
|
109
|
+
* const root = postcss.parse('@media print {}')
|
|
110
|
+
* const media = root.first
|
|
111
|
+
* media.name //=> 'media'
|
|
112
|
+
* ```
|
|
113
|
+
*/
|
|
114
|
+
get name(): string
|
|
115
|
+
set name(value: string)
|
|
116
|
+
|
|
111
117
|
/**
|
|
112
118
|
* The at-rule’s parameters, the values that follow the at-rule’s name
|
|
113
119
|
* but precede any `{}` block.
|
|
@@ -118,18 +124,15 @@ declare class AtRule_ extends Container {
|
|
|
118
124
|
* media.params //=> 'print, screen'
|
|
119
125
|
* ```
|
|
120
126
|
*/
|
|
121
|
-
params: string
|
|
122
|
-
parent: ContainerWithChildren | undefined
|
|
127
|
+
get params(): string
|
|
123
128
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
type: 'atrule'
|
|
129
|
+
set params(value: string)
|
|
127
130
|
|
|
128
131
|
constructor(defaults?: AtRule.AtRuleProps)
|
|
129
132
|
assign(overrides: AtRule.AtRuleProps | object): this
|
|
130
|
-
clone(overrides?: Partial<AtRule.AtRuleProps>):
|
|
131
|
-
cloneAfter(overrides?: Partial<AtRule.AtRuleProps>):
|
|
132
|
-
cloneBefore(overrides?: Partial<AtRule.AtRuleProps>):
|
|
133
|
+
clone(overrides?: Partial<AtRule.AtRuleProps>): this
|
|
134
|
+
cloneAfter(overrides?: Partial<AtRule.AtRuleProps>): this
|
|
135
|
+
cloneBefore(overrides?: Partial<AtRule.AtRuleProps>): this
|
|
133
136
|
}
|
|
134
137
|
|
|
135
138
|
declare class AtRule extends AtRule_ {}
|
|
@@ -48,18 +48,19 @@ declare namespace Comment {
|
|
|
48
48
|
declare class Comment_ extends Node {
|
|
49
49
|
parent: Container | undefined
|
|
50
50
|
raws: Comment.CommentRaws
|
|
51
|
+
type: 'comment'
|
|
51
52
|
/**
|
|
52
53
|
* The comment's text.
|
|
53
54
|
*/
|
|
54
|
-
text: string
|
|
55
|
+
get text(): string
|
|
55
56
|
|
|
56
|
-
|
|
57
|
+
set text(value: string)
|
|
57
58
|
|
|
58
59
|
constructor(defaults?: Comment.CommentProps)
|
|
59
60
|
assign(overrides: Comment.CommentProps | object): this
|
|
60
|
-
clone(overrides?: Partial<Comment.CommentProps>):
|
|
61
|
-
cloneAfter(overrides?: Partial<Comment.CommentProps>):
|
|
62
|
-
cloneBefore(overrides?: Partial<Comment.CommentProps>):
|
|
61
|
+
clone(overrides?: Partial<Comment.CommentProps>): this
|
|
62
|
+
cloneAfter(overrides?: Partial<Comment.CommentProps>): this
|
|
63
|
+
cloneBefore(overrides?: Partial<Comment.CommentProps>): this
|
|
63
64
|
}
|
|
64
65
|
|
|
65
66
|
declare class Comment extends Comment_ {}
|