@kubb/agent 4.28.1 → 4.29.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.output/nitro.json +1 -1
- package/.output/server/chunks/nitro/nitro.mjs +416 -682
- package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
- package/.output/server/chunks/routes/api/health.get.mjs +4 -6
- package/.output/server/chunks/routes/api/health.get.mjs.map +1 -1
- package/.output/server/index.mjs +4 -6
- package/.output/server/index.mjs.map +1 -1
- package/.output/server/node_modules/@kubb/fabric-core/dist/{defaultParser-BD_N68Bo.js → defaultParser-C1atU7yU.js} +2 -3
- package/.output/server/node_modules/@kubb/fabric-core/dist/{getRelativePath-C4Au07ON.js → getRelativePath-BcieQL5M.js} +1 -2
- package/.output/server/node_modules/@kubb/fabric-core/dist/index.js +8 -9
- package/.output/server/node_modules/@kubb/fabric-core/dist/{Root-BQX3eHqb.js → onProcessExit-CF200hsz.js} +109 -190
- package/.output/server/node_modules/@kubb/fabric-core/dist/parsers/typescript.js +3 -4
- package/.output/server/node_modules/@kubb/fabric-core/dist/parsers.js +2 -3
- package/.output/server/node_modules/@kubb/fabric-core/dist/plugins.js +58 -298
- package/.output/server/node_modules/@kubb/fabric-core/package.json +8 -18
- package/.output/server/node_modules/@kubb/react-fabric/dist/{chunk-DbZtQ4qb.js → chunk-Cnw5r_-A.js} +1 -5
- package/.output/server/node_modules/@kubb/react-fabric/dist/index.js +39 -41
- package/.output/server/node_modules/@kubb/react-fabric/dist/{jsx-runtime-CQFBnRKx.js → jsx-runtime-Dm7PKVbc.js} +6 -24
- package/.output/server/node_modules/@kubb/react-fabric/dist/jsx-runtime.js +5 -4
- package/.output/server/node_modules/@kubb/react-fabric/dist/plugins.js +3 -3
- package/.output/server/node_modules/@kubb/react-fabric/dist/{react--draJ5Pm.js → react-D652OKii.js} +31 -91
- package/.output/server/node_modules/@kubb/react-fabric/dist/{reactPlugin-DqJsInTf.js → reactPlugin-BkDkx1cs.js} +410 -1650
- package/.output/server/node_modules/@kubb/react-fabric/package.json +8 -11
- package/.output/server/node_modules/empathic/access.js +39 -0
- package/.output/server/node_modules/empathic/access.mjs +34 -0
- package/.output/server/node_modules/empathic/find.js +81 -0
- package/.output/server/node_modules/empathic/find.mjs +76 -0
- package/.output/server/node_modules/empathic/package.json +49 -0
- package/.output/server/node_modules/empathic/package.mjs +52 -0
- package/.output/server/node_modules/empathic/resolve.js +31 -0
- package/.output/server/node_modules/empathic/resolve.mjs +27 -0
- package/.output/server/node_modules/empathic/walk.js +22 -0
- package/.output/server/node_modules/empathic/walk.mjs +20 -0
- package/.output/server/node_modules/tinyexec/dist/main.js +633 -0
- package/.output/server/node_modules/tinyexec/package.json +61 -0
- package/.output/server/package.json +6 -44
- package/package.json +19 -21
- package/.output/server/node_modules/.nitro/path-key@3.1.1/index.js +0 -16
- package/.output/server/node_modules/.nitro/path-key@3.1.1/package.json +0 -39
- package/.output/server/node_modules/.nitro/path-key@4.0.0/index.js +0 -12
- package/.output/server/node_modules/.nitro/path-key@4.0.0/package.json +0 -41
- package/.output/server/node_modules/.nitro/path-to-regexp@3.3.0/index.js +0 -421
- package/.output/server/node_modules/.nitro/path-to-regexp@3.3.0/package.json +0 -46
- package/.output/server/node_modules/@kubb/fabric-core/dist/chunk-BVHe6Par.js +0 -22
- package/.output/server/node_modules/@sec-ant/readable-stream/dist/ponyfill/asyncIterator.js +0 -89
- package/.output/server/node_modules/@sec-ant/readable-stream/dist/ponyfill/fromAnyIterable.js +0 -34
- package/.output/server/node_modules/@sec-ant/readable-stream/dist/ponyfill/index.js +0 -6
- package/.output/server/node_modules/@sec-ant/readable-stream/package.json +0 -98
- package/.output/server/node_modules/@sindresorhus/merge-streams/index.js +0 -265
- package/.output/server/node_modules/@sindresorhus/merge-streams/package.json +0 -49
- package/.output/server/node_modules/balanced-match/index.js +0 -62
- package/.output/server/node_modules/balanced-match/package.json +0 -48
- package/.output/server/node_modules/brace-expansion/index.js +0 -201
- package/.output/server/node_modules/brace-expansion/package.json +0 -50
- package/.output/server/node_modules/bytes/index.js +0 -159
- package/.output/server/node_modules/bytes/package.json +0 -39
- package/.output/server/node_modules/concat-map/index.js +0 -13
- package/.output/server/node_modules/concat-map/package.json +0 -59
- package/.output/server/node_modules/content-disposition/index.js +0 -445
- package/.output/server/node_modules/content-disposition/package.json +0 -39
- package/.output/server/node_modules/cross-spawn/index.js +0 -39
- package/.output/server/node_modules/cross-spawn/lib/enoent.js +0 -59
- package/.output/server/node_modules/cross-spawn/lib/parse.js +0 -91
- package/.output/server/node_modules/cross-spawn/lib/util/escape.js +0 -47
- package/.output/server/node_modules/cross-spawn/lib/util/readShebang.js +0 -23
- package/.output/server/node_modules/cross-spawn/lib/util/resolveCommand.js +0 -52
- package/.output/server/node_modules/cross-spawn/package.json +0 -73
- package/.output/server/node_modules/execa/index.js +0 -28
- package/.output/server/node_modules/execa/lib/arguments/command.js +0 -20
- package/.output/server/node_modules/execa/lib/arguments/cwd.js +0 -39
- package/.output/server/node_modules/execa/lib/arguments/encoding-option.js +0 -50
- package/.output/server/node_modules/execa/lib/arguments/escape.js +0 -88
- package/.output/server/node_modules/execa/lib/arguments/fd-options.js +0 -108
- package/.output/server/node_modules/execa/lib/arguments/file-url.js +0 -25
- package/.output/server/node_modules/execa/lib/arguments/options.js +0 -96
- package/.output/server/node_modules/execa/lib/arguments/shell.js +0 -11
- package/.output/server/node_modules/execa/lib/arguments/specific.js +0 -111
- package/.output/server/node_modules/execa/lib/convert/add.js +0 -15
- package/.output/server/node_modules/execa/lib/convert/concurrent.js +0 -33
- package/.output/server/node_modules/execa/lib/convert/duplex.js +0 -69
- package/.output/server/node_modules/execa/lib/convert/iterable.js +0 -34
- package/.output/server/node_modules/execa/lib/convert/readable.js +0 -113
- package/.output/server/node_modules/execa/lib/convert/shared.js +0 -46
- package/.output/server/node_modules/execa/lib/convert/writable.js +0 -90
- package/.output/server/node_modules/execa/lib/io/contents.js +0 -116
- package/.output/server/node_modules/execa/lib/io/input-sync.js +0 -44
- package/.output/server/node_modules/execa/lib/io/iterate.js +0 -110
- package/.output/server/node_modules/execa/lib/io/max-buffer.js +0 -89
- package/.output/server/node_modules/execa/lib/io/output-async.js +0 -80
- package/.output/server/node_modules/execa/lib/io/output-sync.js +0 -135
- package/.output/server/node_modules/execa/lib/io/pipeline.js +0 -48
- package/.output/server/node_modules/execa/lib/io/strip-newline.js +0 -12
- package/.output/server/node_modules/execa/lib/ipc/array.js +0 -4
- package/.output/server/node_modules/execa/lib/ipc/buffer-messages.js +0 -47
- package/.output/server/node_modules/execa/lib/ipc/forward.js +0 -56
- package/.output/server/node_modules/execa/lib/ipc/get-each.js +0 -89
- package/.output/server/node_modules/execa/lib/ipc/get-one.js +0 -69
- package/.output/server/node_modules/execa/lib/ipc/graceful.js +0 -72
- package/.output/server/node_modules/execa/lib/ipc/incoming.js +0 -79
- package/.output/server/node_modules/execa/lib/ipc/ipc-input.js +0 -44
- package/.output/server/node_modules/execa/lib/ipc/methods.js +0 -49
- package/.output/server/node_modules/execa/lib/ipc/outgoing.js +0 -47
- package/.output/server/node_modules/execa/lib/ipc/reference.js +0 -44
- package/.output/server/node_modules/execa/lib/ipc/send.js +0 -91
- package/.output/server/node_modules/execa/lib/ipc/strict.js +0 -113
- package/.output/server/node_modules/execa/lib/ipc/validation.js +0 -111
- package/.output/server/node_modules/execa/lib/methods/bind.js +0 -23
- package/.output/server/node_modules/execa/lib/methods/command.js +0 -43
- package/.output/server/node_modules/execa/lib/methods/create.js +0 -65
- package/.output/server/node_modules/execa/lib/methods/main-async.js +0 -194
- package/.output/server/node_modules/execa/lib/methods/main-sync.js +0 -163
- package/.output/server/node_modules/execa/lib/methods/node.js +0 -51
- package/.output/server/node_modules/execa/lib/methods/parameters.js +0 -31
- package/.output/server/node_modules/execa/lib/methods/promise.js +0 -15
- package/.output/server/node_modules/execa/lib/methods/script.js +0 -22
- package/.output/server/node_modules/execa/lib/methods/template.js +0 -153
- package/.output/server/node_modules/execa/lib/pipe/abort.js +0 -20
- package/.output/server/node_modules/execa/lib/pipe/pipe-arguments.js +0 -91
- package/.output/server/node_modules/execa/lib/pipe/sequence.js +0 -24
- package/.output/server/node_modules/execa/lib/pipe/setup.js +0 -72
- package/.output/server/node_modules/execa/lib/pipe/streaming.js +0 -51
- package/.output/server/node_modules/execa/lib/pipe/throw.js +0 -58
- package/.output/server/node_modules/execa/lib/resolve/all-async.js +0 -46
- package/.output/server/node_modules/execa/lib/resolve/all-sync.js +0 -33
- package/.output/server/node_modules/execa/lib/resolve/exit-async.js +0 -54
- package/.output/server/node_modules/execa/lib/resolve/exit-sync.js +0 -25
- package/.output/server/node_modules/execa/lib/resolve/stdio.js +0 -47
- package/.output/server/node_modules/execa/lib/resolve/wait-stream.js +0 -96
- package/.output/server/node_modules/execa/lib/resolve/wait-subprocess.js +0 -146
- package/.output/server/node_modules/execa/lib/return/duration.js +0 -8
- package/.output/server/node_modules/execa/lib/return/early-error.js +0 -60
- package/.output/server/node_modules/execa/lib/return/final-error.js +0 -40
- package/.output/server/node_modules/execa/lib/return/message.js +0 -157
- package/.output/server/node_modules/execa/lib/return/reject.js +0 -13
- package/.output/server/node_modules/execa/lib/return/result.js +0 -186
- package/.output/server/node_modules/execa/lib/stdio/direction.js +0 -76
- package/.output/server/node_modules/execa/lib/stdio/duplicate.js +0 -116
- package/.output/server/node_modules/execa/lib/stdio/handle-async.js +0 -52
- package/.output/server/node_modules/execa/lib/stdio/handle-sync.js +0 -57
- package/.output/server/node_modules/execa/lib/stdio/handle.js +0 -214
- package/.output/server/node_modules/execa/lib/stdio/input-option.js +0 -50
- package/.output/server/node_modules/execa/lib/stdio/native.js +0 -106
- package/.output/server/node_modules/execa/lib/stdio/stdio-option.js +0 -60
- package/.output/server/node_modules/execa/lib/stdio/type.js +0 -173
- package/.output/server/node_modules/execa/lib/terminate/cancel.js +0 -20
- package/.output/server/node_modules/execa/lib/terminate/cleanup.js +0 -16
- package/.output/server/node_modules/execa/lib/terminate/graceful.js +0 -71
- package/.output/server/node_modules/execa/lib/terminate/kill.js +0 -93
- package/.output/server/node_modules/execa/lib/terminate/signal.js +0 -70
- package/.output/server/node_modules/execa/lib/terminate/timeout.js +0 -21
- package/.output/server/node_modules/execa/lib/transform/encoding-transform.js +0 -51
- package/.output/server/node_modules/execa/lib/transform/generator.js +0 -107
- package/.output/server/node_modules/execa/lib/transform/normalize.js +0 -111
- package/.output/server/node_modules/execa/lib/transform/object-mode.js +0 -41
- package/.output/server/node_modules/execa/lib/transform/run-async.js +0 -60
- package/.output/server/node_modules/execa/lib/transform/run-sync.js +0 -50
- package/.output/server/node_modules/execa/lib/transform/split.js +0 -110
- package/.output/server/node_modules/execa/lib/transform/validate.js +0 -43
- package/.output/server/node_modules/execa/lib/utils/abort-signal.js +0 -8
- package/.output/server/node_modules/execa/lib/utils/deferred.js +0 -7
- package/.output/server/node_modules/execa/lib/utils/max-listeners.js +0 -14
- package/.output/server/node_modules/execa/lib/utils/standard-stream.js +0 -6
- package/.output/server/node_modules/execa/lib/utils/uint-array.js +0 -69
- package/.output/server/node_modules/execa/lib/verbose/complete.js +0 -24
- package/.output/server/node_modules/execa/lib/verbose/custom.js +0 -26
- package/.output/server/node_modules/execa/lib/verbose/default.js +0 -54
- package/.output/server/node_modules/execa/lib/verbose/error.js +0 -13
- package/.output/server/node_modules/execa/lib/verbose/info.js +0 -39
- package/.output/server/node_modules/execa/lib/verbose/ipc.js +0 -15
- package/.output/server/node_modules/execa/lib/verbose/log.js +0 -54
- package/.output/server/node_modules/execa/lib/verbose/output.js +0 -60
- package/.output/server/node_modules/execa/lib/verbose/start.js +0 -15
- package/.output/server/node_modules/execa/lib/verbose/values.js +0 -33
- package/.output/server/node_modules/execa/package.json +0 -105
- package/.output/server/node_modules/figures/index.js +0 -292
- package/.output/server/node_modules/figures/package.json +0 -49
- package/.output/server/node_modules/fs-extra/lib/copy/copy-sync.js +0 -176
- package/.output/server/node_modules/fs-extra/lib/copy/copy.js +0 -180
- package/.output/server/node_modules/fs-extra/lib/copy/index.js +0 -7
- package/.output/server/node_modules/fs-extra/lib/empty/index.js +0 -39
- package/.output/server/node_modules/fs-extra/lib/ensure/file.js +0 -66
- package/.output/server/node_modules/fs-extra/lib/ensure/index.js +0 -23
- package/.output/server/node_modules/fs-extra/lib/ensure/link.js +0 -64
- package/.output/server/node_modules/fs-extra/lib/ensure/symlink-paths.js +0 -101
- package/.output/server/node_modules/fs-extra/lib/ensure/symlink-type.js +0 -34
- package/.output/server/node_modules/fs-extra/lib/ensure/symlink.js +0 -67
- package/.output/server/node_modules/fs-extra/lib/fs/index.js +0 -146
- package/.output/server/node_modules/fs-extra/lib/index.js +0 -16
- package/.output/server/node_modules/fs-extra/lib/json/index.js +0 -16
- package/.output/server/node_modules/fs-extra/lib/json/jsonfile.js +0 -11
- package/.output/server/node_modules/fs-extra/lib/json/output-json-sync.js +0 -12
- package/.output/server/node_modules/fs-extra/lib/json/output-json.js +0 -12
- package/.output/server/node_modules/fs-extra/lib/mkdirs/index.js +0 -14
- package/.output/server/node_modules/fs-extra/lib/mkdirs/make-dir.js +0 -27
- package/.output/server/node_modules/fs-extra/lib/mkdirs/utils.js +0 -21
- package/.output/server/node_modules/fs-extra/lib/move/index.js +0 -7
- package/.output/server/node_modules/fs-extra/lib/move/move-sync.js +0 -55
- package/.output/server/node_modules/fs-extra/lib/move/move.js +0 -59
- package/.output/server/node_modules/fs-extra/lib/output-file/index.js +0 -31
- package/.output/server/node_modules/fs-extra/lib/path-exists/index.js +0 -12
- package/.output/server/node_modules/fs-extra/lib/remove/index.js +0 -17
- package/.output/server/node_modules/fs-extra/lib/util/async.js +0 -29
- package/.output/server/node_modules/fs-extra/lib/util/stat.js +0 -159
- package/.output/server/node_modules/fs-extra/lib/util/utimes.js +0 -36
- package/.output/server/node_modules/fs-extra/package.json +0 -71
- package/.output/server/node_modules/get-stream/package.json +0 -60
- package/.output/server/node_modules/get-stream/source/array-buffer.js +0 -84
- package/.output/server/node_modules/get-stream/source/array.js +0 -32
- package/.output/server/node_modules/get-stream/source/buffer.js +0 -19
- package/.output/server/node_modules/get-stream/source/contents.js +0 -121
- package/.output/server/node_modules/get-stream/source/exports.js +0 -5
- package/.output/server/node_modules/get-stream/source/index.js +0 -13
- package/.output/server/node_modules/get-stream/source/stream.js +0 -65
- package/.output/server/node_modules/get-stream/source/string.js +0 -41
- package/.output/server/node_modules/get-stream/source/utils.js +0 -11
- package/.output/server/node_modules/graceful-fs/clone.js +0 -23
- package/.output/server/node_modules/graceful-fs/graceful-fs.js +0 -448
- package/.output/server/node_modules/graceful-fs/legacy-streams.js +0 -118
- package/.output/server/node_modules/graceful-fs/package.json +0 -53
- package/.output/server/node_modules/graceful-fs/polyfills.js +0 -355
- package/.output/server/node_modules/human-signals/build/src/core.js +0 -273
- package/.output/server/node_modules/human-signals/build/src/main.js +0 -70
- package/.output/server/node_modules/human-signals/build/src/realtime.js +0 -16
- package/.output/server/node_modules/human-signals/build/src/signals.js +0 -34
- package/.output/server/node_modules/human-signals/package.json +0 -66
- package/.output/server/node_modules/is-plain-obj/index.js +0 -8
- package/.output/server/node_modules/is-plain-obj/package.json +0 -41
- package/.output/server/node_modules/is-stream/index.js +0 -37
- package/.output/server/node_modules/is-stream/package.json +0 -48
- package/.output/server/node_modules/is-unicode-supported/index.js +0 -21
- package/.output/server/node_modules/is-unicode-supported/package.json +0 -47
- package/.output/server/node_modules/isexe/index.js +0 -57
- package/.output/server/node_modules/isexe/mode.js +0 -41
- package/.output/server/node_modules/isexe/package.json +0 -31
- package/.output/server/node_modules/isexe/windows.js +0 -42
- package/.output/server/node_modules/js-runtime/dist/index.js +0 -5
- package/.output/server/node_modules/js-runtime/package.json +0 -72
- package/.output/server/node_modules/jsonfile/index.js +0 -88
- package/.output/server/node_modules/jsonfile/package.json +0 -40
- package/.output/server/node_modules/jsonfile/utils.js +0 -14
- package/.output/server/node_modules/mime-db/db.json +0 -7088
- package/.output/server/node_modules/mime-db/index.js +0 -11
- package/.output/server/node_modules/mime-db/package.json +0 -57
- package/.output/server/node_modules/mime-types/index.js +0 -188
- package/.output/server/node_modules/mime-types/package.json +0 -43
- package/.output/server/node_modules/minimatch/minimatch.js +0 -947
- package/.output/server/node_modules/minimatch/package.json +0 -33
- package/.output/server/node_modules/natural-orderby/dist/main.js +0 -19
- package/.output/server/node_modules/natural-orderby/dist/umd/natural-orderby.development.js +0 -420
- package/.output/server/node_modules/natural-orderby/dist/umd/natural-orderby.production.min.js +0 -11
- package/.output/server/node_modules/natural-orderby/package.json +0 -119
- package/.output/server/node_modules/npm-run-path/index.js +0 -55
- package/.output/server/node_modules/npm-run-path/package.json +0 -52
- package/.output/server/node_modules/parse-ms/index.js +0 -45
- package/.output/server/node_modules/parse-ms/package.json +0 -47
- package/.output/server/node_modules/path-is-inside/lib/path-is-inside.js +0 -28
- package/.output/server/node_modules/path-is-inside/package.json +0 -27
- package/.output/server/node_modules/pretty-ms/index.js +0 -149
- package/.output/server/node_modules/pretty-ms/package.json +0 -55
- package/.output/server/node_modules/range-parser/index.js +0 -158
- package/.output/server/node_modules/range-parser/package.json +0 -40
- package/.output/server/node_modules/serve-handler/package.json +0 -68
- package/.output/server/node_modules/serve-handler/src/directory.js +0 -16
- package/.output/server/node_modules/serve-handler/src/error.js +0 -10
- package/.output/server/node_modules/serve-handler/src/glob-slash.js +0 -9
- package/.output/server/node_modules/serve-handler/src/index.js +0 -769
- package/.output/server/node_modules/shebang-command/index.js +0 -19
- package/.output/server/node_modules/shebang-command/package.json +0 -34
- package/.output/server/node_modules/shebang-regex/index.js +0 -2
- package/.output/server/node_modules/shebang-regex/package.json +0 -35
- package/.output/server/node_modules/signal-exit/dist/mjs/index.js +0 -275
- package/.output/server/node_modules/signal-exit/dist/mjs/package.json +0 -3
- package/.output/server/node_modules/signal-exit/dist/mjs/signals.js +0 -39
- package/.output/server/node_modules/signal-exit/package.json +0 -106
- package/.output/server/node_modules/string-argv/index.js +0 -41
- package/.output/server/node_modules/string-argv/package.json +0 -51
- package/.output/server/node_modules/strip-final-newline/index.js +0 -26
- package/.output/server/node_modules/strip-final-newline/package.json +0 -49
- package/.output/server/node_modules/unicorn-magic/default.js +0 -14
- package/.output/server/node_modules/unicorn-magic/node.js +0 -49
- package/.output/server/node_modules/unicorn-magic/package.json +0 -62
- package/.output/server/node_modules/universalify/index.js +0 -24
- package/.output/server/node_modules/universalify/package.json +0 -34
- package/.output/server/node_modules/which/package.json +0 -43
- package/.output/server/node_modules/which/which.js +0 -125
- package/.output/server/node_modules/yoctocolors/base.js +0 -94
- package/.output/server/node_modules/yoctocolors/index.js +0 -2
- package/.output/server/node_modules/yoctocolors/package.json +0 -69
- /package/.output/server/node_modules/{.nitro/path-to-regexp@8.3.0 → path-to-regexp}/dist/index.js +0 -0
- /package/.output/server/node_modules/{.nitro/path-to-regexp@8.3.0 → path-to-regexp}/package.json +0 -0
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as require_react } from "./react
|
|
3
|
-
import "./jsx-runtime-
|
|
1
|
+
import { i as __toESM } from "./chunk-Cnw5r_-A.js";
|
|
2
|
+
import { t as require_react } from "./react-D652OKii.js";
|
|
3
|
+
import "./jsx-runtime-Dm7PKVbc.js";
|
|
4
4
|
import { Fragment, jsx, jsxs } from "./jsx-runtime.js";
|
|
5
|
-
import {
|
|
6
|
-
import { AppContext, FileContext, FileManager, FileProcessor, NodeTreeContext, RootContext, TreeNode, createContext, createFabric, createFabric as createFabric$1, createFile, createJSDoc, provide, useApp, useContext, useContext as useContext$1, useFile, useFile as useFile$1, useFileManager, useLifecycle, useNodeTree } from "@kubb/fabric-core";
|
|
7
|
-
import {
|
|
8
|
-
import { onExit } from "signal-exit";
|
|
5
|
+
import { i as Root, n as Runtime, r as Renderer, t as reactPlugin } from "./reactPlugin-BkDkx1cs.js";
|
|
6
|
+
import { AppContext, FileContext, FileManager, FileProcessor, NodeTreeContext, RootContext, TreeNode, createContext, createFabric, createFabric as createFabric$1, createFile, createJSDoc, onProcessExit, provide, useApp, useContext, useContext as useContext$1, useFile, useFile as useFile$1, useFileManager, useLifecycle, useNodeTree } from "@kubb/fabric-core";
|
|
7
|
+
import { spawn } from "node:child_process";
|
|
9
8
|
import ws from "ws";
|
|
10
|
-
import {
|
|
9
|
+
import { sortBy } from "remeda";
|
|
11
10
|
|
|
12
11
|
//#region src/components/App.tsx
|
|
13
12
|
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
@@ -43,7 +42,7 @@ function Const({ children, ...props }) {
|
|
|
43
42
|
props
|
|
44
43
|
}));
|
|
45
44
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
46
|
-
|
|
45
|
+
JSDoc?.comments && /* @__PURE__ */ jsxs(Fragment, { children: [createJSDoc({ comments: JSDoc?.comments }), /* @__PURE__ */ jsx("br", {})] }),
|
|
47
46
|
canExport && /* @__PURE__ */ jsx(Fragment, { children: "export " }),
|
|
48
47
|
"const ",
|
|
49
48
|
name,
|
|
@@ -187,7 +186,7 @@ function Function({ children, ...props }) {
|
|
|
187
186
|
props
|
|
188
187
|
}));
|
|
189
188
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
190
|
-
|
|
189
|
+
JSDoc?.comments && /* @__PURE__ */ jsxs(Fragment, { children: [createJSDoc({ comments: JSDoc?.comments }), /* @__PURE__ */ jsx("br", {})] }),
|
|
191
190
|
canExport && /* @__PURE__ */ jsx(Fragment, { children: "export " }),
|
|
192
191
|
isDefault && /* @__PURE__ */ jsx(Fragment, { children: "default " }),
|
|
193
192
|
async && /* @__PURE__ */ jsx(Fragment, { children: "async " }),
|
|
@@ -232,7 +231,7 @@ function ArrowFunction({ children, ...props }) {
|
|
|
232
231
|
props
|
|
233
232
|
}));
|
|
234
233
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
235
|
-
|
|
234
|
+
JSDoc?.comments && /* @__PURE__ */ jsxs(Fragment, { children: [createJSDoc({ comments: JSDoc?.comments }), /* @__PURE__ */ jsx("br", {})] }),
|
|
236
235
|
canExport && /* @__PURE__ */ jsx(Fragment, { children: "export " }),
|
|
237
236
|
isDefault && /* @__PURE__ */ jsx(Fragment, { children: "default " }),
|
|
238
237
|
"const ",
|
|
@@ -288,7 +287,7 @@ function Type({ children, ...props }) {
|
|
|
288
287
|
}));
|
|
289
288
|
if (name.charAt(0).toUpperCase() !== name.charAt(0)) throw new Error("Name should start with a capital letter(see TypeScript types)");
|
|
290
289
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
291
|
-
|
|
290
|
+
JSDoc?.comments && /* @__PURE__ */ jsxs(Fragment, { children: [createJSDoc({ comments: JSDoc?.comments }), /* @__PURE__ */ jsx("br", {})] }),
|
|
292
291
|
canExport && /* @__PURE__ */ jsx(Fragment, { children: "export " }),
|
|
293
292
|
"type ",
|
|
294
293
|
name,
|
|
@@ -304,9 +303,9 @@ let isOpen = false;
|
|
|
304
303
|
function openDevtools() {
|
|
305
304
|
if (isOpen) return;
|
|
306
305
|
const customGlobal = global;
|
|
307
|
-
customGlobal.WebSocket
|
|
308
|
-
customGlobal.window
|
|
309
|
-
customGlobal.self
|
|
306
|
+
customGlobal.WebSocket ||= ws;
|
|
307
|
+
customGlobal.window ||= global;
|
|
308
|
+
customGlobal.self ||= global;
|
|
310
309
|
customGlobal.isDevtoolsEnabled = true;
|
|
311
310
|
customGlobal.window.__REACT_DEVTOOLS_COMPONENT_FILTERS__ = [
|
|
312
311
|
{
|
|
@@ -361,14 +360,13 @@ function openDevtools() {
|
|
|
361
360
|
import("react-devtools-core").then(async (devtools) => {
|
|
362
361
|
console.info("Opening devtools");
|
|
363
362
|
const controller = new AbortController();
|
|
364
|
-
if (!isOpen)
|
|
363
|
+
if (!isOpen) spawn("npx", ["react-devtools@6.1.5"], {
|
|
364
|
+
signal: controller.signal,
|
|
365
365
|
stdio: "pipe",
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
gracefulCancel: true
|
|
369
|
-
})`npx react-devtools@6.1.5`;
|
|
366
|
+
detached: true
|
|
367
|
+
}).unref();
|
|
370
368
|
isOpen = true;
|
|
371
|
-
const { initialize, connectToDevTools } =
|
|
369
|
+
const { initialize, connectToDevTools } = devtools?.default || devtools;
|
|
372
370
|
initialize();
|
|
373
371
|
console.info("Initializing devtools");
|
|
374
372
|
Renderer.injectIntoDevTools({
|
|
@@ -389,10 +387,10 @@ function openDevtools() {
|
|
|
389
387
|
console.error(e);
|
|
390
388
|
console.info("Error when connecting the devtools");
|
|
391
389
|
}
|
|
392
|
-
|
|
390
|
+
onProcessExit(() => {
|
|
393
391
|
console.info("Disconnecting devtools");
|
|
394
392
|
controller.abort();
|
|
395
|
-
}
|
|
393
|
+
});
|
|
396
394
|
});
|
|
397
395
|
}
|
|
398
396
|
|
|
@@ -413,18 +411,18 @@ function createReactFabric(config = {}) {
|
|
|
413
411
|
//#endregion
|
|
414
412
|
//#region src/utils/getFunctionParams.ts
|
|
415
413
|
function order(items) {
|
|
416
|
-
return
|
|
417
|
-
if (item
|
|
418
|
-
if (item
|
|
419
|
-
if (item
|
|
414
|
+
return sortBy(items.filter(Boolean), ([_key, item]) => {
|
|
415
|
+
if (item?.children) return 0;
|
|
416
|
+
if (item?.optional) return 1;
|
|
417
|
+
if (item?.default) return 2;
|
|
420
418
|
return 0;
|
|
421
|
-
}
|
|
419
|
+
});
|
|
422
420
|
}
|
|
423
421
|
function parseChild(key, item, options) {
|
|
424
422
|
const entries = order(Object.entries(item.children));
|
|
425
423
|
const types = [];
|
|
426
424
|
const names = [];
|
|
427
|
-
const optional = entries.every(([_key, item]) =>
|
|
425
|
+
const optional = entries.every(([_key, item]) => item?.optional || !!item?.default);
|
|
428
426
|
entries.forEach(([key, entryItem]) => {
|
|
429
427
|
if (entryItem) {
|
|
430
428
|
const name = parseItem(key, {
|
|
@@ -439,7 +437,7 @@ function parseChild(key, item, options) {
|
|
|
439
437
|
else names.push(name);
|
|
440
438
|
} else if (options.type === "call" && options.transformName) names.push(`${key}: ${name}`);
|
|
441
439
|
else names.push(name);
|
|
442
|
-
if (entries.some(([_key, item]) => item
|
|
440
|
+
if (entries.some(([_key, item]) => item?.type)) types.push(parseItem(key, {
|
|
443
441
|
...entryItem,
|
|
444
442
|
default: void 0
|
|
445
443
|
}, options));
|
|
@@ -486,41 +484,40 @@ function getFunctionParams(params, options) {
|
|
|
486
484
|
function createFunctionParams(params) {
|
|
487
485
|
return params;
|
|
488
486
|
}
|
|
489
|
-
var _params = /* @__PURE__ */ new WeakMap();
|
|
490
487
|
var FunctionParams = class FunctionParams {
|
|
488
|
+
#params;
|
|
491
489
|
static factory(params) {
|
|
492
490
|
return new FunctionParams(params);
|
|
493
491
|
}
|
|
494
492
|
constructor(params) {
|
|
495
|
-
|
|
496
|
-
_classPrivateFieldSet2(_params, this, params);
|
|
493
|
+
this.#params = params;
|
|
497
494
|
}
|
|
498
495
|
get params() {
|
|
499
|
-
return
|
|
496
|
+
return this.#params;
|
|
500
497
|
}
|
|
501
498
|
get flatParams() {
|
|
502
499
|
const flatter = (acc, [key, item]) => {
|
|
503
|
-
if (item
|
|
500
|
+
if (item?.children) return Object.entries(item.children).reduce(flatter, acc);
|
|
504
501
|
if (item) acc[key] = item;
|
|
505
502
|
return acc;
|
|
506
503
|
};
|
|
507
|
-
return Object.entries(
|
|
504
|
+
return Object.entries(this.#params).reduce(flatter, {});
|
|
508
505
|
}
|
|
509
506
|
toCall({ transformName, transformType } = {}) {
|
|
510
|
-
return getFunctionParams(
|
|
507
|
+
return getFunctionParams(this.#params, {
|
|
511
508
|
type: "call",
|
|
512
509
|
transformName,
|
|
513
510
|
transformType
|
|
514
511
|
});
|
|
515
512
|
}
|
|
516
513
|
toObject() {
|
|
517
|
-
return getFunctionParams(
|
|
514
|
+
return getFunctionParams(this.#params, { type: "object" });
|
|
518
515
|
}
|
|
519
516
|
toObjectValue() {
|
|
520
|
-
return getFunctionParams(
|
|
517
|
+
return getFunctionParams(this.#params, { type: "objectValue" });
|
|
521
518
|
}
|
|
522
519
|
toConstructor() {
|
|
523
|
-
return getFunctionParams(
|
|
520
|
+
return getFunctionParams(this.#params, { type: "constructor" });
|
|
524
521
|
}
|
|
525
522
|
};
|
|
526
523
|
|
|
@@ -532,4 +529,5 @@ const useReducer = import_react.useReducer;
|
|
|
532
529
|
const useRef = import_react.useRef;
|
|
533
530
|
|
|
534
531
|
//#endregion
|
|
535
|
-
export { App, Const, File, FileManager, FileProcessor, Function, FunctionParams, Root, Runtime, TreeNode, Type, createContext, createFabric, createFile, createFunctionParams, createReactFabric, openDevtools, useApp, useContext, useEffect, useFile, useLifecycle, useReducer, useRef, useState };
|
|
532
|
+
export { App, Const, File, FileManager, FileProcessor, Function, FunctionParams, Root, Runtime, TreeNode, Type, createContext, createFabric, createFile, createFunctionParams, createReactFabric, openDevtools, useApp, useContext, useEffect, useFile, useLifecycle, useReducer, useRef, useState };
|
|
533
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as require_react } from "./react
|
|
1
|
+
import { t as __commonJSMin } from "./chunk-Cnw5r_-A.js";
|
|
2
|
+
import { t as require_react } from "./react-D652OKii.js";
|
|
3
3
|
|
|
4
4
|
//#region ../../node_modules/.pnpm/react@19.2.3/node_modules/react/cjs/react-jsx-runtime.production.js
|
|
5
5
|
/**
|
|
@@ -12,8 +12,7 @@ import { t as require_react } from "./react--draJ5Pm.js";
|
|
|
12
12
|
* LICENSE file in the root directory of this source tree.
|
|
13
13
|
*/
|
|
14
14
|
var require_react_jsx_runtime_production = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
15
|
-
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element");
|
|
16
|
-
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
15
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
17
16
|
function jsxProd(type, config, maybeKey) {
|
|
18
17
|
var key = null;
|
|
19
18
|
void 0 !== maybeKey && (key = "" + maybeKey);
|
|
@@ -213,25 +212,7 @@ var require_react_jsx_runtime_development = /* @__PURE__ */ __commonJSMin(((expo
|
|
|
213
212
|
function isValidElement(object) {
|
|
214
213
|
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
215
214
|
}
|
|
216
|
-
var React = require_react()
|
|
217
|
-
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element");
|
|
218
|
-
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
219
|
-
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
220
|
-
var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
|
|
221
|
-
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
222
|
-
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer");
|
|
223
|
-
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
|
224
|
-
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
|
225
|
-
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
|
226
|
-
var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
|
|
227
|
-
var REACT_MEMO_TYPE = Symbol.for("react.memo");
|
|
228
|
-
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
229
|
-
var REACT_ACTIVITY_TYPE = Symbol.for("react.activity");
|
|
230
|
-
var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
|
|
231
|
-
var ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
232
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
233
|
-
var isArrayImpl = Array.isArray;
|
|
234
|
-
var createTask = console.createTask ? console.createTask : function() {
|
|
215
|
+
var React = require_react(), REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() {
|
|
235
216
|
return null;
|
|
236
217
|
};
|
|
237
218
|
React = { react_stack_bottom_frame: function(callStackForError) {
|
|
@@ -262,4 +243,5 @@ var require_jsx_runtime = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
262
243
|
}));
|
|
263
244
|
|
|
264
245
|
//#endregion
|
|
265
|
-
export { require_jsx_runtime as t };
|
|
246
|
+
export { require_jsx_runtime as t };
|
|
247
|
+
//# sourceMappingURL=jsx-runtime-Dm7PKVbc.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./react
|
|
3
|
-
import { t as require_jsx_runtime } from "./jsx-runtime-
|
|
1
|
+
import { i as __toESM } from "./chunk-Cnw5r_-A.js";
|
|
2
|
+
import "./react-D652OKii.js";
|
|
3
|
+
import { t as require_jsx_runtime } from "./jsx-runtime-Dm7PKVbc.js";
|
|
4
4
|
|
|
5
5
|
//#region src/jsx-runtime.ts
|
|
6
6
|
var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime(), 1);
|
|
@@ -10,4 +10,5 @@ const jsxDEV = import_jsx_runtime.jsx;
|
|
|
10
10
|
const jsxs = import_jsx_runtime.jsxs;
|
|
11
11
|
|
|
12
12
|
//#endregion
|
|
13
|
-
export { Fragment, jsx, jsxDEV, jsxs };
|
|
13
|
+
export { Fragment, jsx, jsxDEV, jsxs };
|
|
14
|
+
//# sourceMappingURL=jsx-runtime.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./react
|
|
2
|
-
import "./jsx-runtime-
|
|
3
|
-
import { t as reactPlugin } from "./reactPlugin-
|
|
1
|
+
import "./react-D652OKii.js";
|
|
2
|
+
import "./jsx-runtime-Dm7PKVbc.js";
|
|
3
|
+
import { t as reactPlugin } from "./reactPlugin-BkDkx1cs.js";
|
|
4
4
|
|
|
5
5
|
export * from "@kubb/fabric-core/plugins"
|
|
6
6
|
|
package/.output/server/node_modules/@kubb/react-fabric/dist/{react--draJ5Pm.js → react-D652OKii.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as __commonJSMin } from "./chunk-Cnw5r_-A.js";
|
|
2
2
|
|
|
3
3
|
//#region ../../node_modules/.pnpm/react@19.2.3/node_modules/react/cjs/react.production.js
|
|
4
4
|
/**
|
|
@@ -11,19 +11,7 @@ import { r as __name, t as __commonJSMin } from "./chunk-DbZtQ4qb.js";
|
|
|
11
11
|
* LICENSE file in the root directory of this source tree.
|
|
12
12
|
*/
|
|
13
13
|
var require_react_production = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
14
|
-
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element");
|
|
15
|
-
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
16
|
-
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
17
|
-
var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
|
|
18
|
-
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
19
|
-
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer");
|
|
20
|
-
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
|
21
|
-
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
|
22
|
-
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
|
23
|
-
var REACT_MEMO_TYPE = Symbol.for("react.memo");
|
|
24
|
-
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
25
|
-
var REACT_ACTIVITY_TYPE = Symbol.for("react.activity");
|
|
26
|
-
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
14
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
27
15
|
function getIteratorFn(maybeIterable) {
|
|
28
16
|
if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
|
|
29
17
|
maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
|
|
@@ -36,9 +24,7 @@ var require_react_production = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
36
24
|
enqueueForceUpdate: function() {},
|
|
37
25
|
enqueueReplaceState: function() {},
|
|
38
26
|
enqueueSetState: function() {}
|
|
39
|
-
};
|
|
40
|
-
var assign = Object.assign;
|
|
41
|
-
var emptyObject = {};
|
|
27
|
+
}, assign = Object.assign, emptyObject = {};
|
|
42
28
|
function Component(props, context, updater) {
|
|
43
29
|
this.props = props;
|
|
44
30
|
this.context = context;
|
|
@@ -72,8 +58,7 @@ var require_react_production = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
72
58
|
A: null,
|
|
73
59
|
T: null,
|
|
74
60
|
S: null
|
|
75
|
-
};
|
|
76
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
61
|
+
}, hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
77
62
|
function ReactElement(type, key, props) {
|
|
78
63
|
var refProp = props.ref;
|
|
79
64
|
return {
|
|
@@ -153,8 +138,7 @@ var require_react_production = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
153
138
|
}
|
|
154
139
|
function mapChildren(children, func, context) {
|
|
155
140
|
if (null == children) return children;
|
|
156
|
-
var result = [];
|
|
157
|
-
var count = 0;
|
|
141
|
+
var result = [], count = 0;
|
|
158
142
|
mapIntoArray(children, result, "", "", function(child) {
|
|
159
143
|
return func.call(context, child, count++);
|
|
160
144
|
});
|
|
@@ -188,8 +172,7 @@ var require_react_production = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
188
172
|
return;
|
|
189
173
|
}
|
|
190
174
|
console.error(error);
|
|
191
|
-
}
|
|
192
|
-
var Children = {
|
|
175
|
+
}, Children = {
|
|
193
176
|
map: mapChildren,
|
|
194
177
|
forEach: function(children, forEachFunc, forEachContext) {
|
|
195
178
|
mapChildren(children, function() {
|
|
@@ -238,8 +221,7 @@ var require_react_production = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
238
221
|
};
|
|
239
222
|
exports.cloneElement = function(element, config, children) {
|
|
240
223
|
if (null === element || void 0 === element) throw Error("The argument must be a React element, but you passed " + element + ".");
|
|
241
|
-
var props = assign({}, element.props);
|
|
242
|
-
var key = element.key;
|
|
224
|
+
var props = assign({}, element.props), key = element.key;
|
|
243
225
|
if (null != config) for (propName in void 0 !== config.key && (key = "" + config.key), config) !hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
|
|
244
226
|
var propName = arguments.length - 2;
|
|
245
227
|
if (1 === propName) props.children = children;
|
|
@@ -266,9 +248,7 @@ var require_react_production = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
266
248
|
return defaultValue;
|
|
267
249
|
};
|
|
268
250
|
exports.createElement = function(type, config, children) {
|
|
269
|
-
var propName;
|
|
270
|
-
var props = {};
|
|
271
|
-
var key = null;
|
|
251
|
+
var propName, props = {}, key = null;
|
|
272
252
|
if (null != config) for (propName in void 0 !== config.key && (key = "" + config.key), config) hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (props[propName] = config[propName]);
|
|
273
253
|
var childrenLength = arguments.length - 2;
|
|
274
254
|
if (1 === childrenLength) props.children = children;
|
|
@@ -307,12 +287,10 @@ var require_react_production = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
307
287
|
};
|
|
308
288
|
};
|
|
309
289
|
exports.startTransition = function(scope) {
|
|
310
|
-
var prevTransition = ReactSharedInternals.T;
|
|
311
|
-
var currentTransition = {};
|
|
290
|
+
var prevTransition = ReactSharedInternals.T, currentTransition = {};
|
|
312
291
|
ReactSharedInternals.T = currentTransition;
|
|
313
292
|
try {
|
|
314
|
-
var returnValue = scope();
|
|
315
|
-
var onStartTransitionFinish = ReactSharedInternals.S;
|
|
293
|
+
var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
|
|
316
294
|
null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
|
|
317
295
|
"object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
|
|
318
296
|
} catch (error) {
|
|
@@ -636,8 +614,7 @@ var require_react_development = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
636
614
|
}
|
|
637
615
|
function mapChildren(children, func, context) {
|
|
638
616
|
if (null == children) return children;
|
|
639
|
-
var result = [];
|
|
640
|
-
var count = 0;
|
|
617
|
+
var result = [], count = 0;
|
|
641
618
|
mapIntoArray(children, result, "", "", function(child) {
|
|
642
619
|
return func.call(context, child, count++);
|
|
643
620
|
});
|
|
@@ -749,22 +726,7 @@ var require_react_development = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
749
726
|
}
|
|
750
727
|
}
|
|
751
728
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
752
|
-
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element")
|
|
753
|
-
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
754
|
-
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
755
|
-
var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
|
|
756
|
-
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
757
|
-
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer");
|
|
758
|
-
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
|
759
|
-
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
|
760
|
-
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
|
761
|
-
var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
|
|
762
|
-
var REACT_MEMO_TYPE = Symbol.for("react.memo");
|
|
763
|
-
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
764
|
-
var REACT_ACTIVITY_TYPE = Symbol.for("react.activity");
|
|
765
|
-
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
766
|
-
var didWarnStateUpdateForUnmountedComponent = {};
|
|
767
|
-
var ReactNoopUpdateQueue = {
|
|
729
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, didWarnStateUpdateForUnmountedComponent = {}, ReactNoopUpdateQueue = {
|
|
768
730
|
isMounted: function() {
|
|
769
731
|
return !1;
|
|
770
732
|
},
|
|
@@ -777,9 +739,7 @@ var require_react_development = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
777
739
|
enqueueSetState: function(publicInstance) {
|
|
778
740
|
warnNoop(publicInstance, "setState");
|
|
779
741
|
}
|
|
780
|
-
};
|
|
781
|
-
var assign = Object.assign;
|
|
782
|
-
var emptyObject = {};
|
|
742
|
+
}, assign = Object.assign, emptyObject = {};
|
|
783
743
|
Object.freeze(emptyObject);
|
|
784
744
|
Component.prototype.isReactComponent = {};
|
|
785
745
|
Component.prototype.setState = function(partialState, callback) {
|
|
@@ -799,9 +759,7 @@ var require_react_development = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
799
759
|
deprecatedAPIs.constructor = PureComponent;
|
|
800
760
|
assign(deprecatedAPIs, Component.prototype);
|
|
801
761
|
deprecatedAPIs.isPureReactComponent = !0;
|
|
802
|
-
var isArrayImpl = Array.isArray
|
|
803
|
-
var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
|
|
804
|
-
var ReactSharedInternals = {
|
|
762
|
+
var isArrayImpl = Array.isArray, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = {
|
|
805
763
|
H: null,
|
|
806
764
|
A: null,
|
|
807
765
|
T: null,
|
|
@@ -814,22 +772,17 @@ var require_react_development = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
814
772
|
thrownErrors: [],
|
|
815
773
|
getCurrentStack: null,
|
|
816
774
|
recentlyCreatedOwnerStacks: 0
|
|
817
|
-
}
|
|
818
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
819
|
-
var createTask = console.createTask ? console.createTask : function() {
|
|
775
|
+
}, hasOwnProperty = Object.prototype.hasOwnProperty, createTask = console.createTask ? console.createTask : function() {
|
|
820
776
|
return null;
|
|
821
777
|
};
|
|
822
778
|
deprecatedAPIs = { react_stack_bottom_frame: function(callStackForError) {
|
|
823
779
|
return callStackForError();
|
|
824
780
|
} };
|
|
825
|
-
var specialPropKeyWarningShown;
|
|
826
|
-
var didWarnAboutOldJSXRuntime;
|
|
781
|
+
var specialPropKeyWarningShown, didWarnAboutOldJSXRuntime;
|
|
827
782
|
var didWarnAboutElementRef = {};
|
|
828
783
|
var unknownOwnerDebugStack = deprecatedAPIs.react_stack_bottom_frame.bind(deprecatedAPIs, UnknownOwner)();
|
|
829
784
|
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
830
|
-
var didWarnAboutMaps = !1
|
|
831
|
-
var userProvidedKeyEscapeRegex = /\/+/g;
|
|
832
|
-
var reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
|
|
785
|
+
var didWarnAboutMaps = !1, userProvidedKeyEscapeRegex = /\/+/g, reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
|
|
833
786
|
if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
|
|
834
787
|
var event = new window.ErrorEvent("error", {
|
|
835
788
|
bubbles: !0,
|
|
@@ -843,13 +796,7 @@ var require_react_development = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
843
796
|
return;
|
|
844
797
|
}
|
|
845
798
|
console.error(error);
|
|
846
|
-
}
|
|
847
|
-
var didWarnAboutMessageChannel = !1;
|
|
848
|
-
var enqueueTaskImpl = null;
|
|
849
|
-
var actScopeDepth = 0;
|
|
850
|
-
var didWarnNoAwaitAct = !1;
|
|
851
|
-
var isFlushing = !1;
|
|
852
|
-
var queueSeveralMicrotasks = "function" === typeof queueMicrotask ? function(callback) {
|
|
799
|
+
}, didWarnAboutMessageChannel = !1, enqueueTaskImpl = null, actScopeDepth = 0, didWarnNoAwaitAct = !1, isFlushing = !1, queueSeveralMicrotasks = "function" === typeof queueMicrotask ? function(callback) {
|
|
853
800
|
queueMicrotask(function() {
|
|
854
801
|
return queueMicrotask(callback);
|
|
855
802
|
});
|
|
@@ -895,11 +842,9 @@ var require_react_development = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
895
842
|
exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
|
|
896
843
|
exports.__COMPILER_RUNTIME = deprecatedAPIs;
|
|
897
844
|
exports.act = function(callback) {
|
|
898
|
-
var prevActQueue = ReactSharedInternals.actQueue;
|
|
899
|
-
var prevActScopeDepth = actScopeDepth;
|
|
845
|
+
var prevActQueue = ReactSharedInternals.actQueue, prevActScopeDepth = actScopeDepth;
|
|
900
846
|
actScopeDepth++;
|
|
901
|
-
var queue = ReactSharedInternals.actQueue = null !== prevActQueue ? prevActQueue : [];
|
|
902
|
-
var didAwaitActCall = !1;
|
|
847
|
+
var queue = ReactSharedInternals.actQueue = null !== prevActQueue ? prevActQueue : [], didAwaitActCall = !1;
|
|
903
848
|
try {
|
|
904
849
|
var result = callback();
|
|
905
850
|
} catch (error) {
|
|
@@ -962,9 +907,7 @@ var require_react_development = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
962
907
|
};
|
|
963
908
|
exports.cloneElement = function(element, config, children) {
|
|
964
909
|
if (null === element || void 0 === element) throw Error("The argument must be a React element, but you passed " + element + ".");
|
|
965
|
-
var props = assign({}, element.props);
|
|
966
|
-
var key = element.key;
|
|
967
|
-
var owner = element._owner;
|
|
910
|
+
var props = assign({}, element.props), key = element.key, owner = element._owner;
|
|
968
911
|
if (null != config) {
|
|
969
912
|
var JSCompiler_inline_result;
|
|
970
913
|
a: {
|
|
@@ -1035,8 +978,7 @@ var require_react_development = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
1035
978
|
var elementType = {
|
|
1036
979
|
$$typeof: REACT_FORWARD_REF_TYPE,
|
|
1037
980
|
render
|
|
1038
|
-
};
|
|
1039
|
-
var ownName;
|
|
981
|
+
}, ownName;
|
|
1040
982
|
Object.defineProperty(elementType, "displayName", {
|
|
1041
983
|
enumerable: !1,
|
|
1042
984
|
configurable: !0,
|
|
@@ -1060,8 +1002,7 @@ var require_react_development = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
1060
1002
|
$$typeof: REACT_LAZY_TYPE,
|
|
1061
1003
|
_payload: ctor,
|
|
1062
1004
|
_init: lazyInitializer
|
|
1063
|
-
}
|
|
1064
|
-
var ioInfo = {
|
|
1005
|
+
}, ioInfo = {
|
|
1065
1006
|
name: "lazy",
|
|
1066
1007
|
start: -1,
|
|
1067
1008
|
end: -1,
|
|
@@ -1075,7 +1016,7 @@ var require_react_development = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
1075
1016
|
return lazyType;
|
|
1076
1017
|
};
|
|
1077
1018
|
exports.memo = function(type, compare) {
|
|
1078
|
-
|
|
1019
|
+
type ?? console.error("memo: The first argument must be a component. Instead received: %s", null === type ? "null" : typeof type);
|
|
1079
1020
|
compare = {
|
|
1080
1021
|
$$typeof: REACT_MEMO_TYPE,
|
|
1081
1022
|
type,
|
|
@@ -1096,13 +1037,11 @@ var require_react_development = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
1096
1037
|
return compare;
|
|
1097
1038
|
};
|
|
1098
1039
|
exports.startTransition = function(scope) {
|
|
1099
|
-
var prevTransition = ReactSharedInternals.T;
|
|
1100
|
-
var currentTransition = {};
|
|
1040
|
+
var prevTransition = ReactSharedInternals.T, currentTransition = {};
|
|
1101
1041
|
currentTransition._updatedFibers = /* @__PURE__ */ new Set();
|
|
1102
1042
|
ReactSharedInternals.T = currentTransition;
|
|
1103
1043
|
try {
|
|
1104
|
-
var returnValue = scope();
|
|
1105
|
-
var onStartTransitionFinish = ReactSharedInternals.S;
|
|
1044
|
+
var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
|
|
1106
1045
|
null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
|
|
1107
1046
|
"object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && (ReactSharedInternals.asyncTransitions++, returnValue.then(releaseAsyncTransition, releaseAsyncTransition), returnValue.then(noop, reportGlobalError));
|
|
1108
1047
|
} catch (error) {
|
|
@@ -1135,7 +1074,7 @@ var require_react_development = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
1135
1074
|
return resolveDispatcher().useDeferredValue(value, initialValue);
|
|
1136
1075
|
};
|
|
1137
1076
|
exports.useEffect = function(create, deps) {
|
|
1138
|
-
|
|
1077
|
+
create ?? console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?");
|
|
1139
1078
|
return resolveDispatcher().useEffect(create, deps);
|
|
1140
1079
|
};
|
|
1141
1080
|
exports.useEffectEvent = function(callback) {
|
|
@@ -1148,11 +1087,11 @@ var require_react_development = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
1148
1087
|
return resolveDispatcher().useImperativeHandle(ref, create, deps);
|
|
1149
1088
|
};
|
|
1150
1089
|
exports.useInsertionEffect = function(create, deps) {
|
|
1151
|
-
|
|
1090
|
+
create ?? console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?");
|
|
1152
1091
|
return resolveDispatcher().useInsertionEffect(create, deps);
|
|
1153
1092
|
};
|
|
1154
1093
|
exports.useLayoutEffect = function(create, deps) {
|
|
1155
|
-
|
|
1094
|
+
create ?? console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?");
|
|
1156
1095
|
return resolveDispatcher().useLayoutEffect(create, deps);
|
|
1157
1096
|
};
|
|
1158
1097
|
exports.useMemo = function(create, deps) {
|
|
@@ -1189,4 +1128,5 @@ var require_react = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1189
1128
|
}));
|
|
1190
1129
|
|
|
1191
1130
|
//#endregion
|
|
1192
|
-
export { require_react as t };
|
|
1131
|
+
export { require_react as t };
|
|
1132
|
+
//# sourceMappingURL=react-D652OKii.js.map
|