@histoire/vendors 1.0.0-alpha.1 → 1.0.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/dist/client/b-floating-vue.js +1 -1
  2. package/dist/client/b-iconify.js +142 -255
  3. package/dist/client/b-pinia.js +3 -3
  4. package/dist/client/b-scroll.js +1 -1
  5. package/dist/client/b-vue-use.js +1200 -764
  6. package/dist/client/b-vue.js +1 -1
  7. package/dist/client/node_modules/@babel/helper-string-parser/package.json +1 -1
  8. package/dist/client/node_modules/@babel/helper-validator-identifier/package.json +1 -1
  9. package/dist/client/node_modules/@babel/parser/package.json +7 -7
  10. package/dist/client/node_modules/@babel/parser/typings/babel-parser.d.ts +137 -165
  11. package/dist/client/node_modules/@babel/types/lib/index-legacy.d.ts +61 -40
  12. package/dist/client/node_modules/@babel/types/lib/index.d.ts +1691 -1658
  13. package/dist/client/node_modules/@babel/types/package.json +14 -14
  14. package/dist/client/node_modules/@floating-ui/core/dist/floating-ui.core.d.ts +4 -1
  15. package/dist/client/node_modules/@floating-ui/core/package.json +2 -2
  16. package/dist/client/node_modules/@floating-ui/utils/package.json +1 -1
  17. package/dist/client/node_modules/@iconify/vue/dist/iconify.d.ts +59 -6
  18. package/dist/client/node_modules/@iconify/vue/dist/offline.d.ts +9 -2
  19. package/dist/client/node_modules/@iconify/vue/package.json +14 -14
  20. package/dist/client/node_modules/@jridgewell/sourcemap-codec/package.json +39 -47
  21. package/dist/client/node_modules/@vueuse/core/index.d.ts +486 -236
  22. package/dist/client/node_modules/@vueuse/core/package.json +18 -6
  23. package/dist/client/node_modules/@vueuse/metadata/package.json +11 -4
  24. package/dist/client/node_modules/@vueuse/shared/index.d.ts +50 -16
  25. package/dist/client/node_modules/@vueuse/shared/package.json +15 -3
  26. package/dist/client/node_modules/nanoid/package.json +3 -2
  27. package/dist/client/node_modules/pinia/dist/pinia.d.ts +1 -1
  28. package/dist/client/node_modules/pinia/package.json +1 -1
  29. package/dist/client/node_modules/postcss/lib/at-rule.d.ts +9 -9
  30. package/dist/client/node_modules/postcss/lib/comment.d.ts +7 -7
  31. package/dist/client/node_modules/postcss/lib/container.d.ts +52 -52
  32. package/dist/client/node_modules/postcss/lib/declaration.d.ts +9 -9
  33. package/dist/client/node_modules/postcss/lib/input.d.ts +38 -19
  34. package/dist/client/node_modules/postcss/lib/lazy-result.d.ts +40 -40
  35. package/dist/client/node_modules/postcss/lib/no-work-result.d.ts +5 -5
  36. package/dist/client/node_modules/postcss/lib/node.d.ts +25 -10
  37. package/dist/client/node_modules/postcss/lib/result.d.ts +10 -10
  38. package/dist/client/node_modules/postcss/lib/rule.d.ts +8 -8
  39. package/dist/client/node_modules/postcss/lib/stringifier.d.ts +2 -2
  40. package/dist/client/node_modules/postcss/package.json +4 -4
  41. package/dist/client/vue.runtime.esm-bundler.js +1 -1
  42. package/package.json +1 -1
  43. package/dist/client/node_modules/@jridgewell/sourcemap-codec/dist/types/scopes.d.ts +0 -49
  44. package/dist/client/node_modules/@jridgewell/sourcemap-codec/dist/types/sourcemap-codec.d.ts +0 -8
  45. package/dist/client/node_modules/@jridgewell/sourcemap-codec/dist/types/strings.d.ts +0 -15
  46. package/dist/client/node_modules/@jridgewell/sourcemap-codec/dist/types/vlq.d.ts +0 -6
  47. /package/dist/client/node_modules/{vue-demi → pinia/node_modules/vue-demi}/lib/index.d.ts +0 -0
  48. /package/dist/client/node_modules/{vue-demi → pinia/node_modules/vue-demi}/lib/v2/index.d.ts +0 -0
  49. /package/dist/client/node_modules/{vue-demi → pinia/node_modules/vue-demi}/lib/v2.7/index.d.ts +0 -0
  50. /package/dist/client/node_modules/{vue-demi → pinia/node_modules/vue-demi}/lib/v3/index.d.ts +0 -0
  51. /package/dist/client/node_modules/{vue-demi → pinia/node_modules/vue-demi}/package.json +0 -0
@@ -1 +1 @@
1
- export { an as BaseTransition, ao as BaseTransitionPropsValidators, ap as Comment, aq as DeprecationTypes, by as EffectScope, ar as ErrorCodes, as as ErrorTypeStrings, F as Fragment, at as KeepAlive, bz as ReactiveEffect, au as Static, av as Suspense, aw as Teleport, ax as Text, bA as TrackOpTypes, a4 as Transition, $ as TransitionGroup, bB as TriggerOpTypes, a5 as VueElement, ay as assertNumber, az as callWithAsyncErrorHandling, aA as callWithErrorHandling, bM as camelize, bN as capitalize, aB as cloneVNode, aC as compatUtils, a3 as compile, L as computed, v as createApp, f as createBlock, l as createCommentVNode, c as createElementBlock, h as createElementVNode, aD as createHydrationRenderer, aE as createPropsRestProxy, aF as createRenderer, a6 as createSSRApp, aG as createSlots, aH as createStaticVNode, aI as createTextVNode, s as createVNode, X as customRef, aJ as defineAsyncComponent, d as defineComponent, a7 as defineCustomElement, aK as defineEmits, aL as defineExpose, aM as defineModel, aN as defineOptions, aO as defineProps, a8 as defineSSRCustomElement, aP as defineSlots, aQ as devtools, bC as effect, E as effectScope, O as getCurrentInstance, I as getCurrentScope, bD as getCurrentWatcher, aR as getTransitionRawChildren, g as guardReactiveProps, x as h, aS as handleError, y as hasInjectionContext, a9 as hydrate, aT as hydrateOnIdle, aU as hydrateOnInteraction, aV as hydrateOnMediaQuery, aW as hydrateOnVisible, aX as initCustomFormatter, aa as initDirectivesForSSR, z as inject, aY as isMemoSame, bE as isProxy, H as isReactive, a1 as isReadonly, G as isRef, aZ as isRuntimeOnly, bF as isShallow, a_ as isVNode, D as markRaw, a$ as mergeDefaults, b0 as mergeModels, m as mergeProps, b as nextTick, n as normalizeClass, a as normalizeProps, j as normalizeStyle, R as onActivated, Y as onBeforeMount, Z as onBeforeUnmount, a2 as onBeforeUpdate, Q as onDeactivated, b1 as onErrorCaptured, _ as onMounted, b2 as onRenderTracked, b3 as onRenderTriggered, J as onScopeDispose, b4 as onServerPrefetch, P as onUnmounted, a0 as onUpdated, bG as onWatcherCleanup, o as openBlock, e as popScopeId, T as provide, bH as proxyRefs, p as pushScopeId, b5 as queuePostFlushCb, M as reactive, W as readonly, u as ref, b6 as registerRuntimeCompiler, ab as render, b7 as renderList, r as renderSlot, i as resolveComponent, b8 as resolveDirective, b9 as resolveDynamicComponent, ba as resolveFilter, bb as resolveTransitionHooks, bc as setBlockTracking, bd as setDevtoolsHook, be as setTransitionHooks, V as shallowReactive, bI as shallowReadonly, U as shallowRef, bf as ssrContextKey, bg as ssrUtils, bJ as stop, t as toDisplayString, bO as toHandlerKey, bh as toHandlers, A as toRaw, N as toRef, K as toRefs, bK as toValue, bi as transformVNodeArgs, bL as triggerRef, C as unref, bj as useAttrs, ac as useCssModule, ad as useCssVars, ae as useHost, bk as useId, bl as useModel, bm as useSSRContext, af as useShadowRoot, bn as useSlots, bo as useTemplateRef, bp as useTransitionState, ag as vModelCheckbox, ah as vModelDynamic, ai as vModelRadio, aj as vModelSelect, ak as vModelText, al as vShow, bq as version, br as warn, B as watch, S as watchEffect, bs as watchPostEffect, bt as watchSyncEffect, bu as withAsyncContext, q as withCtx, bv as withDefaults, bw as withDirectives, k as withKeys, bx as withMemo, am as withModifiers, w as withScopeId } from './vue.runtime.esm-bundler.js';
1
+ export { ao as BaseTransition, ap as BaseTransitionPropsValidators, aq as Comment, ar as DeprecationTypes, bz as EffectScope, as as ErrorCodes, at as ErrorTypeStrings, F as Fragment, au as KeepAlive, bA as ReactiveEffect, av as Static, aw as Suspense, ax as Teleport, ay as Text, bB as TrackOpTypes, a5 as Transition, a0 as TransitionGroup, bC as TriggerOpTypes, a6 as VueElement, az as assertNumber, aA as callWithAsyncErrorHandling, aB as callWithErrorHandling, bM as camelize, bN as capitalize, aC as cloneVNode, aD as compatUtils, a4 as compile, L as computed, v as createApp, f as createBlock, l as createCommentVNode, c as createElementBlock, h as createElementVNode, aE as createHydrationRenderer, aF as createPropsRestProxy, aG as createRenderer, a7 as createSSRApp, aH as createSlots, aI as createStaticVNode, aJ as createTextVNode, s as createVNode, X as customRef, aK as defineAsyncComponent, d as defineComponent, a8 as defineCustomElement, aL as defineEmits, aM as defineExpose, aN as defineModel, aO as defineOptions, aP as defineProps, a9 as defineSSRCustomElement, aQ as defineSlots, aR as devtools, bD as effect, E as effectScope, O as getCurrentInstance, I as getCurrentScope, bE as getCurrentWatcher, aS as getTransitionRawChildren, g as guardReactiveProps, x as h, aT as handleError, y as hasInjectionContext, aa as hydrate, aU as hydrateOnIdle, aV as hydrateOnInteraction, aW as hydrateOnMediaQuery, aX as hydrateOnVisible, aY as initCustomFormatter, ab as initDirectivesForSSR, z as inject, aZ as isMemoSame, bF as isProxy, H as isReactive, a2 as isReadonly, G as isRef, a_ as isRuntimeOnly, bG as isShallow, a$ as isVNode, D as markRaw, b0 as mergeDefaults, b1 as mergeModels, m as mergeProps, b as nextTick, n as normalizeClass, a as normalizeProps, k as normalizeStyle, R as onActivated, Z as onBeforeMount, _ as onBeforeUnmount, a3 as onBeforeUpdate, Q as onDeactivated, b2 as onErrorCaptured, $ as onMounted, b3 as onRenderTracked, b4 as onRenderTriggered, J as onScopeDispose, b5 as onServerPrefetch, P as onUnmounted, a1 as onUpdated, bH as onWatcherCleanup, o as openBlock, e as popScopeId, T as provide, bI as proxyRefs, p as pushScopeId, b6 as queuePostFlushCb, M as reactive, W as readonly, u as ref, b7 as registerRuntimeCompiler, ac as render, b8 as renderList, r as renderSlot, i as resolveComponent, b9 as resolveDirective, ba as resolveDynamicComponent, bb as resolveFilter, bc as resolveTransitionHooks, bd as setBlockTracking, be as setDevtoolsHook, bf as setTransitionHooks, V as shallowReactive, bJ as shallowReadonly, U as shallowRef, bg as ssrContextKey, bh as ssrUtils, bK as stop, t as toDisplayString, bO as toHandlerKey, bi as toHandlers, A as toRaw, N as toRef, K as toRefs, Y as toValue, bj as transformVNodeArgs, bL as triggerRef, C as unref, bk as useAttrs, ad as useCssModule, ae as useCssVars, af as useHost, bl as useId, bm as useModel, bn as useSSRContext, ag as useShadowRoot, bo as useSlots, bp as useTemplateRef, bq as useTransitionState, ah as vModelCheckbox, ai as vModelDynamic, aj as vModelRadio, ak as vModelSelect, al as vModelText, am as vShow, br as version, bs as warn, B as watch, S as watchEffect, bt as watchPostEffect, bu as watchSyncEffect, bv as withAsyncContext, q as withCtx, bw as withDefaults, bx as withDirectives, j as withKeys, by as withMemo, an as withModifiers, w as withScopeId } from './vue.runtime.esm-bundler.js';
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babel/helper-string-parser",
3
- "version": "7.25.9",
3
+ "version": "7.27.1",
4
4
  "description": "A utility package to parse strings",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babel/helper-validator-identifier",
3
- "version": "7.25.9",
3
+ "version": "7.27.1",
4
4
  "description": "Validate identifier/keywords name",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babel/parser",
3
- "version": "7.26.5",
3
+ "version": "7.28.0",
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",
@@ -35,14 +35,14 @@
35
35
  },
36
36
  "# dependencies": "This package doesn't actually have runtime dependencies. @babel/types is only needed for type definitions.",
37
37
  "dependencies": {
38
- "@babel/types": "^7.26.5"
38
+ "@babel/types": "^7.28.0"
39
39
  },
40
40
  "devDependencies": {
41
- "@babel/code-frame": "^7.26.2",
42
- "@babel/helper-check-duplicate-nodes": "^7.25.9",
43
- "@babel/helper-fixtures": "^7.26.0",
44
- "@babel/helper-string-parser": "^7.25.9",
45
- "@babel/helper-validator-identifier": "^7.25.9",
41
+ "@babel/code-frame": "^7.27.1",
42
+ "@babel/helper-check-duplicate-nodes": "^7.27.1",
43
+ "@babel/helper-fixtures": "^7.28.0",
44
+ "@babel/helper-string-parser": "^7.27.1",
45
+ "@babel/helper-validator-identifier": "^7.27.1",
46
46
  "charcodes": "^0.2.0"
47
47
  },
48
48
  "bin": "./bin/babel-parser.js",
@@ -1,11 +1,12 @@
1
1
  // This file is auto-generated! Do not modify it directly.
2
+ // Run `yarn gulp bundle-dts` to re-generate it.
2
3
  /* eslint-disable @typescript-eslint/consistent-type-imports, @typescript-eslint/no-redundant-type-constituents */
3
- import * as _babel_types from '@babel/types';
4
+ import { File, Expression } from '@babel/types';
4
5
 
5
6
  type BABEL_8_BREAKING = false;
6
7
  type IF_BABEL_7<V> = false extends BABEL_8_BREAKING ? V : never;
7
8
 
8
- type Plugin =
9
+ type Plugin$1 =
9
10
  | "asyncDoExpressions"
10
11
  | IF_BABEL_7<"asyncGenerators">
11
12
  | IF_BABEL_7<"bigInt">
@@ -21,7 +22,7 @@ type Plugin =
21
22
  | "deprecatedImportAssert"
22
23
  | "doExpressions"
23
24
  | IF_BABEL_7<"dynamicImport">
24
- | "explicitResourceManagement"
25
+ | IF_BABEL_7<"explicitResourceManagement">
25
26
  | "exportDefaultFrom"
26
27
  | IF_BABEL_7<"exportNamespaceFrom">
27
28
  | "flow"
@@ -53,6 +54,7 @@ type Plugin =
53
54
 
54
55
  type ParserPluginWithOptions =
55
56
  | ["decorators", DecoratorsPluginOptions]
57
+ | ["discardBinding", { syntaxType: "void" }]
56
58
  | ["estree", { classFeatures?: boolean }]
57
59
  | IF_BABEL_7<["importAttributes", { deprecatedAssertSyntax: boolean }]>
58
60
  | IF_BABEL_7<["moduleAttributes", { version: "may-2020" }]>
@@ -62,7 +64,7 @@ type ParserPluginWithOptions =
62
64
  | ["flow", FlowPluginOptions]
63
65
  | ["typescript", TypeScriptPluginOptions];
64
66
 
65
- type PluginConfig = Plugin | ParserPluginWithOptions;
67
+ type PluginConfig = Plugin$1 | ParserPluginWithOptions;
66
68
 
67
69
  interface DecoratorsPluginOptions {
68
70
  decoratorsBeforeExport?: boolean;
@@ -94,174 +96,144 @@ interface TypeScriptPluginOptions {
94
96
  disallowAmbiguousJSXLike?: boolean;
95
97
  }
96
98
 
97
- // Type definitions for @babel/parser
98
- // Project: https://github.com/babel/babel/tree/main/packages/babel-parser
99
- // Definitions by: Troy Gerwien <https://github.com/yortus>
100
- // Marvin Hagemeister <https://github.com/marvinhagemeister>
101
- // Avi Vahl <https://github.com/AviVahl>
102
- // TypeScript Version: 2.9
99
+ type Plugin = PluginConfig;
100
+
101
+ type SourceType = "script" | "commonjs" | "module" | "unambiguous";
102
+ interface Options {
103
+ /**
104
+ * By default, import and export declarations can only appear at a program's top level.
105
+ * Setting this option to true allows them anywhere where a statement is allowed.
106
+ */
107
+ allowImportExportEverywhere?: boolean;
108
+ /**
109
+ * By default, await use is not allowed outside of an async function.
110
+ * Set this to true to accept such code.
111
+ */
112
+ allowAwaitOutsideFunction?: boolean;
113
+ /**
114
+ * By default, a return statement at the top level raises an error.
115
+ * Set this to true to accept such code.
116
+ */
117
+ allowReturnOutsideFunction?: boolean;
118
+ /**
119
+ * By default, new.target use is not allowed outside of a function or class.
120
+ * Set this to true to accept such code.
121
+ */
122
+ allowNewTargetOutsideFunction?: boolean;
123
+ allowSuperOutsideMethod?: boolean;
124
+ /**
125
+ * By default, exported identifiers must refer to a declared variable.
126
+ * Set this to true to allow export statements to reference undeclared variables.
127
+ */
128
+ allowUndeclaredExports?: boolean;
129
+ /**
130
+ * By default, yield use is not allowed outside of a generator function.
131
+ * Set this to true to accept such code.
132
+ */
133
+ allowYieldOutsideFunction?: boolean;
134
+ /**
135
+ * By default, Babel parser JavaScript code according to Annex B syntax.
136
+ * Set this to `false` to disable such behavior.
137
+ */
138
+ annexB?: boolean;
139
+ /**
140
+ * By default, Babel attaches comments to adjacent AST nodes.
141
+ * When this option is set to false, comments are not attached.
142
+ * It can provide up to 30% performance improvement when the input code has many comments.
143
+ * @babel/eslint-parser will set it for you.
144
+ * It is not recommended to use attachComment: false with Babel transform,
145
+ * as doing so removes all the comments in output code, and renders annotations such as
146
+ * /* istanbul ignore next *\/ nonfunctional.
147
+ */
148
+ attachComment?: boolean;
149
+ /**
150
+ * By default, Babel always throws an error when it finds some invalid code.
151
+ * When this option is set to true, it will store the parsing error and
152
+ * try to continue parsing the invalid input file.
153
+ */
154
+ errorRecovery?: boolean;
155
+ /**
156
+ * Indicate the mode the code should be parsed in.
157
+ * Can be one of "script", "commonjs", "module", or "unambiguous". Defaults to "script".
158
+ * "unambiguous" will make @babel/parser attempt to guess, based on the presence
159
+ * of ES6 import or export statements.
160
+ * Files with ES6 imports and exports are considered "module" and are otherwise "script".
161
+ *
162
+ * Use "commonjs" to parse code that is intended to be run in a CommonJS environment such as Node.js.
163
+ */
164
+ sourceType?: SourceType;
165
+ /**
166
+ * Correlate output AST nodes with their source filename.
167
+ * Useful when generating code and source maps from the ASTs of multiple input files.
168
+ */
169
+ sourceFilename?: string;
170
+ /**
171
+ * By default, all source indexes start from 0.
172
+ * You can provide a start index to alternatively start with.
173
+ * Useful for integration with other source tools.
174
+ */
175
+ startIndex?: number;
176
+ /**
177
+ * By default, the first line of code parsed is treated as line 1.
178
+ * You can provide a line number to alternatively start with.
179
+ * Useful for integration with other source tools.
180
+ */
181
+ startLine?: number;
182
+ /**
183
+ * By default, the parsed code is treated as if it starts from line 1, column 0.
184
+ * You can provide a column number to alternatively start with.
185
+ * Useful for integration with other source tools.
186
+ */
187
+ startColumn?: number;
188
+ /**
189
+ * Array containing the plugins that you want to enable.
190
+ */
191
+ plugins?: Plugin[];
192
+ /**
193
+ * Should the parser work in strict mode.
194
+ * Defaults to true if sourceType === 'module'. Otherwise, false.
195
+ */
196
+ strictMode?: boolean;
197
+ /**
198
+ * Adds a ranges property to each node: [node.start, node.end]
199
+ */
200
+ ranges?: boolean;
201
+ /**
202
+ * Adds all parsed tokens to a tokens property on the File node.
203
+ */
204
+ tokens?: boolean;
205
+ /**
206
+ * By default, the parser adds information about parentheses by setting
207
+ * `extra.parenthesized` to `true` as needed.
208
+ * When this option is `true` the parser creates `ParenthesizedExpression`
209
+ * AST nodes instead of using the `extra` property.
210
+ */
211
+ createParenthesizedExpressions?: boolean;
212
+ /**
213
+ * The default is false in Babel 7 and true in Babel 8
214
+ * Set this to true to parse it as an `ImportExpression` node.
215
+ * Otherwise `import(foo)` is parsed as `CallExpression(Import, [Identifier(foo)])`.
216
+ */
217
+ createImportExpressions?: boolean;
218
+ }
103
219
 
220
+ type ParserOptions = Partial<Options>;
221
+ interface ParseError {
222
+ code: string;
223
+ reasonCode: string;
224
+ }
225
+ type ParseResult<Result extends File | Expression = File> = Result & {
226
+ errors: null | ParseError[];
227
+ };
104
228
  /**
105
229
  * Parse the provided code as an entire ECMAScript program.
106
230
  */
107
- declare function parse(
108
- input: string,
109
- options?: ParserOptions
110
- ): ParseResult<_babel_types.File>;
111
-
112
- /**
113
- * Parse the provided code as a single expression.
114
- */
115
- declare function parseExpression(
116
- input: string,
117
- options?: ParserOptions
118
- ): ParseResult<_babel_types.Expression>;
119
-
120
- interface ParserOptions {
121
- /**
122
- * By default, import and export declarations can only appear at a program's top level.
123
- * Setting this option to true allows them anywhere where a statement is allowed.
124
- */
125
- allowImportExportEverywhere?: boolean;
126
-
127
- /**
128
- * By default, await use is not allowed outside of an async function.
129
- * Set this to true to accept such code.
130
- */
131
- allowAwaitOutsideFunction?: boolean;
132
-
133
- /**
134
- * By default, a return statement at the top level raises an error.
135
- * Set this to true to accept such code.
136
- */
137
- allowReturnOutsideFunction?: boolean;
138
-
139
- /**
140
- * By default, new.target use is not allowed outside of a function or class.
141
- * Set this to true to accept such code.
142
- */
143
- allowNewTargetOutsideFunction?: boolean;
144
-
145
- allowSuperOutsideMethod?: boolean;
146
-
147
- /**
148
- * By default, exported identifiers must refer to a declared variable.
149
- * Set this to true to allow export statements to reference undeclared variables.
150
- */
151
- allowUndeclaredExports?: boolean;
152
-
153
- /**
154
- * By default, Babel parser JavaScript code according to Annex B syntax.
155
- * Set this to `false` to disable such behavior.
156
- */
157
- annexB?: boolean;
158
-
159
- /**
160
- * By default, Babel attaches comments to adjacent AST nodes.
161
- * When this option is set to false, comments are not attached.
162
- * It can provide up to 30% performance improvement when the input code has many comments.
163
- * @babel/eslint-parser will set it for you.
164
- * It is not recommended to use attachComment: false with Babel transform,
165
- * as doing so removes all the comments in output code, and renders annotations such as
166
- * /* istanbul ignore next *\/ nonfunctional.
167
- */
168
- attachComment?: boolean;
169
-
170
- /**
171
- * By default, Babel always throws an error when it finds some invalid code.
172
- * When this option is set to true, it will store the parsing error and
173
- * try to continue parsing the invalid input file.
174
- */
175
- errorRecovery?: boolean;
176
-
177
- /**
178
- * Indicate the mode the code should be parsed in.
179
- * Can be one of "script", "module", or "unambiguous". Defaults to "script".
180
- * "unambiguous" will make @babel/parser attempt to guess, based on the presence
181
- * of ES6 import or export statements.
182
- * Files with ES6 imports and exports are considered "module" and are otherwise "script".
183
- */
184
- sourceType?: "script" | "module" | "unambiguous";
185
-
186
- /**
187
- * Correlate output AST nodes with their source filename.
188
- * Useful when generating code and source maps from the ASTs of multiple input files.
189
- */
190
- sourceFilename?: string;
191
-
192
- /**
193
- * By default, all source indexes start from 0.
194
- * You can provide a start index to alternatively start with.
195
- * Useful for integration with other source tools.
196
- */
197
- startIndex?: number;
198
-
199
- /**
200
- * By default, the first line of code parsed is treated as line 1.
201
- * You can provide a line number to alternatively start with.
202
- * Useful for integration with other source tools.
203
- */
204
- startLine?: number;
205
-
206
- /**
207
- * By default, the parsed code is treated as if it starts from line 1, column 0.
208
- * You can provide a column number to alternatively start with.
209
- * Useful for integration with other source tools.
210
- */
211
- startColumn?: number;
212
-
213
- /**
214
- * Array containing the plugins that you want to enable.
215
- */
216
- plugins?: ParserPlugin[];
217
-
218
- /**
219
- * Should the parser work in strict mode.
220
- * Defaults to true if sourceType === 'module'. Otherwise, false.
221
- */
222
- strictMode?: boolean;
223
-
224
- /**
225
- * Adds a ranges property to each node: [node.start, node.end]
226
- */
227
- ranges?: boolean;
228
-
229
- /**
230
- * Adds all parsed tokens to a tokens property on the File node.
231
- */
232
- tokens?: boolean;
233
-
234
- /**
235
- * By default, the parser adds information about parentheses by setting
236
- * `extra.parenthesized` to `true` as needed.
237
- * When this option is `true` the parser creates `ParenthesizedExpression`
238
- * AST nodes instead of using the `extra` property.
239
- */
240
- createParenthesizedExpressions?: boolean;
241
-
242
- /**
243
- * The default is false in Babel 7 and true in Babel 8
244
- * Set this to true to parse it as an `ImportExpression` node.
245
- * Otherwise `import(foo)` is parsed as `CallExpression(Import, [Identifier(foo)])`.
246
- */
247
- createImportExpressions?: boolean;
248
- }
249
-
250
- type ParserPlugin = PluginConfig;
251
-
231
+ declare function parse(input: string, options?: ParserOptions): ParseResult<File>;
232
+ declare function parseExpression(input: string, options?: ParserOptions): ParseResult<Expression>;
252
233
 
253
234
  declare const tokTypes: {
254
235
  // todo(flow->ts) real token type
255
236
  [name: string]: any;
256
237
  };
257
238
 
258
- interface ParseError {
259
- code: string;
260
- reasonCode: string;
261
- }
262
-
263
- type ParseResult<Result> = Result & {
264
- errors: ParseError[];
265
- };
266
-
267
- export { DecoratorsPluginOptions, FlowPluginOptions, ParseError, ParseResult, ParserOptions, ParserPlugin, ParserPluginWithOptions, PipelineOperatorPluginOptions, RecordAndTuplePluginOptions, TypeScriptPluginOptions, parse, parseExpression, tokTypes };
239
+ export { DecoratorsPluginOptions, FlowPluginOptions, ParseError, ParseResult, ParserOptions, PluginConfig as ParserPlugin, ParserPluginWithOptions, PipelineOperatorPluginOptions, RecordAndTuplePluginOptions, TypeScriptPluginOptions, parse, parseExpression, tokTypes };