@sitecore/sc-contenthub-blok 0.0.90 → 1.0.1
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/Components/BlokBadge/BlokBadge.spec.js +1 -1
- package/dist/Components/BlokBadge/BlokBadge.spec.js.map +1 -1
- package/dist/Components/BlokButton/BlokButton.d.ts +3 -4
- package/dist/Components/BlokButton/BlokButton.js +3 -3
- package/dist/Components/BlokButton/BlokButton.js.map +1 -1
- package/dist/Components/BlokButtonGroup/BlokButtonGroup.d.ts +1 -2
- package/dist/Components/BlokButtonGroup/BlokButtonGroup.js +2 -1
- package/dist/Components/BlokButtonGroup/BlokButtonGroup.js.map +1 -1
- package/dist/Components/BlokButtonGroup/BlokButtonGroup.spec.js +8 -11
- package/dist/Components/BlokButtonGroup/BlokButtonGroup.spec.js.map +1 -1
- package/dist/Components/BlokButtonGroup/BlokButtonGroup.stories.js +3 -6
- package/dist/Components/BlokButtonGroup/BlokButtonGroup.stories.js.map +1 -1
- package/dist/Components/BlokIcon/BlokIcon.d.ts +2 -1
- package/dist/Components/BlokIcon/BlokIcon.js +3 -3
- package/dist/Components/BlokIcon/BlokIcon.js.map +1 -1
- package/dist/Components/BlokIconButton/BlokIconButton.d.ts +2 -4
- package/dist/Components/BlokIconButton/BlokIconButton.js +3 -3
- package/dist/Components/BlokIconButton/BlokIconButton.js.map +1 -1
- package/dist/Components/BlokSearchBox/BlokSearchBox.d.ts +3 -2
- package/dist/Components/BlokSearchBox/BlokSearchBox.js +3 -2
- package/dist/Components/BlokSearchBox/BlokSearchBox.js.map +1 -1
- package/dist/Components/BlokTooltip/BlokTooltip.js +0 -4
- package/dist/Components/BlokTooltip/BlokTooltip.js.map +1 -1
- package/esm/Components/BlokButton/BlokButton.js +2 -3
- package/esm/Components/BlokButton/BlokButton.js.map +1 -1
- package/esm/Components/BlokButtonGroup/BlokButtonGroup.js +1 -2
- package/esm/Components/BlokButtonGroup/BlokButtonGroup.js.map +1 -1
- package/esm/Components/BlokIcon/BlokIcon.js +2 -3
- package/esm/Components/BlokIcon/BlokIcon.js.map +1 -1
- package/esm/Components/BlokIconButton/BlokIconButton.js +2 -3
- package/esm/Components/BlokIconButton/BlokIconButton.js.map +1 -1
- package/esm/Components/BlokSearchBox/BlokSearchBox.js +3 -3
- package/esm/Components/BlokSearchBox/BlokSearchBox.js.map +1 -1
- package/esm/Components/BlokTooltip/BlokTooltip.js +0 -4
- package/esm/Components/BlokTooltip/BlokTooltip.js.map +1 -1
- package/node_modules/@babel/code-frame/package.json +3 -3
- package/node_modules/@babel/generator/lib/generators/classes.js +7 -4
- package/node_modules/@babel/generator/lib/generators/classes.js.map +1 -1
- package/node_modules/@babel/generator/lib/generators/deprecated.js +28 -0
- package/node_modules/@babel/generator/lib/generators/deprecated.js.map +1 -0
- package/node_modules/@babel/generator/lib/generators/expressions.js +17 -12
- package/node_modules/@babel/generator/lib/generators/expressions.js.map +1 -1
- package/node_modules/@babel/generator/lib/generators/jsx.js +6 -1
- package/node_modules/@babel/generator/lib/generators/jsx.js.map +1 -1
- package/node_modules/@babel/generator/lib/generators/methods.js.map +1 -1
- package/node_modules/@babel/generator/lib/generators/modules.js +8 -3
- package/node_modules/@babel/generator/lib/generators/modules.js.map +1 -1
- package/node_modules/@babel/generator/lib/generators/statements.js +1 -4
- package/node_modules/@babel/generator/lib/generators/statements.js.map +1 -1
- package/node_modules/@babel/generator/lib/generators/template-literals.js +16 -11
- package/node_modules/@babel/generator/lib/generators/template-literals.js.map +1 -1
- package/node_modules/@babel/generator/lib/generators/types.js +4 -9
- package/node_modules/@babel/generator/lib/generators/types.js.map +1 -1
- package/node_modules/@babel/generator/lib/generators/typescript.js +40 -18
- package/node_modules/@babel/generator/lib/generators/typescript.js.map +1 -1
- package/node_modules/@babel/generator/lib/index.js +3 -1
- package/node_modules/@babel/generator/lib/index.js.map +1 -1
- package/node_modules/@babel/generator/lib/node/index.js +11 -8
- package/node_modules/@babel/generator/lib/node/index.js.map +1 -1
- package/node_modules/@babel/generator/lib/node/parentheses.js +44 -7
- package/node_modules/@babel/generator/lib/node/parentheses.js.map +1 -1
- package/node_modules/@babel/generator/lib/printer.js +31 -24
- package/node_modules/@babel/generator/lib/printer.js.map +1 -1
- package/node_modules/@babel/generator/package.json +9 -9
- package/node_modules/@babel/helper-globals/LICENSE +22 -0
- package/node_modules/@babel/helper-globals/README.md +19 -0
- package/node_modules/@babel/helper-globals/data/browser-upper.json +911 -0
- package/node_modules/@babel/helper-globals/data/builtin-lower.json +15 -0
- package/node_modules/@babel/helper-globals/data/builtin-upper.json +51 -0
- package/node_modules/@babel/helper-globals/package.json +32 -0
- package/node_modules/@babel/helper-module-imports/lib/import-builder.js.map +1 -1
- package/node_modules/@babel/helper-module-imports/lib/import-injector.js.map +1 -1
- package/node_modules/@babel/helper-module-imports/package.json +4 -4
- package/node_modules/@babel/helper-string-parser/package.json +1 -1
- package/node_modules/@babel/helper-validator-identifier/package.json +1 -1
- package/node_modules/@babel/parser/bin/babel-parser.js +1 -1
- package/node_modules/@babel/parser/lib/index.js +5814 -5255
- package/node_modules/@babel/parser/lib/index.js.map +1 -1
- package/node_modules/@babel/parser/package.json +7 -7
- package/node_modules/@babel/parser/typings/babel-parser.d.ts +137 -165
- package/node_modules/@babel/template/lib/options.js +1 -1
- package/node_modules/@babel/template/lib/options.js.map +1 -1
- package/node_modules/@babel/template/lib/parse.js +3 -0
- package/node_modules/@babel/template/lib/parse.js.map +1 -1
- package/node_modules/@babel/template/lib/populate.js +2 -1
- package/node_modules/@babel/template/lib/populate.js.map +1 -1
- package/node_modules/@babel/template/package.json +4 -4
- package/node_modules/@babel/traverse/lib/cache.js +10 -16
- package/node_modules/@babel/traverse/lib/cache.js.map +1 -1
- package/node_modules/@babel/traverse/lib/index.js +8 -16
- package/node_modules/@babel/traverse/lib/index.js.map +1 -1
- package/node_modules/@babel/traverse/lib/path/ancestry.js +1 -3
- package/node_modules/@babel/traverse/lib/path/ancestry.js.map +1 -1
- package/node_modules/@babel/traverse/lib/path/context.js +0 -15
- package/node_modules/@babel/traverse/lib/path/context.js.map +1 -1
- package/node_modules/@babel/traverse/lib/path/conversion.js +7 -4
- package/node_modules/@babel/traverse/lib/path/conversion.js.map +1 -1
- package/node_modules/@babel/traverse/lib/path/evaluation.js +23 -2
- package/node_modules/@babel/traverse/lib/path/evaluation.js.map +1 -1
- package/node_modules/@babel/traverse/lib/path/family.js +13 -7
- package/node_modules/@babel/traverse/lib/path/family.js.map +1 -1
- package/node_modules/@babel/traverse/lib/path/index.js +2 -1
- package/node_modules/@babel/traverse/lib/path/index.js.map +1 -1
- package/node_modules/@babel/traverse/lib/path/introspection.js.map +1 -1
- package/node_modules/@babel/traverse/lib/path/lib/hoister.js.map +1 -1
- package/node_modules/@babel/traverse/lib/path/lib/virtual-types.js +1 -1
- package/node_modules/@babel/traverse/lib/path/lib/virtual-types.js.map +1 -1
- package/node_modules/@babel/traverse/lib/path/modification.js +3 -2
- package/node_modules/@babel/traverse/lib/path/modification.js.map +1 -1
- package/node_modules/@babel/traverse/lib/path/removal.js +2 -1
- package/node_modules/@babel/traverse/lib/path/removal.js.map +1 -1
- package/node_modules/@babel/traverse/lib/path/replacement.js +2 -2
- package/node_modules/@babel/traverse/lib/path/replacement.js.map +1 -1
- package/node_modules/@babel/traverse/lib/scope/binding.js +4 -3
- package/node_modules/@babel/traverse/lib/scope/binding.js.map +1 -1
- package/node_modules/@babel/traverse/lib/scope/index.js +99 -39
- package/node_modules/@babel/traverse/lib/scope/index.js.map +1 -1
- package/node_modules/@babel/traverse/lib/traverse-node.js +109 -0
- package/node_modules/@babel/traverse/lib/traverse-node.js.map +1 -1
- package/node_modules/@babel/traverse/lib/types.js +1 -1
- package/node_modules/@babel/traverse/lib/visitors.js +6 -4
- package/node_modules/@babel/traverse/lib/visitors.js.map +1 -1
- package/node_modules/@babel/traverse/package.json +10 -10
- package/node_modules/@babel/types/lib/asserts/generated/index.js +19 -3
- package/node_modules/@babel/types/lib/asserts/generated/index.js.map +1 -1
- package/node_modules/@babel/types/lib/ast-types/generated/index.js +1 -1
- package/node_modules/@babel/types/lib/ast-types/generated/index.js.map +1 -1
- package/node_modules/@babel/types/lib/builders/generated/index.js +22 -2858
- package/node_modules/@babel/types/lib/builders/generated/index.js.map +1 -1
- package/node_modules/@babel/types/lib/builders/generated/lowercase.js +2896 -0
- package/node_modules/@babel/types/lib/builders/generated/lowercase.js.map +1 -0
- package/node_modules/@babel/types/lib/builders/generated/uppercase.js +267 -1525
- package/node_modules/@babel/types/lib/builders/generated/uppercase.js.map +1 -1
- package/node_modules/@babel/types/lib/constants/generated/index.js +2 -1
- package/node_modules/@babel/types/lib/constants/generated/index.js.map +1 -1
- package/node_modules/@babel/types/lib/constants/index.js +5 -3
- package/node_modules/@babel/types/lib/constants/index.js.map +1 -1
- package/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js.map +1 -1
- package/node_modules/@babel/types/lib/converters/toExpression.js +1 -0
- package/node_modules/@babel/types/lib/converters/toExpression.js.map +1 -1
- package/node_modules/@babel/types/lib/converters/toSequenceExpression.js.map +1 -1
- package/node_modules/@babel/types/lib/converters/valueToNode.js +16 -3
- package/node_modules/@babel/types/lib/converters/valueToNode.js.map +1 -1
- package/node_modules/@babel/types/lib/definitions/core.js +73 -44
- package/node_modules/@babel/types/lib/definitions/core.js.map +1 -1
- package/node_modules/@babel/types/lib/definitions/experimental.js +3 -11
- package/node_modules/@babel/types/lib/definitions/experimental.js.map +1 -1
- package/node_modules/@babel/types/lib/definitions/flow.js +6 -3
- package/node_modules/@babel/types/lib/definitions/flow.js.map +1 -1
- package/node_modules/@babel/types/lib/definitions/index.js +13 -0
- package/node_modules/@babel/types/lib/definitions/index.js.map +1 -1
- package/node_modules/@babel/types/lib/definitions/jsx.js +9 -4
- package/node_modules/@babel/types/lib/definitions/jsx.js.map +1 -1
- package/node_modules/@babel/types/lib/definitions/typescript.js +56 -28
- package/node_modules/@babel/types/lib/definitions/typescript.js.map +1 -1
- package/node_modules/@babel/types/lib/definitions/utils.js +37 -15
- package/node_modules/@babel/types/lib/definitions/utils.js.map +1 -1
- package/node_modules/@babel/types/lib/index-legacy.d.ts +72 -41
- package/node_modules/@babel/types/lib/index.d.ts +1699 -1655
- package/node_modules/@babel/types/lib/index.js +10 -21
- package/node_modules/@babel/types/lib/index.js.flow +72 -42
- package/node_modules/@babel/types/lib/index.js.map +1 -1
- package/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js +9 -8
- package/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js.map +1 -1
- package/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js +1 -0
- package/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js.map +1 -1
- package/node_modules/@babel/types/lib/traverse/traverseFast.js +19 -5
- package/node_modules/@babel/types/lib/traverse/traverseFast.js.map +1 -1
- package/node_modules/@babel/types/lib/utils/deprecationWarning.js +3 -3
- package/node_modules/@babel/types/lib/utils/deprecationWarning.js.map +1 -1
- package/node_modules/@babel/types/lib/validators/generated/index.js +50 -5
- package/node_modules/@babel/types/lib/validators/generated/index.js.map +1 -1
- package/node_modules/@babel/types/lib/validators/isLet.js +6 -2
- package/node_modules/@babel/types/lib/validators/isLet.js.map +1 -1
- package/node_modules/@babel/types/lib/validators/isPlaceholderType.js +1 -5
- package/node_modules/@babel/types/lib/validators/isPlaceholderType.js.map +1 -1
- package/node_modules/@babel/types/lib/validators/isType.js +1 -6
- package/node_modules/@babel/types/lib/validators/isType.js.map +1 -1
- package/node_modules/@babel/types/lib/validators/isVar.js +8 -4
- package/node_modules/@babel/types/lib/validators/isVar.js.map +1 -1
- package/node_modules/@babel/types/lib/validators/matchesPattern.js +10 -2
- package/node_modules/@babel/types/lib/validators/matchesPattern.js.map +1 -1
- package/node_modules/@babel/types/lib/validators/validate.js.map +1 -1
- package/node_modules/@babel/types/package.json +14 -14
- package/node_modules/@emotion/cache/dist/declarations/src/index.d.ts +16 -2
- package/node_modules/@emotion/cache/dist/declarations/src/types.d.ts +14 -0
- package/node_modules/@emotion/cache/dist/emotion-cache.browser.cjs.js +7 -36
- package/node_modules/@emotion/cache/dist/emotion-cache.browser.development.cjs.js +10 -43
- package/node_modules/@emotion/cache/dist/emotion-cache.browser.development.esm.js +10 -43
- package/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js +7 -36
- package/node_modules/@emotion/cache/dist/emotion-cache.cjs.js +11 -73
- package/node_modules/@emotion/cache/dist/emotion-cache.development.cjs.js +15 -81
- package/node_modules/@emotion/cache/dist/emotion-cache.development.edge-light.cjs.js +50 -60
- package/node_modules/@emotion/cache/dist/emotion-cache.development.edge-light.esm.js +51 -61
- package/node_modules/@emotion/cache/dist/emotion-cache.development.esm.js +15 -81
- package/node_modules/@emotion/cache/dist/emotion-cache.edge-light.cjs.js +28 -56
- package/node_modules/@emotion/cache/dist/emotion-cache.edge-light.esm.js +29 -57
- package/node_modules/@emotion/cache/dist/emotion-cache.esm.js +11 -73
- package/node_modules/@emotion/cache/package.json +11 -11
- package/node_modules/@emotion/cache/src/{index.js → index.ts} +39 -55
- package/node_modules/@emotion/cache/src/{prefixer.js → prefixer.ts} +11 -4
- package/node_modules/@emotion/cache/src/{stylis-plugins.js → stylis-plugins.ts} +91 -83
- package/node_modules/@emotion/cache/src/{types.js → types.ts} +4 -5
- package/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.umd.min.js.map +1 -1
- package/node_modules/@emotion/react/_isolated-hnrs/package.json +1 -0
- package/node_modules/@emotion/react/dist/declarations/src/_isolated-hnrs.d.ts +3 -3
- package/node_modules/@emotion/react/dist/declarations/src/class-names.d.ts +18 -0
- package/node_modules/@emotion/react/dist/declarations/src/context.d.ts +6 -0
- package/node_modules/@emotion/react/dist/declarations/src/css.d.ts +5 -0
- package/node_modules/@emotion/react/dist/declarations/src/global.d.ts +7 -0
- package/node_modules/@emotion/react/dist/declarations/src/index.d.ts +14 -1
- package/node_modules/@emotion/react/dist/declarations/src/jsx-dev-runtime.d.ts +6 -1
- package/node_modules/@emotion/react/dist/declarations/src/jsx-namespace.d.ts +64 -0
- package/node_modules/@emotion/react/dist/declarations/src/jsx-runtime.d.ts +7 -1
- package/node_modules/@emotion/react/dist/declarations/src/jsx.d.ts +22 -0
- package/node_modules/@emotion/react/dist/declarations/src/keyframes.d.ts +10 -0
- package/node_modules/@emotion/react/dist/declarations/src/theming.d.ts +28 -0
- package/node_modules/@emotion/react/dist/declarations/src/types.d.ts +7 -0
- package/node_modules/@emotion/react/dist/{emotion-element-f66136f5.development.edge-light.cjs.js → emotion-element-010f37fa.development.edge-light.cjs.js} +23 -84
- package/node_modules/@emotion/react/dist/{emotion-element-832b737b.browser.cjs.js → emotion-element-25f9958c.browser.cjs.js} +20 -65
- package/node_modules/@emotion/react/dist/{emotion-element-7447be04.browser.development.cjs.js → emotion-element-4787f564.browser.development.cjs.js} +21 -74
- package/node_modules/@emotion/react/dist/{emotion-element-7a1343fa.browser.development.esm.js → emotion-element-489459f2.browser.development.esm.js} +21 -74
- package/node_modules/@emotion/react/dist/{emotion-element-efb2998a.development.edge-light.esm.js → emotion-element-516430c7.development.edge-light.esm.js} +23 -84
- package/node_modules/@emotion/react/dist/{emotion-element-ba80abe0.development.esm.js → emotion-element-782f682d.development.esm.js} +23 -84
- package/node_modules/@emotion/react/dist/{emotion-element-657efc1f.edge-light.esm.js → emotion-element-8113875a.edge-light.esm.js} +22 -75
- package/node_modules/@emotion/react/dist/{emotion-element-b1930563.cjs.js → emotion-element-a1829a1e.cjs.js} +22 -75
- package/node_modules/@emotion/react/dist/{emotion-element-60389d2b.edge-light.cjs.js → emotion-element-af3dc15b.edge-light.cjs.js} +22 -75
- package/node_modules/@emotion/react/dist/{emotion-element-b4c8b265.esm.js → emotion-element-d59e098f.esm.js} +22 -75
- package/node_modules/@emotion/react/dist/{emotion-element-9150ebbd.development.cjs.js → emotion-element-e8f4cc37.development.cjs.js} +23 -84
- package/node_modules/@emotion/react/dist/{emotion-element-5486c51c.browser.esm.js → emotion-element-f0de968e.browser.esm.js} +20 -65
- package/node_modules/@emotion/react/dist/emotion-react.browser.cjs.js +19 -75
- package/node_modules/@emotion/react/dist/emotion-react.browser.development.cjs.js +38 -102
- package/node_modules/@emotion/react/dist/emotion-react.browser.development.esm.js +38 -101
- package/node_modules/@emotion/react/dist/emotion-react.browser.esm.js +19 -74
- package/node_modules/@emotion/react/dist/emotion-react.cjs.js +19 -75
- package/node_modules/@emotion/react/dist/emotion-react.development.cjs.js +38 -102
- package/node_modules/@emotion/react/dist/emotion-react.development.edge-light.cjs.js +37 -99
- package/node_modules/@emotion/react/dist/emotion-react.development.edge-light.esm.js +37 -98
- package/node_modules/@emotion/react/dist/emotion-react.development.esm.js +38 -101
- package/node_modules/@emotion/react/dist/emotion-react.edge-light.cjs.js +18 -72
- package/node_modules/@emotion/react/dist/emotion-react.edge-light.esm.js +18 -71
- package/node_modules/@emotion/react/dist/emotion-react.esm.js +19 -74
- package/node_modules/@emotion/react/dist/emotion-react.umd.min.js +1 -1
- package/node_modules/@emotion/react/dist/emotion-react.umd.min.js.map +1 -1
- package/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.cjs.js +3 -3
- package/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.development.cjs.js +3 -3
- package/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.development.esm.js +3 -3
- package/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js +3 -3
- package/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js +3 -3
- package/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.cjs.js +3 -3
- package/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.cjs.js +3 -3
- package/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.esm.js +3 -3
- package/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.esm.js +3 -3
- package/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.cjs.js +3 -3
- package/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.esm.js +3 -3
- package/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js +3 -3
- package/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.umd.min.js.map +1 -1
- package/node_modules/@emotion/react/jsx-dev-runtime/package.json +1 -1
- package/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.cjs.js +5 -5
- package/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.development.cjs.js +5 -5
- package/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.development.esm.js +5 -5
- package/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js +5 -5
- package/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js +5 -5
- package/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.development.cjs.js +5 -5
- package/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.cjs.js +5 -5
- package/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.esm.js +5 -5
- package/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.development.esm.js +5 -5
- package/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.cjs.js +5 -5
- package/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.esm.js +5 -5
- package/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.esm.js +5 -5
- package/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.umd.min.js.map +1 -1
- package/node_modules/@emotion/react/jsx-runtime/package.json +1 -1
- package/node_modules/@emotion/react/package.json +19 -18
- package/node_modules/@emotion/react/src/{_isolated-hnrs.js → _isolated-hnrs.ts} +7 -2
- package/node_modules/@emotion/react/src/{class-names.js → class-names.tsx} +43 -32
- package/node_modules/@emotion/react/src/{context.js → context.tsx} +25 -22
- package/node_modules/@emotion/react/src/css.ts +14 -0
- package/node_modules/@emotion/react/src/{emotion-element.js → emotion-element.tsx} +37 -17
- package/node_modules/@emotion/react/src/{get-label-from-stack-trace.js → get-label-from-stack-trace.ts} +7 -4
- package/node_modules/@emotion/react/src/global.tsx +147 -0
- package/node_modules/@emotion/react/src/{index.js → index.ts} +24 -3
- package/node_modules/@emotion/react/src/{jsx-dev-runtime.js → jsx-dev-runtime.ts} +12 -2
- package/node_modules/@emotion/react/src/jsx-namespace.ts +107 -0
- package/node_modules/@emotion/react/src/jsx-runtime.ts +32 -0
- package/node_modules/@emotion/react/src/jsx.ts +45 -0
- package/node_modules/@emotion/react/src/keyframes.ts +27 -0
- package/node_modules/@emotion/react/src/{theming.js → theming.tsx} +40 -18
- package/node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.cjs.js +19 -92
- package/node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.development.cjs.js +22 -94
- package/node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.development.esm.js +22 -94
- package/node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js +19 -92
- package/node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js +20 -93
- package/node_modules/@emotion/styled/base/dist/emotion-styled-base.development.cjs.js +23 -95
- package/node_modules/@emotion/styled/base/dist/emotion-styled-base.development.edge-light.cjs.js +22 -94
- package/node_modules/@emotion/styled/base/dist/emotion-styled-base.development.edge-light.esm.js +22 -94
- package/node_modules/@emotion/styled/base/dist/emotion-styled-base.development.esm.js +24 -96
- package/node_modules/@emotion/styled/base/dist/emotion-styled-base.edge-light.cjs.js +19 -92
- package/node_modules/@emotion/styled/base/dist/emotion-styled-base.edge-light.esm.js +19 -92
- package/node_modules/@emotion/styled/base/dist/emotion-styled-base.esm.js +21 -94
- package/node_modules/@emotion/styled/base/dist/emotion-styled-base.umd.min.js +1 -1
- package/node_modules/@emotion/styled/base/dist/emotion-styled-base.umd.min.js.map +1 -1
- package/node_modules/@emotion/styled/base/package.json +1 -1
- package/node_modules/@emotion/styled/dist/declarations/src/base.d.ts +4 -2
- package/node_modules/@emotion/styled/dist/declarations/src/index.d.ts +15 -2
- package/node_modules/@emotion/styled/dist/declarations/src/jsx-namespace.d.ts +5 -0
- package/node_modules/@emotion/styled/dist/declarations/src/types.d.ts +88 -0
- package/node_modules/@emotion/styled/dist/emotion-styled.browser.cjs.js +7 -6
- package/node_modules/@emotion/styled/dist/emotion-styled.browser.development.cjs.js +7 -6
- package/node_modules/@emotion/styled/dist/emotion-styled.browser.development.esm.js +7 -6
- package/node_modules/@emotion/styled/dist/emotion-styled.browser.esm.js +7 -6
- package/node_modules/@emotion/styled/dist/emotion-styled.cjs.js +7 -6
- package/node_modules/@emotion/styled/dist/emotion-styled.development.cjs.js +7 -6
- package/node_modules/@emotion/styled/dist/emotion-styled.development.edge-light.cjs.js +7 -6
- package/node_modules/@emotion/styled/dist/emotion-styled.development.edge-light.esm.js +7 -6
- package/node_modules/@emotion/styled/dist/emotion-styled.development.esm.js +7 -6
- package/node_modules/@emotion/styled/dist/emotion-styled.edge-light.cjs.js +7 -6
- package/node_modules/@emotion/styled/dist/emotion-styled.edge-light.esm.js +7 -6
- package/node_modules/@emotion/styled/dist/emotion-styled.esm.js +7 -6
- package/node_modules/@emotion/styled/dist/emotion-styled.umd.min.js +1 -1
- package/node_modules/@emotion/styled/dist/emotion-styled.umd.min.js.map +1 -1
- package/node_modules/@emotion/styled/package.json +13 -14
- package/node_modules/@emotion/styled/src/{base.js → base.tsx} +56 -42
- package/node_modules/@emotion/styled/{types/index.d.ts → src/index.ts} +21 -12
- package/node_modules/@emotion/styled/{dist/declarations/types/jsx-namespace.d.ts → src/jsx-namespace.ts} +3 -5
- package/node_modules/@emotion/styled/src/{tags.js → tags.ts} +1 -1
- package/node_modules/@emotion/styled/{types/base.d.ts → src/types.ts} +8 -15
- package/node_modules/@emotion/styled/src/utils.ts +38 -0
- package/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/declarations/src/index.d.ts +3 -0
- package/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.d.mts +2 -0
- package/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.d.ts +2 -0
- package/node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json +7 -6
- package/node_modules/@emotion/use-insertion-effect-with-fallbacks/src/index.ts +21 -0
- package/node_modules/@jridgewell/gen-mapping/LICENSE +1 -1
- package/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs +256 -194
- package/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs.map +6 -1
- package/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js +339 -239
- package/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js.map +6 -1
- package/node_modules/@jridgewell/gen-mapping/package.json +46 -51
- package/node_modules/@jridgewell/gen-mapping/src/gen-mapping.ts +614 -0
- package/node_modules/@jridgewell/gen-mapping/src/set-array.ts +82 -0
- package/node_modules/@jridgewell/gen-mapping/src/sourcemap-segment.ts +16 -0
- package/node_modules/@jridgewell/gen-mapping/src/types.ts +61 -0
- package/node_modules/@jridgewell/gen-mapping/{dist/types/gen-mapping.d.ts → types/gen-mapping.d.cts} +3 -2
- package/node_modules/@jridgewell/gen-mapping/types/gen-mapping.d.cts.map +1 -0
- package/node_modules/@jridgewell/gen-mapping/types/gen-mapping.d.mts +89 -0
- package/node_modules/@jridgewell/gen-mapping/types/gen-mapping.d.mts.map +1 -0
- package/node_modules/@jridgewell/{set-array/dist/types/set-array.d.ts → gen-mapping/types/set-array.d.cts} +2 -1
- package/node_modules/@jridgewell/gen-mapping/types/set-array.d.cts.map +1 -0
- package/node_modules/@jridgewell/gen-mapping/types/set-array.d.mts +33 -0
- package/node_modules/@jridgewell/gen-mapping/types/set-array.d.mts.map +1 -0
- package/node_modules/@jridgewell/gen-mapping/types/sourcemap-segment.d.cts +13 -0
- package/node_modules/@jridgewell/gen-mapping/types/sourcemap-segment.d.cts.map +1 -0
- package/node_modules/@jridgewell/gen-mapping/types/sourcemap-segment.d.mts +13 -0
- package/node_modules/@jridgewell/gen-mapping/types/sourcemap-segment.d.mts.map +1 -0
- package/node_modules/@jridgewell/gen-mapping/{dist/types/types.d.ts → types/types.d.cts} +10 -2
- package/node_modules/@jridgewell/gen-mapping/types/types.d.cts.map +1 -0
- package/node_modules/@jridgewell/gen-mapping/types/types.d.mts +44 -0
- package/node_modules/@jridgewell/gen-mapping/types/types.d.mts.map +1 -0
- package/node_modules/@jridgewell/trace-mapping/LICENSE +1 -1
- package/node_modules/@jridgewell/trace-mapping/README.md +160 -69
- package/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs +417 -493
- package/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs.map +6 -1
- package/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js +546 -588
- package/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js.map +6 -1
- package/node_modules/@jridgewell/trace-mapping/package.json +43 -49
- package/node_modules/@jridgewell/trace-mapping/src/binary-search.ts +115 -0
- package/node_modules/@jridgewell/trace-mapping/src/by-source.ts +65 -0
- package/node_modules/@jridgewell/trace-mapping/src/flatten-map.ts +192 -0
- package/node_modules/@jridgewell/trace-mapping/src/resolve.ts +16 -0
- package/node_modules/@jridgewell/trace-mapping/src/sort.ts +45 -0
- package/node_modules/@jridgewell/trace-mapping/src/sourcemap-segment.ts +23 -0
- package/node_modules/@jridgewell/trace-mapping/src/strip-filename.ts +8 -0
- package/node_modules/@jridgewell/trace-mapping/src/trace-mapping.ts +504 -0
- package/node_modules/@jridgewell/trace-mapping/src/types.ts +114 -0
- package/node_modules/@jridgewell/trace-mapping/{dist/types/binary-search.d.ts → types/binary-search.d.cts} +2 -1
- package/node_modules/@jridgewell/trace-mapping/types/binary-search.d.cts.map +1 -0
- package/node_modules/@jridgewell/trace-mapping/types/binary-search.d.mts +33 -0
- package/node_modules/@jridgewell/trace-mapping/types/binary-search.d.mts.map +1 -0
- package/node_modules/@jridgewell/trace-mapping/types/by-source.d.cts +8 -0
- package/node_modules/@jridgewell/trace-mapping/types/by-source.d.cts.map +1 -0
- package/node_modules/@jridgewell/trace-mapping/{dist/types/by-source.d.ts → types/by-source.d.mts} +3 -2
- package/node_modules/@jridgewell/trace-mapping/types/by-source.d.mts.map +1 -0
- package/node_modules/@jridgewell/trace-mapping/types/flatten-map.d.cts +9 -0
- package/node_modules/@jridgewell/trace-mapping/types/flatten-map.d.cts.map +1 -0
- package/node_modules/@jridgewell/trace-mapping/types/flatten-map.d.mts +9 -0
- package/node_modules/@jridgewell/trace-mapping/types/flatten-map.d.mts.map +1 -0
- package/node_modules/@jridgewell/trace-mapping/types/resolve.d.cts +4 -0
- package/node_modules/@jridgewell/trace-mapping/types/resolve.d.cts.map +1 -0
- package/node_modules/@jridgewell/trace-mapping/types/resolve.d.mts +4 -0
- package/node_modules/@jridgewell/trace-mapping/types/resolve.d.mts.map +1 -0
- package/node_modules/@jridgewell/trace-mapping/types/sort.d.cts +3 -0
- package/node_modules/@jridgewell/trace-mapping/types/sort.d.cts.map +1 -0
- package/node_modules/@jridgewell/trace-mapping/{dist/types/sort.d.ts → types/sort.d.mts} +2 -1
- package/node_modules/@jridgewell/trace-mapping/types/sort.d.mts.map +1 -0
- package/node_modules/@jridgewell/trace-mapping/{dist/types/sourcemap-segment.d.ts → types/sourcemap-segment.d.cts} +1 -0
- package/node_modules/@jridgewell/trace-mapping/types/sourcemap-segment.d.cts.map +1 -0
- package/node_modules/@jridgewell/trace-mapping/types/sourcemap-segment.d.mts +17 -0
- package/node_modules/@jridgewell/trace-mapping/types/sourcemap-segment.d.mts.map +1 -0
- package/node_modules/@jridgewell/trace-mapping/types/strip-filename.d.cts +5 -0
- package/node_modules/@jridgewell/trace-mapping/types/strip-filename.d.cts.map +1 -0
- package/node_modules/@jridgewell/trace-mapping/{dist/types/strip-filename.d.ts → types/strip-filename.d.mts} +1 -0
- package/node_modules/@jridgewell/trace-mapping/types/strip-filename.d.mts.map +1 -0
- package/node_modules/@jridgewell/trace-mapping/{dist/types/trace-mapping.d.ts → types/trace-mapping.d.cts} +7 -6
- package/node_modules/@jridgewell/trace-mapping/types/trace-mapping.d.cts.map +1 -0
- package/node_modules/@jridgewell/trace-mapping/types/trace-mapping.d.mts +80 -0
- package/node_modules/@jridgewell/trace-mapping/types/trace-mapping.d.mts.map +1 -0
- package/node_modules/@jridgewell/trace-mapping/{dist/types/types.d.ts → types/types.d.cts} +10 -2
- package/node_modules/@jridgewell/trace-mapping/types/types.d.cts.map +1 -0
- package/node_modules/@jridgewell/trace-mapping/types/types.d.mts +107 -0
- package/node_modules/@jridgewell/trace-mapping/types/types.d.mts.map +1 -0
- package/node_modules/@mui/core-downloads-tracker/package.json +1 -1
- package/node_modules/@mui/material/Accordion/Accordion.d.ts +32 -15
- package/node_modules/@mui/material/Accordion/Accordion.js +18 -6
- package/node_modules/@mui/material/AccordionActions/AccordionActions.d.ts +2 -2
- package/node_modules/@mui/material/AccordionDetails/AccordionDetails.d.ts +2 -2
- package/node_modules/@mui/material/AccordionSummary/AccordionSummary.d.ts +62 -7
- package/node_modules/@mui/material/AccordionSummary/AccordionSummary.js +67 -16
- package/node_modules/@mui/material/Alert/Alert.d.ts +6 -18
- package/node_modules/@mui/material/AlertTitle/AlertTitle.d.ts +3 -3
- package/node_modules/@mui/material/AppBar/AppBar.d.ts +4 -4
- package/node_modules/@mui/material/Autocomplete/Autocomplete.d.ts +2 -2
- package/node_modules/@mui/material/Autocomplete/Autocomplete.js +1 -1
- package/node_modules/@mui/material/Avatar/Avatar.d.ts +2 -2
- package/node_modules/@mui/material/AvatarGroup/AvatarGroup.d.ts +2 -2
- package/node_modules/@mui/material/AvatarGroup/AvatarGroup.js +10 -2
- package/node_modules/@mui/material/Backdrop/Backdrop.d.ts +17 -15
- package/node_modules/@mui/material/Badge/Badge.d.ts +35 -31
- package/node_modules/@mui/material/Badge/Badge.js +27 -20
- package/node_modules/@mui/material/BottomNavigation/BottomNavigation.d.ts +2 -2
- package/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction.d.ts +43 -6
- package/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction.js +53 -9
- package/node_modules/@mui/material/Box/Box.d.ts +2 -2
- package/node_modules/@mui/material/Breadcrumbs/BreadcrumbCollapsed.js +3 -1
- package/node_modules/@mui/material/Breadcrumbs/Breadcrumbs.d.ts +3 -3
- package/node_modules/@mui/material/Button/Button.d.ts +4 -4
- package/node_modules/@mui/material/Button/Button.js +3 -3
- package/node_modules/@mui/material/ButtonBase/ButtonBase.d.ts +2 -2
- package/node_modules/@mui/material/ButtonGroup/ButtonGroup.d.ts +2 -2
- package/node_modules/@mui/material/CHANGELOG.md +345 -0
- package/node_modules/@mui/material/Card/Card.d.ts +4 -4
- package/node_modules/@mui/material/CardActionArea/CardActionArea.d.ts +43 -6
- package/node_modules/@mui/material/CardActionArea/CardActionArea.js +47 -8
- package/node_modules/@mui/material/CardActions/CardActions.d.ts +2 -2
- package/node_modules/@mui/material/CardContent/CardContent.d.ts +2 -2
- package/node_modules/@mui/material/CardHeader/CardHeader.d.ts +6 -22
- package/node_modules/@mui/material/CardMedia/CardMedia.d.ts +2 -2
- package/node_modules/@mui/material/Checkbox/Checkbox.d.ts +49 -13
- package/node_modules/@mui/material/Checkbox/Checkbox.js +51 -21
- package/node_modules/@mui/material/Chip/Chip.d.ts +2 -2
- package/node_modules/@mui/material/CircularProgress/CircularProgress.d.ts +7 -3
- package/node_modules/@mui/material/ClickAwayListener/ClickAwayListener.d.ts +3 -3
- package/node_modules/@mui/material/ClickAwayListener/ClickAwayListener.js +3 -3
- package/node_modules/@mui/material/Collapse/Collapse.d.ts +5 -5
- package/node_modules/@mui/material/Container/Container.d.ts +2 -2
- package/node_modules/@mui/material/CssBaseline/CssBaseline.d.ts +2 -2
- package/node_modules/@mui/material/Dialog/Dialog.d.ts +7 -7
- package/node_modules/@mui/material/Dialog/dialogClasses.d.ts +6 -2
- package/node_modules/@mui/material/DialogActions/DialogActions.d.ts +2 -2
- package/node_modules/@mui/material/DialogContent/DialogContent.d.ts +2 -2
- package/node_modules/@mui/material/DialogContentText/DialogContentText.d.ts +3 -3
- package/node_modules/@mui/material/DialogTitle/DialogTitle.d.ts +3 -3
- package/node_modules/@mui/material/Divider/Divider.d.ts +3 -3
- package/node_modules/@mui/material/Drawer/Drawer.d.ts +95 -4
- package/node_modules/@mui/material/Drawer/Drawer.js +108 -36
- package/node_modules/@mui/material/Fab/Fab.d.ts +3 -3
- package/node_modules/@mui/material/Fade/Fade.d.ts +3 -3
- package/node_modules/@mui/material/FilledInput/FilledInput.d.ts +3 -3
- package/node_modules/@mui/material/FormControl/FormControl.d.ts +6 -6
- package/node_modules/@mui/material/FormControlLabel/FormControlLabel.d.ts +4 -4
- package/node_modules/@mui/material/FormGroup/FormGroup.d.ts +3 -3
- package/node_modules/@mui/material/FormHelperText/FormHelperText.d.ts +2 -2
- package/node_modules/@mui/material/FormLabel/FormLabel.d.ts +4 -4
- package/node_modules/@mui/material/GlobalStyles/GlobalStyles.d.ts +2 -2
- package/node_modules/@mui/material/Grid/Grid.d.ts +2 -2
- package/node_modules/@mui/material/Grid2/Grid2.d.ts +2 -2
- package/node_modules/@mui/material/Grid2/Grid2.js +2 -2
- package/node_modules/@mui/material/Grow/Grow.d.ts +5 -5
- package/node_modules/@mui/material/Hidden/Hidden.d.ts +2 -2
- package/node_modules/@mui/material/Icon/Icon.d.ts +3 -3
- package/node_modules/@mui/material/IconButton/IconButton.d.ts +4 -4
- package/node_modules/@mui/material/IconButton/IconButton.js +3 -3
- package/node_modules/@mui/material/ImageList/ImageList.d.ts +2 -2
- package/node_modules/@mui/material/ImageListItem/ImageListItem.d.ts +2 -2
- package/node_modules/@mui/material/ImageListItemBar/ImageListItemBar.d.ts +2 -2
- package/node_modules/@mui/material/Input/Input.d.ts +3 -3
- package/node_modules/@mui/material/InputAdornment/InputAdornment.d.ts +2 -2
- package/node_modules/@mui/material/InputBase/InputBase.d.ts +2 -2
- package/node_modules/@mui/material/InputBase/inputBaseClasses.d.ts +15 -6
- package/node_modules/@mui/material/InputLabel/InputLabel.d.ts +3 -3
- package/node_modules/@mui/material/LinearProgress/LinearProgress.d.ts +7 -3
- package/node_modules/@mui/material/Link/Link.d.ts +4 -4
- package/node_modules/@mui/material/List/List.d.ts +3 -3
- package/node_modules/@mui/material/ListItem/ListItem.d.ts +3 -3
- package/node_modules/@mui/material/ListItemAvatar/ListItemAvatar.d.ts +2 -2
- package/node_modules/@mui/material/ListItemButton/ListItemButton.d.ts +3 -3
- package/node_modules/@mui/material/ListItemIcon/ListItemIcon.d.ts +2 -2
- package/node_modules/@mui/material/ListItemSecondaryAction/ListItemSecondaryAction.d.ts +2 -2
- package/node_modules/@mui/material/ListItemText/ListItemText.d.ts +12 -2
- package/node_modules/@mui/material/ListItemText/ListItemText.js +14 -5
- package/node_modules/@mui/material/ListSubheader/ListSubheader.d.ts +2 -2
- package/node_modules/@mui/material/Menu/Menu.d.ts +92 -5
- package/node_modules/@mui/material/Menu/Menu.js +58 -19
- package/node_modules/@mui/material/MenuItem/MenuItem.d.ts +3 -3
- package/node_modules/@mui/material/MenuList/MenuList.d.ts +4 -4
- package/node_modules/@mui/material/MobileStepper/MobileStepper.d.ts +72 -4
- package/node_modules/@mui/material/MobileStepper/MobileStepper.js +76 -18
- package/node_modules/@mui/material/Modal/Modal.d.ts +7 -7
- package/node_modules/@mui/material/Modal/Modal.js +9 -10
- package/node_modules/@mui/material/NativeSelect/NativeSelect.d.ts +3 -3
- package/node_modules/@mui/material/NativeSelect/NativeSelectInput.js +6 -2
- package/node_modules/@mui/material/NoSsr/NoSsr.d.ts +2 -2
- package/node_modules/@mui/material/NoSsr/NoSsr.js +2 -2
- package/node_modules/@mui/material/OutlinedInput/NotchedOutline.js +2 -0
- package/node_modules/@mui/material/OutlinedInput/OutlinedInput.d.ts +32 -5
- package/node_modules/@mui/material/OutlinedInput/OutlinedInput.js +30 -10
- package/node_modules/@mui/material/OverridableComponent/index.d.ts +41 -0
- package/node_modules/@mui/material/OverridableComponent/index.js +1 -0
- package/node_modules/@mui/material/OverridableComponent/package.json +6 -0
- package/node_modules/@mui/material/Pagination/Pagination.d.ts +2 -2
- package/node_modules/@mui/material/PaginationItem/PaginationItem.d.ts +3 -3
- package/node_modules/@mui/material/Paper/Paper.d.ts +3 -3
- package/node_modules/@mui/material/PigmentContainer/PigmentContainer.d.ts +2 -2
- package/node_modules/@mui/material/PigmentContainer/PigmentContainer.js +2 -2
- package/node_modules/@mui/material/PigmentGrid/PigmentGrid.d.ts +2 -2
- package/node_modules/@mui/material/PigmentGrid/PigmentGrid.js +2 -2
- package/node_modules/@mui/material/PigmentHidden/PigmentHidden.d.ts +2 -2
- package/node_modules/@mui/material/PigmentHidden/PigmentHidden.js +2 -2
- package/node_modules/@mui/material/PigmentStack/PigmentStack.d.ts +2 -2
- package/node_modules/@mui/material/PigmentStack/PigmentStack.js +2 -2
- package/node_modules/@mui/material/Popover/Popover.d.ts +65 -12
- package/node_modules/@mui/material/Popover/Popover.js +79 -52
- package/node_modules/@mui/material/Popper/Popper.d.ts +4 -4
- package/node_modules/@mui/material/Popper/Popper.js +4 -4
- package/node_modules/@mui/material/Portal/Portal.d.ts +2 -2
- package/node_modules/@mui/material/Portal/Portal.js +2 -2
- package/node_modules/@mui/material/README.md +4 -2
- package/node_modules/@mui/material/Radio/Radio.d.ts +48 -4
- package/node_modules/@mui/material/Radio/Radio.js +61 -16
- package/node_modules/@mui/material/Radio/RadioButtonIcon.js +7 -2
- package/node_modules/@mui/material/RadioGroup/RadioGroup.d.ts +3 -3
- package/node_modules/@mui/material/Rating/Rating.d.ts +61 -3
- package/node_modules/@mui/material/Rating/Rating.js +131 -45
- package/node_modules/@mui/material/ScopedCssBaseline/ScopedCssBaseline.d.ts +2 -2
- package/node_modules/@mui/material/Select/Select.d.ts +3 -3
- package/node_modules/@mui/material/Select/SelectInput.js +8 -8
- package/node_modules/@mui/material/Skeleton/Skeleton.d.ts +2 -2
- package/node_modules/@mui/material/Slide/Slide.d.ts +4 -4
- package/node_modules/@mui/material/Slider/Slider.d.ts +2 -2
- package/node_modules/@mui/material/Slider/sliderClasses.d.ts +21 -7
- package/node_modules/@mui/material/Slider/useSlider.js +2 -2
- package/node_modules/@mui/material/Snackbar/Snackbar.d.ts +81 -4
- package/node_modules/@mui/material/Snackbar/Snackbar.js +116 -32
- package/node_modules/@mui/material/SnackbarContent/SnackbarContent.d.ts +3 -3
- package/node_modules/@mui/material/SpeedDial/SpeedDial.d.ts +20 -8
- package/node_modules/@mui/material/SpeedDial/SpeedDial.js +40 -11
- package/node_modules/@mui/material/SpeedDialAction/SpeedDialAction.d.ts +85 -4
- package/node_modules/@mui/material/SpeedDialAction/SpeedDialAction.js +109 -31
- package/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon.d.ts +2 -2
- package/node_modules/@mui/material/Stack/Stack.d.ts +2 -2
- package/node_modules/@mui/material/Step/Step.d.ts +2 -2
- package/node_modules/@mui/material/StepButton/StepButton.d.ts +3 -3
- package/node_modules/@mui/material/StepConnector/StepConnector.d.ts +2 -2
- package/node_modules/@mui/material/StepContent/StepContent.d.ts +4 -4
- package/node_modules/@mui/material/StepIcon/StepIcon.d.ts +3 -3
- package/node_modules/@mui/material/StepLabel/StepLabel.d.ts +21 -3
- package/node_modules/@mui/material/StepLabel/StepLabel.js +14 -5
- package/node_modules/@mui/material/Stepper/Stepper.d.ts +2 -2
- package/node_modules/@mui/material/SvgIcon/SvgIcon.d.ts +3 -3
- package/node_modules/@mui/material/SwipeableDrawer/SwipeArea.js +1 -0
- package/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer.d.ts +31 -5
- package/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer.js +60 -13
- package/node_modules/@mui/material/Switch/Switch.d.ts +78 -5
- package/node_modules/@mui/material/Switch/Switch.js +73 -9
- package/node_modules/@mui/material/Tab/Tab.d.ts +3 -3
- package/node_modules/@mui/material/TabScrollButton/TabScrollButton.d.ts +2 -2
- package/node_modules/@mui/material/Table/Table.d.ts +2 -2
- package/node_modules/@mui/material/TableBody/TableBody.d.ts +2 -2
- package/node_modules/@mui/material/TableCell/TableCell.d.ts +2 -2
- package/node_modules/@mui/material/TableContainer/TableContainer.d.ts +2 -2
- package/node_modules/@mui/material/TableFooter/TableFooter.d.ts +2 -2
- package/node_modules/@mui/material/TableHead/TableHead.d.ts +2 -2
- package/node_modules/@mui/material/TablePagination/TablePagination.d.ts +4 -4
- package/node_modules/@mui/material/TableRow/TableRow.d.ts +2 -2
- package/node_modules/@mui/material/TableSortLabel/TableSortLabel.d.ts +3 -3
- package/node_modules/@mui/material/Tabs/Tabs.d.ts +131 -31
- package/node_modules/@mui/material/Tabs/Tabs.js +124 -52
- package/node_modules/@mui/material/Tabs/tabsClasses.d.ts +4 -0
- package/node_modules/@mui/material/Tabs/tabsClasses.js +1 -1
- package/node_modules/@mui/material/TextField/TextField.d.ts +40 -10
- package/node_modules/@mui/material/TextField/TextField.js +22 -11
- package/node_modules/@mui/material/TextareaAutosize/TextareaAutosize.d.ts +2 -2
- package/node_modules/@mui/material/TextareaAutosize/TextareaAutosize.js +68 -47
- package/node_modules/@mui/material/ToggleButton/ToggleButton.d.ts +3 -3
- package/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroup.d.ts +2 -2
- package/node_modules/@mui/material/Toolbar/Toolbar.d.ts +2 -2
- package/node_modules/@mui/material/Tooltip/Tooltip.d.ts +23 -27
- package/node_modules/@mui/material/Tooltip/Tooltip.js +1 -1
- package/node_modules/@mui/material/Typography/Typography.d.ts +3 -3
- package/node_modules/@mui/material/Zoom/Zoom.d.ts +3 -3
- package/node_modules/@mui/material/index.js +1 -1
- package/node_modules/@mui/material/internal/SwitchBase.d.ts +35 -1
- package/node_modules/@mui/material/internal/SwitchBase.js +88 -31
- package/node_modules/@mui/material/modern/Accordion/Accordion.js +18 -6
- package/node_modules/@mui/material/modern/AccordionSummary/AccordionSummary.js +67 -16
- package/node_modules/@mui/material/modern/Autocomplete/Autocomplete.js +1 -1
- package/node_modules/@mui/material/modern/AvatarGroup/AvatarGroup.js +10 -2
- package/node_modules/@mui/material/modern/Badge/Badge.js +27 -20
- package/node_modules/@mui/material/modern/BottomNavigationAction/BottomNavigationAction.js +53 -9
- package/node_modules/@mui/material/modern/Breadcrumbs/BreadcrumbCollapsed.js +3 -1
- package/node_modules/@mui/material/modern/Button/Button.js +3 -3
- package/node_modules/@mui/material/modern/CardActionArea/CardActionArea.js +47 -8
- package/node_modules/@mui/material/modern/Checkbox/Checkbox.js +51 -21
- package/node_modules/@mui/material/modern/ClickAwayListener/ClickAwayListener.js +3 -3
- package/node_modules/@mui/material/modern/Drawer/Drawer.js +108 -36
- package/node_modules/@mui/material/modern/Grid2/Grid2.js +2 -2
- package/node_modules/@mui/material/modern/IconButton/IconButton.js +3 -3
- package/node_modules/@mui/material/modern/ListItemText/ListItemText.js +14 -5
- package/node_modules/@mui/material/modern/Menu/Menu.js +58 -19
- package/node_modules/@mui/material/modern/MobileStepper/MobileStepper.js +76 -18
- package/node_modules/@mui/material/modern/Modal/Modal.js +9 -10
- package/node_modules/@mui/material/modern/NativeSelect/NativeSelectInput.js +6 -2
- package/node_modules/@mui/material/modern/NoSsr/NoSsr.js +2 -2
- package/node_modules/@mui/material/modern/OutlinedInput/NotchedOutline.js +2 -0
- package/node_modules/@mui/material/modern/OutlinedInput/OutlinedInput.js +30 -10
- package/node_modules/@mui/material/modern/OverridableComponent/index.js +1 -0
- package/node_modules/@mui/material/modern/PigmentContainer/PigmentContainer.js +2 -2
- package/node_modules/@mui/material/modern/PigmentGrid/PigmentGrid.js +2 -2
- package/node_modules/@mui/material/modern/PigmentHidden/PigmentHidden.js +2 -2
- package/node_modules/@mui/material/modern/PigmentStack/PigmentStack.js +2 -2
- package/node_modules/@mui/material/modern/Popover/Popover.js +79 -52
- package/node_modules/@mui/material/modern/Popper/Popper.js +4 -4
- package/node_modules/@mui/material/modern/Portal/Portal.js +2 -2
- package/node_modules/@mui/material/modern/Radio/Radio.js +61 -16
- package/node_modules/@mui/material/modern/Radio/RadioButtonIcon.js +7 -2
- package/node_modules/@mui/material/modern/Rating/Rating.js +131 -45
- package/node_modules/@mui/material/modern/Select/SelectInput.js +8 -8
- package/node_modules/@mui/material/modern/Slider/useSlider.js +2 -2
- package/node_modules/@mui/material/modern/Snackbar/Snackbar.js +116 -32
- package/node_modules/@mui/material/modern/SpeedDial/SpeedDial.js +40 -11
- package/node_modules/@mui/material/modern/SpeedDialAction/SpeedDialAction.js +109 -31
- package/node_modules/@mui/material/modern/StepLabel/StepLabel.js +14 -5
- package/node_modules/@mui/material/modern/SwipeableDrawer/SwipeArea.js +1 -0
- package/node_modules/@mui/material/modern/SwipeableDrawer/SwipeableDrawer.js +60 -13
- package/node_modules/@mui/material/modern/Switch/Switch.js +73 -9
- package/node_modules/@mui/material/modern/Tabs/Tabs.js +124 -52
- package/node_modules/@mui/material/modern/Tabs/tabsClasses.js +1 -1
- package/node_modules/@mui/material/modern/TextField/TextField.js +22 -11
- package/node_modules/@mui/material/modern/TextareaAutosize/TextareaAutosize.js +68 -47
- package/node_modules/@mui/material/modern/Tooltip/Tooltip.js +1 -1
- package/node_modules/@mui/material/modern/index.js +1 -1
- package/node_modules/@mui/material/modern/internal/SwitchBase.js +88 -31
- package/node_modules/@mui/material/modern/styles/ThemeProvider.js +20 -9
- package/node_modules/@mui/material/modern/styles/components.js +1 -0
- package/node_modules/@mui/material/modern/styles/createThemeNoVars.js +5 -2
- package/node_modules/@mui/material/modern/styles/overrides.js +1 -0
- package/node_modules/@mui/material/modern/styles/props.js +1 -0
- package/node_modules/@mui/material/modern/styles/shouldSkipGeneratingVar.js +1 -1
- package/node_modules/@mui/material/modern/styles/variants.js +1 -0
- package/node_modules/@mui/material/modern/useAutocomplete/useAutocomplete.js +16 -14
- package/node_modules/@mui/material/modern/useScrollTrigger/useScrollTrigger.js +3 -0
- package/node_modules/@mui/material/modern/utils/mergeSlotProps.js +10 -3
- package/node_modules/@mui/material/modern/version/index.js +3 -3
- package/node_modules/@mui/material/node/Accordion/Accordion.js +18 -6
- package/node_modules/@mui/material/node/AccordionSummary/AccordionSummary.js +67 -16
- package/node_modules/@mui/material/node/Autocomplete/Autocomplete.js +1 -1
- package/node_modules/@mui/material/node/AvatarGroup/AvatarGroup.js +10 -2
- package/node_modules/@mui/material/node/Badge/Badge.js +27 -20
- package/node_modules/@mui/material/node/BottomNavigationAction/BottomNavigationAction.js +53 -9
- package/node_modules/@mui/material/node/Breadcrumbs/BreadcrumbCollapsed.js +3 -1
- package/node_modules/@mui/material/node/Button/Button.js +3 -3
- package/node_modules/@mui/material/node/CardActionArea/CardActionArea.js +47 -8
- package/node_modules/@mui/material/node/Checkbox/Checkbox.js +51 -21
- package/node_modules/@mui/material/node/ClickAwayListener/ClickAwayListener.js +3 -3
- package/node_modules/@mui/material/node/Drawer/Drawer.js +108 -36
- package/node_modules/@mui/material/node/Grid2/Grid2.js +2 -2
- package/node_modules/@mui/material/node/IconButton/IconButton.js +3 -3
- package/node_modules/@mui/material/node/ListItemText/ListItemText.js +14 -5
- package/node_modules/@mui/material/node/Menu/Menu.js +58 -19
- package/node_modules/@mui/material/node/MobileStepper/MobileStepper.js +76 -18
- package/node_modules/@mui/material/node/Modal/Modal.js +9 -10
- package/node_modules/@mui/material/node/NativeSelect/NativeSelectInput.js +6 -2
- package/node_modules/@mui/material/node/NoSsr/NoSsr.js +2 -2
- package/node_modules/@mui/material/node/OutlinedInput/NotchedOutline.js +2 -0
- package/node_modules/@mui/material/node/OutlinedInput/OutlinedInput.js +30 -10
- package/node_modules/@mui/material/node/OverridableComponent/index.js +5 -0
- package/node_modules/@mui/material/node/PigmentContainer/PigmentContainer.js +2 -2
- package/node_modules/@mui/material/node/PigmentGrid/PigmentGrid.js +2 -2
- package/node_modules/@mui/material/node/PigmentHidden/PigmentHidden.js +2 -2
- package/node_modules/@mui/material/node/PigmentStack/PigmentStack.js +2 -2
- package/node_modules/@mui/material/node/Popover/Popover.js +79 -52
- package/node_modules/@mui/material/node/Popper/Popper.js +4 -4
- package/node_modules/@mui/material/node/Portal/Portal.js +2 -2
- package/node_modules/@mui/material/node/Radio/Radio.js +61 -16
- package/node_modules/@mui/material/node/Radio/RadioButtonIcon.js +7 -2
- package/node_modules/@mui/material/node/Rating/Rating.js +132 -46
- package/node_modules/@mui/material/node/Select/SelectInput.js +8 -8
- package/node_modules/@mui/material/node/Slider/useSlider.js +2 -2
- package/node_modules/@mui/material/node/Snackbar/Snackbar.js +116 -32
- package/node_modules/@mui/material/node/SpeedDial/SpeedDial.js +40 -11
- package/node_modules/@mui/material/node/SpeedDialAction/SpeedDialAction.js +109 -31
- package/node_modules/@mui/material/node/StepLabel/StepLabel.js +14 -5
- package/node_modules/@mui/material/node/SwipeableDrawer/SwipeArea.js +1 -0
- package/node_modules/@mui/material/node/SwipeableDrawer/SwipeableDrawer.js +60 -13
- package/node_modules/@mui/material/node/Switch/Switch.js +73 -9
- package/node_modules/@mui/material/node/Tabs/Tabs.js +124 -52
- package/node_modules/@mui/material/node/Tabs/tabsClasses.js +1 -1
- package/node_modules/@mui/material/node/TextField/TextField.js +22 -11
- package/node_modules/@mui/material/node/TextareaAutosize/TextareaAutosize.js +67 -46
- package/node_modules/@mui/material/node/Tooltip/Tooltip.js +1 -1
- package/node_modules/@mui/material/node/index.js +1 -1
- package/node_modules/@mui/material/node/internal/SwitchBase.js +88 -31
- package/node_modules/@mui/material/node/styles/ThemeProvider.js +20 -9
- package/node_modules/@mui/material/node/styles/components.js +5 -0
- package/node_modules/@mui/material/node/styles/createThemeNoVars.js +5 -2
- package/node_modules/@mui/material/node/styles/overrides.js +5 -0
- package/node_modules/@mui/material/node/styles/props.js +5 -0
- package/node_modules/@mui/material/node/styles/shouldSkipGeneratingVar.js +1 -1
- package/node_modules/@mui/material/node/styles/variants.js +5 -0
- package/node_modules/@mui/material/node/useAutocomplete/useAutocomplete.js +16 -14
- package/node_modules/@mui/material/node/useScrollTrigger/useScrollTrigger.js +3 -0
- package/node_modules/@mui/material/node/utils/mergeSlotProps.js +10 -3
- package/node_modules/@mui/material/node/version/index.js +3 -3
- package/node_modules/@mui/material/package.json +6 -6
- package/node_modules/@mui/material/styles/ThemeProvider.d.ts +6 -0
- package/node_modules/@mui/material/styles/ThemeProvider.js +20 -9
- package/node_modules/@mui/material/styles/ThemeProviderWithVars.d.ts +1 -0
- package/node_modules/@mui/material/styles/components.d.ts +590 -591
- package/node_modules/@mui/material/styles/components.js +1 -0
- package/node_modules/@mui/material/styles/createThemeNoVars.d.ts +2 -1
- package/node_modules/@mui/material/styles/createThemeNoVars.js +5 -2
- package/node_modules/@mui/material/styles/index.d.ts +1 -0
- package/node_modules/@mui/material/styles/overrides.d.ts +123 -142
- package/node_modules/@mui/material/styles/overrides.js +1 -0
- package/node_modules/@mui/material/styles/props.d.ts +120 -122
- package/node_modules/@mui/material/styles/props.js +1 -0
- package/node_modules/@mui/material/styles/shouldSkipGeneratingVar.js +1 -1
- package/node_modules/@mui/material/styles/variants.d.ts +7 -10
- package/node_modules/@mui/material/styles/variants.js +1 -0
- package/node_modules/@mui/material/useAutocomplete/useAutocomplete.d.ts +2 -2
- package/node_modules/@mui/material/useAutocomplete/useAutocomplete.js +16 -14
- package/node_modules/@mui/material/useScrollTrigger/useScrollTrigger.d.ts +1 -1
- package/node_modules/@mui/material/useScrollTrigger/useScrollTrigger.js +3 -0
- package/node_modules/@mui/material/utils/mergeSlotProps.js +10 -3
- package/node_modules/@mui/material/version/index.js +3 -3
- package/node_modules/@mui/private-theming/CHANGELOG.md +256 -0
- package/node_modules/@mui/private-theming/index.js +1 -1
- package/node_modules/@mui/private-theming/modern/index.js +1 -1
- package/node_modules/@mui/private-theming/node/index.js +1 -1
- package/node_modules/@mui/private-theming/package.json +2 -2
- package/node_modules/@mui/styled-engine/CHANGELOG.md +387 -0
- package/node_modules/@mui/styled-engine/README.md +2 -2
- package/node_modules/@mui/styled-engine/StyledEngineProvider/StyledEngineProvider.d.ts +1 -0
- package/node_modules/@mui/styled-engine/StyledEngineProvider/StyledEngineProvider.js +72 -18
- package/node_modules/@mui/styled-engine/index.js +1 -1
- package/node_modules/@mui/styled-engine/modern/StyledEngineProvider/StyledEngineProvider.js +72 -18
- package/node_modules/@mui/styled-engine/modern/index.js +1 -1
- package/node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js +72 -17
- package/node_modules/@mui/styled-engine/node/index.js +1 -1
- package/node_modules/@mui/styled-engine/package.json +1 -1
- package/node_modules/@mui/system/CHANGELOG.md +345 -0
- package/node_modules/@mui/system/GlobalStyles/GlobalStyles.js +25 -1
- package/node_modules/@mui/system/Grid/createGrid.js +4 -0
- package/node_modules/@mui/system/Grid/deleteLegacyGridProps.d.ts +11 -0
- package/node_modules/@mui/system/Grid/deleteLegacyGridProps.js +47 -0
- package/node_modules/@mui/system/README.md +6 -4
- package/node_modules/@mui/system/ThemeProvider/ThemeProvider.js +4 -2
- package/node_modules/@mui/system/ThemeProvider/useLayerOrder.d.ts +8 -0
- package/node_modules/@mui/system/ThemeProvider/useLayerOrder.js +58 -0
- package/node_modules/@mui/system/createBreakpoints/createBreakpoints.d.ts +5 -5
- package/node_modules/@mui/system/createStyled/createStyled.js +34 -21
- package/node_modules/@mui/system/cssContainerQueries/cssContainerQueries.d.ts +1 -2
- package/node_modules/@mui/system/cssVars/createCssVarsProvider.d.ts +6 -0
- package/node_modules/@mui/system/cssVars/createCssVarsProvider.js +7 -0
- package/node_modules/@mui/system/cssVars/index.d.ts +1 -0
- package/node_modules/@mui/system/cssVars/localStorageManager.d.ts +34 -0
- package/node_modules/@mui/system/cssVars/localStorageManager.js +57 -0
- package/node_modules/@mui/system/cssVars/useCurrentColorScheme.d.ts +2 -0
- package/node_modules/@mui/system/cssVars/useCurrentColorScheme.js +50 -69
- package/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.js +26 -2
- package/node_modules/@mui/system/esm/Grid/createGrid.js +4 -0
- package/node_modules/@mui/system/esm/Grid/deleteLegacyGridProps.js +41 -0
- package/node_modules/@mui/system/esm/ThemeProvider/ThemeProvider.js +5 -3
- package/node_modules/@mui/system/esm/ThemeProvider/useLayerOrder.js +52 -0
- package/node_modules/@mui/system/esm/createStyled/createStyled.js +35 -22
- package/node_modules/@mui/system/esm/cssVars/createCssVarsProvider.js +7 -0
- package/node_modules/@mui/system/esm/cssVars/localStorageManager.js +51 -0
- package/node_modules/@mui/system/esm/cssVars/useCurrentColorScheme.js +49 -69
- package/node_modules/@mui/system/esm/styleFunctionSx/AliasesCSSProperties.js +1 -0
- package/node_modules/@mui/system/esm/styleFunctionSx/OverwriteCSSProperties.js +1 -0
- package/node_modules/@mui/system/esm/styleFunctionSx/StandardCssProperties.js +1 -0
- package/node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js +9 -2
- package/node_modules/@mui/system/esm/useMediaQuery/useMediaQuery.js +3 -0
- package/node_modules/@mui/system/esm/version/index.js +3 -3
- package/node_modules/@mui/system/index.js +1 -1
- package/node_modules/@mui/system/modern/GlobalStyles/GlobalStyles.js +26 -2
- package/node_modules/@mui/system/modern/Grid/createGrid.js +4 -0
- package/node_modules/@mui/system/modern/Grid/deleteLegacyGridProps.js +41 -0
- package/node_modules/@mui/system/modern/ThemeProvider/ThemeProvider.js +5 -3
- package/node_modules/@mui/system/modern/ThemeProvider/useLayerOrder.js +52 -0
- package/node_modules/@mui/system/modern/createStyled/createStyled.js +35 -22
- package/node_modules/@mui/system/modern/cssVars/createCssVarsProvider.js +7 -0
- package/node_modules/@mui/system/modern/cssVars/localStorageManager.js +51 -0
- package/node_modules/@mui/system/modern/cssVars/useCurrentColorScheme.js +49 -69
- package/node_modules/@mui/system/modern/index.js +1 -1
- package/node_modules/@mui/system/modern/styleFunctionSx/AliasesCSSProperties.js +1 -0
- package/node_modules/@mui/system/modern/styleFunctionSx/OverwriteCSSProperties.js +1 -0
- package/node_modules/@mui/system/modern/styleFunctionSx/StandardCssProperties.js +1 -0
- package/node_modules/@mui/system/modern/styleFunctionSx/styleFunctionSx.js +9 -2
- package/node_modules/@mui/system/modern/useMediaQuery/useMediaQuery.js +3 -0
- package/node_modules/@mui/system/modern/version/index.js +3 -3
- package/node_modules/@mui/system/package.json +5 -5
- package/node_modules/@mui/system/styleFunctionSx/AliasesCSSProperties.d.ts +266 -267
- package/node_modules/@mui/system/styleFunctionSx/AliasesCSSProperties.js +5 -0
- package/node_modules/@mui/system/styleFunctionSx/OverwriteCSSProperties.d.ts +51 -52
- package/node_modules/@mui/system/styleFunctionSx/OverwriteCSSProperties.js +5 -0
- package/node_modules/@mui/system/styleFunctionSx/StandardCssProperties.d.ts +0 -1
- package/node_modules/@mui/system/styleFunctionSx/StandardCssProperties.js +5 -0
- package/node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js +9 -2
- package/node_modules/@mui/system/useMediaQuery/useMediaQuery.js +3 -0
- package/node_modules/@mui/system/version/index.js +3 -3
- package/node_modules/@mui/types/package.json +1 -1
- package/node_modules/@mui/utils/CHANGELOG.md +256 -0
- package/node_modules/@mui/utils/esm/useForkRef/useForkRef.js +32 -12
- package/node_modules/@mui/utils/index.js +1 -1
- package/node_modules/@mui/utils/modern/index.js +1 -1
- package/node_modules/@mui/utils/modern/useForkRef/useForkRef.js +32 -12
- package/node_modules/@mui/utils/package.json +3 -3
- package/node_modules/@mui/utils/useForkRef/useForkRef.d.ts +1 -2
- package/node_modules/@mui/utils/useForkRef/useForkRef.js +32 -13
- package/package.json +24 -24
- package/node_modules/@babel/parser/index.cjs +0 -5
- package/node_modules/@babel/traverse/lib/scope/traverseForScope.js +0 -68
- package/node_modules/@babel/traverse/lib/scope/traverseForScope.js.map +0 -1
- package/node_modules/@babel/traverse/node_modules/globals/globals.json +0 -1563
- package/node_modules/@babel/traverse/node_modules/globals/index.js +0 -2
- package/node_modules/@babel/traverse/node_modules/globals/license +0 -9
- package/node_modules/@babel/traverse/node_modules/globals/package.json +0 -41
- package/node_modules/@babel/traverse/node_modules/globals/readme.md +0 -41
- package/node_modules/@emotion/cache/dist/declarations/types/index.d.ts +0 -45
- package/node_modules/@emotion/cache/src/index.d.ts +0 -2
- package/node_modules/@emotion/cache/types/index.d.ts +0 -45
- package/node_modules/@emotion/react/dist/declarations/dist/emotion-react.cjs.d.ts +0 -2
- package/node_modules/@emotion/react/dist/declarations/types/helper.d.ts +0 -14
- package/node_modules/@emotion/react/dist/declarations/types/index.d.ts +0 -115
- package/node_modules/@emotion/react/dist/declarations/types/jsx-dev-runtime.d.ts +0 -1
- package/node_modules/@emotion/react/dist/declarations/types/jsx-namespace.d.ts +0 -102
- package/node_modules/@emotion/react/dist/declarations/types/jsx-runtime.d.ts +0 -1
- package/node_modules/@emotion/react/dist/declarations/types/theming.d.ts +0 -31
- package/node_modules/@emotion/react/src/_isolated-hnrs.d.ts +0 -3
- package/node_modules/@emotion/react/src/css.js +0 -8
- package/node_modules/@emotion/react/src/global.js +0 -145
- package/node_modules/@emotion/react/src/index.d.ts +0 -1
- package/node_modules/@emotion/react/src/jsx-dev-runtime.d.ts +0 -1
- package/node_modules/@emotion/react/src/jsx-runtime.d.ts +0 -1
- package/node_modules/@emotion/react/src/jsx-runtime.js +0 -21
- package/node_modules/@emotion/react/src/jsx.js +0 -25
- package/node_modules/@emotion/react/src/keyframes.js +0 -23
- package/node_modules/@emotion/react/types/index.d.ts +0 -115
- package/node_modules/@emotion/react/types/jsx-dev-runtime.d.ts +0 -1
- package/node_modules/@emotion/react/types/jsx-namespace.d.ts +0 -102
- package/node_modules/@emotion/react/types/jsx-runtime.d.ts +0 -1
- package/node_modules/@emotion/react/types/theming.d.ts +0 -31
- package/node_modules/@emotion/styled/dist/declarations/types/base.d.ts +0 -197
- package/node_modules/@emotion/styled/dist/declarations/types/index.d.ts +0 -33
- package/node_modules/@emotion/styled/src/base.d.ts +0 -2
- package/node_modules/@emotion/styled/src/index.d.ts +0 -2
- package/node_modules/@emotion/styled/src/index.js +0 -11
- package/node_modules/@emotion/styled/src/utils.js +0 -86
- package/node_modules/@emotion/styled/types/jsx-namespace.d.ts +0 -14
- package/node_modules/@emotion/use-insertion-effect-with-fallbacks/src/index.js +0 -15
- package/node_modules/@jridgewell/gen-mapping/dist/types/sourcemap-segment.d.ts +0 -12
- package/node_modules/@jridgewell/set-array/LICENSE +0 -19
- package/node_modules/@jridgewell/set-array/README.md +0 -37
- package/node_modules/@jridgewell/set-array/dist/set-array.mjs +0 -69
- package/node_modules/@jridgewell/set-array/dist/set-array.mjs.map +0 -1
- package/node_modules/@jridgewell/set-array/dist/set-array.umd.js +0 -83
- package/node_modules/@jridgewell/set-array/dist/set-array.umd.js.map +0 -1
- package/node_modules/@jridgewell/set-array/package.json +0 -65
- package/node_modules/@jridgewell/trace-mapping/dist/types/any-map.d.ts +0 -8
- package/node_modules/@jridgewell/trace-mapping/dist/types/resolve.d.ts +0 -1
- package/node_modules/@mui/material/OverridableComponent.d.ts +0 -67
- /package/node_modules/@emotion/cache/src/conditions/{false.js → false.ts} +0 -0
- /package/node_modules/@emotion/cache/src/conditions/{is-browser.js → is-browser.ts} +0 -0
- /package/node_modules/@emotion/cache/src/conditions/{true.js → true.ts} +0 -0
- /package/node_modules/@emotion/react/src/conditions/{false.js → false.ts} +0 -0
- /package/node_modules/@emotion/react/src/conditions/{is-browser.js → is-browser.ts} +0 -0
- /package/node_modules/@emotion/react/src/conditions/{true.js → true.ts} +0 -0
- /package/node_modules/@emotion/react/{types/helper.d.ts → src/types.ts} +0 -0
- /package/node_modules/@emotion/react/src/{utils.js → utils.ts} +0 -0
- /package/node_modules/@emotion/styled/src/conditions/{false.js → false.ts} +0 -0
- /package/node_modules/@emotion/styled/src/conditions/{is-browser.js → is-browser.ts} +0 -0
- /package/node_modules/@emotion/styled/src/conditions/{true.js → true.ts} +0 -0
- /package/node_modules/@emotion/use-insertion-effect-with-fallbacks/src/conditions/{false.js → false.ts} +0 -0
- /package/node_modules/@emotion/use-insertion-effect-with-fallbacks/src/conditions/{is-browser.js → is-browser.ts} +0 -0
- /package/node_modules/@emotion/use-insertion-effect-with-fallbacks/src/conditions/{true.js → true.ts} +0 -0
|
@@ -9,12 +9,13 @@ exports.TSSatisfiesExpression = exports.TSAsExpression = TSTypeExpression;
|
|
|
9
9
|
exports.TSBigIntKeyword = TSBigIntKeyword;
|
|
10
10
|
exports.TSBooleanKeyword = TSBooleanKeyword;
|
|
11
11
|
exports.TSCallSignatureDeclaration = TSCallSignatureDeclaration;
|
|
12
|
-
exports.TSInterfaceHeritage = exports.
|
|
12
|
+
exports.TSInterfaceHeritage = exports.TSClassImplements = TSClassImplements;
|
|
13
13
|
exports.TSConditionalType = TSConditionalType;
|
|
14
14
|
exports.TSConstructSignatureDeclaration = TSConstructSignatureDeclaration;
|
|
15
15
|
exports.TSConstructorType = TSConstructorType;
|
|
16
16
|
exports.TSDeclareFunction = TSDeclareFunction;
|
|
17
17
|
exports.TSDeclareMethod = TSDeclareMethod;
|
|
18
|
+
exports.TSEnumBody = TSEnumBody;
|
|
18
19
|
exports.TSEnumDeclaration = TSEnumDeclaration;
|
|
19
20
|
exports.TSEnumMember = TSEnumMember;
|
|
20
21
|
exports.TSExportAssignment = TSExportAssignment;
|
|
@@ -50,6 +51,7 @@ exports.TSQualifiedName = TSQualifiedName;
|
|
|
50
51
|
exports.TSRestType = TSRestType;
|
|
51
52
|
exports.TSStringKeyword = TSStringKeyword;
|
|
52
53
|
exports.TSSymbolKeyword = TSSymbolKeyword;
|
|
54
|
+
exports.TSTemplateLiteralType = TSTemplateLiteralType;
|
|
53
55
|
exports.TSThisType = TSThisType;
|
|
54
56
|
exports.TSTupleType = TSTupleType;
|
|
55
57
|
exports.TSTypeAliasDeclaration = TSTypeAliasDeclaration;
|
|
@@ -87,6 +89,10 @@ function TSTypeParameterInstantiation(node, parent) {
|
|
|
87
89
|
this.tokenChar(62);
|
|
88
90
|
}
|
|
89
91
|
function TSTypeParameter(node) {
|
|
92
|
+
if (node.const) {
|
|
93
|
+
this.word("const");
|
|
94
|
+
this.space();
|
|
95
|
+
}
|
|
90
96
|
if (node.in) {
|
|
91
97
|
this.word("in");
|
|
92
98
|
this.space();
|
|
@@ -279,8 +285,9 @@ function tsPrintFunctionOrConstructorType(node) {
|
|
|
279
285
|
this.print(returnType);
|
|
280
286
|
}
|
|
281
287
|
function TSTypeReference(node) {
|
|
282
|
-
|
|
283
|
-
this.print(node.
|
|
288
|
+
const typeArguments = node.typeParameters;
|
|
289
|
+
this.print(node.typeName, !!typeArguments);
|
|
290
|
+
this.print(typeArguments);
|
|
284
291
|
}
|
|
285
292
|
function TSTypePredicate(node) {
|
|
286
293
|
if (node.asserts) {
|
|
@@ -299,8 +306,9 @@ function TSTypeQuery(node) {
|
|
|
299
306
|
this.word("typeof");
|
|
300
307
|
this.space();
|
|
301
308
|
this.print(node.exprName);
|
|
302
|
-
|
|
303
|
-
|
|
309
|
+
const typeArguments = node.typeParameters;
|
|
310
|
+
if (typeArguments) {
|
|
311
|
+
this.print(typeArguments);
|
|
304
312
|
}
|
|
305
313
|
}
|
|
306
314
|
function TSTypeLiteral(node) {
|
|
@@ -435,12 +443,15 @@ function tokenIfPlusMinus(self, tok) {
|
|
|
435
443
|
self.token(tok);
|
|
436
444
|
}
|
|
437
445
|
}
|
|
446
|
+
function TSTemplateLiteralType(node) {
|
|
447
|
+
this._printTemplate(node, node.types);
|
|
448
|
+
}
|
|
438
449
|
function TSLiteralType(node) {
|
|
439
450
|
this.print(node.literal);
|
|
440
451
|
}
|
|
441
452
|
function TSClassImplements(node) {
|
|
442
453
|
this.print(node.expression);
|
|
443
|
-
this.print(node.
|
|
454
|
+
this.print(node.typeArguments);
|
|
444
455
|
}
|
|
445
456
|
function TSInterfaceDeclaration(node) {
|
|
446
457
|
const {
|
|
@@ -516,14 +527,15 @@ function TSTypeAssertion(node) {
|
|
|
516
527
|
}
|
|
517
528
|
function TSInstantiationExpression(node) {
|
|
518
529
|
this.print(node.expression);
|
|
519
|
-
|
|
530
|
+
{
|
|
531
|
+
this.print(node.typeParameters);
|
|
532
|
+
}
|
|
520
533
|
}
|
|
521
534
|
function TSEnumDeclaration(node) {
|
|
522
535
|
const {
|
|
523
536
|
declare,
|
|
524
537
|
const: isConst,
|
|
525
|
-
id
|
|
526
|
-
members
|
|
538
|
+
id
|
|
527
539
|
} = node;
|
|
528
540
|
if (declare) {
|
|
529
541
|
this.word("declare");
|
|
@@ -537,9 +549,14 @@ function TSEnumDeclaration(node) {
|
|
|
537
549
|
this.space();
|
|
538
550
|
this.print(id);
|
|
539
551
|
this.space();
|
|
552
|
+
{
|
|
553
|
+
TSEnumBody.call(this, node);
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
function TSEnumBody(node) {
|
|
540
557
|
printBraced(this, node, () => {
|
|
541
558
|
var _this$shouldPrintTrai;
|
|
542
|
-
return this.printList(members, (_this$shouldPrintTrai = this.shouldPrintTrailingComma("}")) != null ? _this$shouldPrintTrai : true, true, true);
|
|
559
|
+
return this.printList(node.members, (_this$shouldPrintTrai = this.shouldPrintTrailingComma("}")) != null ? _this$shouldPrintTrai : true, true, true);
|
|
543
560
|
});
|
|
544
561
|
}
|
|
545
562
|
function TSEnumMember(node) {
|
|
@@ -592,27 +609,31 @@ function TSImportType(node) {
|
|
|
592
609
|
const {
|
|
593
610
|
argument,
|
|
594
611
|
qualifier,
|
|
595
|
-
|
|
612
|
+
options
|
|
596
613
|
} = node;
|
|
597
614
|
this.word("import");
|
|
598
615
|
this.tokenChar(40);
|
|
599
616
|
this.print(argument);
|
|
617
|
+
if (options) {
|
|
618
|
+
this.tokenChar(44);
|
|
619
|
+
this.print(options);
|
|
620
|
+
}
|
|
600
621
|
this.tokenChar(41);
|
|
601
622
|
if (qualifier) {
|
|
602
623
|
this.tokenChar(46);
|
|
603
624
|
this.print(qualifier);
|
|
604
625
|
}
|
|
605
|
-
|
|
606
|
-
|
|
626
|
+
const typeArguments = node.typeParameters;
|
|
627
|
+
if (typeArguments) {
|
|
628
|
+
this.print(typeArguments);
|
|
607
629
|
}
|
|
608
630
|
}
|
|
609
631
|
function TSImportEqualsDeclaration(node) {
|
|
610
632
|
const {
|
|
611
|
-
isExport,
|
|
612
633
|
id,
|
|
613
634
|
moduleReference
|
|
614
635
|
} = node;
|
|
615
|
-
if (isExport) {
|
|
636
|
+
if (node.isExport) {
|
|
616
637
|
this.word("export");
|
|
617
638
|
this.space();
|
|
618
639
|
}
|
|
@@ -664,13 +685,14 @@ function tsPrintSignatureDeclarationBase(node) {
|
|
|
664
685
|
this.print(returnType);
|
|
665
686
|
}
|
|
666
687
|
function tsPrintClassMemberModifiers(node) {
|
|
667
|
-
const
|
|
668
|
-
|
|
688
|
+
const isPrivateField = node.type === "ClassPrivateProperty";
|
|
689
|
+
const isPublicField = node.type === "ClassAccessorProperty" || node.type === "ClassProperty";
|
|
690
|
+
printModifiersList(this, node, [isPublicField && node.declare && "declare", !isPrivateField && node.accessibility]);
|
|
669
691
|
if (node.static) {
|
|
670
692
|
this.word("static");
|
|
671
693
|
this.space();
|
|
672
694
|
}
|
|
673
|
-
printModifiersList(this, node, [node.
|
|
695
|
+
printModifiersList(this, node, [!isPrivateField && node.abstract && "abstract", !isPrivateField && node.override && "override", (isPublicField || isPrivateField) && node.readonly && "readonly"]);
|
|
674
696
|
}
|
|
675
697
|
function printBraced(printer, node, cb) {
|
|
676
698
|
printer.token("{");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["TSTypeAnnotation","node","parent","token","type","typeAnnotation","space","optional","print","TSTypeParameterInstantiation","printTrailingSeparator","params","length","tokenMap","start","end","find","t","matchesOriginal","shouldPrintTrailingComma","printList","TSTypeParameter","in","word","out","name","constraint","default","TSParameterProperty","accessibility","readonly","_param","parameter","TSDeclareFunction","declare","_functionHead","semicolon","TSDeclareMethod","_classMethodHead","TSQualifiedName","left","right","TSCallSignatureDeclaration","tsPrintSignatureDeclarationBase","maybePrintTrailingCommaOrSemicolon","printer","endMatches","TSConstructSignatureDeclaration","TSPropertySignature","tsPrintPropertyOrMethodName","computed","key","TSMethodSignature","kind","TSIndexSignature","static","isStatic","_parameters","parameters","TSAnyKeyword","TSBigIntKeyword","TSUnknownKeyword","TSNumberKeyword","TSObjectKeyword","TSBooleanKeyword","TSStringKeyword","TSSymbolKeyword","TSVoidKeyword","TSUndefinedKeyword","TSNullKeyword","TSNeverKeyword","TSIntrinsicKeyword","TSThisType","TSFunctionType","tsPrintFunctionOrConstructorType","TSConstructorType","abstract","typeParameters","returnType","TSTypeReference","typeName","TSTypePredicate","asserts","parameterName","TSTypeQuery","exprName","TSTypeLiteral","printBraced","printJoin","members","TSArrayType","elementType","TSTupleType","elementTypes","TSOptionalType","TSRestType","TSNamedTupleMember","label","TSUnionType","tsPrintUnionOrIntersectionType","TSIntersectionType","sep","_printer$tokenMap","hasLeadingToken","startMatches","types","undefined","i","TSConditionalType","checkType","extendsType","trueType","falseType","TSInferType","typeParameter","TSParenthesizedType","TSTypeOperator","operator","TSIndexedAccessType","objectType","indexType","TSMappedType","nameType","exit","enterDelimited","tokenIfPlusMinus","self","tok","TSLiteralType","literal","TSClassImplements","expression","TSInterfaceDeclaration","id","extends","extendz","body","TSInterfaceBody","TSTypeAliasDeclaration","TSTypeExpression","TSTypeAssertion","TSInstantiationExpression","TSEnumDeclaration","const","isConst","_this$shouldPrintTrai","TSEnumMember","initializer","TSModuleDeclaration","global","TSModuleBlock","printSequence","TSImportType","argument","qualifier","TSImportEqualsDeclaration","isExport","moduleReference","TSExternalModuleReference","TSNonNullExpression","TSExportAssignment","TSNamespaceExportDeclaration","tsPrintClassMemberModifiers","isField","printModifiersList","override","cb","rightBrace","modifiers","_printer$tokenMap2","modifiersSet","Set","modifier","add","has","value","delete","size"],"sources":["../../src/generators/typescript.ts"],"sourcesContent":["import type Printer from \"../printer.ts\";\nimport type * as t from \"@babel/types\";\n\nexport function TSTypeAnnotation(\n this: Printer,\n node: t.TSTypeAnnotation,\n parent: t.Node,\n) {\n // TODO(@nicolo-ribaudo): investigate not including => in the range\n // of the return type of an arrow function type\n this.token(\n (parent.type === \"TSFunctionType\" || parent.type === \"TSConstructorType\") &&\n (process.env.BABEL_8_BREAKING\n ? // @ts-ignore(Babel 7 vs Babel 8) Babel 8 AST shape\n parent.returnType\n : // @ts-ignore(Babel 7 vs Babel 8) Babel 7 AST shape\n parent.typeAnnotation) === node\n ? \"=>\"\n : \":\",\n );\n this.space();\n // @ts-expect-error todo(flow->ts) can this be removed? `.optional` looks to be not existing property\n if (node.optional) this.token(\"?\");\n this.print(node.typeAnnotation);\n}\n\nexport function TSTypeParameterInstantiation(\n this: Printer,\n node: t.TSTypeParameterInstantiation,\n parent: t.Node,\n): void {\n this.token(\"<\");\n\n let printTrailingSeparator =\n parent.type === \"ArrowFunctionExpression\" && node.params.length === 1;\n if (this.tokenMap && node.start != null && node.end != null) {\n // Only force the trailing comma for pre-existing nodes if they\n // already had a comma (either because they were multi-param, or\n // because they had a trailing comma)\n printTrailingSeparator &&= !!this.tokenMap.find(node, t =>\n this.tokenMap.matchesOriginal(t, \",\"),\n );\n // Preseve the trailing comma if it was there before\n printTrailingSeparator ||= this.shouldPrintTrailingComma(\">\");\n }\n\n this.printList(node.params, printTrailingSeparator);\n this.token(\">\");\n}\n\nexport { TSTypeParameterInstantiation as TSTypeParameterDeclaration };\n\nexport function TSTypeParameter(this: Printer, node: t.TSTypeParameter) {\n if (node.in) {\n this.word(\"in\");\n this.space();\n }\n\n if (node.out) {\n this.word(\"out\");\n this.space();\n }\n\n this.word(\n !process.env.BABEL_8_BREAKING\n ? (node.name as unknown as string)\n : (node.name as unknown as t.Identifier).name,\n );\n\n if (node.constraint) {\n this.space();\n this.word(\"extends\");\n this.space();\n this.print(node.constraint);\n }\n\n if (node.default) {\n this.space();\n this.token(\"=\");\n this.space();\n this.print(node.default);\n }\n}\n\nexport function TSParameterProperty(\n this: Printer,\n node: t.TSParameterProperty,\n) {\n if (node.accessibility) {\n this.word(node.accessibility);\n this.space();\n }\n\n if (node.readonly) {\n this.word(\"readonly\");\n this.space();\n }\n\n this._param(node.parameter);\n}\n\nexport function TSDeclareFunction(\n this: Printer,\n node: t.TSDeclareFunction,\n parent: t.ParentMaps[\"TSDeclareFunction\"],\n) {\n if (node.declare) {\n this.word(\"declare\");\n this.space();\n }\n this._functionHead(node, parent);\n this.semicolon();\n}\n\nexport function TSDeclareMethod(this: Printer, node: t.TSDeclareMethod) {\n this._classMethodHead(node);\n this.semicolon();\n}\n\nexport function TSQualifiedName(this: Printer, node: t.TSQualifiedName) {\n this.print(node.left);\n this.token(\".\");\n this.print(node.right);\n}\n\nexport function TSCallSignatureDeclaration(\n this: Printer,\n node: t.TSCallSignatureDeclaration,\n) {\n this.tsPrintSignatureDeclarationBase(node);\n maybePrintTrailingCommaOrSemicolon(this, node);\n}\n\nfunction maybePrintTrailingCommaOrSemicolon(printer: Printer, node: t.Node) {\n if (!printer.tokenMap || !node.start || !node.end) {\n printer.semicolon();\n return;\n }\n\n if (printer.tokenMap.endMatches(node, \",\")) {\n printer.token(\",\");\n } else if (printer.tokenMap.endMatches(node, \";\")) {\n printer.semicolon();\n }\n}\n\nexport function TSConstructSignatureDeclaration(\n this: Printer,\n node: t.TSConstructSignatureDeclaration,\n) {\n this.word(\"new\");\n this.space();\n this.tsPrintSignatureDeclarationBase(node);\n maybePrintTrailingCommaOrSemicolon(this, node);\n}\n\nexport function TSPropertySignature(\n this: Printer,\n node: t.TSPropertySignature,\n) {\n const { readonly } = node;\n if (readonly) {\n this.word(\"readonly\");\n this.space();\n }\n this.tsPrintPropertyOrMethodName(node);\n this.print(node.typeAnnotation);\n maybePrintTrailingCommaOrSemicolon(this, node);\n}\n\nexport function tsPrintPropertyOrMethodName(\n this: Printer,\n node: t.TSPropertySignature | t.TSMethodSignature,\n) {\n if (node.computed) {\n this.token(\"[\");\n }\n this.print(node.key);\n if (node.computed) {\n this.token(\"]\");\n }\n if (node.optional) {\n this.token(\"?\");\n }\n}\n\nexport function TSMethodSignature(this: Printer, node: t.TSMethodSignature) {\n const { kind } = node;\n if (kind === \"set\" || kind === \"get\") {\n this.word(kind);\n this.space();\n }\n this.tsPrintPropertyOrMethodName(node);\n this.tsPrintSignatureDeclarationBase(node);\n maybePrintTrailingCommaOrSemicolon(this, node);\n}\n\nexport function TSIndexSignature(this: Printer, node: t.TSIndexSignature) {\n const { readonly, static: isStatic } = node;\n if (isStatic) {\n this.word(\"static\");\n this.space();\n }\n if (readonly) {\n this.word(\"readonly\");\n this.space();\n }\n this.token(\"[\");\n this._parameters(node.parameters, \"]\");\n this.print(node.typeAnnotation);\n maybePrintTrailingCommaOrSemicolon(this, node);\n}\n\nexport function TSAnyKeyword(this: Printer) {\n this.word(\"any\");\n}\nexport function TSBigIntKeyword(this: Printer) {\n this.word(\"bigint\");\n}\nexport function TSUnknownKeyword(this: Printer) {\n this.word(\"unknown\");\n}\nexport function TSNumberKeyword(this: Printer) {\n this.word(\"number\");\n}\nexport function TSObjectKeyword(this: Printer) {\n this.word(\"object\");\n}\nexport function TSBooleanKeyword(this: Printer) {\n this.word(\"boolean\");\n}\nexport function TSStringKeyword(this: Printer) {\n this.word(\"string\");\n}\nexport function TSSymbolKeyword(this: Printer) {\n this.word(\"symbol\");\n}\nexport function TSVoidKeyword(this: Printer) {\n this.word(\"void\");\n}\nexport function TSUndefinedKeyword(this: Printer) {\n this.word(\"undefined\");\n}\nexport function TSNullKeyword(this: Printer) {\n this.word(\"null\");\n}\nexport function TSNeverKeyword(this: Printer) {\n this.word(\"never\");\n}\nexport function TSIntrinsicKeyword(this: Printer) {\n this.word(\"intrinsic\");\n}\n\nexport function TSThisType(this: Printer) {\n this.word(\"this\");\n}\n\nexport function TSFunctionType(this: Printer, node: t.TSFunctionType) {\n this.tsPrintFunctionOrConstructorType(node);\n}\n\nexport function TSConstructorType(this: Printer, node: t.TSConstructorType) {\n if (node.abstract) {\n this.word(\"abstract\");\n this.space();\n }\n this.word(\"new\");\n this.space();\n this.tsPrintFunctionOrConstructorType(node);\n}\n\nexport function tsPrintFunctionOrConstructorType(\n this: Printer,\n node: t.TSFunctionType | t.TSConstructorType,\n) {\n const { typeParameters } = node;\n const parameters = process.env.BABEL_8_BREAKING\n ? // @ts-ignore(Babel 7 vs Babel 8) Babel 8 AST shape\n node.params\n : // @ts-ignore(Babel 7 vs Babel 8) Babel 7 AST shape\n node.parameters;\n this.print(typeParameters);\n this.token(\"(\");\n this._parameters(parameters, \")\");\n this.space();\n const returnType = process.env.BABEL_8_BREAKING\n ? // @ts-ignore(Babel 7 vs Babel 8) Babel 8 AST shape\n node.returnType\n : // @ts-ignore(Babel 7 vs Babel 8) Babel 7 AST shape\n node.typeAnnotation;\n this.print(returnType);\n}\n\nexport function TSTypeReference(this: Printer, node: t.TSTypeReference) {\n this.print(node.typeName, !!node.typeParameters);\n this.print(node.typeParameters);\n}\n\nexport function TSTypePredicate(this: Printer, node: t.TSTypePredicate) {\n if (node.asserts) {\n this.word(\"asserts\");\n this.space();\n }\n this.print(node.parameterName);\n if (node.typeAnnotation) {\n this.space();\n this.word(\"is\");\n this.space();\n this.print(node.typeAnnotation.typeAnnotation);\n }\n}\n\nexport function TSTypeQuery(this: Printer, node: t.TSTypeQuery) {\n this.word(\"typeof\");\n this.space();\n this.print(node.exprName);\n\n if (node.typeParameters) {\n this.print(node.typeParameters);\n }\n}\n\nexport function TSTypeLiteral(this: Printer, node: t.TSTypeLiteral) {\n printBraced(this, node, () => this.printJoin(node.members, true, true));\n}\n\nexport function TSArrayType(this: Printer, node: t.TSArrayType) {\n this.print(node.elementType, true);\n\n this.token(\"[\");\n this.token(\"]\");\n}\n\nexport function TSTupleType(this: Printer, node: t.TSTupleType) {\n this.token(\"[\");\n this.printList(node.elementTypes, this.shouldPrintTrailingComma(\"]\"));\n this.token(\"]\");\n}\n\nexport function TSOptionalType(this: Printer, node: t.TSOptionalType) {\n this.print(node.typeAnnotation);\n this.token(\"?\");\n}\n\nexport function TSRestType(this: Printer, node: t.TSRestType) {\n this.token(\"...\");\n this.print(node.typeAnnotation);\n}\n\nexport function TSNamedTupleMember(this: Printer, node: t.TSNamedTupleMember) {\n this.print(node.label);\n if (node.optional) this.token(\"?\");\n this.token(\":\");\n this.space();\n this.print(node.elementType);\n}\n\nexport function TSUnionType(this: Printer, node: t.TSUnionType) {\n tsPrintUnionOrIntersectionType(this, node, \"|\");\n}\n\nexport function TSIntersectionType(this: Printer, node: t.TSIntersectionType) {\n tsPrintUnionOrIntersectionType(this, node, \"&\");\n}\n\nfunction tsPrintUnionOrIntersectionType(\n printer: Printer,\n node: t.TSUnionType | t.TSIntersectionType,\n sep: \"|\" | \"&\",\n) {\n let hasLeadingToken = 0;\n if (printer.tokenMap?.startMatches(node, sep)) {\n hasLeadingToken = 1;\n printer.token(sep);\n }\n\n printer.printJoin(node.types, undefined, undefined, function (i) {\n this.space();\n this.token(sep, null, i + hasLeadingToken);\n this.space();\n });\n}\n\nexport function TSConditionalType(this: Printer, node: t.TSConditionalType) {\n this.print(node.checkType);\n this.space();\n this.word(\"extends\");\n this.space();\n this.print(node.extendsType);\n this.space();\n this.token(\"?\");\n this.space();\n this.print(node.trueType);\n this.space();\n this.token(\":\");\n this.space();\n this.print(node.falseType);\n}\n\nexport function TSInferType(this: Printer, node: t.TSInferType) {\n this.word(\"infer\");\n this.print(node.typeParameter);\n}\n\nexport function TSParenthesizedType(\n this: Printer,\n node: t.TSParenthesizedType,\n) {\n this.token(\"(\");\n this.print(node.typeAnnotation);\n this.token(\")\");\n}\n\nexport function TSTypeOperator(this: Printer, node: t.TSTypeOperator) {\n this.word(node.operator);\n this.space();\n this.print(node.typeAnnotation);\n}\n\nexport function TSIndexedAccessType(\n this: Printer,\n node: t.TSIndexedAccessType,\n) {\n this.print(node.objectType, true);\n this.token(\"[\");\n this.print(node.indexType);\n this.token(\"]\");\n}\n\nexport function TSMappedType(this: Printer, node: t.TSMappedType) {\n const { nameType, optional, readonly, typeAnnotation } = node;\n this.token(\"{\");\n const exit = this.enterDelimited();\n this.space();\n if (readonly) {\n tokenIfPlusMinus(this, readonly);\n this.word(\"readonly\");\n this.space();\n }\n\n this.token(\"[\");\n if (process.env.BABEL_8_BREAKING) {\n // @ts-ignore(Babel 7 vs Babel 8) Babel 8 AST shape\n this.word(node.key.name);\n } else {\n // @ts-ignore(Babel 7 vs Babel 8) Babel 7 AST shape\n this.word(node.typeParameter.name);\n }\n\n this.space();\n this.word(\"in\");\n this.space();\n if (process.env.BABEL_8_BREAKING) {\n // @ts-ignore(Babel 7 vs Babel 8) Babel 8 AST shape\n this.print(node.constraint);\n } else {\n // @ts-ignore(Babel 7 vs Babel 8) Babel 7 AST shape\n this.print(node.typeParameter.constraint);\n }\n\n if (nameType) {\n this.space();\n this.word(\"as\");\n this.space();\n this.print(nameType);\n }\n\n this.token(\"]\");\n\n if (optional) {\n tokenIfPlusMinus(this, optional);\n this.token(\"?\");\n }\n\n if (typeAnnotation) {\n this.token(\":\");\n this.space();\n this.print(typeAnnotation);\n }\n this.space();\n exit();\n this.token(\"}\");\n}\n\nfunction tokenIfPlusMinus(self: Printer, tok: true | \"+\" | \"-\") {\n if (tok !== true) {\n self.token(tok);\n }\n}\n\nexport function TSLiteralType(this: Printer, node: t.TSLiteralType) {\n this.print(node.literal);\n}\n\nexport function TSClassImplements(\n this: Printer,\n // TODO(Babel 8): Just use t.TSClassImplements\n node: Extract<\n t.Node,\n { type: \"TSClassImplements\" | \"TSExpressionWithTypeArguments\" }\n >,\n) {\n this.print(node.expression);\n this.print(node.typeParameters);\n}\n\nexport {\n // TODO: Remove this in Babel 8\n TSClassImplements as TSExpressionWithTypeArguments,\n TSClassImplements as TSInterfaceHeritage,\n};\n\nexport function TSInterfaceDeclaration(\n this: Printer,\n node: t.TSInterfaceDeclaration,\n) {\n const { declare, id, typeParameters, extends: extendz, body } = node;\n if (declare) {\n this.word(\"declare\");\n this.space();\n }\n this.word(\"interface\");\n this.space();\n this.print(id);\n this.print(typeParameters);\n if (extendz?.length) {\n this.space();\n this.word(\"extends\");\n this.space();\n this.printList(extendz);\n }\n this.space();\n this.print(body);\n}\n\nexport function TSInterfaceBody(this: Printer, node: t.TSInterfaceBody) {\n printBraced(this, node, () => this.printJoin(node.body, true, true));\n}\n\nexport function TSTypeAliasDeclaration(\n this: Printer,\n node: t.TSTypeAliasDeclaration,\n) {\n const { declare, id, typeParameters, typeAnnotation } = node;\n if (declare) {\n this.word(\"declare\");\n this.space();\n }\n this.word(\"type\");\n this.space();\n this.print(id);\n this.print(typeParameters);\n this.space();\n this.token(\"=\");\n this.space();\n this.print(typeAnnotation);\n this.semicolon();\n}\n\nfunction TSTypeExpression(\n this: Printer,\n node: t.TSAsExpression | t.TSSatisfiesExpression,\n) {\n const { type, expression, typeAnnotation } = node;\n this.print(expression, true);\n this.space();\n this.word(type === \"TSAsExpression\" ? \"as\" : \"satisfies\");\n this.space();\n this.print(typeAnnotation);\n}\n\nexport {\n TSTypeExpression as TSAsExpression,\n TSTypeExpression as TSSatisfiesExpression,\n};\n\nexport function TSTypeAssertion(this: Printer, node: t.TSTypeAssertion) {\n const { typeAnnotation, expression } = node;\n this.token(\"<\");\n this.print(typeAnnotation);\n this.token(\">\");\n this.space();\n this.print(expression);\n}\n\nexport function TSInstantiationExpression(\n this: Printer,\n node: t.TSInstantiationExpression,\n) {\n this.print(node.expression);\n this.print(node.typeParameters);\n}\n\nexport function TSEnumDeclaration(this: Printer, node: t.TSEnumDeclaration) {\n const { declare, const: isConst, id, members } = node;\n if (declare) {\n this.word(\"declare\");\n this.space();\n }\n if (isConst) {\n this.word(\"const\");\n this.space();\n }\n this.word(\"enum\");\n this.space();\n this.print(id);\n this.space();\n\n printBraced(this, node, () =>\n this.printList(\n members,\n // TODO: Default to false for consistency with everything else\n this.shouldPrintTrailingComma(\"}\") ?? true,\n true,\n true,\n ),\n );\n}\n\nexport function TSEnumMember(this: Printer, node: t.TSEnumMember) {\n const { id, initializer } = node;\n this.print(id);\n if (initializer) {\n this.space();\n this.token(\"=\");\n this.space();\n this.print(initializer);\n }\n}\n\nexport function TSModuleDeclaration(\n this: Printer,\n node: t.TSModuleDeclaration,\n) {\n const { declare, id, kind } = node;\n\n if (declare) {\n this.word(\"declare\");\n this.space();\n }\n\n if (process.env.BABEL_8_BREAKING) {\n if (kind !== \"global\") {\n this.word(kind);\n this.space();\n }\n\n this.print(node.id);\n if (!node.body) {\n this.semicolon();\n return;\n }\n this.space();\n this.print(node.body);\n } else {\n // @ts-ignore(Babel 7 vs Babel 8) Babel 7 AST shape\n if (!node.global) {\n this.word(kind ?? (id.type === \"Identifier\" ? \"namespace\" : \"module\"));\n this.space();\n }\n\n this.print(id);\n\n if (!node.body) {\n this.semicolon();\n return;\n }\n\n let body = node.body;\n // @ts-ignore(Babel 7 vs Babel 8) Babel 7 AST shape\n while (body.type === \"TSModuleDeclaration\") {\n this.token(\".\");\n // @ts-ignore(Babel 7 vs Babel 8) Babel 7 AST shape\n this.print(body.id);\n // @ts-ignore(Babel 7 vs Babel 8) Babel 7 AST shape\n body = body.body;\n }\n\n this.space();\n this.print(body);\n }\n}\n\nexport function TSModuleBlock(this: Printer, node: t.TSModuleBlock) {\n printBraced(this, node, () => this.printSequence(node.body, true));\n}\n\nexport function TSImportType(this: Printer, node: t.TSImportType) {\n const { argument, qualifier, typeParameters } = node;\n this.word(\"import\");\n this.token(\"(\");\n this.print(argument);\n this.token(\")\");\n if (qualifier) {\n this.token(\".\");\n this.print(qualifier);\n }\n if (typeParameters) {\n this.print(typeParameters);\n }\n}\n\nexport function TSImportEqualsDeclaration(\n this: Printer,\n node: t.TSImportEqualsDeclaration,\n) {\n const { isExport, id, moduleReference } = node;\n if (isExport) {\n this.word(\"export\");\n this.space();\n }\n this.word(\"import\");\n this.space();\n this.print(id);\n this.space();\n this.token(\"=\");\n this.space();\n this.print(moduleReference);\n this.semicolon();\n}\n\nexport function TSExternalModuleReference(\n this: Printer,\n node: t.TSExternalModuleReference,\n) {\n this.token(\"require(\");\n this.print(node.expression);\n this.token(\")\");\n}\n\nexport function TSNonNullExpression(\n this: Printer,\n node: t.TSNonNullExpression,\n) {\n this.print(node.expression);\n this.token(\"!\");\n}\n\nexport function TSExportAssignment(this: Printer, node: t.TSExportAssignment) {\n this.word(\"export\");\n this.space();\n this.token(\"=\");\n this.space();\n this.print(node.expression);\n this.semicolon();\n}\n\nexport function TSNamespaceExportDeclaration(\n this: Printer,\n node: t.TSNamespaceExportDeclaration,\n) {\n this.word(\"export\");\n this.space();\n this.word(\"as\");\n this.space();\n this.word(\"namespace\");\n this.space();\n this.print(node.id);\n this.semicolon();\n}\n\nexport function tsPrintSignatureDeclarationBase(this: Printer, node: any) {\n const { typeParameters } = node;\n const parameters = process.env.BABEL_8_BREAKING\n ? node.params\n : node.parameters;\n this.print(typeParameters);\n this.token(\"(\");\n this._parameters(parameters, \")\");\n const returnType = process.env.BABEL_8_BREAKING\n ? node.returnType\n : node.typeAnnotation;\n this.print(returnType);\n}\n\nexport function tsPrintClassMemberModifiers(\n this: Printer,\n node:\n | t.ClassProperty\n | t.ClassAccessorProperty\n | t.ClassMethod\n | t.ClassPrivateMethod\n | t.TSDeclareMethod,\n) {\n const isField =\n node.type === \"ClassAccessorProperty\" || node.type === \"ClassProperty\";\n printModifiersList(this, node, [\n isField && node.declare && \"declare\",\n node.accessibility,\n ]);\n if (node.static) {\n this.word(\"static\");\n this.space();\n }\n printModifiersList(this, node, [\n node.override && \"override\",\n node.abstract && \"abstract\",\n isField && node.readonly && \"readonly\",\n ]);\n}\n\nfunction printBraced(printer: Printer, node: t.Node, cb: () => void) {\n printer.token(\"{\");\n const exit = printer.enterDelimited();\n cb();\n exit();\n printer.rightBrace(node);\n}\n\nfunction printModifiersList(\n printer: Printer,\n node: t.Node,\n modifiers: (string | false | null)[],\n) {\n const modifiersSet = new Set<string>();\n for (const modifier of modifiers) {\n if (modifier) modifiersSet.add(modifier);\n }\n\n printer.tokenMap?.find(node, tok => {\n if (modifiersSet.has(tok.value)) {\n printer.token(tok.value);\n printer.space();\n modifiersSet.delete(tok.value);\n return modifiersSet.size === 0;\n }\n });\n\n for (const modifier of modifiersSet) {\n printer.word(modifier);\n printer.space();\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGO,SAASA,gBAAgBA,CAE9BC,IAAwB,EACxBC,MAAc,EACd;EAGA,IAAI,CAACC,KAAK,CACR,CAACD,MAAM,CAACE,IAAI,KAAK,gBAAgB,IAAIF,MAAM,CAACE,IAAI,KAAK,mBAAmB,KAKlEF,MAAM,CAACG,cAAc,KAAMJ,IAAI,GACjC,IAAI,GACJ,GACN,CAAC;EACD,IAAI,CAACK,KAAK,CAAC,CAAC;EAEZ,IAAIL,IAAI,CAACM,QAAQ,EAAE,IAAI,CAACJ,SAAK,GAAI,CAAC;EAClC,IAAI,CAACK,KAAK,CAACP,IAAI,CAACI,cAAc,CAAC;AACjC;AAEO,SAASI,4BAA4BA,CAE1CR,IAAoC,EACpCC,MAAc,EACR;EACN,IAAI,CAACC,SAAK,GAAI,CAAC;EAEf,IAAIO,sBAAsB,GACxBR,MAAM,CAACE,IAAI,KAAK,yBAAyB,IAAIH,IAAI,CAACU,MAAM,CAACC,MAAM,KAAK,CAAC;EACvE,IAAI,IAAI,CAACC,QAAQ,IAAIZ,IAAI,CAACa,KAAK,IAAI,IAAI,IAAIb,IAAI,CAACc,GAAG,IAAI,IAAI,EAAE;IAI3DL,sBAAsB,KAAtBA,sBAAsB,GAAK,C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,IAAIJ,SAAS,EAAE;IAChC,IAAII,QAAQ,EAAEF,YAAY,CAACG,GAAG,CAACD,QAAQ,CAAC;EAC1C;EAEA,CAAAH,kBAAA,GAAA5H,OAAO,CAAChC,QAAQ,aAAhB4J,kBAAA,CAAkBzJ,IAAI,CAACf,IAAI,EAAE8H,GAAG,IAAI;IAClC,IAAI2C,YAAY,CAACI,GAAG,CAAC/C,GAAG,CAACgD,KAAK,CAAC,EAAE;MAC/BlI,OAAO,CAAC1C,KAAK,CAAC4H,GAAG,CAACgD,KAAK,CAAC;MACxBlI,OAAO,CAACvC,KAAK,CAAC,CAAC;MACfoK,YAAY,CAACM,MAAM,CAACjD,GAAG,CAACgD,KAAK,CAAC;MAC9B,OAAOL,YAAY,CAACO,IAAI,KAAK,CAAC;IAChC;EACF,CAAC,CAAC;EAEF,KAAK,MAAML,QAAQ,IAAIF,YAAY,EAAE;IACnC7H,OAAO,CAACtB,IAAI,CAACqJ,QAAQ,CAAC;IACtB/H,OAAO,CAACvC,KAAK,CAAC,CAAC;EACjB;AACF","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["TSTypeAnnotation","node","parent","token","type","typeAnnotation","space","optional","print","TSTypeParameterInstantiation","printTrailingSeparator","params","length","tokenMap","start","end","find","t","matchesOriginal","shouldPrintTrailingComma","printList","TSTypeParameter","const","word","in","out","name","constraint","default","TSParameterProperty","accessibility","readonly","_param","parameter","TSDeclareFunction","declare","_functionHead","semicolon","TSDeclareMethod","_classMethodHead","TSQualifiedName","left","right","TSCallSignatureDeclaration","tsPrintSignatureDeclarationBase","maybePrintTrailingCommaOrSemicolon","printer","endMatches","TSConstructSignatureDeclaration","TSPropertySignature","tsPrintPropertyOrMethodName","computed","key","TSMethodSignature","kind","TSIndexSignature","static","isStatic","_parameters","parameters","TSAnyKeyword","TSBigIntKeyword","TSUnknownKeyword","TSNumberKeyword","TSObjectKeyword","TSBooleanKeyword","TSStringKeyword","TSSymbolKeyword","TSVoidKeyword","TSUndefinedKeyword","TSNullKeyword","TSNeverKeyword","TSIntrinsicKeyword","TSThisType","TSFunctionType","tsPrintFunctionOrConstructorType","TSConstructorType","abstract","typeParameters","returnType","TSTypeReference","typeArguments","typeName","TSTypePredicate","asserts","parameterName","TSTypeQuery","exprName","TSTypeLiteral","printBraced","printJoin","members","TSArrayType","elementType","TSTupleType","elementTypes","TSOptionalType","TSRestType","TSNamedTupleMember","label","TSUnionType","tsPrintUnionOrIntersectionType","TSIntersectionType","sep","_printer$tokenMap","hasLeadingToken","startMatches","types","undefined","i","TSConditionalType","checkType","extendsType","trueType","falseType","TSInferType","typeParameter","TSParenthesizedType","TSTypeOperator","operator","TSIndexedAccessType","objectType","indexType","TSMappedType","nameType","exit","enterDelimited","tokenIfPlusMinus","self","tok","TSTemplateLiteralType","_printTemplate","TSLiteralType","literal","TSClassImplements","expression","TSInterfaceDeclaration","id","extends","extendz","body","TSInterfaceBody","TSTypeAliasDeclaration","TSTypeExpression","TSTypeAssertion","TSInstantiationExpression","TSEnumDeclaration","isConst","TSEnumBody","call","_this$shouldPrintTrai","TSEnumMember","initializer","TSModuleDeclaration","global","TSModuleBlock","printSequence","TSImportType","argument","qualifier","options","TSImportEqualsDeclaration","moduleReference","isExport","TSExternalModuleReference","TSNonNullExpression","TSExportAssignment","TSNamespaceExportDeclaration","tsPrintClassMemberModifiers","isPrivateField","isPublicField","printModifiersList","override","cb","rightBrace","modifiers","_printer$tokenMap2","modifiersSet","Set","modifier","add","has","value","delete","size"],"sources":["../../src/generators/typescript.ts"],"sourcesContent":["import type Printer from \"../printer.ts\";\nimport type * as t from \"@babel/types\";\n\nexport function TSTypeAnnotation(\n this: Printer,\n node: t.TSTypeAnnotation,\n parent: t.Node,\n) {\n // TODO(@nicolo-ribaudo): investigate not including => in the range\n // of the return type of an arrow function type\n this.token(\n (parent.type === \"TSFunctionType\" || parent.type === \"TSConstructorType\") &&\n (process.env.BABEL_8_BREAKING\n ? // @ts-ignore(Babel 7 vs Babel 8) Babel 8 AST shape\n parent.returnType\n : // @ts-ignore(Babel 7 vs Babel 8) Babel 7 AST shape\n parent.typeAnnotation) === node\n ? \"=>\"\n : \":\",\n );\n this.space();\n // @ts-expect-error todo(flow->ts) can this be removed? `.optional` looks to be not existing property\n if (node.optional) this.token(\"?\");\n this.print(node.typeAnnotation);\n}\n\nexport function TSTypeParameterInstantiation(\n this: Printer,\n node: t.TSTypeParameterInstantiation,\n parent: t.Node,\n): void {\n this.token(\"<\");\n\n let printTrailingSeparator =\n parent.type === \"ArrowFunctionExpression\" && node.params.length === 1;\n if (this.tokenMap && node.start != null && node.end != null) {\n // Only force the trailing comma for pre-existing nodes if they\n // already had a comma (either because they were multi-param, or\n // because they had a trailing comma)\n printTrailingSeparator &&= !!this.tokenMap.find(node, t =>\n this.tokenMap.matchesOriginal(t, \",\"),\n );\n // Preserve the trailing comma if it was there before\n printTrailingSeparator ||= this.shouldPrintTrailingComma(\">\");\n }\n\n this.printList(node.params, printTrailingSeparator);\n this.token(\">\");\n}\n\nexport { TSTypeParameterInstantiation as TSTypeParameterDeclaration };\n\nexport function TSTypeParameter(this: Printer, node: t.TSTypeParameter) {\n if (node.const) {\n this.word(\"const\");\n this.space();\n }\n\n if (node.in) {\n this.word(\"in\");\n this.space();\n }\n\n if (node.out) {\n this.word(\"out\");\n this.space();\n }\n\n this.word(\n !process.env.BABEL_8_BREAKING\n ? (node.name as unknown as string)\n : (node.name as unknown as t.Identifier).name,\n );\n\n if (node.constraint) {\n this.space();\n this.word(\"extends\");\n this.space();\n this.print(node.constraint);\n }\n\n if (node.default) {\n this.space();\n this.token(\"=\");\n this.space();\n this.print(node.default);\n }\n}\n\nexport function TSParameterProperty(\n this: Printer,\n node: t.TSParameterProperty,\n) {\n if (node.accessibility) {\n this.word(node.accessibility);\n this.space();\n }\n\n if (node.readonly) {\n this.word(\"readonly\");\n this.space();\n }\n\n this._param(node.parameter);\n}\n\nexport function TSDeclareFunction(\n this: Printer,\n node: t.TSDeclareFunction,\n parent: t.ParentMaps[\"TSDeclareFunction\"],\n) {\n if (node.declare) {\n this.word(\"declare\");\n this.space();\n }\n this._functionHead(node, parent);\n this.semicolon();\n}\n\nexport function TSDeclareMethod(this: Printer, node: t.TSDeclareMethod) {\n this._classMethodHead(node);\n this.semicolon();\n}\n\nexport function TSQualifiedName(this: Printer, node: t.TSQualifiedName) {\n this.print(node.left);\n this.token(\".\");\n this.print(node.right);\n}\n\nexport function TSCallSignatureDeclaration(\n this: Printer,\n node: t.TSCallSignatureDeclaration,\n) {\n this.tsPrintSignatureDeclarationBase(node);\n maybePrintTrailingCommaOrSemicolon(this, node);\n}\n\nfunction maybePrintTrailingCommaOrSemicolon(printer: Printer, node: t.Node) {\n if (!printer.tokenMap || !node.start || !node.end) {\n printer.semicolon();\n return;\n }\n\n if (printer.tokenMap.endMatches(node, \",\")) {\n printer.token(\",\");\n } else if (printer.tokenMap.endMatches(node, \";\")) {\n printer.semicolon();\n }\n}\n\nexport function TSConstructSignatureDeclaration(\n this: Printer,\n node: t.TSConstructSignatureDeclaration,\n) {\n this.word(\"new\");\n this.space();\n this.tsPrintSignatureDeclarationBase(node);\n maybePrintTrailingCommaOrSemicolon(this, node);\n}\n\nexport function TSPropertySignature(\n this: Printer,\n node: t.TSPropertySignature,\n) {\n const { readonly } = node;\n if (readonly) {\n this.word(\"readonly\");\n this.space();\n }\n this.tsPrintPropertyOrMethodName(node);\n this.print(node.typeAnnotation);\n maybePrintTrailingCommaOrSemicolon(this, node);\n}\n\nexport function tsPrintPropertyOrMethodName(\n this: Printer,\n node: t.TSPropertySignature | t.TSMethodSignature,\n) {\n if (node.computed) {\n this.token(\"[\");\n }\n this.print(node.key);\n if (node.computed) {\n this.token(\"]\");\n }\n if (node.optional) {\n this.token(\"?\");\n }\n}\n\nexport function TSMethodSignature(this: Printer, node: t.TSMethodSignature) {\n const { kind } = node;\n if (kind === \"set\" || kind === \"get\") {\n this.word(kind);\n this.space();\n }\n this.tsPrintPropertyOrMethodName(node);\n this.tsPrintSignatureDeclarationBase(node);\n maybePrintTrailingCommaOrSemicolon(this, node);\n}\n\nexport function TSIndexSignature(this: Printer, node: t.TSIndexSignature) {\n const { readonly, static: isStatic } = node;\n if (isStatic) {\n this.word(\"static\");\n this.space();\n }\n if (readonly) {\n this.word(\"readonly\");\n this.space();\n }\n this.token(\"[\");\n this._parameters(node.parameters, \"]\");\n this.print(node.typeAnnotation);\n maybePrintTrailingCommaOrSemicolon(this, node);\n}\n\nexport function TSAnyKeyword(this: Printer) {\n this.word(\"any\");\n}\nexport function TSBigIntKeyword(this: Printer) {\n this.word(\"bigint\");\n}\nexport function TSUnknownKeyword(this: Printer) {\n this.word(\"unknown\");\n}\nexport function TSNumberKeyword(this: Printer) {\n this.word(\"number\");\n}\nexport function TSObjectKeyword(this: Printer) {\n this.word(\"object\");\n}\nexport function TSBooleanKeyword(this: Printer) {\n this.word(\"boolean\");\n}\nexport function TSStringKeyword(this: Printer) {\n this.word(\"string\");\n}\nexport function TSSymbolKeyword(this: Printer) {\n this.word(\"symbol\");\n}\nexport function TSVoidKeyword(this: Printer) {\n this.word(\"void\");\n}\nexport function TSUndefinedKeyword(this: Printer) {\n this.word(\"undefined\");\n}\nexport function TSNullKeyword(this: Printer) {\n this.word(\"null\");\n}\nexport function TSNeverKeyword(this: Printer) {\n this.word(\"never\");\n}\nexport function TSIntrinsicKeyword(this: Printer) {\n this.word(\"intrinsic\");\n}\n\nexport function TSThisType(this: Printer) {\n this.word(\"this\");\n}\n\nexport function TSFunctionType(this: Printer, node: t.TSFunctionType) {\n this.tsPrintFunctionOrConstructorType(node);\n}\n\nexport function TSConstructorType(this: Printer, node: t.TSConstructorType) {\n if (node.abstract) {\n this.word(\"abstract\");\n this.space();\n }\n this.word(\"new\");\n this.space();\n this.tsPrintFunctionOrConstructorType(node);\n}\n\nexport function tsPrintFunctionOrConstructorType(\n this: Printer,\n node: t.TSFunctionType | t.TSConstructorType,\n) {\n const { typeParameters } = node;\n const parameters = process.env.BABEL_8_BREAKING\n ? // @ts-ignore(Babel 7 vs Babel 8) Babel 8 AST shape\n node.params\n : // @ts-ignore(Babel 7 vs Babel 8) Babel 7 AST shape\n node.parameters;\n this.print(typeParameters);\n this.token(\"(\");\n this._parameters(parameters, \")\");\n this.space();\n const returnType = process.env.BABEL_8_BREAKING\n ? // @ts-ignore(Babel 7 vs Babel 8) Babel 8 AST shape\n node.returnType\n : // @ts-ignore(Babel 7 vs Babel 8) Babel 7 AST shape\n node.typeAnnotation;\n this.print(returnType);\n}\n\nexport function TSTypeReference(this: Printer, node: t.TSTypeReference) {\n const typeArguments = process.env.BABEL_8_BREAKING\n ? // @ts-ignore(Babel 7 vs Babel 8) Babel 8 AST shape\n node.typeArguments\n : // @ts-ignore(Babel 7 vs Babel 8) Babel 7 AST shape\n node.typeParameters;\n this.print(node.typeName, !!typeArguments);\n this.print(typeArguments);\n}\n\nexport function TSTypePredicate(this: Printer, node: t.TSTypePredicate) {\n if (node.asserts) {\n this.word(\"asserts\");\n this.space();\n }\n this.print(node.parameterName);\n if (node.typeAnnotation) {\n this.space();\n this.word(\"is\");\n this.space();\n this.print(node.typeAnnotation.typeAnnotation);\n }\n}\n\nexport function TSTypeQuery(this: Printer, node: t.TSTypeQuery) {\n this.word(\"typeof\");\n this.space();\n this.print(node.exprName);\n\n const typeArguments = process.env.BABEL_8_BREAKING\n ? //@ts-ignore(Babel 7 vs Babel 8) Babel 8 AST\n node.typeArguments\n : //@ts-ignore(Babel 7 vs Babel 8) Babel 7 AST\n node.typeParameters;\n if (typeArguments) {\n this.print(typeArguments);\n }\n}\n\nexport function TSTypeLiteral(this: Printer, node: t.TSTypeLiteral) {\n printBraced(this, node, () => this.printJoin(node.members, true, true));\n}\n\nexport function TSArrayType(this: Printer, node: t.TSArrayType) {\n this.print(node.elementType, true);\n\n this.token(\"[\");\n this.token(\"]\");\n}\n\nexport function TSTupleType(this: Printer, node: t.TSTupleType) {\n this.token(\"[\");\n this.printList(node.elementTypes, this.shouldPrintTrailingComma(\"]\"));\n this.token(\"]\");\n}\n\nexport function TSOptionalType(this: Printer, node: t.TSOptionalType) {\n this.print(node.typeAnnotation);\n this.token(\"?\");\n}\n\nexport function TSRestType(this: Printer, node: t.TSRestType) {\n this.token(\"...\");\n this.print(node.typeAnnotation);\n}\n\nexport function TSNamedTupleMember(this: Printer, node: t.TSNamedTupleMember) {\n this.print(node.label);\n if (node.optional) this.token(\"?\");\n this.token(\":\");\n this.space();\n this.print(node.elementType);\n}\n\nexport function TSUnionType(this: Printer, node: t.TSUnionType) {\n tsPrintUnionOrIntersectionType(this, node, \"|\");\n}\n\nexport function TSIntersectionType(this: Printer, node: t.TSIntersectionType) {\n tsPrintUnionOrIntersectionType(this, node, \"&\");\n}\n\nfunction tsPrintUnionOrIntersectionType(\n printer: Printer,\n node: t.TSUnionType | t.TSIntersectionType,\n sep: \"|\" | \"&\",\n) {\n let hasLeadingToken = 0;\n if (printer.tokenMap?.startMatches(node, sep)) {\n hasLeadingToken = 1;\n printer.token(sep);\n }\n\n printer.printJoin(node.types, undefined, undefined, function (i) {\n this.space();\n this.token(sep, null, i + hasLeadingToken);\n this.space();\n });\n}\n\nexport function TSConditionalType(this: Printer, node: t.TSConditionalType) {\n this.print(node.checkType);\n this.space();\n this.word(\"extends\");\n this.space();\n this.print(node.extendsType);\n this.space();\n this.token(\"?\");\n this.space();\n this.print(node.trueType);\n this.space();\n this.token(\":\");\n this.space();\n this.print(node.falseType);\n}\n\nexport function TSInferType(this: Printer, node: t.TSInferType) {\n this.word(\"infer\");\n this.print(node.typeParameter);\n}\n\nexport function TSParenthesizedType(\n this: Printer,\n node: t.TSParenthesizedType,\n) {\n this.token(\"(\");\n this.print(node.typeAnnotation);\n this.token(\")\");\n}\n\nexport function TSTypeOperator(this: Printer, node: t.TSTypeOperator) {\n this.word(node.operator);\n this.space();\n this.print(node.typeAnnotation);\n}\n\nexport function TSIndexedAccessType(\n this: Printer,\n node: t.TSIndexedAccessType,\n) {\n this.print(node.objectType, true);\n this.token(\"[\");\n this.print(node.indexType);\n this.token(\"]\");\n}\n\nexport function TSMappedType(this: Printer, node: t.TSMappedType) {\n const { nameType, optional, readonly, typeAnnotation } = node;\n this.token(\"{\");\n const exit = this.enterDelimited();\n this.space();\n if (readonly) {\n tokenIfPlusMinus(this, readonly);\n this.word(\"readonly\");\n this.space();\n }\n\n this.token(\"[\");\n if (process.env.BABEL_8_BREAKING) {\n // @ts-ignore(Babel 7 vs Babel 8) Babel 8 AST shape\n this.word(node.key.name);\n } else {\n // @ts-ignore(Babel 7 vs Babel 8) Babel 7 AST shape\n this.word(node.typeParameter.name);\n }\n\n this.space();\n this.word(\"in\");\n this.space();\n if (process.env.BABEL_8_BREAKING) {\n // @ts-ignore(Babel 7 vs Babel 8) Babel 8 AST shape\n this.print(node.constraint);\n } else {\n // @ts-ignore(Babel 7 vs Babel 8) Babel 7 AST shape\n this.print(node.typeParameter.constraint);\n }\n\n if (nameType) {\n this.space();\n this.word(\"as\");\n this.space();\n this.print(nameType);\n }\n\n this.token(\"]\");\n\n if (optional) {\n tokenIfPlusMinus(this, optional);\n this.token(\"?\");\n }\n\n if (typeAnnotation) {\n this.token(\":\");\n this.space();\n this.print(typeAnnotation);\n }\n this.space();\n exit();\n this.token(\"}\");\n}\n\nfunction tokenIfPlusMinus(self: Printer, tok: true | \"+\" | \"-\") {\n if (tok !== true) {\n self.token(tok);\n }\n}\n\nexport function TSTemplateLiteralType(\n this: Printer,\n node: t.TSTemplateLiteralType,\n) {\n this._printTemplate(node, node.types);\n}\n\nexport function TSLiteralType(this: Printer, node: t.TSLiteralType) {\n this.print(node.literal);\n}\n\nexport function TSClassImplements(\n this: Printer,\n // TODO(Babel 8): Just use t.TSClassImplements\n node: t.Node & {\n expression: t.TSEntityName;\n typeArguments?: t.TSTypeParameterInstantiation;\n },\n) {\n this.print(node.expression);\n this.print(node.typeArguments);\n}\n\nexport { TSClassImplements as TSInterfaceHeritage };\n\nexport function TSInterfaceDeclaration(\n this: Printer,\n node: t.TSInterfaceDeclaration,\n) {\n const { declare, id, typeParameters, extends: extendz, body } = node;\n if (declare) {\n this.word(\"declare\");\n this.space();\n }\n this.word(\"interface\");\n this.space();\n this.print(id);\n this.print(typeParameters);\n if (extendz?.length) {\n this.space();\n this.word(\"extends\");\n this.space();\n this.printList(extendz);\n }\n this.space();\n this.print(body);\n}\n\nexport function TSInterfaceBody(this: Printer, node: t.TSInterfaceBody) {\n printBraced(this, node, () => this.printJoin(node.body, true, true));\n}\n\nexport function TSTypeAliasDeclaration(\n this: Printer,\n node: t.TSTypeAliasDeclaration,\n) {\n const { declare, id, typeParameters, typeAnnotation } = node;\n if (declare) {\n this.word(\"declare\");\n this.space();\n }\n this.word(\"type\");\n this.space();\n this.print(id);\n this.print(typeParameters);\n this.space();\n this.token(\"=\");\n this.space();\n this.print(typeAnnotation);\n this.semicolon();\n}\n\nfunction TSTypeExpression(\n this: Printer,\n node: t.TSAsExpression | t.TSSatisfiesExpression,\n) {\n const { type, expression, typeAnnotation } = node;\n this.print(expression, true);\n this.space();\n this.word(type === \"TSAsExpression\" ? \"as\" : \"satisfies\");\n this.space();\n this.print(typeAnnotation);\n}\n\nexport {\n TSTypeExpression as TSAsExpression,\n TSTypeExpression as TSSatisfiesExpression,\n};\n\nexport function TSTypeAssertion(this: Printer, node: t.TSTypeAssertion) {\n const { typeAnnotation, expression } = node;\n this.token(\"<\");\n this.print(typeAnnotation);\n this.token(\">\");\n this.space();\n this.print(expression);\n}\n\nexport function TSInstantiationExpression(\n this: Printer,\n node: t.TSInstantiationExpression,\n) {\n this.print(node.expression);\n if (process.env.BABEL_8_BREAKING) {\n // @ts-ignore(Babel 7 vs Babel 8) Babel 8 AST\n this.print(node.typeArguments);\n } else {\n // @ts-ignore(Babel 7 vs Babel 8) Removed in Babel 8\n this.print(node.typeParameters);\n }\n}\n\nexport function TSEnumDeclaration(this: Printer, node: t.TSEnumDeclaration) {\n const { declare, const: isConst, id } = node;\n if (declare) {\n this.word(\"declare\");\n this.space();\n }\n if (isConst) {\n this.word(\"const\");\n this.space();\n }\n this.word(\"enum\");\n this.space();\n this.print(id);\n this.space();\n\n if (process.env.BABEL_8_BREAKING) {\n // @ts-ignore(Babel 7 vs Babel 8) Babel 8 AST\n this.print(node.body);\n } else {\n // cast to TSEnumBody for Babel 7 AST\n TSEnumBody.call(this, node as unknown as t.TSEnumBody);\n }\n}\n\nexport function TSEnumBody(this: Printer, node: t.TSEnumBody) {\n printBraced(this, node, () =>\n this.printList(\n node.members,\n this.shouldPrintTrailingComma(\"}\") ??\n (process.env.BABEL_8_BREAKING ? false : true),\n true,\n true,\n ),\n );\n}\n\nexport function TSEnumMember(this: Printer, node: t.TSEnumMember) {\n const { id, initializer } = node;\n this.print(id);\n if (initializer) {\n this.space();\n this.token(\"=\");\n this.space();\n this.print(initializer);\n }\n}\n\nexport function TSModuleDeclaration(\n this: Printer,\n node: t.TSModuleDeclaration,\n) {\n const { declare, id, kind } = node;\n\n if (declare) {\n this.word(\"declare\");\n this.space();\n }\n\n if (process.env.BABEL_8_BREAKING) {\n if (kind !== \"global\") {\n this.word(kind);\n this.space();\n }\n\n this.print(node.id);\n if (!node.body) {\n this.semicolon();\n return;\n }\n this.space();\n this.print(node.body);\n } else {\n // @ts-ignore(Babel 7 vs Babel 8) Babel 7 AST shape\n if (!node.global) {\n this.word(kind ?? (id.type === \"Identifier\" ? \"namespace\" : \"module\"));\n this.space();\n }\n\n this.print(id);\n\n if (!node.body) {\n this.semicolon();\n return;\n }\n\n let body = node.body;\n // @ts-ignore(Babel 7 vs Babel 8) Babel 7 AST shape\n while (body.type === \"TSModuleDeclaration\") {\n this.token(\".\");\n // @ts-ignore(Babel 7 vs Babel 8) Babel 7 AST shape\n this.print(body.id);\n // @ts-ignore(Babel 7 vs Babel 8) Babel 7 AST shape\n body = body.body;\n }\n\n this.space();\n this.print(body);\n }\n}\n\nexport function TSModuleBlock(this: Printer, node: t.TSModuleBlock) {\n printBraced(this, node, () => this.printSequence(node.body, true));\n}\n\nexport function TSImportType(this: Printer, node: t.TSImportType) {\n const { argument, qualifier, options } = node;\n this.word(\"import\");\n this.token(\"(\");\n this.print(argument);\n if (options) {\n this.token(\",\");\n this.print(options);\n }\n this.token(\")\");\n if (qualifier) {\n this.token(\".\");\n this.print(qualifier);\n }\n const typeArguments = process.env.BABEL_8_BREAKING\n ? //@ts-ignore(Babel 7 vs Babel 8) Babel 8 AST\n node.typeArguments\n : //@ts-ignore(Babel 7 vs Babel 8) Babel 7 AST\n node.typeParameters;\n if (typeArguments) {\n this.print(typeArguments);\n }\n}\n\nexport function TSImportEqualsDeclaration(\n this: Printer,\n node: t.TSImportEqualsDeclaration,\n) {\n const { id, moduleReference } = node;\n if (\n !process.env.BABEL_8_BREAKING &&\n // @ts-ignore(Babel 7 vs Babel 8) Babel 7 AST\n node.isExport\n ) {\n this.word(\"export\");\n this.space();\n }\n this.word(\"import\");\n this.space();\n this.print(id);\n this.space();\n this.token(\"=\");\n this.space();\n this.print(moduleReference);\n this.semicolon();\n}\n\nexport function TSExternalModuleReference(\n this: Printer,\n node: t.TSExternalModuleReference,\n) {\n this.token(\"require(\");\n this.print(node.expression);\n this.token(\")\");\n}\n\nexport function TSNonNullExpression(\n this: Printer,\n node: t.TSNonNullExpression,\n) {\n this.print(node.expression);\n this.token(\"!\");\n}\n\nexport function TSExportAssignment(this: Printer, node: t.TSExportAssignment) {\n this.word(\"export\");\n this.space();\n this.token(\"=\");\n this.space();\n this.print(node.expression);\n this.semicolon();\n}\n\nexport function TSNamespaceExportDeclaration(\n this: Printer,\n node: t.TSNamespaceExportDeclaration,\n) {\n this.word(\"export\");\n this.space();\n this.word(\"as\");\n this.space();\n this.word(\"namespace\");\n this.space();\n this.print(node.id);\n this.semicolon();\n}\n\nexport function tsPrintSignatureDeclarationBase(this: Printer, node: any) {\n const { typeParameters } = node;\n const parameters = process.env.BABEL_8_BREAKING\n ? node.params\n : node.parameters;\n this.print(typeParameters);\n this.token(\"(\");\n this._parameters(parameters, \")\");\n const returnType = process.env.BABEL_8_BREAKING\n ? node.returnType\n : node.typeAnnotation;\n this.print(returnType);\n}\n\nexport function tsPrintClassMemberModifiers(\n this: Printer,\n node:\n | t.ClassProperty\n | t.ClassAccessorProperty\n | t.ClassPrivateProperty\n | t.ClassMethod\n | t.ClassPrivateMethod\n | t.TSDeclareMethod,\n) {\n const isPrivateField = node.type === \"ClassPrivateProperty\";\n const isPublicField =\n node.type === \"ClassAccessorProperty\" || node.type === \"ClassProperty\";\n printModifiersList(this, node, [\n isPublicField && node.declare && \"declare\",\n !isPrivateField && node.accessibility,\n ]);\n if (node.static) {\n this.word(\"static\");\n this.space();\n }\n printModifiersList(this, node, [\n !isPrivateField && node.abstract && \"abstract\",\n !isPrivateField && node.override && \"override\",\n (isPublicField || isPrivateField) && node.readonly && \"readonly\",\n ]);\n}\n\nfunction printBraced(printer: Printer, node: t.Node, cb: () => void) {\n printer.token(\"{\");\n const exit = printer.enterDelimited();\n cb();\n exit();\n printer.rightBrace(node);\n}\n\nfunction printModifiersList(\n printer: Printer,\n node: t.Node,\n modifiers: (string | false | null)[],\n) {\n const modifiersSet = new Set<string>();\n for (const modifier of modifiers) {\n if (modifier) modifiersSet.add(modifier);\n }\n\n printer.tokenMap?.find(node, tok => {\n if (modifiersSet.has(tok.value)) {\n printer.token(tok.value);\n printer.space();\n modifiersSet.delete(tok.value);\n return modifiersSet.size === 0;\n }\n });\n\n for (const modifier of modifiersSet) {\n printer.word(modifier);\n printer.space();\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGO,SAASA,gBAAgBA,CAE9BC,IAAwB,EACxBC,MAAc,EACd;EAGA,IAAI,CAACC,KAAK,CACR,CAACD,MAAM,CAACE,IAAI,KAAK,gBAAgB,IAAIF,MAAM,CAACE,IAAI,KAAK,mBAAmB,KAKlEF,MAAM,CAACG,cAAc,KAAMJ,IAAI,GACjC,IAAI,GACJ,GACN,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AAMC,QAAQ,IAAIJ,SAAS,EAAE;IAChC,IAAII,QAAQ,EAAEF,YAAY,CAACG,GAAG,CAACD,QAAQ,CAAC;EAC1C;EAEA,CAAAH,kBAAA,GAAAlI,OAAO,CAACjC,QAAQ,aAAhBmK,kBAAA,CAAkBhK,IAAI,CAACf,IAAI,EAAEgI,GAAG,IAAI;IAClC,IAAIgD,YAAY,CAACI,GAAG,CAACpD,GAAG,CAACqD,KAAK,CAAC,EAAE;MAC/BxI,OAAO,CAAC3C,KAAK,CAAC8H,GAAG,CAACqD,KAAK,CAAC;MACxBxI,OAAO,CAACxC,KAAK,CAAC,CAAC;MACf2K,YAAY,CAACM,MAAM,CAACtD,GAAG,CAACqD,KAAK,CAAC;MAC9B,OAAOL,YAAY,CAACO,IAAI,KAAK,CAAC;IAChC;EACF,CAAC,CAAC;EAEF,KAAK,MAAML,QAAQ,IAAIF,YAAY,EAAE;IACnCnI,OAAO,CAACvB,IAAI,CAAC4J,QAAQ,CAAC;IACtBrI,OAAO,CAACxC,KAAK,CAAC,CAAC;EACjB;AACF","ignoreList":[]}
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.default =
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
exports.generate = generate;
|
|
7
8
|
var _sourceMap = require("./source-map.js");
|
|
8
9
|
var _printer = require("./printer.js");
|
|
9
10
|
function normalizeOptions(code, opts, ast) {
|
|
@@ -106,5 +107,6 @@ function generate(ast, opts = {}, code) {
|
|
|
106
107
|
const printer = new _printer.default(format, map, ast.tokens, typeof code === "string" ? code : null);
|
|
107
108
|
return printer.generate(ast);
|
|
108
109
|
}
|
|
110
|
+
var _default = exports.default = generate;
|
|
109
111
|
|
|
110
112
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_sourceMap","require","_printer","normalizeOptions","code","opts","ast","experimental_preserveFormat","Error","retainLines","compact","minified","jsescOption","Array","isArray","tokens","format","auxiliaryCommentBefore","auxiliaryCommentAfter","shouldPrintComment","preserveFormat","retainFunctionParens","comments","concise","indent","adjustMultilineComment","style","Object","assign","quotes","wrap","minimal","topicToken","importAttributesKeyword","_opts$recordAndTupleS","decoratorsBeforeExport","json","jsonCompatibleStrings","recordAndTupleSyntaxType","value","includes","length","console","error","filename","undefined","exports","CodeGenerator","constructor","_ast","_format","_map","sourceMaps","SourceMap","generate","printer","Printer","map"],"sources":["../src/index.ts"],"sourcesContent":["import SourceMap from \"./source-map.ts\";\nimport Printer from \"./printer.ts\";\nimport type * as t from \"@babel/types\";\nimport type { Opts as jsescOptions } from \"jsesc\";\nimport type { Format } from \"./printer.ts\";\nimport type {\n EncodedSourceMap,\n DecodedSourceMap,\n Mapping,\n} from \"@jridgewell/gen-mapping\";\n\n/**\n * Normalize generator options, setting defaults.\n *\n * - Detects code indentation.\n * - If `opts.compact = \"auto\"` and the code is over 500KB, `compact` will be set to `true`.\n */\n\nfunction normalizeOptions(\n code: string | { [filename: string]: string },\n opts: GeneratorOptions,\n ast: t.Node,\n): Format {\n if (opts.experimental_preserveFormat) {\n if (typeof code !== \"string\") {\n throw new Error(\n \"`experimental_preserveFormat` requires the original `code` to be passed to @babel/generator as a string\",\n );\n }\n if (!opts.retainLines) {\n throw new Error(\n \"`experimental_preserveFormat` requires `retainLines` to be set to `true`\",\n );\n }\n if (opts.compact && opts.compact !== \"auto\") {\n throw new Error(\n \"`experimental_preserveFormat` is not compatible with the `compact` option\",\n );\n }\n if (opts.minified) {\n throw new Error(\n \"`experimental_preserveFormat` is not compatible with the `minified` option\",\n );\n }\n if (opts.jsescOption) {\n throw new Error(\n \"`experimental_preserveFormat` is not compatible with the `jsescOption` option\",\n );\n }\n if (!Array.isArray((ast as any).tokens)) {\n throw new Error(\n \"`experimental_preserveFormat` requires the AST to have attatched the token of the input code. Make sure to enable the `tokens: true` parser option.\",\n );\n }\n }\n\n const format: Format = {\n auxiliaryCommentBefore: opts.auxiliaryCommentBefore,\n auxiliaryCommentAfter: opts.auxiliaryCommentAfter,\n shouldPrintComment: opts.shouldPrintComment,\n preserveFormat: opts.experimental_preserveFormat,\n retainLines: opts.retainLines,\n retainFunctionParens: opts.retainFunctionParens,\n comments: opts.comments == null || opts.comments,\n compact: opts.compact,\n minified: opts.minified,\n concise: opts.concise,\n indent: {\n adjustMultilineComment: true,\n style: \" \",\n },\n jsescOption: {\n quotes: \"double\",\n wrap: true,\n minimal: process.env.BABEL_8_BREAKING ? true : false,\n ...opts.jsescOption,\n },\n topicToken: opts.topicToken,\n importAttributesKeyword: opts.importAttributesKeyword,\n };\n\n if (!process.env.BABEL_8_BREAKING) {\n format.decoratorsBeforeExport = opts.decoratorsBeforeExport;\n format.jsescOption.json = opts.jsonCompatibleStrings;\n format.recordAndTupleSyntaxType = opts.recordAndTupleSyntaxType ?? \"hash\";\n }\n\n if (format.minified) {\n format.compact = true;\n\n format.shouldPrintComment =\n format.shouldPrintComment || (() => format.comments);\n } else {\n format.shouldPrintComment =\n format.shouldPrintComment ||\n (value =>\n format.comments ||\n value.includes(\"@license\") ||\n value.includes(\"@preserve\"));\n }\n\n if (format.compact === \"auto\") {\n format.compact = typeof code === \"string\" && code.length > 500_000; // 500KB\n\n if (format.compact) {\n console.error(\n \"[BABEL] Note: The code generator has deoptimised the styling of \" +\n `${opts.filename} as it exceeds the max of ${\"500KB\"}.`,\n );\n }\n }\n\n if (format.compact || format.preserveFormat) {\n format.indent.adjustMultilineComment = false;\n }\n\n const { auxiliaryCommentBefore, auxiliaryCommentAfter, shouldPrintComment } =\n format;\n\n if (auxiliaryCommentBefore && !shouldPrintComment(auxiliaryCommentBefore)) {\n format.auxiliaryCommentBefore = undefined;\n }\n if (auxiliaryCommentAfter && !shouldPrintComment(auxiliaryCommentAfter)) {\n format.auxiliaryCommentAfter = undefined;\n }\n\n return format;\n}\n\nexport interface GeneratorOptions {\n /**\n * Optional string to add as a block comment at the start of the output file.\n */\n auxiliaryCommentBefore?: string;\n\n /**\n * Optional string to add as a block comment at the end of the output file.\n */\n auxiliaryCommentAfter?: string;\n\n /**\n * Function that takes a comment (as a string) and returns true if the comment should be included in the output.\n * By default, comments are included if `opts.comments` is `true` or if `opts.minified` is `false` and the comment\n * contains `@preserve` or `@license`.\n */\n shouldPrintComment?(comment: string): boolean;\n\n /**\n * Preserve the input code format while printing the transformed code.\n * This is experimental, and may have breaking changes in future\n * patch releases. It will be removed in a future minor release,\n * when it will graduate to stable.\n */\n experimental_preserveFormat?: boolean;\n\n /**\n * Attempt to use the same line numbers in the output code as in the source code (helps preserve stack traces).\n * Defaults to `false`.\n */\n retainLines?: boolean;\n\n /**\n * Retain parens around function expressions (could be used to change engine parsing behavior)\n * Defaults to `false`.\n */\n retainFunctionParens?: boolean;\n\n /**\n * Should comments be included in output? Defaults to `true`.\n */\n comments?: boolean;\n\n /**\n * Set to true to avoid adding whitespace for formatting. Defaults to the value of `opts.minified`.\n */\n compact?: boolean | \"auto\";\n\n /**\n * Should the output be minified. Defaults to `false`.\n */\n minified?: boolean;\n\n /**\n * Set to true to reduce whitespace (but not as much as opts.compact). Defaults to `false`.\n */\n concise?: boolean;\n\n /**\n * Used in warning messages\n */\n filename?: string;\n\n /**\n * Enable generating source maps. Defaults to `false`.\n */\n sourceMaps?: boolean;\n\n inputSourceMap?: any;\n\n /**\n * A root for all relative URLs in the source map.\n */\n sourceRoot?: string;\n\n /**\n * The filename for the source code (i.e. the code in the `code` argument).\n * This will only be used if `code` is a string.\n */\n sourceFileName?: string;\n\n /**\n * Set to true to run jsesc with \"json\": true to print \"\\u00A9\" vs. \"©\";\n * @deprecated use `jsescOptions: { json: true }` instead\n */\n jsonCompatibleStrings?: boolean;\n\n /**\n * Set to true to enable support for experimental decorators syntax before\n * module exports. If not specified, decorators will be printed in the same\n * position as they were in the input source code.\n * @deprecated Removed in Babel 8\n */\n decoratorsBeforeExport?: boolean;\n\n /**\n * Options for outputting jsesc representation.\n */\n jsescOption?: jsescOptions;\n\n /**\n * For use with the recordAndTuple token.\n * @deprecated It will be removed in Babel 8.\n */\n recordAndTupleSyntaxType?: \"bar\" | \"hash\";\n\n /**\n * For use with the Hack-style pipe operator.\n * Changes what token is used for pipe bodies’ topic references.\n */\n topicToken?: \"%\" | \"#\" | \"@@\" | \"^^\" | \"^\";\n\n /**\n * The import attributes syntax style:\n * - \"with\" : `import { a } from \"b\" with { type: \"json\" };`\n * - \"assert\" : `import { a } from \"b\" assert { type: \"json\" };`\n * - \"with-legacy\" : `import { a } from \"b\" with type: \"json\";`\n */\n importAttributesKeyword?: \"with\" | \"assert\" | \"with-legacy\";\n}\n\nexport interface GeneratorResult {\n code: string;\n map: EncodedSourceMap | null;\n decodedMap: DecodedSourceMap | undefined;\n rawMappings: Mapping[] | undefined;\n}\n\nif (!process.env.BABEL_8_BREAKING && !USE_ESM) {\n /**\n * We originally exported the Generator class above, but to make it extra clear that it is a private API,\n * we have moved that to an internal class instance and simplified the interface to the two public methods\n * that we wish to support.\n */\n\n // eslint-disable-next-line no-restricted-globals\n exports.CodeGenerator = class CodeGenerator {\n private _ast: t.Node;\n private _format: Format | undefined;\n private _map: SourceMap | null;\n constructor(ast: t.Node, opts: GeneratorOptions = {}, code?: string) {\n this._ast = ast;\n this._format = normalizeOptions(code, opts, ast);\n this._map = opts.sourceMaps ? new SourceMap(opts, code) : null;\n }\n generate(): GeneratorResult {\n const printer = new Printer(this._format, this._map);\n\n return printer.generate(this._ast);\n }\n };\n}\n\n/**\n * Turns an AST into code, maintaining sourcemaps, user preferences, and valid output.\n * @param ast - the abstract syntax tree from which to generate output code.\n * @param opts - used for specifying options for code generation.\n * @param code - the original source code, used for source maps.\n * @returns - an object containing the output code and source map.\n */\nexport default function generate(\n ast: t.Node,\n opts: GeneratorOptions = {},\n code?: string | { [filename: string]: string },\n): GeneratorResult {\n const format = normalizeOptions(code, opts, ast);\n const map = opts.sourceMaps ? new SourceMap(opts, code) : null;\n\n const printer = new Printer(\n format,\n map,\n (ast as any).tokens,\n typeof code === \"string\" ? code : null,\n );\n\n return printer.generate(ast);\n}\n"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AAiBA,SAASE,gBAAgBA,CACvBC,IAA6C,EAC7CC,IAAsB,EACtBC,GAAW,EACH;EACR,IAAID,IAAI,CAACE,2BAA2B,EAAE;IACpC,IAAI,OAAOH,IAAI,KAAK,QAAQ,EAAE;MAC5B,MAAM,IAAII,KAAK,CACb,yGACF,CAAC;IACH;IACA,IAAI,CAACH,IAAI,CAACI,WAAW,EAAE;MACrB,MAAM,IAAID,KAAK,CACb,0EACF,CAAC;IACH;IACA,IAAIH,IAAI,CAACK,OAAO,IAAIL,IAAI,CAACK,OAAO,KAAK,MAAM,EAAE;MAC3C,MAAM,IAAIF,KAAK,CACb,2EACF,CAAC;IACH;IACA,IAAIH,IAAI,CAACM,QAAQ,EAAE;MACjB,MAAM,IAAIH,KAAK,CACb,4EACF,CAAC;IACH;IACA,IAAIH,IAAI,CAACO,WAAW,EAAE;MACpB,MAAM,IAAIJ,KAAK,CACb,+EACF,CAAC;IACH;IACA,IAAI,CAACK,KAAK,CAACC,OAAO,CAAER,GAAG,CAASS,MAAM,CAAC,EAAE;MACvC,MAAM,IAAIP,KAAK,CACb,qJACF,CAAC;IACH;EACF;EAEA,MAAMQ,MAAc,GAAG;IACrBC,sBAAsB,EAAEZ,IAAI,CAACY,sBAAsB;IACnDC,qBAAqB,EAAEb,IAAI,CAACa,qBAAqB;IACjDC,kBAAkB,EAAEd,IAAI,CAACc,kBAAkB;IAC3CC,cAAc,EAAEf,IAAI,CAACE,2BAA2B;IAChDE,WAAW,EAAEJ,IAAI,CAACI,WAAW;IAC7BY,oBAAoB,EAAEhB,IAAI,CAACgB,oBAAoB;IAC/CC,QAAQ,EAAEjB,IAAI,CAACiB,QAAQ,IAAI,IAAI,IAAIjB,IAAI,CAACiB,QAAQ;IA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AI,CAACL,IAAI,CAAC;IACpC;EACF,CAAC;AACH;AASe,SAASK,QAAQA,CAC9BhD,GAAW,EACXD,IAAsB,GAAG,CAAC,CAAC,EAC3BD,IAA8C,EAC7B;EACjB,MAAMY,MAAM,GAAGb,gBAAgB,CAACC,IAAI,EAAEC,IAAI,EAAEC,GAAG,CAAC;EAChD,MAAMmD,GAAG,GAAGpD,IAAI,CAAC+C,UAAU,GAAG,IAAIC,kBAAS,CAAChD,IAAI,EAAED,IAAI,CAAC,GAAG,IAAI;EAE9D,MAAMmD,OAAO,GAAG,IAAIC,gBAAO,CACzBxC,MAAM,EACNyC,GAAG,EACFnD,GAAG,CAASS,MAAM,EACnB,OAAOX,IAAI,KAAK,QAAQ,GAAGA,IAAI,GAAG,IACpC,CAAC;EAED,OAAOmD,OAAO,CAACD,QAAQ,CAAChD,GAAG,CAAC;AAC9B","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_sourceMap","require","_printer","normalizeOptions","code","opts","ast","experimental_preserveFormat","Error","retainLines","compact","minified","jsescOption","Array","isArray","tokens","format","auxiliaryCommentBefore","auxiliaryCommentAfter","shouldPrintComment","preserveFormat","retainFunctionParens","comments","concise","indent","adjustMultilineComment","style","Object","assign","quotes","wrap","minimal","topicToken","importAttributesKeyword","_opts$recordAndTupleS","decoratorsBeforeExport","json","jsonCompatibleStrings","recordAndTupleSyntaxType","value","includes","length","console","error","filename","undefined","exports","CodeGenerator","constructor","_ast","_format","_map","sourceMaps","SourceMap","generate","printer","Printer","map","_default","default"],"sources":["../src/index.ts"],"sourcesContent":["import SourceMap from \"./source-map.ts\";\nimport Printer from \"./printer.ts\";\nimport type * as t from \"@babel/types\";\nimport type { Opts as jsescOptions } from \"jsesc\";\nimport type { Format } from \"./printer.ts\";\nimport type {\n EncodedSourceMap,\n DecodedSourceMap,\n Mapping,\n} from \"@jridgewell/gen-mapping\";\n\n/**\n * Normalize generator options, setting defaults.\n *\n * - Detects code indentation.\n * - If `opts.compact = \"auto\"` and the code is over 500KB, `compact` will be set to `true`.\n */\n\nfunction normalizeOptions(\n code: string | { [filename: string]: string },\n opts: GeneratorOptions,\n ast: t.Node,\n): Format {\n if (opts.experimental_preserveFormat) {\n if (typeof code !== \"string\") {\n throw new Error(\n \"`experimental_preserveFormat` requires the original `code` to be passed to @babel/generator as a string\",\n );\n }\n if (!opts.retainLines) {\n throw new Error(\n \"`experimental_preserveFormat` requires `retainLines` to be set to `true`\",\n );\n }\n if (opts.compact && opts.compact !== \"auto\") {\n throw new Error(\n \"`experimental_preserveFormat` is not compatible with the `compact` option\",\n );\n }\n if (opts.minified) {\n throw new Error(\n \"`experimental_preserveFormat` is not compatible with the `minified` option\",\n );\n }\n if (opts.jsescOption) {\n throw new Error(\n \"`experimental_preserveFormat` is not compatible with the `jsescOption` option\",\n );\n }\n if (!Array.isArray((ast as any).tokens)) {\n throw new Error(\n \"`experimental_preserveFormat` requires the AST to have attatched the token of the input code. Make sure to enable the `tokens: true` parser option.\",\n );\n }\n }\n\n const format: Format = {\n auxiliaryCommentBefore: opts.auxiliaryCommentBefore,\n auxiliaryCommentAfter: opts.auxiliaryCommentAfter,\n shouldPrintComment: opts.shouldPrintComment,\n preserveFormat: opts.experimental_preserveFormat,\n retainLines: opts.retainLines,\n retainFunctionParens: opts.retainFunctionParens,\n comments: opts.comments == null || opts.comments,\n compact: opts.compact,\n minified: opts.minified,\n concise: opts.concise,\n indent: {\n adjustMultilineComment: true,\n style: \" \",\n },\n jsescOption: {\n quotes: \"double\",\n wrap: true,\n minimal: process.env.BABEL_8_BREAKING ? true : false,\n ...opts.jsescOption,\n },\n topicToken: opts.topicToken,\n importAttributesKeyword: opts.importAttributesKeyword,\n };\n\n if (!process.env.BABEL_8_BREAKING) {\n format.decoratorsBeforeExport = opts.decoratorsBeforeExport;\n format.jsescOption.json = opts.jsonCompatibleStrings;\n format.recordAndTupleSyntaxType = opts.recordAndTupleSyntaxType ?? \"hash\";\n }\n\n if (format.minified) {\n format.compact = true;\n\n format.shouldPrintComment =\n format.shouldPrintComment || (() => format.comments);\n } else {\n format.shouldPrintComment =\n format.shouldPrintComment ||\n (value =>\n format.comments ||\n value.includes(\"@license\") ||\n value.includes(\"@preserve\"));\n }\n\n if (format.compact === \"auto\") {\n format.compact = typeof code === \"string\" && code.length > 500_000; // 500KB\n\n if (format.compact) {\n console.error(\n \"[BABEL] Note: The code generator has deoptimised the styling of \" +\n `${opts.filename} as it exceeds the max of ${\"500KB\"}.`,\n );\n }\n }\n\n if (format.compact || format.preserveFormat) {\n format.indent.adjustMultilineComment = false;\n }\n\n const { auxiliaryCommentBefore, auxiliaryCommentAfter, shouldPrintComment } =\n format;\n\n if (auxiliaryCommentBefore && !shouldPrintComment(auxiliaryCommentBefore)) {\n format.auxiliaryCommentBefore = undefined;\n }\n if (auxiliaryCommentAfter && !shouldPrintComment(auxiliaryCommentAfter)) {\n format.auxiliaryCommentAfter = undefined;\n }\n\n return format;\n}\n\nexport interface GeneratorOptions {\n /**\n * Optional string to add as a block comment at the start of the output file.\n */\n auxiliaryCommentBefore?: string;\n\n /**\n * Optional string to add as a block comment at the end of the output file.\n */\n auxiliaryCommentAfter?: string;\n\n /**\n * Function that takes a comment (as a string) and returns true if the comment should be included in the output.\n * By default, comments are included if `opts.comments` is `true` or if `opts.minified` is `false` and the comment\n * contains `@preserve` or `@license`.\n */\n shouldPrintComment?(comment: string): boolean;\n\n /**\n * Preserve the input code format while printing the transformed code.\n * This is experimental, and may have breaking changes in future\n * patch releases. It will be removed in a future minor release,\n * when it will graduate to stable.\n */\n experimental_preserveFormat?: boolean;\n\n /**\n * Attempt to use the same line numbers in the output code as in the source code (helps preserve stack traces).\n * Defaults to `false`.\n */\n retainLines?: boolean;\n\n /**\n * Retain parens around function expressions (could be used to change engine parsing behavior)\n * Defaults to `false`.\n */\n retainFunctionParens?: boolean;\n\n /**\n * Should comments be included in output? Defaults to `true`.\n */\n comments?: boolean;\n\n /**\n * Set to true to avoid adding whitespace for formatting. Defaults to the value of `opts.minified`.\n */\n compact?: boolean | \"auto\";\n\n /**\n * Should the output be minified. Defaults to `false`.\n */\n minified?: boolean;\n\n /**\n * Set to true to reduce whitespace (but not as much as opts.compact). Defaults to `false`.\n */\n concise?: boolean;\n\n /**\n * Used in warning messages\n */\n filename?: string;\n\n /**\n * Enable generating source maps. Defaults to `false`.\n */\n sourceMaps?: boolean;\n\n inputSourceMap?: any;\n\n /**\n * A root for all relative URLs in the source map.\n */\n sourceRoot?: string;\n\n /**\n * The filename for the source code (i.e. the code in the `code` argument).\n * This will only be used if `code` is a string.\n */\n sourceFileName?: string;\n\n /**\n * Set to true to run jsesc with \"json\": true to print \"\\u00A9\" vs. \"©\";\n * @deprecated use `jsescOptions: { json: true }` instead\n */\n jsonCompatibleStrings?: boolean;\n\n /**\n * Set to true to enable support for experimental decorators syntax before\n * module exports. If not specified, decorators will be printed in the same\n * position as they were in the input source code.\n * @deprecated Removed in Babel 8\n */\n decoratorsBeforeExport?: boolean;\n\n /**\n * Options for outputting jsesc representation.\n */\n jsescOption?: jsescOptions;\n\n /**\n * For use with the recordAndTuple token.\n * @deprecated It will be removed in Babel 8.\n */\n recordAndTupleSyntaxType?: \"bar\" | \"hash\";\n\n /**\n * For use with the Hack-style pipe operator.\n * Changes what token is used for pipe bodies’ topic references.\n */\n topicToken?: \"%\" | \"#\" | \"@@\" | \"^^\" | \"^\";\n\n /**\n * The import attributes syntax style:\n * - \"with\" : `import { a } from \"b\" with { type: \"json\" };`\n * - \"assert\" : `import { a } from \"b\" assert { type: \"json\" };`\n * - \"with-legacy\" : `import { a } from \"b\" with type: \"json\";`\n */\n importAttributesKeyword?: \"with\" | \"assert\" | \"with-legacy\";\n}\n\nexport interface GeneratorResult {\n code: string;\n map: EncodedSourceMap | null;\n decodedMap: DecodedSourceMap | undefined;\n rawMappings: Mapping[] | undefined;\n}\n\nif (!process.env.BABEL_8_BREAKING && !USE_ESM) {\n /**\n * We originally exported the Generator class above, but to make it extra clear that it is a private API,\n * we have moved that to an internal class instance and simplified the interface to the two public methods\n * that we wish to support.\n */\n\n // eslint-disable-next-line no-restricted-globals\n exports.CodeGenerator = class CodeGenerator {\n private _ast: t.Node;\n private _format: Format | undefined;\n private _map: SourceMap | null;\n constructor(ast: t.Node, opts: GeneratorOptions = {}, code?: string) {\n this._ast = ast;\n this._format = normalizeOptions(code, opts, ast);\n this._map = opts.sourceMaps ? new SourceMap(opts, code) : null;\n }\n generate(): GeneratorResult {\n const printer = new Printer(this._format, this._map);\n\n return printer.generate(this._ast);\n }\n };\n}\n\n/**\n * Turns an AST into code, maintaining sourcemaps, user preferences, and valid output.\n * @param ast - the abstract syntax tree from which to generate output code.\n * @param opts - used for specifying options for code generation.\n * @param code - the original source code, used for source maps.\n * @returns - an object containing the output code and source map.\n */\nexport function generate(\n ast: t.Node,\n opts: GeneratorOptions = {},\n code?: string | { [filename: string]: string },\n): GeneratorResult {\n const format = normalizeOptions(code, opts, ast);\n const map = opts.sourceMaps ? new SourceMap(opts, code) : null;\n\n const printer = new Printer(\n format,\n map,\n (ast as any).tokens,\n typeof code === \"string\" ? code : null,\n );\n\n return printer.generate(ast);\n}\n\nexport default generate;\n"],"mappings":";;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AAiBA,SAASE,gBAAgBA,CACvBC,IAA6C,EAC7CC,IAAsB,EACtBC,GAAW,EACH;EACR,IAAID,IAAI,CAACE,2BAA2B,EAAE;IACpC,IAAI,OAAOH,IAAI,KAAK,QAAQ,EAAE;MAC5B,MAAM,IAAII,KAAK,CACb,yGACF,CAAC;IACH;IACA,IAAI,CAACH,IAAI,CAACI,WAAW,EAAE;MACrB,MAAM,IAAID,KAAK,CACb,0EACF,CAAC;IACH;IACA,IAAIH,IAAI,CAACK,OAAO,IAAIL,IAAI,CAACK,OAAO,KAAK,MAAM,EAAE;MAC3C,MAAM,IAAIF,KAAK,CACb,2EACF,CAAC;IACH;IACA,IAAIH,IAAI,CAACM,QAAQ,E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Q","ignoreList":[]}
|
|
@@ -23,21 +23,24 @@ const {
|
|
|
23
23
|
isParenthesizedExpression
|
|
24
24
|
} = _t;
|
|
25
25
|
const TokenContext = exports.TokenContext = {
|
|
26
|
+
normal: 0,
|
|
26
27
|
expressionStatement: 1,
|
|
27
28
|
arrowBody: 2,
|
|
28
29
|
exportDefault: 4,
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
arrowFlowReturnType: 8,
|
|
31
|
+
forInitHead: 16,
|
|
32
|
+
forInHead: 32,
|
|
33
|
+
forOfHead: 64,
|
|
34
|
+
forInOrInitHeadAccumulate: 128,
|
|
35
|
+
forInOrInitHeadAccumulatePassThroughMask: 128
|
|
33
36
|
};
|
|
34
37
|
function expandAliases(obj) {
|
|
35
38
|
const map = new Map();
|
|
36
39
|
function add(type, func) {
|
|
37
40
|
const fn = map.get(type);
|
|
38
|
-
map.set(type, fn ? function (node, parent, stack,
|
|
41
|
+
map.set(type, fn ? function (node, parent, stack, getRawIdentifier) {
|
|
39
42
|
var _fn;
|
|
40
|
-
return (_fn = fn(node, parent, stack,
|
|
43
|
+
return (_fn = fn(node, parent, stack, getRawIdentifier)) != null ? _fn : func(node, parent, stack, getRawIdentifier);
|
|
41
44
|
} : func);
|
|
42
45
|
}
|
|
43
46
|
for (const type of Object.keys(obj)) {
|
|
@@ -78,7 +81,7 @@ function needsWhitespaceBefore(node, parent) {
|
|
|
78
81
|
function needsWhitespaceAfter(node, parent) {
|
|
79
82
|
return needsWhitespace(node, parent, 2);
|
|
80
83
|
}
|
|
81
|
-
function needsParens(node, parent, tokenContext,
|
|
84
|
+
function needsParens(node, parent, tokenContext, getRawIdentifier) {
|
|
82
85
|
var _expandedParens$get;
|
|
83
86
|
if (!parent) return false;
|
|
84
87
|
if (isNewExpression(parent) && parent.callee === node) {
|
|
@@ -87,7 +90,7 @@ function needsParens(node, parent, tokenContext, inForInit, getRawIdentifier) {
|
|
|
87
90
|
if (isDecorator(parent)) {
|
|
88
91
|
return !isDecoratorMemberExpression(node) && !(isCallExpression(node) && isDecoratorMemberExpression(node.callee)) && !isParenthesizedExpression(node);
|
|
89
92
|
}
|
|
90
|
-
return (_expandedParens$get = expandedParens.get(node.type)) == null ? void 0 : _expandedParens$get(node, parent, tokenContext,
|
|
93
|
+
return (_expandedParens$get = expandedParens.get(node.type)) == null ? void 0 : _expandedParens$get(node, parent, tokenContext, getRawIdentifier);
|
|
91
94
|
}
|
|
92
95
|
function isDecoratorMemberExpression(node) {
|
|
93
96
|
switch (node.type) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["whitespace","require","parens","_t","FLIPPED_ALIAS_KEYS","VISITOR_KEYS","isCallExpression","isDecorator","isExpressionStatement","isMemberExpression","isNewExpression","isParenthesizedExpression","TokenContext","exports","expressionStatement","arrowBody","exportDefault","
|
|
1
|
+
{"version":3,"names":["whitespace","require","parens","_t","FLIPPED_ALIAS_KEYS","VISITOR_KEYS","isCallExpression","isDecorator","isExpressionStatement","isMemberExpression","isNewExpression","isParenthesizedExpression","TokenContext","exports","normal","expressionStatement","arrowBody","exportDefault","arrowFlowReturnType","forInitHead","forInHead","forOfHead","forInOrInitHeadAccumulate","forInOrInitHeadAccumulatePassThroughMask","expandAliases","obj","map","Map","add","type","func","fn","get","set","node","parent","stack","getRawIdentifier","_fn","Object","keys","aliases","alias","expandedParens","expandedWhitespaceNodes","nodes","isOrHasCallExpression","object","needsWhitespace","_expandedWhitespaceNo","expression","flag","needsWhitespaceBefore","needsWhitespaceAfter","needsParens","tokenContext","_expandedParens$get","callee","isDecoratorMemberExpression","computed","property","isLastChild","child","visitorKeys","i","length","val","Array","isArray","j"],"sources":["../../src/node/index.ts"],"sourcesContent":["import * as whitespace from \"./whitespace.ts\";\nimport * as parens from \"./parentheses.ts\";\nimport {\n FLIPPED_ALIAS_KEYS,\n VISITOR_KEYS,\n isCallExpression,\n isDecorator,\n isExpressionStatement,\n isMemberExpression,\n isNewExpression,\n isParenthesizedExpression,\n} from \"@babel/types\";\nimport type * as t from \"@babel/types\";\n\nimport type { WhitespaceFlag } from \"./whitespace.ts\";\n\nexport const enum TokenContext {\n normal = 0,\n expressionStatement = 1 << 0,\n arrowBody = 1 << 1,\n exportDefault = 1 << 2,\n arrowFlowReturnType = 1 << 3,\n forInitHead = 1 << 4,\n forInHead = 1 << 5,\n forOfHead = 1 << 6,\n // This flag lives across the token boundary, and will\n // be reset after forIn or forInit head is printed\n forInOrInitHeadAccumulate = 1 << 7,\n forInOrInitHeadAccumulatePassThroughMask = 0x80,\n}\n\ntype NodeHandler<R> = (\n node: t.Node,\n // todo:\n // node: K extends keyof typeof t\n // ? Extract<typeof t[K], { type: \"string\" }>\n // : t.Node,\n parent: t.Node,\n tokenContext?: number,\n getRawIdentifier?: (node: t.Identifier) => string,\n) => R;\n\nexport type NodeHandlers<R> = {\n [K in string]?: NodeHandler<R>;\n};\n\nfunction expandAliases<R>(obj: NodeHandlers<R>) {\n const map = new Map<string, NodeHandler<R>>();\n\n function add(type: string, func: NodeHandler<R>) {\n const fn = map.get(type);\n map.set(\n type,\n fn\n ? function (node, parent, stack, getRawIdentifier) {\n return (\n fn(node, parent, stack, getRawIdentifier) ??\n func(node, parent, stack, getRawIdentifier)\n );\n }\n : func,\n );\n }\n\n for (const type of Object.keys(obj)) {\n const aliases = FLIPPED_ALIAS_KEYS[type];\n if (aliases) {\n for (const alias of aliases) {\n add(alias, obj[type]);\n }\n } else {\n add(type, obj[type]);\n }\n }\n\n return map;\n}\n\n// Rather than using `t.is` on each object property, we pre-expand any type aliases\n// into concrete types so that the 'find' call below can be as fast as possible.\nconst expandedParens = expandAliases(parens);\nconst expandedWhitespaceNodes = expandAliases(whitespace.nodes);\n\nfunction isOrHasCallExpression(node: t.Node): boolean {\n if (isCallExpression(node)) {\n return true;\n }\n\n return isMemberExpression(node) && isOrHasCallExpression(node.object);\n}\n\nexport function needsWhitespace(\n node: t.Node,\n parent: t.Node,\n type: WhitespaceFlag,\n): boolean {\n if (!node) return false;\n\n if (isExpressionStatement(node)) {\n node = node.expression;\n }\n\n const flag = expandedWhitespaceNodes.get(node.type)?.(node, parent);\n\n if (typeof flag === \"number\") {\n return (flag & type) !== 0;\n }\n\n return false;\n}\n\nexport function needsWhitespaceBefore(node: t.Node, parent: t.Node) {\n return needsWhitespace(node, parent, 1);\n}\n\nexport function needsWhitespaceAfter(node: t.Node, parent: t.Node) {\n return needsWhitespace(node, parent, 2);\n}\n\nexport function needsParens(\n node: t.Node,\n parent: t.Node,\n tokenContext?: number,\n getRawIdentifier?: (node: t.Identifier) => string,\n) {\n if (!parent) return false;\n\n if (isNewExpression(parent) && parent.callee === node) {\n if (isOrHasCallExpression(node)) return true;\n }\n\n if (isDecorator(parent)) {\n return (\n !isDecoratorMemberExpression(node) &&\n !(isCallExpression(node) && isDecoratorMemberExpression(node.callee)) &&\n !isParenthesizedExpression(node)\n );\n }\n\n return expandedParens.get(node.type)?.(\n node,\n parent,\n tokenContext,\n getRawIdentifier,\n );\n}\n\nfunction isDecoratorMemberExpression(node: t.Node): boolean {\n switch (node.type) {\n case \"Identifier\":\n return true;\n case \"MemberExpression\":\n return (\n !node.computed &&\n node.property.type === \"Identifier\" &&\n isDecoratorMemberExpression(node.object)\n );\n default:\n return false;\n }\n}\n\nexport function isLastChild(parent: t.Node, child: t.Node) {\n const visitorKeys = VISITOR_KEYS[parent.type];\n for (let i = visitorKeys.length - 1; i >= 0; i--) {\n const val = (parent as any)[visitorKeys[i]] as t.Node | t.Node[] | null;\n if (val === child) {\n return true;\n } else if (Array.isArray(val)) {\n let j = val.length - 1;\n while (j >= 0 && val[j] === null) j--;\n return j >= 0 && val[j] === child;\n } else if (val) {\n return false;\n }\n }\n return false;\n}\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,EAAA,GAAAF,OAAA;AASsB;EARpBG,kBAAkB;EAClBC,YAAY;EAC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