@powerlines/plugin-env 0.15.13 → 0.15.14
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/_virtual/rolldown_runtime.cjs +4 -0
- package/dist/_virtual/rolldown_runtime.mjs +33 -0
- package/dist/babel/plugin.cjs +16 -16
- package/dist/babel/plugin.d.mts +2 -2
- package/dist/babel/plugin.mjs +7 -7
- package/dist/components/docs.cjs +8 -8
- package/dist/components/docs.mjs +5 -5
- package/dist/components/env.cjs +38 -39
- package/dist/components/env.d.mts +2 -2
- package/dist/components/env.mjs +11 -11
- package/dist/helpers/automd-generator.cjs +4 -4
- package/dist/helpers/automd-generator.d.mts +1 -1
- package/dist/helpers/automd-generator.mjs +3 -3
- package/dist/helpers/load.cjs +12 -13
- package/dist/helpers/load.d.mts +2 -2
- package/dist/helpers/load.mjs +10 -10
- package/dist/helpers/persistence.cjs +23 -23
- package/dist/helpers/persistence.d.mts +1 -1
- package/dist/helpers/persistence.mjs +7 -7
- package/dist/helpers/reflect.cjs +9 -9
- package/dist/helpers/reflect.mjs +5 -5
- package/dist/helpers/source-file-env.cjs +1 -1
- package/dist/helpers/source-file-env.mjs +1 -1
- package/dist/index.cjs +28 -26
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +25 -25
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/parse-type-definition.cjs +31 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/parse-type-definition.mjs +31 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/to-array.cjs +8 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/to-array.mjs +7 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/get-object-tag.cjs +6 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/get-object-tag.mjs +5 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/index.cjs +3 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/index.mjs +5 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-buffer.cjs +6 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-buffer.mjs +6 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-collection.cjs +1 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-collection.mjs +3 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-object.cjs +13 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-object.mjs +13 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-plain-object.cjs +13 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-plain-object.mjs +13 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-string.cjs +12 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-string.mjs +11 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/type-detect.cjs +11 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/type-detect.mjs +12 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/is-parent-path.cjs +10 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/is-parent-path.mjs +10 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/is-type.cjs +13 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/is-type.mjs +13 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/join-paths.cjs +49 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/join-paths.mjs +49 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/regex.cjs +9 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/regex.mjs +5 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/slash.cjs +8 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/slash.mjs +7 -0
- package/dist/node_modules/.pnpm/c12@3.3.3_magicast@0.5.1/node_modules/c12/dist/index.cjs +346 -0
- package/dist/node_modules/.pnpm/c12@3.3.3_magicast@0.5.1/node_modules/c12/dist/index.mjs +346 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/json5.cjs +786 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/json5.mjs +786 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/jsonc.cjs +3 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/jsonc.mjs +3 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DA7CpUDY.cjs +23 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DA7CpUDY.mjs +22 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DnMsyigM.cjs +405 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DnMsyigM.mjs +404 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/toml.cjs +657 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/toml.mjs +657 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/yaml.cjs +1054 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/yaml.mjs +1054 -0
- package/dist/node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.cjs +43 -0
- package/dist/node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs +42 -0
- package/dist/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.cjs +46 -0
- package/dist/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.mjs +45 -0
- package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/lib/main.cjs +288 -0
- package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/lib/main.mjs +285 -0
- package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/package.cjs +71 -0
- package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/package.mjs +68 -0
- package/dist/node_modules/.pnpm/exsolve@1.0.8/node_modules/exsolve/dist/index.cjs +1013 -0
- package/dist/node_modules/.pnpm/exsolve@1.0.8/node_modules/exsolve/dist/index.mjs +1007 -0
- package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.cjs +23 -0
- package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.mjs +13 -0
- package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.cjs +2698 -0
- package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.mjs +2685 -0
- package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/dist/jiti.cjs +4457 -0
- package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/dist/jiti.mjs +4454 -0
- package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti.cjs +29 -0
- package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti.mjs +29 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.cjs +181 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.mjs +176 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.cjs +22 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.mjs +17 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.cjs +3967 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.mjs +3962 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/proxy.cjs +11768 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/proxy.mjs +11763 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.cjs +25 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.mjs +20 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/lib/index.cjs +20 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/lib/index.mjs +17 -0
- package/dist/node_modules/.pnpm/nypm@0.6.2/node_modules/nypm/dist/shared/nypm.CLjaS_sz.cjs +174 -0
- package/dist/node_modules/.pnpm/nypm@0.6.2/node_modules/nypm/dist/shared/nypm.CLjaS_sz.mjs +172 -0
- package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.cjs +13 -0
- package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.mjs +12 -0
- package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/index.cjs +3 -0
- package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/index.mjs +3 -0
- package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.cjs +145 -0
- package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs +138 -0
- package/dist/node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.cjs +127 -0
- package/dist/node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.mjs +125 -0
- package/dist/node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.cjs +138 -0
- package/dist/node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.mjs +136 -0
- package/dist/node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.cjs +629 -0
- package/dist/node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.mjs +627 -0
- package/dist/{plugin-alloy → packages/plugin-alloy}/src/types/components.d.mts +1 -1
- package/dist/{plugin-alloy → packages/plugin-alloy}/src/typescript/components/typescript-file.d.mts +1 -1
- package/dist/{plugin-alloy → packages/plugin-alloy}/src/typescript/components/typescript-interface.d.mts +1 -1
- package/dist/{powerlines → packages/powerlines}/src/types/build.d.mts +6 -6
- package/dist/{powerlines → packages/powerlines}/src/types/config.d.mts +1 -2
- package/dist/{powerlines → packages/powerlines}/src/types/tsconfig.d.mts +1 -1
- package/dist/types/plugin.cjs +19 -18
- package/dist/types/plugin.d.mts +6 -6
- package/dist/types/plugin.mjs +4 -4
- package/dist/types/runtime.cjs +3 -2
- package/dist/types/runtime.d.mts +1 -1
- package/dist/types/runtime.mjs +1 -1
- package/package.json +10 -10
- package/dist/deepkit/schemas/reflection.cjs +0 -5368
- package/dist/deepkit/schemas/reflection.mjs +0 -5365
- package/dist/deepkit/schemas/reflection2.cjs +0 -4112
- package/dist/deepkit/schemas/reflection2.mjs +0 -4110
- package/dist/deepkit/src/capnp.cjs +0 -1692
- package/dist/deepkit/src/capnp.mjs +0 -1690
- package/dist/deepkit/src/esbuild-plugin.cjs +0 -99
- package/dist/deepkit/src/esbuild-plugin.mjs +0 -98
- package/dist/deepkit/src/reflect-type.cjs +0 -40
- package/dist/deepkit/src/reflect-type.mjs +0 -38
- package/dist/deepkit/src/resolve-reflections.cjs +0 -23
- package/dist/deepkit/src/resolve-reflections.mjs +0 -22
- package/dist/deepkit/src/transformer.cjs +0 -92
- package/dist/deepkit/src/transformer.mjs +0 -89
- package/dist/deepkit/src/transpile.cjs +0 -39
- package/dist/deepkit/src/transpile.mjs +0 -37
- package/dist/deepkit/src/types.cjs +0 -22
- package/dist/deepkit/src/types.mjs +0 -21
- package/dist/deepkit/src/utilities.cjs +0 -182
- package/dist/deepkit/src/utilities.mjs +0 -181
- package/dist/plugin-alloy/src/core/components/output.cjs +0 -45
- package/dist/plugin-alloy/src/core/components/output.mjs +0 -44
- package/dist/plugin-alloy/src/core/components/single-line-comment.cjs +0 -22
- package/dist/plugin-alloy/src/core/components/single-line-comment.mjs +0 -21
- package/dist/plugin-alloy/src/core/components/source-file.cjs +0 -64
- package/dist/plugin-alloy/src/core/components/source-file.mjs +0 -62
- package/dist/plugin-alloy/src/core/contexts/context.cjs +0 -136
- package/dist/plugin-alloy/src/core/contexts/context.mjs +0 -128
- package/dist/plugin-alloy/src/core/contexts/index.cjs +0 -2
- package/dist/plugin-alloy/src/core/contexts/index.mjs +0 -4
- package/dist/plugin-alloy/src/core/contexts/reflection.cjs +0 -110
- package/dist/plugin-alloy/src/core/contexts/reflection.mjs +0 -101
- package/dist/plugin-alloy/src/helpers/refkey.cjs +0 -23
- package/dist/plugin-alloy/src/helpers/refkey.mjs +0 -22
- package/dist/plugin-alloy/src/index.cjs +0 -106
- package/dist/plugin-alloy/src/index.mjs +0 -104
- package/dist/plugin-alloy/src/markdown/components/markdown-file.cjs +0 -115
- package/dist/plugin-alloy/src/markdown/components/markdown-file.mjs +0 -114
- package/dist/plugin-alloy/src/markdown/components/markdown-table.cjs +0 -39
- package/dist/plugin-alloy/src/markdown/components/markdown-table.mjs +0 -38
- package/dist/plugin-alloy/src/markdown/contexts/markdown-table.cjs +0 -72
- package/dist/plugin-alloy/src/markdown/contexts/markdown-table.mjs +0 -71
- package/dist/plugin-alloy/src/types/components.cjs +0 -22
- package/dist/plugin-alloy/src/types/components.mjs +0 -21
- package/dist/plugin-alloy/src/types/plugin.cjs +0 -55
- package/dist/plugin-alloy/src/types/plugin.mjs +0 -52
- package/dist/plugin-alloy/src/typescript/components/builtin-file.cjs +0 -57
- package/dist/plugin-alloy/src/typescript/components/builtin-file.mjs +0 -56
- package/dist/plugin-alloy/src/typescript/components/tsdoc-reflection.cjs +0 -126
- package/dist/plugin-alloy/src/typescript/components/tsdoc-reflection.mjs +0 -124
- package/dist/plugin-alloy/src/typescript/components/tsdoc.cjs +0 -442
- package/dist/plugin-alloy/src/typescript/components/tsdoc.mjs +0 -433
- package/dist/plugin-alloy/src/typescript/components/typescript-file.cjs +0 -212
- package/dist/plugin-alloy/src/typescript/components/typescript-file.mjs +0 -209
- package/dist/plugin-alloy/src/typescript/components/typescript-interface.cjs +0 -68
- package/dist/plugin-alloy/src/typescript/components/typescript-interface.mjs +0 -67
- package/dist/plugin-alloy/src/typescript/components/typescript-object.cjs +0 -124
- package/dist/plugin-alloy/src/typescript/components/typescript-object.mjs +0 -123
- package/dist/plugin-automd/src/index.cjs +0 -127
- package/dist/plugin-automd/src/index.mjs +0 -124
- package/dist/plugin-automd/src/types/plugin.cjs +0 -47
- package/dist/plugin-automd/src/types/plugin.mjs +0 -47
- package/dist/plugin-automd/src/types/toc.cjs +0 -26
- package/dist/plugin-automd/src/types/toc.mjs +0 -25
- package/dist/plugin-babel/src/helpers/ast-utils.cjs +0 -74
- package/dist/plugin-babel/src/helpers/ast-utils.mjs +0 -70
- package/dist/plugin-babel/src/helpers/create-plugin.cjs +0 -71
- package/dist/plugin-babel/src/helpers/create-plugin.mjs +0 -69
- package/dist/plugin-babel/src/helpers/filters.cjs +0 -158
- package/dist/plugin-babel/src/helpers/filters.mjs +0 -154
- package/dist/plugin-babel/src/helpers/index.cjs +0 -5
- package/dist/plugin-babel/src/helpers/index.mjs +0 -7
- package/dist/plugin-babel/src/helpers/module-helpers.cjs +0 -200
- package/dist/plugin-babel/src/helpers/module-helpers.mjs +0 -192
- package/dist/plugin-babel/src/helpers/options.cjs +0 -74
- package/dist/plugin-babel/src/helpers/options.mjs +0 -71
- package/dist/plugin-babel/src/index.cjs +0 -131
- package/dist/plugin-babel/src/index.mjs +0 -129
- package/dist/plugin-babel/src/types/plugin.cjs +0 -42
- package/dist/plugin-babel/src/types/plugin.mjs +0 -39
- package/dist/powerlines/src/internal/helpers/hooks.cjs +0 -137
- package/dist/powerlines/src/internal/helpers/hooks.mjs +0 -135
- package/dist/powerlines/src/lib/build/esbuild.cjs +0 -161
- package/dist/powerlines/src/lib/build/esbuild.mjs +0 -159
- package/dist/powerlines/src/lib/entry.cjs +0 -203
- package/dist/powerlines/src/lib/entry.mjs +0 -201
- package/dist/powerlines/src/lib/logger.cjs +0 -108
- package/dist/powerlines/src/lib/logger.mjs +0 -106
- package/dist/powerlines/src/lib/utilities/bundle.cjs +0 -67
- package/dist/powerlines/src/lib/utilities/bundle.mjs +0 -66
- package/dist/powerlines/src/lib/utilities/resolve.cjs +0 -49
- package/dist/powerlines/src/lib/utilities/resolve.mjs +0 -48
- package/dist/powerlines/src/plugin-utils/paths.cjs +0 -46
- package/dist/powerlines/src/plugin-utils/paths.mjs +0 -45
- package/dist/powerlines/src/types/api.cjs +0 -62
- package/dist/powerlines/src/types/api.mjs +0 -62
- package/dist/powerlines/src/types/babel.cjs +0 -156
- package/dist/powerlines/src/types/babel.mjs +0 -147
- package/dist/powerlines/src/types/build.cjs +0 -127
- package/dist/powerlines/src/types/build.mjs +0 -121
- package/dist/powerlines/src/types/commands.cjs +0 -16
- package/dist/powerlines/src/types/commands.mjs +0 -15
- package/dist/powerlines/src/types/config.cjs +0 -413
- package/dist/powerlines/src/types/config.mjs +0 -391
- package/dist/powerlines/src/types/context.cjs +0 -381
- package/dist/powerlines/src/types/context.mjs +0 -364
- package/dist/powerlines/src/types/fs.cjs +0 -78
- package/dist/powerlines/src/types/fs.mjs +0 -75
- package/dist/powerlines/src/types/hooks.cjs +0 -71
- package/dist/powerlines/src/types/hooks.mjs +0 -68
- package/dist/powerlines/src/types/index.cjs +0 -11
- package/dist/powerlines/src/types/index.mjs +0 -13
- package/dist/powerlines/src/types/plugin.cjs +0 -184
- package/dist/powerlines/src/types/plugin.mjs +0 -178
- package/dist/powerlines/src/types/resolved.cjs +0 -153
- package/dist/powerlines/src/types/resolved.mjs +0 -148
- package/dist/powerlines/src/types/unplugin.cjs +0 -47
- package/dist/powerlines/src/types/unplugin.mjs +0 -46
- /package/dist/{deepkit → packages/deepkit}/schemas/reflection.d.mts +0 -0
- /package/dist/{deepkit → packages/deepkit}/src/types.d.mts +0 -0
- /package/dist/{plugin-alloy → packages/plugin-alloy}/src/core/components/source-file.d.mts +0 -0
- /package/dist/{plugin-alloy → packages/plugin-alloy}/src/types/index.d.mts +0 -0
- /package/dist/{plugin-alloy → packages/plugin-alloy}/src/types/plugin.d.mts +0 -0
- /package/dist/{plugin-alloy → packages/plugin-alloy}/src/typescript/components/builtin-file.d.mts +0 -0
- /package/dist/{plugin-alloy → packages/plugin-alloy}/src/typescript/components/tsdoc.d.mts +0 -0
- /package/dist/{plugin-automd → packages/plugin-automd}/src/types/plugin.d.mts +0 -0
- /package/dist/{plugin-automd → packages/plugin-automd}/src/types/toc.d.mts +0 -0
- /package/dist/{plugin-babel → packages/plugin-babel}/src/types/index.d.mts +0 -0
- /package/dist/{plugin-babel → packages/plugin-babel}/src/types/plugin.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/internal/helpers/hooks.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/api.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/babel.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/commands.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/context.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/fs.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/hooks.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/index.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/plugin.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/resolved.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/unplugin.d.mts +0 -0
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_fs = require('../../../../powerlines/src/types/fs.cjs');
|
|
3
|
-
let __alloy_js_core = require("@alloy-js/core");
|
|
4
|
-
|
|
5
|
-
//#region ../plugin-alloy/src/core/contexts/context.ts
|
|
6
|
-
const __ΩRecord = [
|
|
7
|
-
"K",
|
|
8
|
-
"T",
|
|
9
|
-
"Record",
|
|
10
|
-
"l'e#\"Rb!b\"Pde\"!N#!w#y"
|
|
11
|
-
];
|
|
12
|
-
const __ΩMetaItem = [
|
|
13
|
-
"builtin",
|
|
14
|
-
"entry",
|
|
15
|
-
"kind",
|
|
16
|
-
"The kind of metadata item.",
|
|
17
|
-
"skipFormat",
|
|
18
|
-
"Whether to skip formatting for this output.",
|
|
19
|
-
() => require_fs.__ΩStoragePreset,
|
|
20
|
-
"storage",
|
|
21
|
-
"The storage preset or adapter name for the output files.",
|
|
22
|
-
"MetaItem",
|
|
23
|
-
"PP.!.\"&J4#8?$)4%8?&Pn'&J4(8?)&\"LMw*y"
|
|
24
|
-
];
|
|
25
|
-
const __ΩPowerlinesContextInterface = [
|
|
26
|
-
"PluginContext",
|
|
27
|
-
"TContext",
|
|
28
|
-
() => __ΩRecord,
|
|
29
|
-
() => __ΩMetaItem,
|
|
30
|
-
"TMeta",
|
|
31
|
-
"Ref",
|
|
32
|
-
"ref",
|
|
33
|
-
"The current Powerlines context.",
|
|
34
|
-
"meta",
|
|
35
|
-
"The current render metadata.",
|
|
36
|
-
"PowerlinesContextInterface",
|
|
37
|
-
"\"w!c\"&n$o##c%P\"w&4'?(\"w&4)?*Mw+y"
|
|
38
|
-
];
|
|
39
|
-
/**
|
|
40
|
-
* The Powerlines context used in template rendering.
|
|
41
|
-
*/
|
|
42
|
-
const PowerlinesContext = (__alloy_js_core.createNamedContext.Ω = [[() => __ΩPowerlinesContextInterface, "\"\"o!#"]], (0, __alloy_js_core.createNamedContext)("powerlines"));
|
|
43
|
-
/**
|
|
44
|
-
* Hook to access the Powerlines Context.
|
|
45
|
-
*
|
|
46
|
-
* @returns The Context.
|
|
47
|
-
*/
|
|
48
|
-
function usePowerlinesContext() {
|
|
49
|
-
return __alloy_js_core.useContext.Ω = [[
|
|
50
|
-
() => __ΩPowerlinesContextInterface,
|
|
51
|
-
"PluginContext",
|
|
52
|
-
() => __ΩRecord,
|
|
53
|
-
() => __ΩMetaItem,
|
|
54
|
-
"\"w\"&n$o##o!#"
|
|
55
|
-
]], (0, __alloy_js_core.useContext)(PowerlinesContext);
|
|
56
|
-
}
|
|
57
|
-
usePowerlinesContext.__type = [
|
|
58
|
-
() => __ΩPowerlinesContextInterface,
|
|
59
|
-
"usePowerlinesContext",
|
|
60
|
-
"Hook to access the Powerlines Context.",
|
|
61
|
-
"PP\"\"o!#-J/\"?#"
|
|
62
|
-
];
|
|
63
|
-
/**
|
|
64
|
-
* Hook to safely access the {@link PluginContext | Powerlines context}.
|
|
65
|
-
*
|
|
66
|
-
* @returns The Powerlines context or undefined if not set.
|
|
67
|
-
*/
|
|
68
|
-
function usePowerlinesSafe() {
|
|
69
|
-
return (usePowerlinesContext.Ω = [["PluginContext", "\"w!"]], usePowerlinesContext())?.ref?.value;
|
|
70
|
-
}
|
|
71
|
-
usePowerlinesSafe.__type = [
|
|
72
|
-
"usePowerlinesSafe",
|
|
73
|
-
"Hook to safely access the {@link PluginContext | Powerlines context}.",
|
|
74
|
-
"PP\"-J/!?\""
|
|
75
|
-
];
|
|
76
|
-
/**
|
|
77
|
-
* Hook to access the {@link PluginContext | Powerlines context}.
|
|
78
|
-
*
|
|
79
|
-
* @returns The Powerlines context.
|
|
80
|
-
*/
|
|
81
|
-
function usePowerlines() {
|
|
82
|
-
const powerlines = (usePowerlinesSafe.Ω = [["PluginContext", "\"w!"]], usePowerlinesSafe());
|
|
83
|
-
if (!powerlines) throw new Error("Powerlines - Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.");
|
|
84
|
-
return powerlines;
|
|
85
|
-
}
|
|
86
|
-
usePowerlines.__type = [
|
|
87
|
-
"usePowerlines",
|
|
88
|
-
"Hook to access the {@link PluginContext | Powerlines context}.",
|
|
89
|
-
"P\"/!?\""
|
|
90
|
-
];
|
|
91
|
-
/**
|
|
92
|
-
* Hook to safely access the render context's metadata.
|
|
93
|
-
*
|
|
94
|
-
* @returns The Powerlines context or undefined if not set.
|
|
95
|
-
*/
|
|
96
|
-
function useMetaSafe() {
|
|
97
|
-
return (usePowerlinesContext.Ω = [["PluginContext", "\"w!"], [
|
|
98
|
-
() => __ΩRecord,
|
|
99
|
-
() => __ΩMetaItem,
|
|
100
|
-
"&n\"o!#"
|
|
101
|
-
]], usePowerlinesContext())?.meta?.value;
|
|
102
|
-
}
|
|
103
|
-
useMetaSafe.__type = [
|
|
104
|
-
"useMetaSafe",
|
|
105
|
-
"Hook to safely access the render context's metadata.",
|
|
106
|
-
"PP\"-J/!?\""
|
|
107
|
-
];
|
|
108
|
-
/**
|
|
109
|
-
* Hook to access the render context's metadata.
|
|
110
|
-
*
|
|
111
|
-
* @returns The Powerlines context.
|
|
112
|
-
*/
|
|
113
|
-
function useMeta() {
|
|
114
|
-
const meta = (useMetaSafe.Ω = [[
|
|
115
|
-
() => __ΩRecord,
|
|
116
|
-
() => __ΩMetaItem,
|
|
117
|
-
"&n\"o!#"
|
|
118
|
-
]], useMetaSafe());
|
|
119
|
-
if (!meta) throw new Error("Powerlines metadata is not available in the rendering context. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.");
|
|
120
|
-
return meta;
|
|
121
|
-
}
|
|
122
|
-
useMeta.__type = [
|
|
123
|
-
"useMeta",
|
|
124
|
-
"Hook to access the render context's metadata.",
|
|
125
|
-
"P\"/!?\""
|
|
126
|
-
];
|
|
127
|
-
|
|
128
|
-
//#endregion
|
|
129
|
-
exports.PowerlinesContext = PowerlinesContext;
|
|
130
|
-
exports.__ΩMetaItem = __ΩMetaItem;
|
|
131
|
-
exports.__ΩPowerlinesContextInterface = __ΩPowerlinesContextInterface;
|
|
132
|
-
exports.useMeta = useMeta;
|
|
133
|
-
exports.useMetaSafe = useMetaSafe;
|
|
134
|
-
exports.usePowerlines = usePowerlines;
|
|
135
|
-
exports.usePowerlinesContext = usePowerlinesContext;
|
|
136
|
-
exports.usePowerlinesSafe = usePowerlinesSafe;
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import { __ΩStoragePreset } from "../../../../powerlines/src/types/fs.mjs";
|
|
2
|
-
import { createNamedContext, useContext } from "@alloy-js/core";
|
|
3
|
-
|
|
4
|
-
//#region ../plugin-alloy/src/core/contexts/context.ts
|
|
5
|
-
const __ΩRecord = [
|
|
6
|
-
"K",
|
|
7
|
-
"T",
|
|
8
|
-
"Record",
|
|
9
|
-
"l'e#\"Rb!b\"Pde\"!N#!w#y"
|
|
10
|
-
];
|
|
11
|
-
const __ΩMetaItem = [
|
|
12
|
-
"builtin",
|
|
13
|
-
"entry",
|
|
14
|
-
"kind",
|
|
15
|
-
"The kind of metadata item.",
|
|
16
|
-
"skipFormat",
|
|
17
|
-
"Whether to skip formatting for this output.",
|
|
18
|
-
() => __ΩStoragePreset,
|
|
19
|
-
"storage",
|
|
20
|
-
"The storage preset or adapter name for the output files.",
|
|
21
|
-
"MetaItem",
|
|
22
|
-
"PP.!.\"&J4#8?$)4%8?&Pn'&J4(8?)&\"LMw*y"
|
|
23
|
-
];
|
|
24
|
-
const __ΩPowerlinesContextInterface = [
|
|
25
|
-
"PluginContext",
|
|
26
|
-
"TContext",
|
|
27
|
-
() => __ΩRecord,
|
|
28
|
-
() => __ΩMetaItem,
|
|
29
|
-
"TMeta",
|
|
30
|
-
"Ref",
|
|
31
|
-
"ref",
|
|
32
|
-
"The current Powerlines context.",
|
|
33
|
-
"meta",
|
|
34
|
-
"The current render metadata.",
|
|
35
|
-
"PowerlinesContextInterface",
|
|
36
|
-
"\"w!c\"&n$o##c%P\"w&4'?(\"w&4)?*Mw+y"
|
|
37
|
-
];
|
|
38
|
-
/**
|
|
39
|
-
* The Powerlines context used in template rendering.
|
|
40
|
-
*/
|
|
41
|
-
const PowerlinesContext = (createNamedContext.Ω = [[() => __ΩPowerlinesContextInterface, "\"\"o!#"]], createNamedContext("powerlines"));
|
|
42
|
-
/**
|
|
43
|
-
* Hook to access the Powerlines Context.
|
|
44
|
-
*
|
|
45
|
-
* @returns The Context.
|
|
46
|
-
*/
|
|
47
|
-
function usePowerlinesContext() {
|
|
48
|
-
return useContext.Ω = [[
|
|
49
|
-
() => __ΩPowerlinesContextInterface,
|
|
50
|
-
"PluginContext",
|
|
51
|
-
() => __ΩRecord,
|
|
52
|
-
() => __ΩMetaItem,
|
|
53
|
-
"\"w\"&n$o##o!#"
|
|
54
|
-
]], useContext(PowerlinesContext);
|
|
55
|
-
}
|
|
56
|
-
usePowerlinesContext.__type = [
|
|
57
|
-
() => __ΩPowerlinesContextInterface,
|
|
58
|
-
"usePowerlinesContext",
|
|
59
|
-
"Hook to access the Powerlines Context.",
|
|
60
|
-
"PP\"\"o!#-J/\"?#"
|
|
61
|
-
];
|
|
62
|
-
/**
|
|
63
|
-
* Hook to safely access the {@link PluginContext | Powerlines context}.
|
|
64
|
-
*
|
|
65
|
-
* @returns The Powerlines context or undefined if not set.
|
|
66
|
-
*/
|
|
67
|
-
function usePowerlinesSafe() {
|
|
68
|
-
return (usePowerlinesContext.Ω = [["PluginContext", "\"w!"]], usePowerlinesContext())?.ref?.value;
|
|
69
|
-
}
|
|
70
|
-
usePowerlinesSafe.__type = [
|
|
71
|
-
"usePowerlinesSafe",
|
|
72
|
-
"Hook to safely access the {@link PluginContext | Powerlines context}.",
|
|
73
|
-
"PP\"-J/!?\""
|
|
74
|
-
];
|
|
75
|
-
/**
|
|
76
|
-
* Hook to access the {@link PluginContext | Powerlines context}.
|
|
77
|
-
*
|
|
78
|
-
* @returns The Powerlines context.
|
|
79
|
-
*/
|
|
80
|
-
function usePowerlines() {
|
|
81
|
-
const powerlines = (usePowerlinesSafe.Ω = [["PluginContext", "\"w!"]], usePowerlinesSafe());
|
|
82
|
-
if (!powerlines) throw new Error("Powerlines - Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.");
|
|
83
|
-
return powerlines;
|
|
84
|
-
}
|
|
85
|
-
usePowerlines.__type = [
|
|
86
|
-
"usePowerlines",
|
|
87
|
-
"Hook to access the {@link PluginContext | Powerlines context}.",
|
|
88
|
-
"P\"/!?\""
|
|
89
|
-
];
|
|
90
|
-
/**
|
|
91
|
-
* Hook to safely access the render context's metadata.
|
|
92
|
-
*
|
|
93
|
-
* @returns The Powerlines context or undefined if not set.
|
|
94
|
-
*/
|
|
95
|
-
function useMetaSafe() {
|
|
96
|
-
return (usePowerlinesContext.Ω = [["PluginContext", "\"w!"], [
|
|
97
|
-
() => __ΩRecord,
|
|
98
|
-
() => __ΩMetaItem,
|
|
99
|
-
"&n\"o!#"
|
|
100
|
-
]], usePowerlinesContext())?.meta?.value;
|
|
101
|
-
}
|
|
102
|
-
useMetaSafe.__type = [
|
|
103
|
-
"useMetaSafe",
|
|
104
|
-
"Hook to safely access the render context's metadata.",
|
|
105
|
-
"PP\"-J/!?\""
|
|
106
|
-
];
|
|
107
|
-
/**
|
|
108
|
-
* Hook to access the render context's metadata.
|
|
109
|
-
*
|
|
110
|
-
* @returns The Powerlines context.
|
|
111
|
-
*/
|
|
112
|
-
function useMeta() {
|
|
113
|
-
const meta = (useMetaSafe.Ω = [[
|
|
114
|
-
() => __ΩRecord,
|
|
115
|
-
() => __ΩMetaItem,
|
|
116
|
-
"&n\"o!#"
|
|
117
|
-
]], useMetaSafe());
|
|
118
|
-
if (!meta) throw new Error("Powerlines metadata is not available in the rendering context. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.");
|
|
119
|
-
return meta;
|
|
120
|
-
}
|
|
121
|
-
useMeta.__type = [
|
|
122
|
-
"useMeta",
|
|
123
|
-
"Hook to access the render context's metadata.",
|
|
124
|
-
"P\"/!?\""
|
|
125
|
-
];
|
|
126
|
-
|
|
127
|
-
//#endregion
|
|
128
|
-
export { PowerlinesContext, __ΩMetaItem, __ΩPowerlinesContextInterface, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe };
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { PowerlinesContext, __ΩMetaItem, __ΩPowerlinesContextInterface, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe } from "./context.mjs";
|
|
2
|
-
import { ReflectionClassContext, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, __ΩReflectionClassContextInterface, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty } from "./reflection.mjs";
|
|
3
|
-
|
|
4
|
-
export { };
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_components = require('../../types/components.cjs');
|
|
3
|
-
let __alloy_js_core = require("@alloy-js/core");
|
|
4
|
-
|
|
5
|
-
//#region ../plugin-alloy/src/core/contexts/reflection.ts
|
|
6
|
-
const __ΩRecord = [
|
|
7
|
-
"K",
|
|
8
|
-
"T",
|
|
9
|
-
"Record",
|
|
10
|
-
"l'e#\"Rb!b\"Pde\"!N#!w#y"
|
|
11
|
-
];
|
|
12
|
-
const __ΩReflectionClassContextInterface = [
|
|
13
|
-
() => __ΩRecord,
|
|
14
|
-
"T",
|
|
15
|
-
"ReflectionClass",
|
|
16
|
-
"reflection",
|
|
17
|
-
() => require_components.__ΩReflectionOverrideInterface,
|
|
18
|
-
"override",
|
|
19
|
-
"ReflectionClassContextInterface",
|
|
20
|
-
"&\"o!#c\"P\"w#4$e\"!o%\"4&8Mw'y"
|
|
21
|
-
];
|
|
22
|
-
/**
|
|
23
|
-
* The reflection class context used in template rendering.
|
|
24
|
-
*/
|
|
25
|
-
const ReflectionClassContext = (__alloy_js_core.createContext.Ω = [[() => __ΩReflectionClassContextInterface, "\"o!\""]], (0, __alloy_js_core.createContext)());
|
|
26
|
-
/**
|
|
27
|
-
* Hook to access the Reflection context.
|
|
28
|
-
*
|
|
29
|
-
* @returns A reactive version of the current reflection.
|
|
30
|
-
*/
|
|
31
|
-
function useReflectionClass() {
|
|
32
|
-
const context = (__alloy_js_core.useContext.Ω = [[
|
|
33
|
-
() => __ΩReflectionClassContextInterface,
|
|
34
|
-
() => __ΩRecord,
|
|
35
|
-
"&\"o\"#o!\""
|
|
36
|
-
]], (0, __alloy_js_core.useContext)(ReflectionClassContext));
|
|
37
|
-
if (!context) throw new Error("Powerlines - ReflectionClass Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.");
|
|
38
|
-
return context;
|
|
39
|
-
}
|
|
40
|
-
useReflectionClass.__type = [
|
|
41
|
-
"useReflectionClass",
|
|
42
|
-
"Hook to access the Reflection context.",
|
|
43
|
-
"P\"/!?\""
|
|
44
|
-
];
|
|
45
|
-
/**
|
|
46
|
-
* The reflection property context used in template rendering.
|
|
47
|
-
*/
|
|
48
|
-
const ReflectionPropertyContext = (__alloy_js_core.createNamedContext.Ω = [["ReflectionProperty", "\"w!"]], (0, __alloy_js_core.createNamedContext)("reflection-property"));
|
|
49
|
-
/**
|
|
50
|
-
* Hook to access the Reflection Property context.
|
|
51
|
-
*
|
|
52
|
-
* @returns A reactive version of the current reflection.
|
|
53
|
-
*/
|
|
54
|
-
function useReflectionProperty() {
|
|
55
|
-
const context = (__alloy_js_core.useContext.Ω = [["ReflectionProperty", "\"w!"]], (0, __alloy_js_core.useContext)(ReflectionPropertyContext));
|
|
56
|
-
if (!context) throw new Error("Powerlines - Reflection Property Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.");
|
|
57
|
-
return context;
|
|
58
|
-
}
|
|
59
|
-
useReflectionProperty.__type = [
|
|
60
|
-
"useReflectionProperty",
|
|
61
|
-
"Hook to access the Reflection Property context.",
|
|
62
|
-
"P\"/!?\""
|
|
63
|
-
];
|
|
64
|
-
/**
|
|
65
|
-
* The reflection method context used in template rendering.
|
|
66
|
-
*/
|
|
67
|
-
const ReflectionMethodContext = (__alloy_js_core.createNamedContext.Ω = [["ReflectionMethod", "\"w!"]], (0, __alloy_js_core.createNamedContext)("reflection-method"));
|
|
68
|
-
/**
|
|
69
|
-
* Hook to access the Reflection Method context.
|
|
70
|
-
*
|
|
71
|
-
* @returns A reactive version of the current reflection.
|
|
72
|
-
*/
|
|
73
|
-
function useReflectionMethod() {
|
|
74
|
-
const context = (__alloy_js_core.useContext.Ω = [["ReflectionMethod", "\"w!"]], (0, __alloy_js_core.useContext)(ReflectionMethodContext));
|
|
75
|
-
if (!context) throw new Error("Powerlines - Reflection Method Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.");
|
|
76
|
-
return context;
|
|
77
|
-
}
|
|
78
|
-
useReflectionMethod.__type = [
|
|
79
|
-
"useReflectionMethod",
|
|
80
|
-
"Hook to access the Reflection Method context.",
|
|
81
|
-
"P\"/!?\""
|
|
82
|
-
];
|
|
83
|
-
/**
|
|
84
|
-
* The reflection parameter context used in template rendering.
|
|
85
|
-
*/
|
|
86
|
-
const ReflectionParameterContext = (__alloy_js_core.createNamedContext.Ω = [["ReflectionParameter", "\"w!"]], (0, __alloy_js_core.createNamedContext)("reflection-parameter"));
|
|
87
|
-
/**
|
|
88
|
-
* Hook to access the Reflection Parameter context.
|
|
89
|
-
*
|
|
90
|
-
* @returns A reactive version of the current reflection.
|
|
91
|
-
*/
|
|
92
|
-
function useReflectionParameter() {
|
|
93
|
-
return __alloy_js_core.useContext.Ω = [["ReflectionParameter", "\"w!"]], (0, __alloy_js_core.useContext)(ReflectionParameterContext);
|
|
94
|
-
}
|
|
95
|
-
useReflectionParameter.__type = [
|
|
96
|
-
"useReflectionParameter",
|
|
97
|
-
"Hook to access the Reflection Parameter context.",
|
|
98
|
-
"P\"/!?\""
|
|
99
|
-
];
|
|
100
|
-
|
|
101
|
-
//#endregion
|
|
102
|
-
exports.ReflectionClassContext = ReflectionClassContext;
|
|
103
|
-
exports.ReflectionMethodContext = ReflectionMethodContext;
|
|
104
|
-
exports.ReflectionParameterContext = ReflectionParameterContext;
|
|
105
|
-
exports.ReflectionPropertyContext = ReflectionPropertyContext;
|
|
106
|
-
exports.__ΩReflectionClassContextInterface = __ΩReflectionClassContextInterface;
|
|
107
|
-
exports.useReflectionClass = useReflectionClass;
|
|
108
|
-
exports.useReflectionMethod = useReflectionMethod;
|
|
109
|
-
exports.useReflectionParameter = useReflectionParameter;
|
|
110
|
-
exports.useReflectionProperty = useReflectionProperty;
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { __ΩReflectionOverrideInterface } from "../../types/components.mjs";
|
|
2
|
-
import { createContext, createNamedContext, useContext } from "@alloy-js/core";
|
|
3
|
-
|
|
4
|
-
//#region ../plugin-alloy/src/core/contexts/reflection.ts
|
|
5
|
-
const __ΩRecord = [
|
|
6
|
-
"K",
|
|
7
|
-
"T",
|
|
8
|
-
"Record",
|
|
9
|
-
"l'e#\"Rb!b\"Pde\"!N#!w#y"
|
|
10
|
-
];
|
|
11
|
-
const __ΩReflectionClassContextInterface = [
|
|
12
|
-
() => __ΩRecord,
|
|
13
|
-
"T",
|
|
14
|
-
"ReflectionClass",
|
|
15
|
-
"reflection",
|
|
16
|
-
() => __ΩReflectionOverrideInterface,
|
|
17
|
-
"override",
|
|
18
|
-
"ReflectionClassContextInterface",
|
|
19
|
-
"&\"o!#c\"P\"w#4$e\"!o%\"4&8Mw'y"
|
|
20
|
-
];
|
|
21
|
-
/**
|
|
22
|
-
* The reflection class context used in template rendering.
|
|
23
|
-
*/
|
|
24
|
-
const ReflectionClassContext = (createContext.Ω = [[() => __ΩReflectionClassContextInterface, "\"o!\""]], createContext());
|
|
25
|
-
/**
|
|
26
|
-
* Hook to access the Reflection context.
|
|
27
|
-
*
|
|
28
|
-
* @returns A reactive version of the current reflection.
|
|
29
|
-
*/
|
|
30
|
-
function useReflectionClass() {
|
|
31
|
-
const context = (useContext.Ω = [[
|
|
32
|
-
() => __ΩReflectionClassContextInterface,
|
|
33
|
-
() => __ΩRecord,
|
|
34
|
-
"&\"o\"#o!\""
|
|
35
|
-
]], useContext(ReflectionClassContext));
|
|
36
|
-
if (!context) throw new Error("Powerlines - ReflectionClass Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.");
|
|
37
|
-
return context;
|
|
38
|
-
}
|
|
39
|
-
useReflectionClass.__type = [
|
|
40
|
-
"useReflectionClass",
|
|
41
|
-
"Hook to access the Reflection context.",
|
|
42
|
-
"P\"/!?\""
|
|
43
|
-
];
|
|
44
|
-
/**
|
|
45
|
-
* The reflection property context used in template rendering.
|
|
46
|
-
*/
|
|
47
|
-
const ReflectionPropertyContext = (createNamedContext.Ω = [["ReflectionProperty", "\"w!"]], createNamedContext("reflection-property"));
|
|
48
|
-
/**
|
|
49
|
-
* Hook to access the Reflection Property context.
|
|
50
|
-
*
|
|
51
|
-
* @returns A reactive version of the current reflection.
|
|
52
|
-
*/
|
|
53
|
-
function useReflectionProperty() {
|
|
54
|
-
const context = (useContext.Ω = [["ReflectionProperty", "\"w!"]], useContext(ReflectionPropertyContext));
|
|
55
|
-
if (!context) throw new Error("Powerlines - Reflection Property Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.");
|
|
56
|
-
return context;
|
|
57
|
-
}
|
|
58
|
-
useReflectionProperty.__type = [
|
|
59
|
-
"useReflectionProperty",
|
|
60
|
-
"Hook to access the Reflection Property context.",
|
|
61
|
-
"P\"/!?\""
|
|
62
|
-
];
|
|
63
|
-
/**
|
|
64
|
-
* The reflection method context used in template rendering.
|
|
65
|
-
*/
|
|
66
|
-
const ReflectionMethodContext = (createNamedContext.Ω = [["ReflectionMethod", "\"w!"]], createNamedContext("reflection-method"));
|
|
67
|
-
/**
|
|
68
|
-
* Hook to access the Reflection Method context.
|
|
69
|
-
*
|
|
70
|
-
* @returns A reactive version of the current reflection.
|
|
71
|
-
*/
|
|
72
|
-
function useReflectionMethod() {
|
|
73
|
-
const context = (useContext.Ω = [["ReflectionMethod", "\"w!"]], useContext(ReflectionMethodContext));
|
|
74
|
-
if (!context) throw new Error("Powerlines - Reflection Method Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.");
|
|
75
|
-
return context;
|
|
76
|
-
}
|
|
77
|
-
useReflectionMethod.__type = [
|
|
78
|
-
"useReflectionMethod",
|
|
79
|
-
"Hook to access the Reflection Method context.",
|
|
80
|
-
"P\"/!?\""
|
|
81
|
-
];
|
|
82
|
-
/**
|
|
83
|
-
* The reflection parameter context used in template rendering.
|
|
84
|
-
*/
|
|
85
|
-
const ReflectionParameterContext = (createNamedContext.Ω = [["ReflectionParameter", "\"w!"]], createNamedContext("reflection-parameter"));
|
|
86
|
-
/**
|
|
87
|
-
* Hook to access the Reflection Parameter context.
|
|
88
|
-
*
|
|
89
|
-
* @returns A reactive version of the current reflection.
|
|
90
|
-
*/
|
|
91
|
-
function useReflectionParameter() {
|
|
92
|
-
return useContext.Ω = [["ReflectionParameter", "\"w!"]], useContext(ReflectionParameterContext);
|
|
93
|
-
}
|
|
94
|
-
useReflectionParameter.__type = [
|
|
95
|
-
"useReflectionParameter",
|
|
96
|
-
"Hook to access the Reflection Parameter context.",
|
|
97
|
-
"P\"/!?\""
|
|
98
|
-
];
|
|
99
|
-
|
|
100
|
-
//#endregion
|
|
101
|
-
export { ReflectionClassContext, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, __ΩReflectionClassContextInterface, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
let __alloy_js_core = require("@alloy-js/core");
|
|
3
|
-
|
|
4
|
-
//#region ../plugin-alloy/src/helpers/refkey.ts
|
|
5
|
-
/**
|
|
6
|
-
* Create a refkey for the provided arguments. Passing no arguments returns a fresh refkey that is guaranteed to be unique. Otherwise, the arguments passed will be used to create a refkey for those values. Providing the same arguments will always return the same refkey.
|
|
7
|
-
*
|
|
8
|
-
* @remarks
|
|
9
|
-
* Values are compared using the SameValueZero algorithm, which considers objects the same if they are reference identical, and primitives the same if they are the same value, with the exception of `NaN`, which is always considered equal to other `NaN` values, and `-0`, which is considered identical to `+0`
|
|
10
|
-
*/
|
|
11
|
-
function refkey(...args) {
|
|
12
|
-
return (0, __alloy_js_core.refkey)("powerlines", ...args);
|
|
13
|
-
}
|
|
14
|
-
refkey.__type = [
|
|
15
|
-
"args",
|
|
16
|
-
"Refkey",
|
|
17
|
-
"refkey",
|
|
18
|
-
"Create a refkey for the provided arguments. Passing no arguments returns a fresh refkey that is guaranteed to be unique. Otherwise, the arguments passed will be used to create a refkey for those values. Providing the same arguments will always return the same refkey.",
|
|
19
|
-
"P#@2!\"w\"/#?$"
|
|
20
|
-
];
|
|
21
|
-
|
|
22
|
-
//#endregion
|
|
23
|
-
exports.refkey = refkey;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { refkey } from "@alloy-js/core";
|
|
2
|
-
|
|
3
|
-
//#region ../plugin-alloy/src/helpers/refkey.ts
|
|
4
|
-
/**
|
|
5
|
-
* Create a refkey for the provided arguments. Passing no arguments returns a fresh refkey that is guaranteed to be unique. Otherwise, the arguments passed will be used to create a refkey for those values. Providing the same arguments will always return the same refkey.
|
|
6
|
-
*
|
|
7
|
-
* @remarks
|
|
8
|
-
* Values are compared using the SameValueZero algorithm, which considers objects the same if they are reference identical, and primitives the same if they are the same value, with the exception of `NaN`, which is always considered equal to other `NaN` values, and `-0`, which is considered identical to `+0`
|
|
9
|
-
*/
|
|
10
|
-
function refkey$1(...args) {
|
|
11
|
-
return refkey("powerlines", ...args);
|
|
12
|
-
}
|
|
13
|
-
refkey$1.__type = [
|
|
14
|
-
"args",
|
|
15
|
-
"Refkey",
|
|
16
|
-
"refkey",
|
|
17
|
-
"Create a refkey for the provided arguments. Passing no arguments returns a fresh refkey that is guaranteed to be unique. Otherwise, the arguments passed will be used to create a refkey for those values. Providing the same arguments will always return the same refkey.",
|
|
18
|
-
"P#@2!\"w\"/#?$"
|
|
19
|
-
];
|
|
20
|
-
|
|
21
|
-
//#endregion
|
|
22
|
-
export { refkey$1 as refkey };
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_output = require('./core/components/output.cjs');
|
|
3
|
-
let __alloy_js_core = require("@alloy-js/core");
|
|
4
|
-
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
5
|
-
let __stryke_json_storm_json = require("@stryke/json/storm-json");
|
|
6
|
-
let __alloy_js_rollup_plugin = require("@alloy-js/rollup-plugin");
|
|
7
|
-
__alloy_js_rollup_plugin = require_rolldown_runtime.__toESM(__alloy_js_rollup_plugin);
|
|
8
|
-
|
|
9
|
-
//#region ../plugin-alloy/src/index.tsx
|
|
10
|
-
/**
|
|
11
|
-
* Alloy-js plugin for Powerlines.
|
|
12
|
-
*
|
|
13
|
-
* @param options - The Alloy-js plugin user configuration options.
|
|
14
|
-
* @returns A Powerlines plugin that integrates Alloy-js transformations.
|
|
15
|
-
*/
|
|
16
|
-
const plugin = (options = {}) => {
|
|
17
|
-
return [{
|
|
18
|
-
name: "alloy:config",
|
|
19
|
-
config() {
|
|
20
|
-
return {
|
|
21
|
-
alloy: {
|
|
22
|
-
typescript: true,
|
|
23
|
-
...options
|
|
24
|
-
},
|
|
25
|
-
build: {
|
|
26
|
-
inputOptions: { transform: {
|
|
27
|
-
typescript: {
|
|
28
|
-
jsxPragma: "Alloy.createElement",
|
|
29
|
-
jsxPragmaFrag: "Alloy.Fragment"
|
|
30
|
-
},
|
|
31
|
-
jsx: {
|
|
32
|
-
runtime: "classic",
|
|
33
|
-
pragma: "Alloy.createElement",
|
|
34
|
-
pragmaFrag: "Alloy.Fragment",
|
|
35
|
-
importSource: "@alloy-js/core"
|
|
36
|
-
}
|
|
37
|
-
} },
|
|
38
|
-
plugins: [(0, __alloy_js_rollup_plugin.default)()],
|
|
39
|
-
external: [
|
|
40
|
-
"@alloy-js/core",
|
|
41
|
-
"@alloy-js/typescript",
|
|
42
|
-
"@alloy-js/json",
|
|
43
|
-
"@alloy-js/markdown"
|
|
44
|
-
]
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
},
|
|
48
|
-
async configResolved() {
|
|
49
|
-
if (this.tsconfig.tsconfigJson.compilerOptions?.jsx !== "preserve" || this.tsconfig.tsconfigJson.compilerOptions?.jsxImportSource !== "@alloy-js/core") {
|
|
50
|
-
this.tsconfig.tsconfigJson.compilerOptions ??= {};
|
|
51
|
-
if (this.tsconfig.tsconfigJson.compilerOptions.jsx !== "preserve") this.tsconfig.tsconfigJson.compilerOptions.jsx = "preserve";
|
|
52
|
-
if (this.tsconfig.tsconfigJson.compilerOptions.jsxImportSource !== "@alloy-js/core") this.tsconfig.tsconfigJson.compilerOptions.jsxImportSource = "@alloy-js/core";
|
|
53
|
-
await this.fs.write(this.tsconfig.tsconfigFilePath, __stryke_json_storm_json.StormJSON.stringify(this.tsconfig.tsconfigJson));
|
|
54
|
-
}
|
|
55
|
-
this.dependencies["@alloy-js/core"] = "^0.22.0";
|
|
56
|
-
if (this.config.alloy?.typescript !== false) this.dependencies["@alloy-js/typescript"] = "^0.22.0";
|
|
57
|
-
if (this.config.alloy?.json === true) this.dependencies["@alloy-js/json"] = "^0.22.0";
|
|
58
|
-
if (this.config.alloy?.markdown === true) this.dependencies["@alloy-js/markdown"] = "^0.22.0";
|
|
59
|
-
}
|
|
60
|
-
}, {
|
|
61
|
-
name: "alloy:update-context",
|
|
62
|
-
configResolved: {
|
|
63
|
-
order: "pre",
|
|
64
|
-
async handler() {
|
|
65
|
-
this.render = async (children) => {
|
|
66
|
-
const _self$ = this;
|
|
67
|
-
const meta = {};
|
|
68
|
-
await (0, __alloy_js_core.traverseOutput)(await (0, __alloy_js_core.renderAsync)((0, __alloy_js_core_jsx_runtime.createComponent)(require_output.Output, {
|
|
69
|
-
context: _self$,
|
|
70
|
-
meta,
|
|
71
|
-
get basePath() {
|
|
72
|
-
return _self$.workspaceConfig.workspaceRoot;
|
|
73
|
-
},
|
|
74
|
-
children
|
|
75
|
-
})), {
|
|
76
|
-
visitDirectory: (directory) => {
|
|
77
|
-
if (this.fs.existsSync(directory.path)) return;
|
|
78
|
-
this.fs.mkdirSync(directory.path);
|
|
79
|
-
},
|
|
80
|
-
visitFile: (file) => {
|
|
81
|
-
if ("contents" in file) {
|
|
82
|
-
const metadata = meta[file.path] ?? {};
|
|
83
|
-
if (metadata.kind === "builtin") {
|
|
84
|
-
if (!metadata.id) throw new Error(`Built-in file "${file.path}" is missing its ID in the render metadata.`);
|
|
85
|
-
this.emitBuiltinSync(file.contents, metadata.id, file.path, {
|
|
86
|
-
skipFormat: metadata.skipFormat,
|
|
87
|
-
storage: metadata.storage
|
|
88
|
-
});
|
|
89
|
-
} else if (metadata.kind === "entry") this.emitEntrySync(file.contents, file.path, {
|
|
90
|
-
skipFormat: metadata.skipFormat,
|
|
91
|
-
storage: metadata.storage,
|
|
92
|
-
...metadata.typeDefinition ?? {}
|
|
93
|
-
});
|
|
94
|
-
else this.emitSync(file.contents, file.path, metadata);
|
|
95
|
-
} else this.fs.copySync(file.sourcePath, file.path);
|
|
96
|
-
}
|
|
97
|
-
});
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
}];
|
|
102
|
-
};
|
|
103
|
-
var src_default = plugin;
|
|
104
|
-
|
|
105
|
-
//#endregion
|
|
106
|
-
exports.default = src_default;
|