@fluentic/style 0.1.0-beta.11 → 0.1.0-beta.12
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/CHANGELOG.md +6 -0
- package/compiler/compiler/compiler.ts +8 -4
- package/compiler/utils/file_resolver.ts +2 -1
- package/dist/compiler/index.mjs +1 -1
- package/dist/{compiler-C3CEGGtI.mjs → compiler-mCfMhtX4.mjs} +2 -3
- package/dist/{compiler-C3CEGGtI.mjs.map → compiler-mCfMhtX4.mjs.map} +1 -1
- package/dist/{loader-_-VjzlrX.mjs → loader-DUS2i9Zb.mjs} +3 -3
- package/dist/loader-DUS2i9Zb.mjs.map +1 -0
- package/dist/{misc-B76PUnWe.mjs → misc-vGtt_SX7.mjs} +2 -2
- package/dist/{misc-B76PUnWe.mjs.map → misc-vGtt_SX7.mjs.map} +1 -1
- package/dist/plugin/farm/index.mjs +3 -3
- package/dist/plugin/nextjs/index.mjs +4 -4
- package/dist/plugin/nextjs/index.mjs.map +1 -1
- package/dist/plugin/nextjs/loader.mjs +4 -4
- package/dist/plugin/parcel/index.cjs +1 -1
- package/dist/plugin/parcel/index.mjs +2 -2
- package/dist/plugin/parcel/optimizer.cjs +1 -1
- package/dist/plugin/parcel/optimizer.mjs +2 -2
- package/dist/plugin/parcel/resolver.cjs +1 -1
- package/dist/plugin/parcel/resolver.mjs +2 -2
- package/dist/plugin/parcel/runtime.cjs +1 -1
- package/dist/plugin/parcel/runtime.mjs +1 -1
- package/dist/plugin/parcel/transformer.cjs +1 -1
- package/dist/plugin/parcel/transformer.mjs +2 -2
- package/dist/plugin/rspack/index.mjs +2 -2
- package/dist/plugin/vite/index.mjs +3 -3
- package/dist/plugin/webpack/index.mjs +2 -2
- package/dist/plugin/webpack/loader.mjs +2 -2
- package/dist/{registry-w8ET5R7v.mjs → registry-BJqMbdMu.mjs} +2 -2
- package/dist/{registry-w8ET5R7v.mjs.map → registry-BJqMbdMu.mjs.map} +1 -1
- package/dist/{shared-PK52rW6T.cjs → shared-BRUPuZdH.cjs} +2 -3
- package/dist/{shared-PK52rW6T.cjs.map → shared-BRUPuZdH.cjs.map} +1 -1
- package/dist/{shared-C_cYxNzz.mjs → shared-DDzZd0tM.mjs} +4 -4
- package/dist/{shared-C_cYxNzz.mjs.map → shared-DDzZd0tM.mjs.map} +1 -1
- package/dist/{sidecar-BhvmXYsD.mjs → sidecar-BTT0veLU.mjs} +3 -3
- package/dist/{sidecar-BhvmXYsD.mjs.map → sidecar-BTT0veLU.mjs.map} +1 -1
- package/dist/types/adapter/preact.d.ts +1 -0
- package/dist/types/adapter/react.d.ts +1 -0
- package/dist/types/adapter/solid.d.ts +1 -0
- package/dist/types/atomic/atRule/counterStyle.d.ts +10 -0
- package/dist/types/atomic/atRule/fontFace.d.ts +10 -0
- package/dist/types/atomic/atRule/fontPaletteValues.d.ts +10 -0
- package/dist/types/atomic/atRule/fontSrc.d.ts +1 -0
- package/dist/types/atomic/atRule/keyframes.d.ts +13 -0
- package/dist/types/atomic/atRule/positionTry.d.ts +13 -0
- package/dist/types/atomic/atRule/property.d.ts +13 -0
- package/dist/types/atomic/atRule/utils.d.ts +5 -0
- package/dist/types/atomic/className.d.ts +11 -0
- package/dist/types/atomic/debug/className/className.d.ts +9 -0
- package/dist/types/atomic/debug/className/index.d.ts +1 -0
- package/dist/types/atomic/debug/property/data.d.ts +3 -0
- package/dist/types/atomic/debug/property/index.d.ts +1 -0
- package/dist/types/atomic/debug/property/property.d.ts +5 -0
- package/dist/types/atomic/debug/selector.d.ts +2 -0
- package/dist/types/atomic/debug/value.d.ts +5 -0
- package/dist/types/atomic/element.d.ts +5 -0
- package/dist/types/atomic/layer/index.d.ts +3 -0
- package/dist/types/atomic/layer/layer.d.ts +12 -0
- package/dist/types/atomic/layer/types.d.ts +30 -0
- package/dist/types/atomic/layer/utils.d.ts +4 -0
- package/dist/types/atomic/property/index.d.ts +2 -0
- package/dist/types/atomic/property/presets.d.ts +4 -0
- package/dist/types/atomic/property/property.d.ts +3 -0
- package/dist/types/atomic/property/type_maps.d.ts +31 -0
- package/dist/types/atomic/property/types.d.ts +4 -0
- package/dist/types/atomic/rule.d.ts +5 -0
- package/dist/types/atomic/scope.d.ts +3 -0
- package/dist/types/atomic/theme.d.ts +7 -0
- package/dist/types/atomic/token.d.ts +7 -0
- package/dist/types/atomic/utils/cssIdent.d.ts +2 -0
- package/dist/types/atomic/utils/cssVar.d.ts +3 -0
- package/dist/types/atomic/utils/debug.d.ts +4 -0
- package/dist/types/atomic/utils/format.d.ts +5 -0
- package/dist/types/atomic/utils/hash.d.ts +1 -0
- package/dist/types/atomic/utils/selector.d.ts +6 -0
- package/dist/types/atomic/utils/types.d.ts +7 -0
- package/dist/types/atomic/value/index.d.ts +2 -0
- package/dist/types/atomic/value/unitless.d.ts +1 -0
- package/dist/types/atomic/value/value.d.ts +2 -0
- package/dist/types/atomic/var.d.ts +4 -0
- package/dist/types/builder/classname/class_name_builder.d.ts +4 -0
- package/dist/types/builder/classname/fns.d.ts +48 -0
- package/dist/types/builder/classname/index.d.ts +3 -0
- package/dist/types/builder/classname/types.d.ts +18 -0
- package/dist/types/builder/data/check_selector.d.ts +2 -0
- package/dist/types/builder/data/const.d.ts +26 -0
- package/dist/types/builder/data/create.d.ts +13 -0
- package/dist/types/builder/data/data.d.ts +44 -0
- package/dist/types/builder/data/debug.d.ts +38 -0
- package/dist/types/builder/data/index.d.ts +8 -0
- package/dist/types/builder/data/is.d.ts +16 -0
- package/dist/types/builder/data/merge/index.d.ts +2 -0
- package/dist/types/builder/data/merge/scope.d.ts +7 -0
- package/dist/types/builder/data/merge/style.d.ts +6 -0
- package/dist/types/builder/data/merge/utils.d.ts +5 -0
- package/dist/types/builder/data/selector.d.ts +8 -0
- package/dist/types/builder/data/state.d.ts +85 -0
- package/dist/types/builder/extract/index.d.ts +7 -0
- package/dist/types/builder/extract/scope.d.ts +14 -0
- package/dist/types/builder/extract/sheet.d.ts +10 -0
- package/dist/types/builder/extract/slot.d.ts +9 -0
- package/dist/types/builder/extract/style.d.ts +11 -0
- package/dist/types/builder/extract/theme.d.ts +2 -0
- package/dist/types/builder/extract/token.d.ts +7 -0
- package/dist/types/builder/extract/utils.d.ts +28 -0
- package/dist/types/builder/extract/withTokens.d.ts +10 -0
- package/dist/types/builder/index.d.ts +2 -0
- package/dist/types/builder/selector_override.d.ts +5 -0
- package/dist/types/builder/selector_override_core.d.ts +6 -0
- package/dist/types/builder/style_builder.d.ts +15 -0
- package/dist/types/builder/style_data.d.ts +8 -0
- package/dist/types/builder/style_fns.d.ts +14 -0
- package/dist/types/builder/token/data.d.ts +10 -0
- package/dist/types/builder/token/name.d.ts +3 -0
- package/dist/types/builder/token/symbols.d.ts +4 -0
- package/dist/types/builder/types/alias.d.ts +59 -0
- package/dist/types/builder/types/fns.d.ts +115 -0
- package/dist/types/builder/types/index.d.ts +1 -0
- package/dist/types/builder/types/types.d.ts +22 -0
- package/dist/types/builder/utils.d.ts +9 -0
- package/dist/types/compiler/compiler/cache.d.ts +24 -0
- package/dist/types/compiler/compiler/compiler.d.ts +28 -0
- package/dist/types/compiler/compiler/constants.d.ts +6 -0
- package/dist/types/compiler/compiler/index.d.ts +4 -0
- package/dist/types/compiler/compiler/types.d.ts +53 -0
- package/dist/types/compiler/cssProp.d.ts +8 -0
- package/dist/types/compiler/extract/collector.d.ts +8 -0
- package/dist/types/compiler/extract/extract.d.ts +6 -0
- package/dist/types/compiler/extract/index.d.ts +3 -0
- package/dist/types/compiler/extract/types.d.ts +22 -0
- package/dist/types/compiler/index.d.ts +3 -0
- package/dist/types/compiler/transform/cssProp/index.d.ts +1 -0
- package/dist/types/compiler/transform/cssProp/plugin.d.ts +13 -0
- package/dist/types/compiler/transform/debug/index.d.ts +2 -0
- package/dist/types/compiler/transform/debug/plugin.d.ts +34 -0
- package/dist/types/compiler/transform/debug/transform.d.ts +7 -0
- package/dist/types/compiler/transform/debug/utils/debug_data.d.ts +11 -0
- package/dist/types/compiler/transform/debug/utils/source_url.d.ts +2 -0
- package/dist/types/compiler/transform/evaluator/evaluator.d.ts +41 -0
- package/dist/types/compiler/transform/evaluator/index.d.ts +3 -0
- package/dist/types/compiler/transform/evaluator/tracer.d.ts +8 -0
- package/dist/types/compiler/transform/evaluator/types.d.ts +21 -0
- package/dist/types/compiler/transform/extract/chain/chain.d.ts +18 -0
- package/dist/types/compiler/transform/extract/chain/extract_chain.d.ts +19 -0
- package/dist/types/compiler/transform/extract/chain/index.d.ts +3 -0
- package/dist/types/compiler/transform/extract/chain/types.d.ts +32 -0
- package/dist/types/compiler/transform/extract/index.d.ts +2 -0
- package/dist/types/compiler/transform/extract/plugin.d.ts +20 -0
- package/dist/types/compiler/transform/extract/transform.d.ts +10 -0
- package/dist/types/compiler/transform/extract/utils/imports.d.ts +3 -0
- package/dist/types/compiler/transform/extract/utils/replacement.d.ts +9 -0
- package/dist/types/compiler/transform/extract/utils/slot.d.ts +4 -0
- package/dist/types/compiler/transform/extract/utils/state.d.ts +34 -0
- package/dist/types/compiler/transform/extract/utils/theme.d.ts +9 -0
- package/dist/types/compiler/transform/extract/utils/token.d.ts +1 -0
- package/dist/types/compiler/transform/index.d.ts +5 -0
- package/dist/types/compiler/transform/syntax/index.d.ts +5 -0
- package/dist/types/compiler/transform/syntax/isStaticStyleValue.d.ts +2 -0
- package/dist/types/compiler/transform/syntax/isStyleChainCall.d.ts +2 -0
- package/dist/types/compiler/transform/syntax/static_ids.d.ts +16 -0
- package/dist/types/compiler/transform/syntax/types.d.ts +4 -0
- package/dist/types/compiler/transform/syntax/utils.d.ts +5 -0
- package/dist/types/compiler/transform/utils/babel.d.ts +21 -0
- package/dist/types/compiler/transform/utils/import.d.ts +2 -0
- package/dist/types/compiler/transform/utils/path.d.ts +1 -0
- package/dist/types/compiler/transform/utils/selector.d.ts +18 -0
- package/dist/types/compiler/utils/constants.d.ts +68 -0
- package/dist/types/compiler/utils/file_resolver.d.ts +12 -0
- package/dist/types/compiler/utils/import_source.d.ts +28 -0
- package/dist/types/compiler/utils/imports.d.ts +6 -0
- package/dist/types/compiler/utils/path.d.ts +4 -0
- package/dist/types/compiler/utils/sourcemap.d.ts +36 -0
- package/dist/types/config/build.d.ts +20 -0
- package/dist/types/config/config/check.d.ts +11 -0
- package/dist/types/config/config/css.d.ts +23 -0
- package/dist/types/config/config/css_extra.d.ts +13 -0
- package/dist/types/config/config/debug.d.ts +14 -0
- package/dist/types/config/config/dev.d.ts +36 -0
- package/dist/types/config/config/runtime.d.ts +10 -0
- package/dist/types/config/configure.d.ts +12 -0
- package/dist/types/config/constants.d.ts +1 -0
- package/dist/types/config/index.d.ts +2 -0
- package/dist/types/config/types.d.ts +47 -0
- package/dist/types/config/utils.d.ts +2 -0
- package/dist/types/css/counterStyle.d.ts +4 -0
- package/dist/types/css/fontFace.d.ts +5 -0
- package/dist/types/css/fontPaletteValues.d.ts +4 -0
- package/dist/types/css/index.d.ts +9 -0
- package/dist/types/css/keyframes.d.ts +4 -0
- package/dist/types/css/positionTry.d.ts +4 -0
- package/dist/types/css/property.d.ts +7 -0
- package/dist/types/css/sheet.d.ts +7 -0
- package/dist/types/css/styleTarget.d.ts +9 -0
- package/dist/types/css/utils.d.ts +19 -0
- package/dist/types/dev/config.d.ts +6 -0
- package/dist/types/dev/fns.d.ts +14 -0
- package/dist/types/dev/index.d.ts +2 -0
- package/dist/types/dev/trace.d.ts +8 -0
- package/dist/types/dev/utils.d.ts +5 -0
- package/dist/types/dialect/extracted/index.d.ts +1 -0
- package/dist/types/dialect/index.d.ts +1 -0
- package/dist/types/dialect/namedTokens.d.ts +9 -0
- package/dist/types/entry/dev/adapter/preact.d.ts +1 -0
- package/dist/types/entry/dev/adapter/react.d.ts +1 -0
- package/dist/types/entry/dev/adapter/solid.d.ts +1 -0
- package/dist/types/entry/dev/config.d.ts +2 -0
- package/dist/types/entry/dev/css.d.ts +2 -0
- package/dist/types/entry/dev/index.d.ts +3 -0
- package/dist/types/entry/dev/jsx_dev_runtime.d.ts +3 -0
- package/dist/types/entry/dev/sheet.d.ts +1 -0
- package/dist/types/entry/prod/adapter/preact.d.ts +1 -0
- package/dist/types/entry/prod/adapter/react.d.ts +1 -0
- package/dist/types/entry/prod/adapter/solid.d.ts +1 -0
- package/dist/types/entry/prod/config.d.ts +2 -0
- package/dist/types/entry/prod/config_debug.d.ts +2 -0
- package/dist/types/entry/prod/css.d.ts +2 -0
- package/dist/types/entry/prod/extract.d.ts +1 -0
- package/dist/types/entry/prod/index.d.ts +2 -0
- package/dist/types/entry/prod/jsx_runtime.d.ts +2 -0
- package/dist/types/entry/prod/runtime.d.ts +8 -0
- package/dist/types/entry/rsc_dev/adapter/preact.d.ts +1 -0
- package/dist/types/entry/rsc_dev/adapter/react.d.ts +1 -0
- package/dist/types/entry/rsc_dev/adapter/solid.d.ts +1 -0
- package/dist/types/entry/rsc_dev/config.d.ts +2 -0
- package/dist/types/entry/rsc_dev/css.d.ts +2 -0
- package/dist/types/entry/rsc_dev/index.d.ts +2 -0
- package/dist/types/entry/rsc_dev/server.d.ts +10 -0
- package/dist/types/entry/rsc_prod/adapter/preact.d.ts +1 -0
- package/dist/types/entry/rsc_prod/adapter/react.d.ts +1 -0
- package/dist/types/entry/rsc_prod/adapter/solid.d.ts +1 -0
- package/dist/types/entry/rsc_prod/config.d.ts +2 -0
- package/dist/types/entry/rsc_prod/config_debug.d.ts +2 -0
- package/dist/types/entry/rsc_prod/css.d.ts +2 -0
- package/dist/types/entry/rsc_prod/index.d.ts +2 -0
- package/dist/types/entry/rsc_prod/jsx_runtime.d.ts +2 -0
- package/dist/types/entry/rsc_prod/runtime.d.ts +4 -0
- package/dist/types/entry/rsc_prod/server.d.ts +6 -0
- package/dist/types/entry/shared/config.d.ts +1 -0
- package/dist/types/entry/shared/config_debug.d.ts +1 -0
- package/dist/types/entry/shared/config_dev.d.ts +1 -0
- package/dist/types/entry/shared/dev.d.ts +1 -0
- package/dist/types/entry/shared/prod.d.ts +1 -0
- package/dist/types/entry/shared/utils.d.ts +2 -0
- package/dist/types/index.d.ts +9 -0
- package/dist/types/jsx/extracted/jsx_runtime.d.ts +7 -0
- package/dist/types/jsx/rsc/jsx_runtime.d.ts +7 -0
- package/dist/types/jsx/rsc_extracted/jsx_runtime.d.ts +2 -0
- package/dist/types/jsx/runtime/jsx_dev_runtime.d.ts +6 -0
- package/dist/types/jsx/runtime/jsx_runtime.d.ts +7 -0
- package/dist/types/jsx/types/index.d.ts +1 -0
- package/dist/types/jsx/types/preact.d.ts +12 -0
- package/dist/types/jsx/types/react.d.ts +10 -0
- package/dist/types/jsx/types/solid.d.ts +12 -0
- package/dist/types/jsx/utils.d.ts +19 -0
- package/dist/types/plugin/bundler/farm/index.d.ts +1 -0
- package/dist/types/plugin/bundler/farm/plugin.d.ts +91 -0
- package/dist/types/plugin/bundler/parcel/index.d.ts +1 -0
- package/dist/types/plugin/bundler/parcel/optimizer.d.ts +3 -0
- package/dist/types/plugin/bundler/parcel/plugin.d.ts +6 -0
- package/dist/types/plugin/bundler/parcel/resolver.d.ts +3 -0
- package/dist/types/plugin/bundler/parcel/runtime.d.ts +3 -0
- package/dist/types/plugin/bundler/parcel/shared.d.ts +37 -0
- package/dist/types/plugin/bundler/parcel/transformer.d.ts +3 -0
- package/dist/types/plugin/bundler/rspack/index.d.ts +1 -0
- package/dist/types/plugin/bundler/rspack/plugin.d.ts +7 -0
- package/dist/types/plugin/bundler/vite/index.d.ts +1 -0
- package/dist/types/plugin/bundler/vite/plugin.d.ts +6 -0
- package/dist/types/plugin/bundler/vite/state.d.ts +55 -0
- package/dist/types/plugin/bundler/webpack/index.d.ts +1 -0
- package/dist/types/plugin/bundler/webpack/loader.d.ts +2 -0
- package/dist/types/plugin/bundler/webpack/plugin.d.ts +11 -0
- package/dist/types/plugin/bundler/webpack/shared/loader.d.ts +31 -0
- package/dist/types/plugin/bundler/webpack/shared/registry.d.ts +4 -0
- package/dist/types/plugin/bundler/webpack/utils.d.ts +18 -0
- package/dist/types/plugin/nextjs/constants.d.ts +3 -0
- package/dist/types/plugin/nextjs/html.d.ts +1 -0
- package/dist/types/plugin/nextjs/index.d.ts +2 -0
- package/dist/types/plugin/nextjs/loader.d.ts +3 -0
- package/dist/types/plugin/nextjs/plugin.d.ts +5 -0
- package/dist/types/plugin/nextjs/types.d.ts +21 -0
- package/dist/types/plugin/nextjs/utils.d.ts +59 -0
- package/dist/types/plugin/utils/cache/css_cache.d.ts +34 -0
- package/dist/types/plugin/utils/cache/file.d.ts +4 -0
- package/dist/types/plugin/utils/cache/index.d.ts +2 -0
- package/dist/types/plugin/utils/compiler.d.ts +40 -0
- package/dist/types/plugin/utils/constants.d.ts +4 -0
- package/dist/types/plugin/utils/cssMarker.d.ts +4 -0
- package/dist/types/plugin/utils/cssOutput.d.ts +10 -0
- package/dist/types/plugin/utils/filter.d.ts +14 -0
- package/dist/types/plugin/utils/imports.d.ts +3 -0
- package/dist/types/plugin/utils/index.d.ts +10 -0
- package/dist/types/plugin/utils/injection.d.ts +3 -0
- package/dist/types/plugin/utils/misc.d.ts +1 -0
- package/dist/types/plugin/utils/runtimeEntry.d.ts +8 -0
- package/dist/types/plugin/utils/sidecar/index.d.ts +1 -0
- package/dist/types/plugin/utils/sidecar/server.d.ts +19 -0
- package/dist/types/plugin/utils/sidecar/sidecar.d.ts +17 -0
- package/dist/types/plugin/utils/sidecar/utils.d.ts +33 -0
- package/dist/types/plugin/utils/sourcemap.d.ts +9 -0
- package/dist/types/plugin/utils/virtual.d.ts +12 -0
- package/dist/types/presets/tailwind/classname/index.d.ts +2 -0
- package/dist/types/presets/tailwind/classname/transform.d.ts +8 -0
- package/dist/types/presets/tailwind/classname/types.d.ts +27 -0
- package/dist/types/presets/tailwind/index.d.ts +5 -0
- package/dist/types/presets/tailwind/selectors.d.ts +68 -0
- package/dist/types/presets/tailwind/style/index.d.ts +2 -0
- package/dist/types/presets/tailwind/style/transform.d.ts +8 -0
- package/dist/types/presets/tailwind/style/types.d.ts +149 -0
- package/dist/types/presets/tailwind/theme.d.ts +477 -0
- package/dist/types/presets/tailwind/types.d.ts +53 -0
- package/dist/types/runtime/adapter/utils.d.ts +12 -0
- package/dist/types/runtime/core/cache/combine.d.ts +6 -0
- package/dist/types/runtime/core/cache/combineRuntime.d.ts +1 -0
- package/dist/types/runtime/core/cache/item.d.ts +15 -0
- package/dist/types/runtime/core/cache/itemWithResolver.d.ts +4 -0
- package/dist/types/runtime/core/cache/pool.d.ts +16 -0
- package/dist/types/runtime/core/cache/prop.d.ts +19 -0
- package/dist/types/runtime/core/cache/propCache.d.ts +12 -0
- package/dist/types/runtime/core/cache/resolvedItem.d.ts +5 -0
- package/dist/types/runtime/core/cache/result.d.ts +9 -0
- package/dist/types/runtime/core/cache/stateItem.d.ts +8 -0
- package/dist/types/runtime/core/cache/token.d.ts +2 -0
- package/dist/types/runtime/core/cache/tokenValues.d.ts +26 -0
- package/dist/types/runtime/core/cache/utils/tree.d.ts +12 -0
- package/dist/types/runtime/core/cache/utils/walk.d.ts +1 -0
- package/dist/types/runtime/core/className.d.ts +18 -0
- package/dist/types/runtime/core/combinedStyle.d.ts +20 -0
- package/dist/types/runtime/core/createTransformElement.d.ts +4 -0
- package/dist/types/runtime/core/elementMarker.d.ts +12 -0
- package/dist/types/runtime/core/elementMarkerData.d.ts +7 -0
- package/dist/types/runtime/core/getClassName.d.ts +4 -0
- package/dist/types/runtime/core/getSheetRules.d.ts +3 -0
- package/dist/types/runtime/core/getToken.d.ts +3 -0
- package/dist/types/runtime/core/index.d.ts +5 -0
- package/dist/types/runtime/core/jsx.d.ts +1 -0
- package/dist/types/runtime/core/resolveClassNameRuntime.d.ts +8 -0
- package/dist/types/runtime/env.d.ts +2 -0
- package/dist/types/runtime/extract/combineStyle.d.ts +27 -0
- package/dist/types/runtime/extract/getClassName.d.ts +10 -0
- package/dist/types/runtime/extract/index.d.ts +6 -0
- package/dist/types/runtime/extract/jsx.d.ts +10 -0
- package/dist/types/runtime/extract/token.d.ts +5 -0
- package/dist/types/runtime/extract/tokenResolver.d.ts +2 -0
- package/dist/types/runtime/rsc/constants.d.ts +4 -0
- package/dist/types/runtime/rsc/dev.d.ts +6 -0
- package/dist/types/runtime/rsc/getClassName.d.ts +24 -0
- package/dist/types/runtime/rsc/index.d.ts +1 -0
- package/dist/types/runtime/rsc/jsx.d.ts +1 -0
- package/dist/types/runtime/rsc/observer.d.ts +5 -0
- package/dist/types/runtime/rsc/styleStore.d.ts +5 -0
- package/dist/types/runtime/sheet/element.d.ts +2 -0
- package/dist/types/runtime/sheet/global.d.ts +3 -0
- package/dist/types/runtime/sheet/index.d.ts +3 -0
- package/dist/types/runtime/sheet/insert.d.ts +5 -0
- package/dist/types/runtime/sheet/rule.d.ts +8 -0
- package/dist/types/runtime/sheet/rules.d.ts +10 -0
- package/dist/types/runtime/sheet/theme.d.ts +5 -0
- package/dist/types/runtime/style/index.d.ts +3 -0
- package/dist/types/runtime/style/scope.d.ts +4 -0
- package/dist/types/runtime/style/style.d.ts +27 -0
- package/dist/types/runtime/style/token.d.ts +1 -0
- package/dist/types/runtime/types.d.ts +28 -0
- package/dist/types/selector/assert.d.ts +13 -0
- package/dist/types/selector/index.d.ts +5 -0
- package/dist/types/selector/presets/default.d.ts +108 -0
- package/dist/types/selector/presets/index.d.ts +3 -0
- package/dist/types/selector/presets/minimal.d.ts +46 -0
- package/dist/types/selector/presets/selectors.d.ts +62 -0
- package/dist/types/selector/selector.d.ts +12 -0
- package/dist/types/selector/types.d.ts +12 -0
- package/dist/types/selector/validate.d.ts +5 -0
- package/dist/types/sheet/dev/dev_layer.d.ts +4 -0
- package/dist/types/sheet/dev/dev_sort.d.ts +2 -0
- package/dist/types/sheet/dev/index.d.ts +5 -0
- package/dist/types/sheet/dev/utils.d.ts +26 -0
- package/dist/types/sheet/index.d.ts +4 -0
- package/dist/types/sheet/prod.d.ts +2 -0
- package/dist/types/sheet/sheet.d.ts +2 -0
- package/dist/types/sheet/sourcemap.d.ts +11 -0
- package/dist/types/sheet/types.d.ts +29 -0
- package/dist/types/sheet/utils/dom.d.ts +5 -0
- package/dist/types/sheet/utils/index.d.ts +4 -0
- package/dist/types/sheet/utils/layer.d.ts +10 -0
- package/dist/types/sheet/utils/noop.d.ts +2 -0
- package/dist/types/sheet/utils/rule.d.ts +3 -0
- package/dist/types/sheet/utils/sourcemap.d.ts +12 -0
- package/dist/types/style/classname.d.ts +15 -0
- package/dist/types/style/important.d.ts +8 -0
- package/dist/types/style/index.d.ts +12 -0
- package/dist/types/style/keyframes.d.ts +10 -0
- package/dist/types/style/style.d.ts +426 -0
- package/dist/types/style/theme.d.ts +5 -0
- package/dist/types/style/token.d.ts +29 -0
- package/dist/types/style/tokens.d.ts +10 -0
- package/dist/types/style/transform.d.ts +21 -0
- package/dist/types/style/types.d.ts +22 -0
- package/dist/types/style/utils/expose.d.ts +8 -0
- package/dist/types/style/utils/index.d.ts +1 -0
- package/dist/types/style/value.d.ts +12 -0
- package/dist/types/style/valueRef.d.ts +13 -0
- package/dist/types/style/weight.d.ts +9 -0
- package/dist/types/utils/global.d.ts +4 -0
- package/dist/types/utils/hash.d.ts +3 -0
- package/dist/types/utils/id.d.ts +12 -0
- package/dist/types/utils/object.d.ts +10 -0
- package/dist/types/utils/symbol.d.ts +1 -0
- package/dist/types/utils/trace.d.ts +21 -0
- package/dist/types/utils/type.d.ts +11 -0
- package/dist/{utils-DND33M6y.mjs → utils-D4UympcZ.mjs} +3 -3
- package/dist/{utils-DND33M6y.mjs.map → utils-D4UympcZ.mjs.map} +1 -1
- package/dist/{utils-NdisireF.mjs → utils-D75HPJWv.mjs} +4 -4
- package/dist/{utils-NdisireF.mjs.map → utils-D75HPJWv.mjs.map} +1 -1
- package/dist/{webpack-D7QO0bKN.mjs → webpack-_BpgAUEy.mjs} +5 -5
- package/dist/{webpack-D7QO0bKN.mjs.map → webpack-_BpgAUEy.mjs.map} +1 -1
- package/jsx/types/solid.ts +8 -25
- package/package.json +76 -72
- package/plugin/bundler/webpack/shared/loader.ts +4 -0
- package/plugin/nextjs/plugin.ts +7 -8
- package/dist/loader-_-VjzlrX.mjs.map +0 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { SourcemapLocationMode, StylePriorityMode } from "../config/types.js";
|
|
2
|
+
export declare const DefaultUtilsName = "StyleDevUtils";
|
|
3
|
+
export declare const StorageKeys: {
|
|
4
|
+
priorityMode: string;
|
|
5
|
+
sourcemapMode: string;
|
|
6
|
+
elementMarker: string;
|
|
7
|
+
startupMessage: string;
|
|
8
|
+
};
|
|
9
|
+
export declare function createDevUtilsObject<T extends Record<string, unknown>>(object: T): T;
|
|
10
|
+
export declare function getDevUtilsTarget(): Record<string, unknown>;
|
|
11
|
+
export declare function parsePriorityMode(value: string | null): StylePriorityMode | null;
|
|
12
|
+
export declare function parseSourcemapTrace(value: string | null): SourcemapLocationMode | null;
|
|
13
|
+
export declare function parseElementMarker(value: string | null): boolean | null;
|
|
14
|
+
export declare function getTraceStartMessage(): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { createNamedToken as createExtractedNamedToken, createNamedTokens as createExtractedNamedTokens, getNamedToken as getExtractedNamedToken, } from "../namedTokens.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./namedTokens.js";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type StyleToken } from "../style/token.js";
|
|
2
|
+
export type NamedToken<Value = unknown> = StyleToken<Value>;
|
|
3
|
+
export type NamedTokenRecord<T extends object> = {
|
|
4
|
+
[P in keyof T]: T[P] extends object ? NamedTokenRecord<T[P]> : NamedToken<T[P]>;
|
|
5
|
+
};
|
|
6
|
+
export declare function createNamedToken<T>(id: string, value?: T): NamedToken<T>;
|
|
7
|
+
export declare function createNamedTokens<T extends object>(namespace: string, values?: T): NamedTokenRecord<T>;
|
|
8
|
+
export declare function getNamedToken<T = unknown>(tokens: unknown, ref: string): StyleToken<T> | undefined;
|
|
9
|
+
export declare function createNamedTokenId(id: string): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const mergeJsxProps: (parts: readonly unknown[]) => import("../../../runtime/adapter/utils.js").JsxCssPropInput;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const mergeJsxProps: (parts: readonly unknown[]) => import("../../../runtime/adapter/utils.js").JsxCssPropInput;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const mergeJsxProps: (parts: readonly unknown[]) => import("../../../runtime/adapter/utils.js").JsxCssPropInput;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const mergeJsxProps: (parts: readonly unknown[]) => import("../../../runtime/adapter/utils.js").JsxCssPropInput;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const mergeJsxProps: (parts: readonly unknown[]) => import("../../../runtime/adapter/utils.js").JsxCssPropInput;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const mergeJsxProps: (parts: readonly unknown[]) => import("../../../runtime/adapter/utils.js").JsxCssPropInput;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../../builder/extract/index.js";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import "./config.js";
|
|
2
|
+
export type { CombinedStyle } from "../../runtime/core/index.js";
|
|
3
|
+
export { type CombinedStyleFor, combineStyle } from "../../runtime/extract/combineStyle.js";
|
|
4
|
+
export { type ClassNameProps, type ClassNameResult, getClassName, mergeClassName, mergeStyle, } from "../../runtime/extract/getClassName.js";
|
|
5
|
+
export { getToken } from "../../runtime/extract/token.js";
|
|
6
|
+
export { bindScope, combineScope } from "../../runtime/style/scope.js";
|
|
7
|
+
export type { StyleProp, StyleTheme, StyleTokenInput, TokenTheme } from "../../runtime/types.js";
|
|
8
|
+
export type { CSS, CSSProperties, CSSPropertyName, CSSValueExclude } from "../../atomic/utils/types.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const mergeJsxProps: (parts: readonly unknown[]) => import("../../../runtime/adapter/utils.js").JsxCssPropInput;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const mergeJsxProps: (parts: readonly unknown[]) => import("../../../runtime/adapter/utils.js").JsxCssPropInput;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const mergeJsxProps: (parts: readonly unknown[]) => import("../../../runtime/adapter/utils.js").JsxCssPropInput;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from "../../config/index.js";
|
|
2
|
+
export { type ClassNameProps, type ClassNameResult } from "../../runtime/core/index.js";
|
|
3
|
+
export type { CombinedStyle } from "../../runtime/core/index.js";
|
|
4
|
+
export { getClassName } from "../../runtime/rsc/getClassName.js";
|
|
5
|
+
export { bindScope, type CombinedStyleFor, combineScope, combineStyle, getToken } from "../../runtime/style/index.js";
|
|
6
|
+
export type { StyleProp, StyleTheme, StyleTokenInput, TokenTheme } from "../../runtime/types.js";
|
|
7
|
+
export * from "../../style/index.js";
|
|
8
|
+
export { type } from "../../utils/type.js";
|
|
9
|
+
export { createElement } from "../../jsx/rsc/jsx_runtime.js";
|
|
10
|
+
export * from "../../jsx/types/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { mergeJsxProps } from "../../prod/adapter/preact.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { mergeJsxProps } from "../../prod/adapter/react.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { mergeJsxProps } from "../../prod/adapter/solid.js";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import "./config.js";
|
|
2
|
+
export { type ClassNameProps, type ClassNameResult, getClassName } from "../../runtime/extract/index.js";
|
|
3
|
+
export { bindScope, type CombinedStyle, type CombinedStyleFor, combineScope, combineStyle, getToken, } from "../../runtime/extract/index.js";
|
|
4
|
+
export type { StyleProp, StyleTheme, StyleTokenInput, TokenTheme } from "../../runtime/types.js";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from "../../builder/extract/index.js";
|
|
2
|
+
export { type ClassNameProps, type ClassNameResult, getClassName } from "../../runtime/extract/index.js";
|
|
3
|
+
export { bindScope, type CombinedStyle, type CombinedStyleFor, combineScope, combineStyle, getToken, } from "../../runtime/extract/index.js";
|
|
4
|
+
export type { StyleProp, StyleTheme, StyleTokenInput, TokenTheme } from "../../runtime/types.js";
|
|
5
|
+
export * from "../../style/index.js";
|
|
6
|
+
export { type } from "../../utils/type.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from "./config/index.js";
|
|
2
|
+
export * from "./style/index.js";
|
|
3
|
+
export { type } from "./utils/type.js";
|
|
4
|
+
export { type ClassNameProps, type ClassNameResult, type CombinedStyle, getClassName, getToken, transformElement, } from "./runtime/core/index.js";
|
|
5
|
+
export { bindScope, type CombinedStyleFor, combineScope, combineStyle, } from "./runtime/style/index.js";
|
|
6
|
+
export type { StyleProp, StyleTheme, StyleTokenInput, } from "./runtime/types.js";
|
|
7
|
+
export type { CSS, CSSProperties, CSSPropertyName, CSSValueExclude, } from "./atomic/utils/types.js";
|
|
8
|
+
export { createElement } from "./jsx/runtime/jsx_runtime.js";
|
|
9
|
+
export * from "./jsx/types/index.js";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { createElement as reactCreateElement } from 'react';
|
|
2
|
+
import * as react from 'react/jsx-runtime';
|
|
3
|
+
export type { JSX } from 'react/jsx-runtime';
|
|
4
|
+
export declare const createElement: typeof reactCreateElement;
|
|
5
|
+
export declare const Fragment: import("react").ExoticComponent<import("react").FragmentProps>;
|
|
6
|
+
export declare const jsx: typeof react.jsx;
|
|
7
|
+
export declare const jsxs: typeof react.jsx;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { createElement as reactCreateElement } from 'react';
|
|
2
|
+
import * as react from 'react/jsx-runtime';
|
|
3
|
+
export type { JSX } from 'react/jsx-runtime';
|
|
4
|
+
export declare const createElement: typeof reactCreateElement;
|
|
5
|
+
export declare const Fragment: import("react").ExoticComponent<import("react").FragmentProps>;
|
|
6
|
+
export declare const jsx: typeof react.jsx;
|
|
7
|
+
export declare const jsxs: typeof react.jsx;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { createElement as reactCreateElement } from 'react';
|
|
2
|
+
import * as react from 'react/jsx-dev-runtime';
|
|
3
|
+
export type { JSX } from 'react/jsx-dev-runtime';
|
|
4
|
+
export declare const createElement: typeof reactCreateElement;
|
|
5
|
+
export declare const Fragment: import("react").ExoticComponent<import("react").FragmentProps>;
|
|
6
|
+
export declare const jsxDEV: typeof react.jsxDEV;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { createElement as reactCreateElement } from 'react';
|
|
2
|
+
import * as react from 'react/jsx-runtime';
|
|
3
|
+
export type { JSX } from 'react/jsx-runtime';
|
|
4
|
+
export declare const createElement: typeof reactCreateElement;
|
|
5
|
+
export declare const Fragment: import("react").ExoticComponent<import("react").FragmentProps>;
|
|
6
|
+
export declare const jsx: typeof react.jsx;
|
|
7
|
+
export declare const jsxs: typeof react.jsx;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./react.js";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import 'preact';
|
|
2
|
+
declare module 'preact' {
|
|
3
|
+
namespace JSX {
|
|
4
|
+
interface FluenticRuntimeAttributes {
|
|
5
|
+
css?: import("../../runtime/types.js").StyleProp;
|
|
6
|
+
}
|
|
7
|
+
interface HTMLAttributes<RefType extends EventTarget = EventTarget> extends FluenticRuntimeAttributes {
|
|
8
|
+
}
|
|
9
|
+
interface SVGAttributes<Target extends EventTarget = SVGElement> extends FluenticRuntimeAttributes {
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { RuntimeStyleAttributes } from "../../runtime/types.js";
|
|
2
|
+
interface RuntimeAttributes extends RuntimeStyleAttributes {
|
|
3
|
+
}
|
|
4
|
+
declare module 'react' {
|
|
5
|
+
interface HTMLAttributes<T> extends RuntimeAttributes {
|
|
6
|
+
}
|
|
7
|
+
interface SVGAttributes<T> extends RuntimeAttributes {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import 'solid-js/jsx-runtime';
|
|
2
|
+
import type { StyleProp } from "../../runtime/types.js";
|
|
3
|
+
declare module 'solid-js/jsx-runtime' {
|
|
4
|
+
namespace JSX {
|
|
5
|
+
interface HTMLAttributes<T> {
|
|
6
|
+
css?: StyleProp;
|
|
7
|
+
}
|
|
8
|
+
interface CoreSVGAttributes<T> {
|
|
9
|
+
css?: StyleProp;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { createElement, ElementType, Fragment } from 'react';
|
|
2
|
+
import type { jsxDEV } from 'react/jsx-dev-runtime';
|
|
3
|
+
import type { jsx, jsxs } from 'react/jsx-runtime';
|
|
4
|
+
export type FnJsxDEV = typeof jsxDEV;
|
|
5
|
+
export type FnJsx = typeof jsx;
|
|
6
|
+
export type FnJsxs = typeof jsxs;
|
|
7
|
+
export type FnCreateElement = typeof createElement;
|
|
8
|
+
export type TransformElementArgs = {
|
|
9
|
+
type: ElementType;
|
|
10
|
+
props: unknown;
|
|
11
|
+
source?: unknown;
|
|
12
|
+
};
|
|
13
|
+
export type TransformElement = {
|
|
14
|
+
(args: TransformElementArgs): TransformElementArgs;
|
|
15
|
+
};
|
|
16
|
+
export declare function wrapCreateElement(createElement: FnCreateElement, transformElement: TransformElement): FnCreateElement;
|
|
17
|
+
export declare function wrapFragment(fragment: typeof Fragment): import("react").ExoticComponent<import("react").FragmentProps>;
|
|
18
|
+
export declare function createJsxDEV(fn: FnJsxDEV, transformElement: TransformElement): FnJsxDEV;
|
|
19
|
+
export declare function createJsx(fn: FnJsx, transformElement: TransformElement): FnJsx;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./plugin.js";
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { type PluginOptions } from "../../utils/index.js";
|
|
2
|
+
export type FarmPluginOptions = PluginOptions & {
|
|
3
|
+
dev?: boolean;
|
|
4
|
+
};
|
|
5
|
+
export { CssPropPresets } from "../../utils/index.js";
|
|
6
|
+
export type { CompilerCssPropOptions } from "../../utils/index.js";
|
|
7
|
+
export type { FarmPluginOptions as PluginOptions };
|
|
8
|
+
type FarmUserConfig = {
|
|
9
|
+
compilation?: {
|
|
10
|
+
define?: Record<string, unknown>;
|
|
11
|
+
[key: string]: unknown;
|
|
12
|
+
};
|
|
13
|
+
[key: string]: unknown;
|
|
14
|
+
};
|
|
15
|
+
type FarmResource = {
|
|
16
|
+
name: string;
|
|
17
|
+
bytes: number[];
|
|
18
|
+
emitted: boolean;
|
|
19
|
+
resourceType: string;
|
|
20
|
+
origin: {
|
|
21
|
+
type: 'ResourcePot' | 'Module';
|
|
22
|
+
value: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
type FarmResourcesMap = Record<string, FarmResource>;
|
|
26
|
+
export default plugin;
|
|
27
|
+
export declare function plugin(options?: FarmPluginOptions): {
|
|
28
|
+
name: string;
|
|
29
|
+
priority: number;
|
|
30
|
+
config(config: FarmUserConfig): Promise<{
|
|
31
|
+
compilation: {
|
|
32
|
+
define: {
|
|
33
|
+
[x: string]: unknown;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
}>;
|
|
37
|
+
buildStart: {
|
|
38
|
+
executor(): Promise<void>;
|
|
39
|
+
};
|
|
40
|
+
resolve: {
|
|
41
|
+
filters: {
|
|
42
|
+
sources: string[];
|
|
43
|
+
importers: string[];
|
|
44
|
+
};
|
|
45
|
+
executor(params: {
|
|
46
|
+
source: string;
|
|
47
|
+
}): {
|
|
48
|
+
resolvedPath: string;
|
|
49
|
+
sideEffects: boolean;
|
|
50
|
+
external: boolean;
|
|
51
|
+
meta: {};
|
|
52
|
+
} | null;
|
|
53
|
+
};
|
|
54
|
+
load: {
|
|
55
|
+
filters: {
|
|
56
|
+
resolvedPaths: string[];
|
|
57
|
+
};
|
|
58
|
+
executor(params: {
|
|
59
|
+
resolvedPath: string;
|
|
60
|
+
}): {
|
|
61
|
+
content: string;
|
|
62
|
+
moduleType: string;
|
|
63
|
+
} | null;
|
|
64
|
+
};
|
|
65
|
+
transform: {
|
|
66
|
+
filters: {
|
|
67
|
+
resolvedPaths: string[];
|
|
68
|
+
moduleTypes: string[];
|
|
69
|
+
};
|
|
70
|
+
executor(params: {
|
|
71
|
+
content: string;
|
|
72
|
+
resolvedPath: string;
|
|
73
|
+
query?: Array<[string, string]>;
|
|
74
|
+
sourceMap?: string;
|
|
75
|
+
}): Promise<{
|
|
76
|
+
content: string;
|
|
77
|
+
moduleType: string;
|
|
78
|
+
sourceMap: string | undefined;
|
|
79
|
+
} | null>;
|
|
80
|
+
};
|
|
81
|
+
finalizeResources: {
|
|
82
|
+
executor(param: {
|
|
83
|
+
resourcesMap: FarmResourcesMap;
|
|
84
|
+
}): Promise<FarmResourcesMap | undefined>;
|
|
85
|
+
};
|
|
86
|
+
updateModules: {
|
|
87
|
+
executor(param: {
|
|
88
|
+
paths?: Array<[string, number | string]>;
|
|
89
|
+
}): void;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./plugin.js";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { CssPropPresets } from "../../utils/index.js";
|
|
2
|
+
export type { CompilerCssPropOptions, PluginOptions } from "../../utils/index.js";
|
|
3
|
+
export { default as optimizer } from "./optimizer.js";
|
|
4
|
+
export { default as resolver } from "./resolver.js";
|
|
5
|
+
export { default as runtime } from "./runtime.js";
|
|
6
|
+
export { default as transformer } from "./transformer.js";
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Optimizer, Resolver, Runtime, Transformer } from '@parcel/plugin';
|
|
2
|
+
import type { BuildCssConfig } from "../../../config/build.js";
|
|
3
|
+
import { type FileCssCache, type PluginCompiler, type PluginCssOutputOptions, type PluginOptions } from "../../utils/index.js";
|
|
4
|
+
import { type SourcemapSidecar } from "../../utils/sidecar/index.js";
|
|
5
|
+
export declare const PARCEL_RUNTIME_FILE = "parcel-runtime.js";
|
|
6
|
+
export declare const PARCEL_VIRTUAL_RUNTIME_FILE = "parcel-virtual-runtime.js";
|
|
7
|
+
export declare const PARCEL_CSS_FILE = "parcel-style.css";
|
|
8
|
+
type ParcelPluginOptions = {
|
|
9
|
+
mode?: string;
|
|
10
|
+
projectRoot?: string;
|
|
11
|
+
packageManager?: {
|
|
12
|
+
resolve: (id: string, from: string, options?: Record<string, unknown> | null) => Promise<{
|
|
13
|
+
resolved: string;
|
|
14
|
+
}>;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export type ParcelState = PluginCompiler & {
|
|
18
|
+
entryDefines: Record<string, string>;
|
|
19
|
+
cssCache: FileCssCache;
|
|
20
|
+
cssConfig: BuildCssConfig;
|
|
21
|
+
cssConfigHash: string;
|
|
22
|
+
cssOutput: PluginCssOutputOptions | undefined;
|
|
23
|
+
sidecar: SourcemapSidecar | null;
|
|
24
|
+
};
|
|
25
|
+
export { Optimizer, Resolver, Runtime, Transformer };
|
|
26
|
+
export declare function getParcelState(options: ParcelPluginOptions, pluginOptions?: PluginOptions): ParcelState;
|
|
27
|
+
export declare function ensureParcelSidecarStarted(current: ParcelState): Promise<void>;
|
|
28
|
+
export declare function replaceParcelDefines(code: string, current: ParcelState): string;
|
|
29
|
+
export declare function writeParcelRuntimeFile(current: ParcelState, source: string): string;
|
|
30
|
+
export declare function writeParcelVirtualRuntimeFile(current: ParcelState, source: string): string;
|
|
31
|
+
export declare function writeParcelCssFile(current: ParcelState): string;
|
|
32
|
+
export declare function createParcelRuntimeModuleSource(current: ParcelState): string;
|
|
33
|
+
export declare function prependParcelRuntimeImport(code: string, current: ParcelState, sourceFilePath: string): string;
|
|
34
|
+
export declare function isParcelGeneratedRuntimeFile(current: ParcelState, filePath: string): boolean;
|
|
35
|
+
export declare function getParcelExtractedCss(current: ParcelState): string;
|
|
36
|
+
export declare function resolveParcelCacheFile(current: ParcelState, fileName: string): string;
|
|
37
|
+
export declare function createParcelError(error: unknown): Error;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./plugin.js";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { PluginOptions } from "../webpack/index.js";
|
|
2
|
+
export { CssPropPresets } from "../webpack/index.js";
|
|
3
|
+
export type { PluginOptions };
|
|
4
|
+
export default plugin;
|
|
5
|
+
export declare function plugin(options?: PluginOptions): {
|
|
6
|
+
apply(compiler: unknown): void;
|
|
7
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./plugin.js";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Plugin } from 'vite';
|
|
2
|
+
import { type PluginOptions } from "../../utils/index.js";
|
|
3
|
+
export { CssPropPresets } from "../../utils/index.js";
|
|
4
|
+
export type { CompilerCssPropOptions, PluginCssOptions, PluginOptions } from "../../utils/index.js";
|
|
5
|
+
export default plugin;
|
|
6
|
+
export declare function plugin(options?: PluginOptions): Plugin;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { ConfigEnv, ResolvedConfig, UserConfig } from 'vite';
|
|
2
|
+
import { type PluginOptions } from "../../utils/index.js";
|
|
3
|
+
export declare function createVitePluginState(options: PluginOptions): {
|
|
4
|
+
setConfig(value: ResolvedConfig): void;
|
|
5
|
+
getCurrentState(): {
|
|
6
|
+
projectDir: string;
|
|
7
|
+
cacheDir: string;
|
|
8
|
+
dev: boolean;
|
|
9
|
+
compiler: {
|
|
10
|
+
compileDebug: (args: import("../../../compiler/index.js").TransformDebugArgs) => import("../../../compiler/index.js").TransformDebugResult | null;
|
|
11
|
+
compileDebugRSC: (args: import("../../../compiler/index.js").TransformDebugArgs) => import("../../../compiler/index.js").TransformDebugRscResult | null;
|
|
12
|
+
compileExtract: (args: import("../../../compiler/index.js").TransformExtractArgs) => import("../../../compiler/index.js").TransformExtractResult | null;
|
|
13
|
+
getExtractedCss: () => string;
|
|
14
|
+
invalidateFile: (_info: import("../../../compiler/index.js").CompilerInvalidateFileInfo) => void;
|
|
15
|
+
};
|
|
16
|
+
filter: import("../../utils/index.js").TransformFilter;
|
|
17
|
+
transform: (code: string, id: string, sourcemap?: import("../../utils/index.js").BundlerSourceMap | null) => {
|
|
18
|
+
code: string;
|
|
19
|
+
map: string | null;
|
|
20
|
+
rules: unknown;
|
|
21
|
+
} | null;
|
|
22
|
+
} | null;
|
|
23
|
+
isServe(): boolean;
|
|
24
|
+
getConfig(config: UserConfig, env: ConfigEnv): Promise<{
|
|
25
|
+
define: Record<string, string>;
|
|
26
|
+
}>;
|
|
27
|
+
getHtmlEntryScript(): {
|
|
28
|
+
tag: string;
|
|
29
|
+
attrs: {
|
|
30
|
+
type: string;
|
|
31
|
+
};
|
|
32
|
+
children: string;
|
|
33
|
+
injectTo: "head-prepend";
|
|
34
|
+
}[];
|
|
35
|
+
loadRuntimeModule(): string;
|
|
36
|
+
ensureSidecarStarted(): Promise<void>;
|
|
37
|
+
getState(): {
|
|
38
|
+
projectDir: string;
|
|
39
|
+
cacheDir: string;
|
|
40
|
+
dev: boolean;
|
|
41
|
+
compiler: {
|
|
42
|
+
compileDebug: (args: import("../../../compiler/index.js").TransformDebugArgs) => import("../../../compiler/index.js").TransformDebugResult | null;
|
|
43
|
+
compileDebugRSC: (args: import("../../../compiler/index.js").TransformDebugArgs) => import("../../../compiler/index.js").TransformDebugRscResult | null;
|
|
44
|
+
compileExtract: (args: import("../../../compiler/index.js").TransformExtractArgs) => import("../../../compiler/index.js").TransformExtractResult | null;
|
|
45
|
+
getExtractedCss: () => string;
|
|
46
|
+
invalidateFile: (_info: import("../../../compiler/index.js").CompilerInvalidateFileInfo) => void;
|
|
47
|
+
};
|
|
48
|
+
filter: import("../../utils/index.js").TransformFilter;
|
|
49
|
+
transform: (code: string, id: string, sourcemap?: import("../../utils/index.js").BundlerSourceMap | null) => {
|
|
50
|
+
code: string;
|
|
51
|
+
map: string | null;
|
|
52
|
+
rules: unknown;
|
|
53
|
+
} | null;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./plugin.js";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Compiler, WebpackPluginInstance } from 'webpack';
|
|
2
|
+
import { type PluginOptions } from "../../utils/index.js";
|
|
3
|
+
export { CssPropPresets } from "../../utils/index.js";
|
|
4
|
+
export type { CompilerCssPropOptions, PluginOptions } from "../../utils/index.js";
|
|
5
|
+
export default plugin;
|
|
6
|
+
export declare function plugin(options?: PluginOptions): WebpackPlugin;
|
|
7
|
+
declare class WebpackPlugin implements WebpackPluginInstance {
|
|
8
|
+
private readonly options;
|
|
9
|
+
constructor(options?: PluginOptions);
|
|
10
|
+
apply(compiler: Compiler): void;
|
|
11
|
+
}
|