@histoire/vendors 0.11.6 → 0.11.8
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/node_modules/@babel/parser/package.json +2 -2
- package/dist/client/node_modules/@babel/parser/typings/babel-parser.d.ts +92 -80
- package/dist/client/node_modules/compute-scroll-into-view/package.json +58 -56
- package/dist/client/node_modules/compute-scroll-into-view/typings/index.d.ts +5 -5
- package/dist/client/node_modules/postcss/package.json +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@babel/parser",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.20.5",
|
|
4
4
|
"description": "A JavaScript parser",
|
|
5
5
|
"author": "The Babel Team (https://babel.dev/team)",
|
|
6
6
|
"homepage": "https://babel.dev/docs/en/next/babel-parser",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"files": [
|
|
28
28
|
"bin",
|
|
29
29
|
"lib",
|
|
30
|
-
"typings",
|
|
30
|
+
"typings/babel-parser.d.ts",
|
|
31
31
|
"index.cjs"
|
|
32
32
|
],
|
|
33
33
|
"engines": {
|
|
@@ -1,3 +1,85 @@
|
|
|
1
|
+
// This file is auto-generated! Do not modify it directly.
|
|
2
|
+
/* eslint-disable import/no-extraneous-dependencies, @typescript-eslint/consistent-type-imports, prettier/prettier */
|
|
3
|
+
import * as _babel_types from '@babel/types';
|
|
4
|
+
|
|
5
|
+
type Plugin =
|
|
6
|
+
| "asyncDoExpressions"
|
|
7
|
+
| "asyncGenerators"
|
|
8
|
+
| "bigInt"
|
|
9
|
+
| "classPrivateMethods"
|
|
10
|
+
| "classPrivateProperties"
|
|
11
|
+
| "classProperties"
|
|
12
|
+
| "classStaticBlock" // Enabled by default
|
|
13
|
+
| "decimal"
|
|
14
|
+
| "decorators-legacy"
|
|
15
|
+
| "decoratorAutoAccessors"
|
|
16
|
+
| "destructuringPrivate"
|
|
17
|
+
| "doExpressions"
|
|
18
|
+
| "dynamicImport"
|
|
19
|
+
| "explicitResourceManagement"
|
|
20
|
+
| "exportDefaultFrom"
|
|
21
|
+
| "exportNamespaceFrom" // deprecated
|
|
22
|
+
| "flow"
|
|
23
|
+
| "flowComments"
|
|
24
|
+
| "functionBind"
|
|
25
|
+
| "functionSent"
|
|
26
|
+
| "importMeta"
|
|
27
|
+
| "jsx"
|
|
28
|
+
| "logicalAssignment"
|
|
29
|
+
| "importAssertions"
|
|
30
|
+
| "importReflection"
|
|
31
|
+
| "moduleBlocks"
|
|
32
|
+
| "moduleStringNames"
|
|
33
|
+
| "nullishCoalescingOperator"
|
|
34
|
+
| "numericSeparator"
|
|
35
|
+
| "objectRestSpread"
|
|
36
|
+
| "optionalCatchBinding"
|
|
37
|
+
| "optionalChaining"
|
|
38
|
+
| "partialApplication"
|
|
39
|
+
| "placeholders"
|
|
40
|
+
| "privateIn" // Enabled by default
|
|
41
|
+
| "regexpUnicodeSets"
|
|
42
|
+
| "throwExpressions"
|
|
43
|
+
| "topLevelAwait"
|
|
44
|
+
| "v8intrinsic"
|
|
45
|
+
| ParserPluginWithOptions[0];
|
|
46
|
+
|
|
47
|
+
type ParserPluginWithOptions =
|
|
48
|
+
| ["decorators", DecoratorsPluginOptions]
|
|
49
|
+
| ["estree", { classFeatures?: boolean }]
|
|
50
|
+
// @deprecated
|
|
51
|
+
| ["moduleAttributes", { version: "may-2020" }]
|
|
52
|
+
| ["pipelineOperator", PipelineOperatorPluginOptions]
|
|
53
|
+
| ["recordAndTuple", RecordAndTuplePluginOptions]
|
|
54
|
+
| ["flow", FlowPluginOptions]
|
|
55
|
+
| ["typescript", TypeScriptPluginOptions];
|
|
56
|
+
|
|
57
|
+
type PluginConfig = Plugin | ParserPluginWithOptions;
|
|
58
|
+
|
|
59
|
+
interface DecoratorsPluginOptions {
|
|
60
|
+
decoratorsBeforeExport?: boolean;
|
|
61
|
+
allowCallParenthesized?: boolean;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
interface PipelineOperatorPluginOptions {
|
|
65
|
+
proposal: "minimal" | "fsharp" | "hack" | "smart";
|
|
66
|
+
topicToken?: "%" | "#" | "@@" | "^^" | "^";
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
interface RecordAndTuplePluginOptions {
|
|
70
|
+
syntaxType: "bar" | "hash";
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
interface FlowPluginOptions {
|
|
74
|
+
all?: boolean;
|
|
75
|
+
enums?: boolean;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
interface TypeScriptPluginOptions {
|
|
79
|
+
dts?: boolean;
|
|
80
|
+
disallowAmbiguousJSXLike?: boolean;
|
|
81
|
+
}
|
|
82
|
+
|
|
1
83
|
// Type definitions for @babel/parser
|
|
2
84
|
// Project: https://github.com/babel/babel/tree/main/packages/babel-parser
|
|
3
85
|
// Definitions by: Troy Gerwien <https://github.com/yortus>
|
|
@@ -8,20 +90,20 @@
|
|
|
8
90
|
/**
|
|
9
91
|
* Parse the provided code as an entire ECMAScript program.
|
|
10
92
|
*/
|
|
11
|
-
|
|
93
|
+
declare function parse(
|
|
12
94
|
input: string,
|
|
13
95
|
options?: ParserOptions
|
|
14
|
-
): ParseResult<
|
|
96
|
+
): ParseResult<_babel_types.File>;
|
|
15
97
|
|
|
16
98
|
/**
|
|
17
99
|
* Parse the provided code as a single expression.
|
|
18
100
|
*/
|
|
19
|
-
|
|
101
|
+
declare function parseExpression(
|
|
20
102
|
input: string,
|
|
21
103
|
options?: ParserOptions
|
|
22
|
-
): ParseResult<
|
|
104
|
+
): ParseResult<_babel_types.Expression>;
|
|
23
105
|
|
|
24
|
-
|
|
106
|
+
interface ParserOptions {
|
|
25
107
|
/**
|
|
26
108
|
* By default, import and export declarations can only appear at a program's top level.
|
|
27
109
|
* Setting this option to true allows them anywhere where a statement is allowed.
|
|
@@ -125,87 +207,15 @@ export interface ParserOptions {
|
|
|
125
207
|
createParenthesizedExpressions?: boolean;
|
|
126
208
|
}
|
|
127
209
|
|
|
128
|
-
|
|
129
|
-
| "asyncDoExpressions"
|
|
130
|
-
| "asyncGenerators"
|
|
131
|
-
| "bigInt"
|
|
132
|
-
| "classPrivateMethods"
|
|
133
|
-
| "classPrivateProperties"
|
|
134
|
-
| "classProperties"
|
|
135
|
-
| "classStaticBlock" // Enabled by default
|
|
136
|
-
| "decimal"
|
|
137
|
-
| "decorators"
|
|
138
|
-
| "decorators-legacy"
|
|
139
|
-
| "decoratorAutoAccessors"
|
|
140
|
-
| "destructuringPrivate"
|
|
141
|
-
| "doExpressions"
|
|
142
|
-
| "dynamicImport"
|
|
143
|
-
| "estree"
|
|
144
|
-
| "exportDefaultFrom"
|
|
145
|
-
| "exportNamespaceFrom" // deprecated
|
|
146
|
-
| "flow"
|
|
147
|
-
| "flowComments"
|
|
148
|
-
| "functionBind"
|
|
149
|
-
| "functionSent"
|
|
150
|
-
| "importMeta"
|
|
151
|
-
| "jsx"
|
|
152
|
-
| "logicalAssignment"
|
|
153
|
-
| "importAssertions"
|
|
154
|
-
| "moduleBlocks"
|
|
155
|
-
| "moduleStringNames"
|
|
156
|
-
| "nullishCoalescingOperator"
|
|
157
|
-
| "numericSeparator"
|
|
158
|
-
| "objectRestSpread"
|
|
159
|
-
| "optionalCatchBinding"
|
|
160
|
-
| "optionalChaining"
|
|
161
|
-
| "partialApplication"
|
|
162
|
-
| "pipelineOperator"
|
|
163
|
-
| "placeholders"
|
|
164
|
-
| "privateIn" // Enabled by default
|
|
165
|
-
| "recordAndTuple"
|
|
166
|
-
| "regexpUnicodeSets"
|
|
167
|
-
| "throwExpressions"
|
|
168
|
-
| "topLevelAwait"
|
|
169
|
-
| "typescript"
|
|
170
|
-
| "v8intrinsic"
|
|
171
|
-
| ParserPluginWithOptions;
|
|
172
|
-
|
|
173
|
-
export type ParserPluginWithOptions =
|
|
174
|
-
| ["decorators", DecoratorsPluginOptions]
|
|
175
|
-
| ["pipelineOperator", PipelineOperatorPluginOptions]
|
|
176
|
-
| ["recordAndTuple", RecordAndTuplePluginOptions]
|
|
177
|
-
| ["flow", FlowPluginOptions]
|
|
178
|
-
| ["typescript", TypeScriptPluginOptions];
|
|
179
|
-
|
|
180
|
-
export interface DecoratorsPluginOptions {
|
|
181
|
-
decoratorsBeforeExport?: boolean;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
export interface PipelineOperatorPluginOptions {
|
|
185
|
-
proposal: "minimal" | "fsharp" | "hack" | "smart";
|
|
186
|
-
topicToken?: "%" | "#" | "@@" | "^^" | "^";
|
|
187
|
-
}
|
|
210
|
+
type ParserPlugin = PluginConfig;
|
|
188
211
|
|
|
189
|
-
export interface RecordAndTuplePluginOptions {
|
|
190
|
-
syntaxType?: "bar" | "hash";
|
|
191
|
-
}
|
|
192
212
|
|
|
193
|
-
|
|
194
|
-
all?: boolean;
|
|
195
|
-
enums?: boolean;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
export interface TypeScriptPluginOptions {
|
|
199
|
-
dts?: boolean;
|
|
200
|
-
disallowAmbiguousJSXLike?: boolean;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
export const tokTypes: {
|
|
213
|
+
declare const tokTypes: {
|
|
204
214
|
// todo(flow->ts) real token type
|
|
205
215
|
[name: string]: any;
|
|
206
216
|
};
|
|
207
217
|
|
|
208
|
-
|
|
218
|
+
interface ParseError {
|
|
209
219
|
code: string;
|
|
210
220
|
reasonCode: string;
|
|
211
221
|
}
|
|
@@ -213,3 +223,5 @@ export interface ParseError {
|
|
|
213
223
|
type ParseResult<Result> = Result & {
|
|
214
224
|
errors: ParseError[];
|
|
215
225
|
};
|
|
226
|
+
|
|
227
|
+
export { DecoratorsPluginOptions, FlowPluginOptions, ParseError, ParseResult, ParserOptions, ParserPlugin, ParserPluginWithOptions, PipelineOperatorPluginOptions, RecordAndTuplePluginOptions, TypeScriptPluginOptions, parse, parseExpression, tokTypes };
|
|
@@ -1,16 +1,40 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "compute-scroll-into-view",
|
|
3
|
+
"version": "1.0.20",
|
|
3
4
|
"description": "The engine that powers scroll-into-view-if-needed",
|
|
4
|
-
"
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
"keywords": [
|
|
6
|
+
"if-needed",
|
|
7
|
+
"scroll",
|
|
8
|
+
"scroll-into-view",
|
|
9
|
+
"scroll-into-view-if-needed",
|
|
10
|
+
"scrollIntoView",
|
|
11
|
+
"scrollIntoViewIfNeeded",
|
|
12
|
+
"scrollMode",
|
|
13
|
+
"typescript"
|
|
14
|
+
],
|
|
15
|
+
"homepage": "https://scroll-into-view.dev",
|
|
7
16
|
"repository": {
|
|
8
17
|
"type": "git",
|
|
9
|
-
"url": "git+https://github.com/
|
|
18
|
+
"url": "git+https://github.com/scroll-into-view/compute-scroll-into-view.git"
|
|
19
|
+
},
|
|
20
|
+
"license": "MIT",
|
|
21
|
+
"author": "Cody Olsen",
|
|
22
|
+
"sideEffects": false,
|
|
23
|
+
"exports": {
|
|
24
|
+
".": {
|
|
25
|
+
"types": "./typings/index.d.ts",
|
|
26
|
+
"source": "./src/index.ts",
|
|
27
|
+
"import": "./dist/index.mjs",
|
|
28
|
+
"require": "./dist/index.js",
|
|
29
|
+
"default": "./dist/index.mjs"
|
|
30
|
+
},
|
|
31
|
+
"./package.json": "./package.json"
|
|
10
32
|
},
|
|
11
|
-
"version": "1.0.17",
|
|
12
33
|
"main": "dist/index.js",
|
|
13
|
-
"
|
|
34
|
+
"umd:main": "umd/compute-scroll-into-view.min.js",
|
|
35
|
+
"module": "dist/index.mjs",
|
|
36
|
+
"source": "src/index.ts",
|
|
37
|
+
"typings": "typings/index.d.ts",
|
|
14
38
|
"files": [
|
|
15
39
|
"dist",
|
|
16
40
|
"typings",
|
|
@@ -22,69 +46,47 @@
|
|
|
22
46
|
"build": "npm run build:dist && npm run build:umd",
|
|
23
47
|
"build:dist": "microbundle -f cjs,es",
|
|
24
48
|
"build:umd": "microbundle -f umd -o umd",
|
|
25
|
-
"
|
|
26
|
-
"prepublishOnly": "unset npm_config_cafile && npm run build",
|
|
49
|
+
"prepublishOnly": "npm run build",
|
|
27
50
|
"test": "jest -c integration/jest.config.js",
|
|
28
51
|
"typecheck": "tsc --noEmit"
|
|
29
52
|
},
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
"
|
|
37
|
-
"jest-puppeteer": "4.4.0",
|
|
38
|
-
"lint-staged": "10.5.4",
|
|
39
|
-
"microbundle": "^0.13.0",
|
|
40
|
-
"prettier": "2.2.1",
|
|
41
|
-
"prettier-package-json": "2.1.3",
|
|
42
|
-
"puppeteer": "5.5.0",
|
|
43
|
-
"rimraf": "3.0.2",
|
|
44
|
-
"serve": "11.3.2",
|
|
45
|
-
"typescript": "4.1.5"
|
|
53
|
+
"husky": {
|
|
54
|
+
"hooks": {
|
|
55
|
+
"pre-commit": "lint-staged"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"lint-staged": {
|
|
59
|
+
"*.{js,ts,tsx,json,md}": "prettier --write"
|
|
46
60
|
},
|
|
47
|
-
"keywords": [
|
|
48
|
-
"if-needed",
|
|
49
|
-
"scroll",
|
|
50
|
-
"scroll-into-view",
|
|
51
|
-
"scroll-into-view-if-needed",
|
|
52
|
-
"scrollIntoView",
|
|
53
|
-
"scrollIntoViewIfNeeded",
|
|
54
|
-
"scrollMode",
|
|
55
|
-
"typescript"
|
|
56
|
-
],
|
|
57
61
|
"browserify": {
|
|
58
62
|
"transform": [
|
|
59
63
|
"loose-envify"
|
|
60
64
|
]
|
|
61
65
|
},
|
|
66
|
+
"prettier": {
|
|
67
|
+
"semi": false,
|
|
68
|
+
"singleQuote": true
|
|
69
|
+
},
|
|
70
|
+
"devDependencies": {
|
|
71
|
+
"@sanity/semantic-release-preset": "^2.0.2",
|
|
72
|
+
"husky": "^8.0.2",
|
|
73
|
+
"jest": "^29.3.1",
|
|
74
|
+
"jest-junit": "^15.0.0",
|
|
75
|
+
"jest-puppeteer": "^6.1.1",
|
|
76
|
+
"lint-staged": "^13.0.4",
|
|
77
|
+
"microbundle": "^0.15.1",
|
|
78
|
+
"prettier": "^2.8.0",
|
|
79
|
+
"prettier-plugin-packagejson": "^2.3.0",
|
|
80
|
+
"puppeteer": "^19.3.0",
|
|
81
|
+
"rimraf": "^3.0.2",
|
|
82
|
+
"serve": "^14.1.2",
|
|
83
|
+
"typescript": "^4.9.3"
|
|
84
|
+
},
|
|
62
85
|
"bundlesize": [
|
|
63
86
|
{
|
|
64
87
|
"path": "./umd/compute-scroll-into-view.min.js",
|
|
65
88
|
"maxSize": "3 kB",
|
|
66
89
|
"compression": "none"
|
|
67
90
|
}
|
|
68
|
-
]
|
|
69
|
-
"husky": {
|
|
70
|
-
"hooks": {
|
|
71
|
-
"pre-commit": "lint-staged"
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
"lint-staged": {
|
|
75
|
-
"*.{js,ts,tsx,json,md}": "prettier --write",
|
|
76
|
-
"**/package.json": "prettier-package-json --write"
|
|
77
|
-
},
|
|
78
|
-
"prettier": {
|
|
79
|
-
"semi": false,
|
|
80
|
-
"singleQuote": true,
|
|
81
|
-
"trailingComma": "es5"
|
|
82
|
-
},
|
|
83
|
-
"release": {
|
|
84
|
-
"prepare": [
|
|
85
|
-
"@semantic-release/npm"
|
|
86
|
-
]
|
|
87
|
-
},
|
|
88
|
-
"source": "src/index.ts",
|
|
89
|
-
"umd:main": "umd/compute-scroll-into-view.min.js"
|
|
91
|
+
]
|
|
90
92
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
type ScrollLogicalPosition = 'start' | 'center' | 'end' | 'nearest';
|
|
2
|
+
type ScrollMode = 'always' | 'if-needed';
|
|
3
|
+
type SkipOverflowHiddenElements = boolean;
|
|
4
4
|
interface Options {
|
|
5
5
|
block?: ScrollLogicalPosition;
|
|
6
6
|
inline?: ScrollLogicalPosition;
|
|
@@ -8,8 +8,8 @@ interface Options {
|
|
|
8
8
|
boundary?: CustomScrollBoundary;
|
|
9
9
|
skipOverflowHiddenElements?: SkipOverflowHiddenElements;
|
|
10
10
|
}
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
type CustomScrollBoundaryCallback = (parent: Element) => boolean;
|
|
12
|
+
type CustomScrollBoundary = Element | CustomScrollBoundaryCallback | null;
|
|
13
13
|
interface CustomScrollAction {
|
|
14
14
|
el: Element;
|
|
15
15
|
top: number;
|