@iota-uz/sdk 0.46.0 → 0.47.0
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/README.md +5 -0
- package/dist/client-host/identity.d.ts +4 -4
- package/dist/client-host/identity.js +2 -2
- package/dist/lens/{CascadePanel-Bha4qY7J.js → CascadePanel-BlYJd18G.js} +1 -1
- package/dist/lens/{ChartDataEquivalent-Bwgn4yYB.js → ChartDataEquivalent-B6xSOdzC.js} +1 -1
- package/dist/lens/{ChartPanel-BZpzBuwl.js → ChartPanel-BIJjrs5D.js} +159 -159
- package/dist/lens/{CoveragePanel-D40AuKkD.js → CoveragePanel-CHtXDMtt.js} +1 -1
- package/dist/lens/{GaugePanel-C9k2TuJH.js → GaugePanel-By0TOJPa.js} +1 -1
- package/dist/lens/LensDashboard.d.ts +13 -0
- package/dist/lens/LensDashboard.d.ts.map +1 -1
- package/dist/lens/{MapPanel-ZYxfDsPM.js → MapPanel-Cw4ELCiM.js} +3 -3
- package/dist/lens/{MetricFlowPanel-CmESLoLK.js → MetricFlowPanel-Gr5wi3nI.js} +2 -2
- package/dist/lens/{MetricHierarchyPanel-UZVuJ5P2.js → MetricHierarchyPanel-VLA_5LXX.js} +2 -2
- package/dist/lens/{MetricRelationshipPanel-CXLdScAy.js → MetricRelationshipPanel-DFP566_c.js} +2 -2
- package/dist/lens/{PrintReport-lrfdCTZO.js → PrintReport-C0OV1iHP.js} +5 -5
- package/dist/lens/{QualityChip-BYz-DHfs.js → QualityChip-DTi-0jdh.js} +1 -1
- package/dist/lens/SaveInvestigation-CX1Abyl8.js +309 -0
- package/dist/lens/TablePanel-BusKU7cU.js +994 -0
- package/dist/lens/{adapter-CeAqYWqm.js → adapter-CQg4-M7p.js} +7 -7
- package/dist/lens/contract/schemas.d.ts +2 -0
- package/dist/lens/contract/schemas.d.ts.map +1 -1
- package/dist/lens/contract/types.d.ts +12 -0
- package/dist/lens/contract/types.d.ts.map +1 -1
- package/dist/lens/{dashboardEdit-DKVE_6J_.js → dashboardEdit-CJgCVfi_.js} +1 -1
- package/dist/lens/explore/DrillOverlay.d.ts +38 -0
- package/dist/lens/explore/DrillOverlay.d.ts.map +1 -1
- package/dist/lens/explore/ExplorePanel.d.ts.map +1 -1
- package/dist/lens/explore/SaveInvestigation.d.ts +21 -0
- package/dist/lens/explore/SaveInvestigation.d.ts.map +1 -0
- package/dist/lens/explore/drillHost.d.ts +25 -0
- package/dist/lens/explore/drillHost.d.ts.map +1 -0
- package/dist/lens/explore/investigation.d.ts +174 -0
- package/dist/lens/explore/investigation.d.ts.map +1 -0
- package/dist/lens/explore/provenanceLabels.d.ts +10 -0
- package/dist/lens/explore/provenanceLabels.d.ts.map +1 -0
- package/dist/lens/index-DR7Hf8Km.js +19805 -0
- package/dist/lens/{index-DkVTXC8W.js → index-DZFw4cqF.js} +1 -1
- package/dist/lens/index.d.ts +7 -1
- package/dist/lens/index.d.ts.map +1 -1
- package/dist/lens/index.js +67 -53
- package/dist/lens/{install-CQ_iMuAE.js → install-B2lTK6uo.js} +1 -1
- package/dist/lens/{install-Ch0_qifK.js → install-BXr4Mnc0.js} +1 -1
- package/dist/lens/{install-CKmxqMe1.js → install-CicNQ_ks.js} +1 -1
- package/dist/lens/{install-BwD_xNlp.js → install-d8A0WPiw.js} +1 -1
- package/dist/lens/{keys-BBmWdfaH.js → keys-C-Akc9lZ.js} +2 -2
- package/dist/lens/panels/ChartPanel.d.ts.map +1 -1
- package/dist/lens/panels/TablePanel.d.ts.map +1 -1
- package/dist/lens/panels/actions.d.ts.map +1 -1
- package/dist/lens/panels/panelFailure.d.ts.map +1 -1
- package/dist/lens/{prefetch-BXoUIIgq.js → prefetch-C9kxuIs8.js} +2 -2
- package/dist/lens/{prefetchPanels-a-zs_bDm.js → prefetchPanels-gbY9RIqL.js} +1 -1
- package/dist/lens/{print-CpgWJxDG.js → print-CllsAP3d.js} +1 -1
- package/dist/lens/reports/ReportCompositionEditor.d.ts +8 -2
- package/dist/lens/reports/ReportCompositionEditor.d.ts.map +1 -1
- package/dist/lens/reports/ReportDefinitionEditor.d.ts +54 -0
- package/dist/lens/reports/ReportDefinitionEditor.d.ts.map +1 -0
- package/dist/lens/reports/ReportPicker.d.ts +6 -0
- package/dist/lens/reports/ReportPicker.d.ts.map +1 -1
- package/dist/lens/reports/dashboardEdit.d.ts +3 -0
- package/dist/lens/reports/dashboardEdit.d.ts.map +1 -1
- package/dist/lens/reports/editing.d.ts +35 -0
- package/dist/lens/reports/editing.d.ts.map +1 -1
- package/dist/lens/reports/picker.d.ts +4 -1
- package/dist/lens/reports/picker.d.ts.map +1 -1
- package/dist/lens/runtime/index.d.ts +0 -1
- package/dist/lens/runtime/index.d.ts.map +1 -1
- package/dist/lens/runtime/messages.d.ts +2 -2
- package/dist/lens/runtime/messages.d.ts.map +1 -1
- package/dist/lens/runtime/provider.d.ts +5 -1
- package/dist/lens/runtime/provider.d.ts.map +1 -1
- package/dist/lens/runtime/returnContext.d.ts +62 -0
- package/dist/lens/runtime/returnContext.d.ts.map +1 -0
- package/dist/lens/runtime/tableSummary.d.ts +9 -0
- package/dist/lens/runtime/tableSummary.d.ts.map +1 -0
- package/dist/lens/{scales-BLf9OweG.js → scales-CO6Q9RtG.js} +1 -1
- package/dist/lens/style.css +1 -1
- package/dist/runtime/README.md +24 -0
- package/dist/runtime/assert.d.ts +51 -0
- package/dist/runtime/assert.js +172 -0
- package/dist/runtime/build/README.txt +1 -0
- package/dist/runtime/build/extract.mjs +342 -0
- package/dist/runtime/build/shared-exports.json +388 -0
- package/dist/runtime/build/test-child.mjs +136 -0
- package/dist/runtime/build/theme/tailwind.config.js +121 -0
- package/dist/runtime/build/theme/theme.css +462 -0
- package/dist/runtime/build/theme/utilities.css +1 -0
- package/dist/runtime/build/vendor/lib/lib.d.ts +22 -0
- package/dist/runtime/build/vendor/lib/lib.decorators.d.ts +384 -0
- package/dist/runtime/build/vendor/lib/lib.decorators.legacy.d.ts +22 -0
- package/dist/runtime/build/vendor/lib/lib.dom.asynciterable.d.ts +41 -0
- package/dist/runtime/build/vendor/lib/lib.dom.d.ts +28983 -0
- package/dist/runtime/build/vendor/lib/lib.dom.iterable.d.ts +491 -0
- package/dist/runtime/build/vendor/lib/lib.es2015.collection.d.ts +147 -0
- package/dist/runtime/build/vendor/lib/lib.es2015.core.d.ts +597 -0
- package/dist/runtime/build/vendor/lib/lib.es2015.d.ts +28 -0
- package/dist/runtime/build/vendor/lib/lib.es2015.generator.d.ts +77 -0
- package/dist/runtime/build/vendor/lib/lib.es2015.iterable.d.ts +590 -0
- package/dist/runtime/build/vendor/lib/lib.es2015.promise.d.ts +81 -0
- package/dist/runtime/build/vendor/lib/lib.es2015.proxy.d.ts +128 -0
- package/dist/runtime/build/vendor/lib/lib.es2015.reflect.d.ts +144 -0
- package/dist/runtime/build/vendor/lib/lib.es2015.symbol.d.ts +46 -0
- package/dist/runtime/build/vendor/lib/lib.es2015.symbol.wellknown.d.ts +326 -0
- package/dist/runtime/build/vendor/lib/lib.es2016.array.include.d.ts +116 -0
- package/dist/runtime/build/vendor/lib/lib.es2016.d.ts +21 -0
- package/dist/runtime/build/vendor/lib/lib.es2016.full.d.ts +23 -0
- package/dist/runtime/build/vendor/lib/lib.es2016.intl.d.ts +31 -0
- package/dist/runtime/build/vendor/lib/lib.es2017.arraybuffer.d.ts +21 -0
- package/dist/runtime/build/vendor/lib/lib.es2017.d.ts +26 -0
- package/dist/runtime/build/vendor/lib/lib.es2017.date.d.ts +31 -0
- package/dist/runtime/build/vendor/lib/lib.es2017.full.d.ts +23 -0
- package/dist/runtime/build/vendor/lib/lib.es2017.intl.d.ts +44 -0
- package/dist/runtime/build/vendor/lib/lib.es2017.object.d.ts +49 -0
- package/dist/runtime/build/vendor/lib/lib.es2017.sharedmemory.d.ts +135 -0
- package/dist/runtime/build/vendor/lib/lib.es2017.string.d.ts +45 -0
- package/dist/runtime/build/vendor/lib/lib.es2017.typedarrays.d.ts +53 -0
- package/dist/runtime/build/vendor/lib/lib.es2018.asyncgenerator.d.ts +77 -0
- package/dist/runtime/build/vendor/lib/lib.es2018.asynciterable.d.ts +53 -0
- package/dist/runtime/build/vendor/lib/lib.es2018.d.ts +24 -0
- package/dist/runtime/build/vendor/lib/lib.es2018.full.d.ts +24 -0
- package/dist/runtime/build/vendor/lib/lib.es2018.intl.d.ts +83 -0
- package/dist/runtime/build/vendor/lib/lib.es2018.promise.d.ts +30 -0
- package/dist/runtime/build/vendor/lib/lib.es2018.regexp.d.ts +37 -0
- package/dist/runtime/build/vendor/lib/lib.es2019.array.d.ts +79 -0
- package/dist/runtime/build/vendor/lib/lib.es2019.d.ts +24 -0
- package/dist/runtime/build/vendor/lib/lib.es2019.full.d.ts +24 -0
- package/dist/runtime/build/vendor/lib/lib.es2019.intl.d.ts +23 -0
- package/dist/runtime/build/vendor/lib/lib.es2019.object.d.ts +33 -0
- package/dist/runtime/build/vendor/lib/lib.es2019.string.d.ts +37 -0
- package/dist/runtime/build/vendor/lib/lib.es2019.symbol.d.ts +24 -0
- package/dist/runtime/build/vendor/lib/lib.es2020.bigint.d.ts +731 -0
- package/dist/runtime/build/vendor/lib/lib.es2020.d.ts +27 -0
- package/dist/runtime/build/vendor/lib/lib.es2020.date.d.ts +42 -0
- package/dist/runtime/build/vendor/lib/lib.es2020.full.d.ts +24 -0
- package/dist/runtime/build/vendor/lib/lib.es2020.intl.d.ts +474 -0
- package/dist/runtime/build/vendor/lib/lib.es2020.number.d.ts +28 -0
- package/dist/runtime/build/vendor/lib/lib.es2020.promise.d.ts +47 -0
- package/dist/runtime/build/vendor/lib/lib.es2020.sharedmemory.d.ts +99 -0
- package/dist/runtime/build/vendor/lib/lib.es2020.string.d.ts +44 -0
- package/dist/runtime/build/vendor/lib/lib.es2020.symbol.wellknown.d.ts +41 -0
- package/dist/runtime/build/vendor/lib/lib.es2021.d.ts +23 -0
- package/dist/runtime/build/vendor/lib/lib.es2021.full.d.ts +24 -0
- package/dist/runtime/build/vendor/lib/lib.es2021.intl.d.ts +166 -0
- package/dist/runtime/build/vendor/lib/lib.es2021.promise.d.ts +48 -0
- package/dist/runtime/build/vendor/lib/lib.es2021.string.d.ts +33 -0
- package/dist/runtime/build/vendor/lib/lib.es2021.weakref.d.ts +78 -0
- package/dist/runtime/build/vendor/lib/lib.es2022.array.d.ts +121 -0
- package/dist/runtime/build/vendor/lib/lib.es2022.d.ts +25 -0
- package/dist/runtime/build/vendor/lib/lib.es2022.error.d.ts +75 -0
- package/dist/runtime/build/vendor/lib/lib.es2022.full.d.ts +24 -0
- package/dist/runtime/build/vendor/lib/lib.es2022.intl.d.ts +121 -0
- package/dist/runtime/build/vendor/lib/lib.es2022.object.d.ts +26 -0
- package/dist/runtime/build/vendor/lib/lib.es2022.regexp.d.ts +39 -0
- package/dist/runtime/build/vendor/lib/lib.es2022.string.d.ts +25 -0
- package/dist/runtime/build/vendor/lib/lib.es2023.array.d.ts +924 -0
- package/dist/runtime/build/vendor/lib/lib.es2023.collection.d.ts +21 -0
- package/dist/runtime/build/vendor/lib/lib.es2023.d.ts +22 -0
- package/dist/runtime/build/vendor/lib/lib.es2023.full.d.ts +24 -0
- package/dist/runtime/build/vendor/lib/lib.es2023.intl.d.ts +56 -0
- package/dist/runtime/build/vendor/lib/lib.es2024.arraybuffer.d.ts +65 -0
- package/dist/runtime/build/vendor/lib/lib.es2024.collection.d.ts +29 -0
- package/dist/runtime/build/vendor/lib/lib.es2024.d.ts +26 -0
- package/dist/runtime/build/vendor/lib/lib.es2024.full.d.ts +24 -0
- package/dist/runtime/build/vendor/lib/lib.es2024.object.d.ts +29 -0
- package/dist/runtime/build/vendor/lib/lib.es2024.promise.d.ts +35 -0
- package/dist/runtime/build/vendor/lib/lib.es2024.regexp.d.ts +25 -0
- package/dist/runtime/build/vendor/lib/lib.es2024.sharedmemory.d.ts +68 -0
- package/dist/runtime/build/vendor/lib/lib.es2024.string.d.ts +29 -0
- package/dist/runtime/build/vendor/lib/lib.es5.d.ts +4585 -0
- package/dist/runtime/build/vendor/lib/lib.es6.d.ts +23 -0
- package/dist/runtime/build/vendor/lib/lib.esnext.array.d.ts +35 -0
- package/dist/runtime/build/vendor/lib/lib.esnext.collection.d.ts +96 -0
- package/dist/runtime/build/vendor/lib/lib.esnext.d.ts +25 -0
- package/dist/runtime/build/vendor/lib/lib.esnext.decorators.d.ts +28 -0
- package/dist/runtime/build/vendor/lib/lib.esnext.disposable.d.ts +193 -0
- package/dist/runtime/build/vendor/lib/lib.esnext.full.d.ts +24 -0
- package/dist/runtime/build/vendor/lib/lib.esnext.intl.d.ts +21 -0
- package/dist/runtime/build/vendor/lib/lib.esnext.iterator.d.ts +148 -0
- package/dist/runtime/build/vendor/node-types/assert/strict.d.ts +111 -0
- package/dist/runtime/build/vendor/node-types/assert.d.ts +1115 -0
- package/dist/runtime/build/vendor/node-types/async_hooks.d.ts +619 -0
- package/dist/runtime/build/vendor/node-types/buffer.buffer.d.ts +477 -0
- package/dist/runtime/build/vendor/node-types/buffer.d.ts +1941 -0
- package/dist/runtime/build/vendor/node-types/child_process.d.ts +1480 -0
- package/dist/runtime/build/vendor/node-types/cluster.d.ts +578 -0
- package/dist/runtime/build/vendor/node-types/compatibility/iterators.d.ts +21 -0
- package/dist/runtime/build/vendor/node-types/console.d.ts +453 -0
- package/dist/runtime/build/vendor/node-types/constants.d.ts +21 -0
- package/dist/runtime/build/vendor/node-types/crypto.d.ts +5484 -0
- package/dist/runtime/build/vendor/node-types/dgram.d.ts +715 -0
- package/dist/runtime/build/vendor/node-types/diagnostics_channel.d.ts +576 -0
- package/dist/runtime/build/vendor/node-types/dns/promises.d.ts +503 -0
- package/dist/runtime/build/vendor/node-types/dns.d.ts +923 -0
- package/dist/runtime/build/vendor/node-types/domain.d.ts +166 -0
- package/dist/runtime/build/vendor/node-types/events.d.ts +967 -0
- package/dist/runtime/build/vendor/node-types/fs/promises.d.ts +1354 -0
- package/dist/runtime/build/vendor/node-types/fs.d.ts +4777 -0
- package/dist/runtime/build/vendor/node-types/globals.d.ts +170 -0
- package/dist/runtime/build/vendor/node-types/globals.typedarray.d.ts +41 -0
- package/dist/runtime/build/vendor/node-types/http.d.ts +2246 -0
- package/dist/runtime/build/vendor/node-types/http2.d.ts +2882 -0
- package/dist/runtime/build/vendor/node-types/https.d.ts +585 -0
- package/dist/runtime/build/vendor/node-types/index.d.ts +101 -0
- package/dist/runtime/build/vendor/node-types/inspector.d.ts +323 -0
- package/dist/runtime/build/vendor/node-types/inspector.generated.d.ts +4406 -0
- package/dist/runtime/build/vendor/node-types/module.d.ts +844 -0
- package/dist/runtime/build/vendor/node-types/net.d.ts +1197 -0
- package/dist/runtime/build/vendor/node-types/os.d.ts +507 -0
- package/dist/runtime/build/vendor/node-types/package.json +140 -0
- package/dist/runtime/build/vendor/node-types/path.d.ts +200 -0
- package/dist/runtime/build/vendor/node-types/perf_hooks.d.ts +1054 -0
- package/dist/runtime/build/vendor/node-types/process.d.ts +2101 -0
- package/dist/runtime/build/vendor/node-types/punycode.d.ts +117 -0
- package/dist/runtime/build/vendor/node-types/querystring.d.ts +152 -0
- package/dist/runtime/build/vendor/node-types/readline/promises.d.ts +161 -0
- package/dist/runtime/build/vendor/node-types/readline.d.ts +600 -0
- package/dist/runtime/build/vendor/node-types/repl.d.ts +438 -0
- package/dist/runtime/build/vendor/node-types/sea.d.ts +162 -0
- package/dist/runtime/build/vendor/node-types/sqlite.d.ts +1182 -0
- package/dist/runtime/build/vendor/node-types/stream/consumers.d.ts +45 -0
- package/dist/runtime/build/vendor/node-types/stream/promises.d.ts +90 -0
- package/dist/runtime/build/vendor/node-types/stream/web.d.ts +596 -0
- package/dist/runtime/build/vendor/node-types/stream.d.ts +1707 -0
- package/dist/runtime/build/vendor/node-types/string_decoder.d.ts +67 -0
- package/dist/runtime/build/vendor/node-types/test.d.ts +2656 -0
- package/dist/runtime/build/vendor/node-types/timers/promises.d.ts +108 -0
- package/dist/runtime/build/vendor/node-types/timers.d.ts +285 -0
- package/dist/runtime/build/vendor/node-types/tls.d.ts +1314 -0
- package/dist/runtime/build/vendor/node-types/trace_events.d.ts +197 -0
- package/dist/runtime/build/vendor/node-types/ts5.6/buffer.buffer.d.ts +473 -0
- package/dist/runtime/build/vendor/node-types/ts5.6/compatibility/float16array.d.ts +71 -0
- package/dist/runtime/build/vendor/node-types/ts5.6/globals.typedarray.d.ts +36 -0
- package/dist/runtime/build/vendor/node-types/ts5.6/index.d.ts +103 -0
- package/dist/runtime/build/vendor/node-types/ts5.7/compatibility/float16array.d.ts +72 -0
- package/dist/runtime/build/vendor/node-types/ts5.7/index.d.ts +103 -0
- package/dist/runtime/build/vendor/node-types/tty.d.ts +209 -0
- package/dist/runtime/build/vendor/node-types/url.d.ts +1103 -0
- package/dist/runtime/build/vendor/node-types/util.d.ts +2379 -0
- package/dist/runtime/build/vendor/node-types/v8.d.ts +1010 -0
- package/dist/runtime/build/vendor/node-types/vm.d.ts +1160 -0
- package/dist/runtime/build/vendor/node-types/wasi.d.ts +202 -0
- package/dist/runtime/build/vendor/node-types/web-globals/abortcontroller.d.ts +34 -0
- package/dist/runtime/build/vendor/node-types/web-globals/crypto.d.ts +32 -0
- package/dist/runtime/build/vendor/node-types/web-globals/domexception.d.ts +68 -0
- package/dist/runtime/build/vendor/node-types/web-globals/events.d.ts +97 -0
- package/dist/runtime/build/vendor/node-types/web-globals/fetch.d.ts +62 -0
- package/dist/runtime/build/vendor/node-types/web-globals/navigator.d.ts +25 -0
- package/dist/runtime/build/vendor/node-types/web-globals/storage.d.ts +24 -0
- package/dist/runtime/build/vendor/node-types/web-globals/streams.d.ts +22 -0
- package/dist/runtime/build/vendor/node-types/worker_threads.d.ts +894 -0
- package/dist/runtime/build/vendor/node-types/zlib.d.ts +768 -0
- package/dist/runtime/build/vendor/node_modules/csstype/LICENSE +19 -0
- package/dist/runtime/build/vendor/node_modules/csstype/index.d.ts +22569 -0
- package/dist/runtime/build/vendor/node_modules/csstype/index.js.flow +6863 -0
- package/dist/runtime/build/vendor/node_modules/csstype/package.json +70 -0
- package/dist/runtime/build/vendor/node_modules/seroval/LICENSE +7 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/cjs/development/index.cjs +4232 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/cjs/production/index.cjs +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/esm/development/index.mjs +4209 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/esm/production/index.mjs +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/Serializer.d.ts +28 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/base-primitives.d.ts +28 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/compat.d.ts +15 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/constants.d.ts +105 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/constructors.d.ts +50 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/context/async-parser.d.ts +20 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/context/deserializer.d.ts +52 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/context/parser.d.ts +62 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/context/serializer.d.ts +103 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/context/sync-parser.d.ts +61 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/cross/index.d.ts +24 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/errors.d.ts +47 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/function-string.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/keys.d.ts +4 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/literals.d.ts +10 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/node.d.ts +8 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/opaque-reference.d.ts +9 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/plugin.d.ts +52 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/reference.d.ts +6 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/sequence.d.ts +11 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/special-reference.d.ts +16 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/stream.d.ts +17 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/string.d.ts +4 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/symbols.d.ts +14 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/tree/index.d.ts +21 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/types.d.ts +233 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/utils/error.d.ts +6 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/utils/get-identifier.d.ts +2 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/utils/get-object-flag.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/utils/is-valid-identifier.d.ts +2 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/utils/promise-to-result.d.ts +2 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/utils/typed-array.d.ts +6 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/utils/valid-properties.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/index.d.ts +18 -0
- package/dist/runtime/build/vendor/node_modules/seroval/package.json +67 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/Serializer.ts +119 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/base-primitives.ts +537 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/compat.ts +23 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/constants.ts +202 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/constructors.ts +265 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/context/async-parser.ts +666 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/context/deserializer.ts +832 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/context/parser.ts +335 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/context/serializer.ts +1524 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/context/sync-parser.ts +943 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/cross/index.ts +190 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/errors.ts +196 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/function-string.ts +31 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/keys.ts +17 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/literals.ts +43 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/node.ts +40 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/opaque-reference.ts +9 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/plugin.ts +105 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/reference.ts +66 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/sequence.ts +59 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/special-reference.ts +42 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/stream.ts +71 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/string.ts +86 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/symbols.ts +20 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/tree/index.ts +134 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/types.ts +377 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/utils/error.ts +73 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/utils/get-identifier.ts +18 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/utils/get-object-flag.ts +14 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/utils/is-valid-identifier.ts +12 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/utils/promise-to-result.ts +9 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/utils/typed-array.ts +56 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/utils/valid-properties.ts +34 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/index.ts +36 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/LICENSE +7 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/cjs/development/web.cjs +826 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/cjs/production/web.cjs +1 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/esm/development/web.mjs +803 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/esm/production/web.mjs +1 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/abort-signal.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/blob.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/custom-event.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/dom-exception.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/event.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/file.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/form-data.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/headers.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/image-data.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/index.d.ts +15 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/readable-stream.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/request.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/response.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/url-search-params.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/url.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/package.json +70 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/abort-signal.ts +131 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/blob.ts +41 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/custom-event.ts +66 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/dom-exception.ts +57 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/event.ts +62 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/file.ts +50 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/form-data.ts +105 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/headers.ts +49 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/image-data.ts +74 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/index.ts +14 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/readable-stream.ts +148 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/request.ts +82 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/response.ts +65 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/url-search-params.ts +40 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/url.ts +37 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/dist/server.cjs +824 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/dist/server.js +770 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/dist/solid.cjs +1808 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/dist/solid.js +1753 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/jsx-runtime.d.ts +1 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/package.json +243 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/store/dist/server.cjs +133 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/store/dist/server.js +121 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/store/dist/store.cjs +463 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/store/dist/store.js +454 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/store/package.json +46 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/store/types/index.d.ts +12 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/store/types/modifiers.d.ts +6 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/store/types/mutable.d.ts +5 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/store/types/server.d.ts +17 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/store/types/store.d.ts +108 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/types/index.d.ts +23 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/types/jsx.d.ts +4253 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/types/reactive/array.d.ts +44 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/types/reactive/observable.d.ts +36 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/types/reactive/scheduler.d.ts +10 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/types/reactive/signal.d.ts +581 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/types/render/Suspense.d.ts +26 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/types/render/component.d.ts +111 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/types/render/flow.d.ts +118 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/types/render/hydration.d.ts +24 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/types/render/index.d.ts +4 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/types/server/index.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/types/server/reactive.d.ts +98 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/types/server/rendering.d.ts +160 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/web/dist/server.cjs +900 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/web/dist/server.js +786 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/web/dist/web.cjs +884 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/web/dist/web.js +772 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/web/package.json +46 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/web/storage/dist/storage.cjs +12 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/web/storage/dist/storage.js +10 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/web/storage/package.json +15 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/web/storage/types/index.d.ts +2 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/web/types/client.d.ts +93 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/web/types/core.d.ts +2 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/web/types/index.d.ts +50 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/web/types/jsx.d.ts +1 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/web/types/server-mock.d.ts +65 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/web/types/server.d.ts +187 -0
- package/dist/runtime/build/worker.mjs +293415 -0
- package/dist/runtime/catalog/sdk-natives.json +655 -0
- package/dist/runtime/cli/iota-ext.mjs +1028 -0
- package/dist/runtime/client-host/entry.d.ts +10 -0
- package/dist/runtime/client-host/entry.js +124 -0
- package/dist/runtime/client-host/hooks.d.ts +43 -0
- package/dist/runtime/client-host/hooks.js +94 -0
- package/dist/runtime/client-host/index.d.ts +9 -0
- package/dist/runtime/client-host/index.js +9 -0
- package/dist/runtime/client-host/islands.d.ts +44 -0
- package/dist/runtime/client-host/islands.js +165 -0
- package/dist/runtime/client-host/kit.d.ts +10 -0
- package/dist/runtime/client-host/kit.js +37 -0
- package/dist/runtime/client-host/page.d.ts +53 -0
- package/dist/runtime/client-host/page.js +217 -0
- package/dist/runtime/client-host/params.d.ts +8 -0
- package/dist/runtime/client-host/params.js +36 -0
- package/dist/runtime/client-host/protocol.d.ts +78 -0
- package/dist/runtime/client-host/protocol.js +26 -0
- package/dist/runtime/client-host/shared.d.ts +12 -0
- package/dist/runtime/client-host/shared.js +49 -0
- package/dist/runtime/client-host/shell.d.ts +88 -0
- package/dist/runtime/client-host/shell.js +195 -0
- package/dist/runtime/client-host/slots.d.ts +54 -0
- package/dist/runtime/client-host/slots.js +90 -0
- package/dist/runtime/client-host/styles.d.ts +7 -0
- package/dist/runtime/client-host/styles.js +61 -0
- package/dist/runtime/client-host/transport.d.ts +45 -0
- package/dist/runtime/client-host/transport.js +115 -0
- package/dist/runtime/client.d.ts +226 -0
- package/dist/runtime/client.js +121 -0
- package/dist/runtime/contracts.d.ts +204 -0
- package/dist/runtime/contracts.js +195 -0
- package/dist/runtime/docs/authoring.md +1609 -0
- package/dist/runtime/docs/example/docs/en/admin/limits.md +10 -0
- package/dist/runtime/docs/example/docs/en/getting-started.md +13 -0
- package/dist/runtime/docs/example/docs/en/points.md +9 -0
- package/dist/runtime/docs/example/docs/ru/getting-started.md +12 -0
- package/dist/runtime/docs/example/package.json +27 -0
- package/dist/runtime/docs/example/src/ClientScreen.tsx +10 -0
- package/dist/runtime/docs/example/src/RedemptionScreen.tsx +7 -0
- package/dist/runtime/docs/example/src/RewardsScreen.module.css +13 -0
- package/dist/runtime/docs/example/src/RewardsScreen.tsx +51 -0
- package/dist/runtime/docs/example/src/client.tsx +40 -0
- package/dist/runtime/docs/example/src/contracts.ts +132 -0
- package/dist/runtime/docs/example/src/css-modules.d.ts +5 -0
- package/dist/runtime/docs/example/src/server.test.ts +156 -0
- package/dist/runtime/docs/example/src/server.ts +188 -0
- package/dist/runtime/docs/example/tsconfig.json +16 -0
- package/dist/runtime/entity.d.ts +237 -0
- package/dist/runtime/entity.js +201 -0
- package/dist/runtime/fakes.d.ts +80 -0
- package/dist/runtime/fakes.js +88 -0
- package/dist/runtime/fixtures.d.ts +34 -0
- package/dist/runtime/fixtures.js +60 -0
- package/dist/runtime/help.d.ts +22 -0
- package/dist/runtime/help.js +51 -0
- package/dist/runtime/host/context.mjs +392 -0
- package/dist/runtime/host/errors.mjs +64 -0
- package/dist/runtime/host/loader.mjs +28 -0
- package/dist/runtime/host/protocol.mjs +4 -0
- package/dist/runtime/host/register.mjs +8 -0
- package/dist/runtime/host/sdk/assert.mjs +153 -0
- package/dist/runtime/host/sdk/client-host/hooks.mjs +86 -0
- package/dist/runtime/host/sdk/client-host/protocol.mjs +30 -0
- package/dist/runtime/host/sdk/client-host/slots.mjs +82 -0
- package/dist/runtime/host/sdk/client-host/styles.mjs +45 -0
- package/dist/runtime/host/sdk/client-host/transport.mjs +102 -0
- package/dist/runtime/host/sdk/client.mjs +115 -0
- package/dist/runtime/host/sdk/contracts.mjs +185 -0
- package/dist/runtime/host/sdk/entity.mjs +183 -0
- package/dist/runtime/host/sdk/fakes.mjs +88 -0
- package/dist/runtime/host/sdk/fixtures.mjs +56 -0
- package/dist/runtime/host/sdk/help.mjs +37 -0
- package/dist/runtime/host/sdk/index.mjs +83 -0
- package/dist/runtime/host/sdk/kit.mjs +11 -0
- package/dist/runtime/host/sdk/manifest.mjs +276 -0
- package/dist/runtime/host/sdk/model.mjs +4 -0
- package/dist/runtime/host/sdk/resource.mjs +34 -0
- package/dist/runtime/host/sdk/schema.mjs +75 -0
- package/dist/runtime/host/sdk/server.mjs +43 -0
- package/dist/runtime/host/sdk/testhost.mjs +992 -0
- package/dist/runtime/host/sdk/testing.mjs +21 -0
- package/dist/runtime/host/sdk/wire.mjs +207 -0
- package/dist/runtime/host/worker.mjs +252 -0
- package/dist/runtime/index.d.ts +10 -0
- package/dist/runtime/index.js +5 -0
- package/dist/runtime/kit.d.ts +5 -0
- package/dist/runtime/kit.js +14 -0
- package/dist/runtime/manifest.d.ts +17 -0
- package/dist/runtime/manifest.js +323 -0
- package/dist/runtime/model.d.ts +224 -0
- package/dist/runtime/model.js +3 -0
- package/dist/runtime/resource.d.ts +31 -0
- package/dist/runtime/resource.js +35 -0
- package/dist/runtime/schema.d.ts +97 -0
- package/dist/runtime/schema.js +73 -0
- package/dist/runtime/server.d.ts +445 -0
- package/dist/runtime/server.js +41 -0
- package/dist/runtime/testhost.d.ts +216 -0
- package/dist/runtime/testhost.js +1146 -0
- package/dist/runtime/testing.d.ts +10 -0
- package/dist/runtime/testing.js +7 -0
- package/dist/runtime/wire.d.ts +26 -0
- package/dist/runtime/wire.js +236 -0
- package/dist/sdk-identity.cjs +3 -3
- package/dist/sdk-identity.js +3 -3
- package/dist/sdk-identity.json +2 -2
- package/dist/solid-ui/embedded-css.d.ts +2 -0
- package/dist/solid-ui/embedded-css.js +1 -0
- package/dist/solid-ui/embedded.css +2 -0
- package/dist/testing/components.d.ts +73 -0
- package/dist/testing/components.js +96 -0
- package/dist/testing/htmx.d.ts +44 -0
- package/dist/testing/htmx.js +284 -0
- package/dist/testing/index.d.ts +4 -41
- package/dist/testing/index.js +3 -206
- package/dist/testing/scenarios.d.ts +83 -0
- package/dist/testing/scenarios.js +74 -0
- package/dist/testing/wait.d.ts +7 -0
- package/dist/testing/wait.js +19 -0
- package/package.json +33 -2
- package/dist/lens/TablePanel-C09tzJOL.js +0 -980
- package/dist/lens/index-DcVtZneD.js +0 -18473
- package/dist/lens/runtime/recovery.d.ts +0 -26
- package/dist/lens/runtime/recovery.d.ts.map +0 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { JSX } from "../jsx.js";
|
|
2
|
+
/**
|
|
3
|
+
* **[experimental]** Controls the order in which suspended content is rendered
|
|
4
|
+
*
|
|
5
|
+
* @description https://docs.solidjs.com/reference/components/suspense-list
|
|
6
|
+
*/
|
|
7
|
+
export declare function SuspenseList(props: {
|
|
8
|
+
children: JSX.Element;
|
|
9
|
+
revealOrder: "forwards" | "backwards" | "together";
|
|
10
|
+
tail?: "collapsed" | "hidden";
|
|
11
|
+
}): JSX.Element;
|
|
12
|
+
/**
|
|
13
|
+
* Tracks all resources inside a component and renders a fallback until they are all resolved
|
|
14
|
+
* ```typescript
|
|
15
|
+
* const AsyncComponent = lazy(() => import('./component'));
|
|
16
|
+
*
|
|
17
|
+
* <Suspense fallback={<LoadingIndicator />}>
|
|
18
|
+
* <AsyncComponent />
|
|
19
|
+
* </Suspense>
|
|
20
|
+
* ```
|
|
21
|
+
* @description https://docs.solidjs.com/reference/components/suspense
|
|
22
|
+
*/
|
|
23
|
+
export declare function Suspense(props: {
|
|
24
|
+
fallback?: JSX.Element;
|
|
25
|
+
children: JSX.Element;
|
|
26
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import type { JSX } from "../jsx.js";
|
|
2
|
+
export declare function enableHydration(): void;
|
|
3
|
+
/**
|
|
4
|
+
* A general `Component` has no implicit `children` prop. If desired, you can
|
|
5
|
+
* specify one as in `Component<{name: String, children: JSX.Element}>`.
|
|
6
|
+
*/
|
|
7
|
+
export type Component<P extends Record<string, any> = {}> = (props: P) => JSX.Element;
|
|
8
|
+
/**
|
|
9
|
+
* Extend props to forbid the `children` prop.
|
|
10
|
+
* Use this to prevent accidentally passing `children` to components that
|
|
11
|
+
* would silently throw them away.
|
|
12
|
+
*/
|
|
13
|
+
export type VoidProps<P extends Record<string, any> = {}> = P & {
|
|
14
|
+
children?: never;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* `VoidComponent` forbids the `children` prop.
|
|
18
|
+
* Use this to prevent accidentally passing `children` to components that
|
|
19
|
+
* would silently throw them away.
|
|
20
|
+
*/
|
|
21
|
+
export type VoidComponent<P extends Record<string, any> = {}> = Component<VoidProps<P>>;
|
|
22
|
+
/**
|
|
23
|
+
* Extend props to allow an optional `children` prop with the usual
|
|
24
|
+
* type in JSX, `JSX.Element` (which allows elements, arrays, strings, etc.).
|
|
25
|
+
* Use this for components that you want to accept children.
|
|
26
|
+
*/
|
|
27
|
+
export type ParentProps<P extends Record<string, any> = {}> = P & {
|
|
28
|
+
children?: JSX.Element;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* `ParentComponent` allows an optional `children` prop with the usual
|
|
32
|
+
* type in JSX, `JSX.Element` (which allows elements, arrays, strings, etc.).
|
|
33
|
+
* Use this for components that you want to accept children.
|
|
34
|
+
*/
|
|
35
|
+
export type ParentComponent<P extends Record<string, any> = {}> = Component<ParentProps<P>>;
|
|
36
|
+
/**
|
|
37
|
+
* Extend props to require a `children` prop with the specified type.
|
|
38
|
+
* Use this for components where you need a specific child type,
|
|
39
|
+
* typically a function that receives specific argument types.
|
|
40
|
+
* Note that all JSX <Elements> are of the type `JSX.Element`.
|
|
41
|
+
*/
|
|
42
|
+
export type FlowProps<P extends Record<string, any> = {}, C = JSX.Element> = P & {
|
|
43
|
+
children: C;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* `FlowComponent` requires a `children` prop with the specified type.
|
|
47
|
+
* Use this for components where you need a specific child type,
|
|
48
|
+
* typically a function that receives specific argument types.
|
|
49
|
+
* Note that all JSX <Elements> are of the type `JSX.Element`.
|
|
50
|
+
*/
|
|
51
|
+
export type FlowComponent<P extends Record<string, any> = {}, C = JSX.Element> = Component<FlowProps<P, C>>;
|
|
52
|
+
/** @deprecated: use `ParentProps` instead */
|
|
53
|
+
export type PropsWithChildren<P extends Record<string, any> = {}> = ParentProps<P>;
|
|
54
|
+
export type ValidComponent = keyof JSX.IntrinsicElements | Component<any> | (string & {});
|
|
55
|
+
/**
|
|
56
|
+
* Takes the props of the passed component and returns its type
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* ComponentProps<typeof Portal> // { mount?: Node; useShadow?: boolean; children: JSX.Element }
|
|
60
|
+
* ComponentProps<'div'> // JSX.HTMLAttributes<HTMLDivElement>
|
|
61
|
+
*/
|
|
62
|
+
export type ComponentProps<T extends ValidComponent> = T extends Component<infer P> ? P : T extends keyof JSX.IntrinsicElements ? JSX.IntrinsicElements[T] : Record<string, unknown>;
|
|
63
|
+
/**
|
|
64
|
+
* Type of `props.ref`, for use in `Component` or `props` typing.
|
|
65
|
+
*
|
|
66
|
+
* @example Component<{ref: Ref<Element>}>
|
|
67
|
+
*/
|
|
68
|
+
export type Ref<T> = T | ((val: T) => void);
|
|
69
|
+
export declare function createComponent<T extends Record<string, any>>(Comp: Component<T>, props: T): JSX.Element;
|
|
70
|
+
type DistributeOverride<T, F> = T extends undefined ? F : T;
|
|
71
|
+
type Override<T, U> = T extends any ? U extends any ? {
|
|
72
|
+
[K in keyof T]: K extends keyof U ? DistributeOverride<U[K], T[K]> : T[K];
|
|
73
|
+
} & {
|
|
74
|
+
[K in keyof U]: K extends keyof T ? DistributeOverride<U[K], T[K]> : U[K];
|
|
75
|
+
} : T & U : T & U;
|
|
76
|
+
type OverrideSpread<T, U> = T extends any ? {
|
|
77
|
+
[K in keyof ({
|
|
78
|
+
[K in keyof T]: any;
|
|
79
|
+
} & {
|
|
80
|
+
[K in keyof U]?: any;
|
|
81
|
+
} & {
|
|
82
|
+
[K in U extends any ? keyof U : keyof U]?: any;
|
|
83
|
+
})]: K extends keyof T ? Exclude<U extends any ? U[K & keyof U] : never, undefined> | T[K] : U extends any ? U[K & keyof U] : never;
|
|
84
|
+
} : T & U;
|
|
85
|
+
type Simplify<T> = T extends any ? {
|
|
86
|
+
[K in keyof T]: T[K];
|
|
87
|
+
} : T;
|
|
88
|
+
type _MergeProps<T extends unknown[], Curr = {}> = T extends [
|
|
89
|
+
infer Next | (() => infer Next),
|
|
90
|
+
...infer Rest
|
|
91
|
+
] ? _MergeProps<Rest, Override<Curr, Next>> : T extends [...infer Rest, infer Next | (() => infer Next)] ? Override<_MergeProps<Rest, Curr>, Next> : T extends [] ? Curr : T extends (infer I | (() => infer I))[] ? OverrideSpread<Curr, I> : Curr;
|
|
92
|
+
export type MergeProps<T extends unknown[]> = Simplify<_MergeProps<T>>;
|
|
93
|
+
export declare function mergeProps<T extends unknown[]>(...sources: T): MergeProps<T>;
|
|
94
|
+
export type SplitProps<T, K extends (readonly (keyof T)[])[]> = [
|
|
95
|
+
...{
|
|
96
|
+
[P in keyof K]: P extends `${number}` ? Pick<T, Extract<K[P], readonly (keyof T)[]>[number]> : never;
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
[P in keyof T as Exclude<P, K[number][number]>]: T[P];
|
|
100
|
+
}
|
|
101
|
+
];
|
|
102
|
+
export declare function splitProps<T extends Record<any, any>, K extends [readonly (keyof T)[], ...(readonly (keyof T)[])[]]>(props: T, ...keys: K): SplitProps<T, K>;
|
|
103
|
+
export declare function lazy<T extends Component<any>>(fn: () => Promise<{
|
|
104
|
+
default: T;
|
|
105
|
+
}>): T & {
|
|
106
|
+
preload: () => Promise<{
|
|
107
|
+
default: T;
|
|
108
|
+
}>;
|
|
109
|
+
};
|
|
110
|
+
export declare function createUniqueId(): string;
|
|
111
|
+
export {};
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { Accessor } from "../reactive/signal.js";
|
|
2
|
+
import type { JSX } from "../jsx.js";
|
|
3
|
+
/**
|
|
4
|
+
* Creates a list elements from a list
|
|
5
|
+
*
|
|
6
|
+
* it receives a map function as its child that receives a list element and an accessor with the index and returns a JSX-Element; if the list is empty, an optional fallback is returned:
|
|
7
|
+
* ```typescript
|
|
8
|
+
* <For each={items} fallback={<div>No items</div>}>
|
|
9
|
+
* {(item, index) => <div data-index={index()}>{item}</div>}
|
|
10
|
+
* </For>
|
|
11
|
+
* ```
|
|
12
|
+
* If you have a list with fixed indices and changing values, consider using `<Index>` instead.
|
|
13
|
+
*
|
|
14
|
+
* @description https://docs.solidjs.com/reference/components/for
|
|
15
|
+
*/
|
|
16
|
+
export declare function For<T extends readonly any[], U extends JSX.Element>(props: {
|
|
17
|
+
each: T | undefined | null | false;
|
|
18
|
+
fallback?: JSX.Element;
|
|
19
|
+
children: (item: T[number], index: Accessor<number>) => U;
|
|
20
|
+
}): JSX.Element;
|
|
21
|
+
/**
|
|
22
|
+
* Non-keyed iteration over a list creating elements from its items
|
|
23
|
+
*
|
|
24
|
+
* To be used if you have a list with fixed indices, but changing values.
|
|
25
|
+
* ```typescript
|
|
26
|
+
* <Index each={items} fallback={<div>No items</div>}>
|
|
27
|
+
* {(item, index) => <div data-index={index}>{item()}</div>}
|
|
28
|
+
* </Index>
|
|
29
|
+
* ```
|
|
30
|
+
* If you have a list with changing indices, better use `<For>`.
|
|
31
|
+
*
|
|
32
|
+
* @description https://docs.solidjs.com/reference/components/index-component
|
|
33
|
+
*/
|
|
34
|
+
export declare function Index<T extends readonly any[], U extends JSX.Element>(props: {
|
|
35
|
+
each: T | undefined | null | false;
|
|
36
|
+
fallback?: JSX.Element;
|
|
37
|
+
children: (item: Accessor<T[number]>, index: number) => U;
|
|
38
|
+
}): JSX.Element;
|
|
39
|
+
type RequiredParameter<T> = T extends () => unknown ? never : T;
|
|
40
|
+
/**
|
|
41
|
+
* Conditionally render its children or an optional fallback component
|
|
42
|
+
* @description https://docs.solidjs.com/reference/components/show
|
|
43
|
+
*/
|
|
44
|
+
export declare function Show<T, TRenderFunction extends (item: Accessor<NonNullable<T>>) => JSX.Element>(props: {
|
|
45
|
+
when: T | undefined | null | false;
|
|
46
|
+
keyed?: false;
|
|
47
|
+
fallback?: JSX.Element;
|
|
48
|
+
children: JSX.Element | RequiredParameter<TRenderFunction>;
|
|
49
|
+
}): JSX.Element;
|
|
50
|
+
export declare function Show<T, TRenderFunction extends (item: NonNullable<T>) => JSX.Element>(props: {
|
|
51
|
+
when: T | undefined | null | false;
|
|
52
|
+
keyed: true;
|
|
53
|
+
fallback?: JSX.Element;
|
|
54
|
+
children: JSX.Element | RequiredParameter<TRenderFunction>;
|
|
55
|
+
}): JSX.Element;
|
|
56
|
+
/**
|
|
57
|
+
* Switches between content based on mutually exclusive conditions
|
|
58
|
+
* ```typescript
|
|
59
|
+
* <Switch fallback={<FourOhFour />}>
|
|
60
|
+
* <Match when={state.route === 'home'}>
|
|
61
|
+
* <Home />
|
|
62
|
+
* </Match>
|
|
63
|
+
* <Match when={state.route === 'settings'}>
|
|
64
|
+
* <Settings />
|
|
65
|
+
* </Match>
|
|
66
|
+
* </Switch>
|
|
67
|
+
* ```
|
|
68
|
+
* @description https://docs.solidjs.com/reference/components/switch-and-match
|
|
69
|
+
*/
|
|
70
|
+
export declare function Switch(props: {
|
|
71
|
+
fallback?: JSX.Element;
|
|
72
|
+
children: JSX.Element;
|
|
73
|
+
}): JSX.Element;
|
|
74
|
+
export type MatchProps<T> = {
|
|
75
|
+
when: T | undefined | null | false;
|
|
76
|
+
keyed?: boolean;
|
|
77
|
+
children: JSX.Element | ((item: NonNullable<T> | Accessor<NonNullable<T>>) => JSX.Element);
|
|
78
|
+
};
|
|
79
|
+
/**
|
|
80
|
+
* Selects a content based on condition when inside a `<Switch>` control flow
|
|
81
|
+
* ```typescript
|
|
82
|
+
* <Match when={condition()}>
|
|
83
|
+
* <Content/>
|
|
84
|
+
* </Match>
|
|
85
|
+
* ```
|
|
86
|
+
* @description https://docs.solidjs.com/reference/components/switch-and-match
|
|
87
|
+
*/
|
|
88
|
+
export declare function Match<T, TRenderFunction extends (item: Accessor<NonNullable<T>>) => JSX.Element>(props: {
|
|
89
|
+
when: T | undefined | null | false;
|
|
90
|
+
keyed?: false;
|
|
91
|
+
children: JSX.Element | RequiredParameter<TRenderFunction>;
|
|
92
|
+
}): JSX.Element;
|
|
93
|
+
export declare function Match<T, TRenderFunction extends (item: NonNullable<T>) => JSX.Element>(props: {
|
|
94
|
+
when: T | undefined | null | false;
|
|
95
|
+
keyed: true;
|
|
96
|
+
children: JSX.Element | RequiredParameter<TRenderFunction>;
|
|
97
|
+
}): JSX.Element;
|
|
98
|
+
export declare function resetErrorBoundaries(): void;
|
|
99
|
+
/**
|
|
100
|
+
* Catches uncaught errors inside components and renders a fallback content
|
|
101
|
+
*
|
|
102
|
+
* Also supports a callback form that passes the error and a reset function:
|
|
103
|
+
* ```typescript
|
|
104
|
+
* <ErrorBoundary fallback={
|
|
105
|
+
* (err, reset) => <div onClick={reset}>Error: {err.toString()}</div>
|
|
106
|
+
* }>
|
|
107
|
+
* <MyComp />
|
|
108
|
+
* </ErrorBoundary>
|
|
109
|
+
* ```
|
|
110
|
+
* Errors thrown from the fallback can be caught by a parent ErrorBoundary
|
|
111
|
+
*
|
|
112
|
+
* @description https://docs.solidjs.com/reference/components/error-boundary
|
|
113
|
+
*/
|
|
114
|
+
export declare function ErrorBoundary(props: {
|
|
115
|
+
fallback: JSX.Element | ((err: any, reset: () => void) => JSX.Element);
|
|
116
|
+
children: JSX.Element;
|
|
117
|
+
}): JSX.Element;
|
|
118
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Computation } from "../reactive/signal.js";
|
|
2
|
+
export type HydrationContext = {
|
|
3
|
+
id: string;
|
|
4
|
+
count: number;
|
|
5
|
+
};
|
|
6
|
+
type SharedConfig = {
|
|
7
|
+
context?: HydrationContext;
|
|
8
|
+
resources?: {
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
};
|
|
11
|
+
load?: (id: string) => Promise<any> | any;
|
|
12
|
+
has?: (id: string) => boolean;
|
|
13
|
+
gather?: (key: string) => void;
|
|
14
|
+
registry?: Map<string, Element>;
|
|
15
|
+
done?: boolean;
|
|
16
|
+
count?: number;
|
|
17
|
+
effects?: Computation<any, any>[];
|
|
18
|
+
getContextId(): string;
|
|
19
|
+
getNextContextId(): string;
|
|
20
|
+
};
|
|
21
|
+
export declare const sharedConfig: SharedConfig;
|
|
22
|
+
export declare function setHydrateContext(context?: HydrationContext): void;
|
|
23
|
+
export declare function nextHydrateContext(): HydrationContext | undefined;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { catchError, createRoot, createSignal, createComputed, createRenderEffect, createEffect, createReaction, createDeferred, createSelector, createMemo, getListener, onMount, onCleanup, onError, untrack, batch, on, children, createContext, useContext, getOwner, runWithOwner, equalFn, requestCallback, mapArray, indexArray, observable, from, $PROXY, $DEVCOMP, $TRACK, DEV, enableExternalSource } from "./reactive.js";
|
|
2
|
+
export { mergeProps, splitProps, createComponent, For, Index, Show, Switch, Match, ErrorBoundary, Suspense, SuspenseList, createResource, resetErrorBoundaries, enableScheduling, enableHydration, startTransition, useTransition, createUniqueId, lazy, sharedConfig } from "./rendering.js";
|
|
3
|
+
export type { Component, Resource } from "./rendering.js";
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
export declare const equalFn: <T>(a: T, b: T) => boolean;
|
|
2
|
+
export declare const $PROXY: unique symbol;
|
|
3
|
+
export declare const $TRACK: unique symbol;
|
|
4
|
+
export declare const $DEVCOMP: unique symbol;
|
|
5
|
+
export declare const DEV: undefined;
|
|
6
|
+
export type Accessor<T> = () => T;
|
|
7
|
+
export type Setter<T> = undefined extends T ? <U extends T>(value?: (U extends Function ? never : U) | ((prev?: T) => U)) => U : <U extends T>(value: (U extends Function ? never : U) | ((prev: T) => U)) => U;
|
|
8
|
+
export type Signal<T> = [get: Accessor<T>, set: Setter<T>];
|
|
9
|
+
export declare function castError(err: unknown): Error;
|
|
10
|
+
export declare let Owner: Owner | null;
|
|
11
|
+
interface Owner {
|
|
12
|
+
owner: Owner | null;
|
|
13
|
+
context: any | null;
|
|
14
|
+
owned: Owner[] | null;
|
|
15
|
+
cleanups: (() => void)[] | null;
|
|
16
|
+
}
|
|
17
|
+
export declare function createOwner(): Owner;
|
|
18
|
+
export declare function createRoot<T>(fn: (dispose: () => void) => T, detachedOwner?: typeof Owner): T;
|
|
19
|
+
export declare function createSignal<T>(value: T, options?: {
|
|
20
|
+
equals?: false | ((prev: T, next: T) => boolean);
|
|
21
|
+
name?: string;
|
|
22
|
+
}): [get: () => T, set: (v: (T extends Function ? never : T) | ((prev: T) => T)) => T];
|
|
23
|
+
export declare function createComputed<T>(fn: (v?: T) => T, value?: T): void;
|
|
24
|
+
export declare const createRenderEffect: typeof createComputed;
|
|
25
|
+
export declare function createEffect<T>(fn: (v?: T) => T, value?: T): void;
|
|
26
|
+
export declare function createReaction(fn: () => void): (fn: () => void) => void;
|
|
27
|
+
export declare function createMemo<T>(fn: (v?: T) => T, value?: T): () => T;
|
|
28
|
+
export declare function createDeferred<T>(source: () => T): () => T;
|
|
29
|
+
export declare function createSelector<T>(source: () => T, fn?: (k: T, value: T) => boolean): (k: T) => boolean;
|
|
30
|
+
export declare function batch<T>(fn: () => T): T;
|
|
31
|
+
export declare const untrack: typeof batch;
|
|
32
|
+
export declare function on<T, U>(deps: Array<() => T> | (() => T), fn: (value: Array<T> | T, prev?: Array<T> | T, prevResults?: U) => U, options?: {
|
|
33
|
+
defer?: boolean;
|
|
34
|
+
}): (prev?: U) => U | undefined;
|
|
35
|
+
export declare function onMount(fn: () => void): void;
|
|
36
|
+
export declare function onCleanup(fn: () => void): () => void;
|
|
37
|
+
export declare function cleanNode(node: Owner): void;
|
|
38
|
+
export declare function catchError<T>(fn: () => T, handler: (err: Error) => void): T | undefined;
|
|
39
|
+
export declare function getListener(): null;
|
|
40
|
+
export interface Context<T> {
|
|
41
|
+
id: symbol;
|
|
42
|
+
Provider: (props: {
|
|
43
|
+
value: T;
|
|
44
|
+
children: any;
|
|
45
|
+
}) => any;
|
|
46
|
+
defaultValue?: T;
|
|
47
|
+
}
|
|
48
|
+
export declare function createContext<T>(defaultValue?: T): Context<T>;
|
|
49
|
+
export declare function useContext<T>(context: Context<T>): T;
|
|
50
|
+
export declare function getOwner(): Owner | null;
|
|
51
|
+
type ChildrenReturn = Accessor<any> & {
|
|
52
|
+
toArray: () => any[];
|
|
53
|
+
};
|
|
54
|
+
export declare function children(fn: () => any): ChildrenReturn;
|
|
55
|
+
export declare function runWithOwner<T>(o: typeof Owner, fn: () => T): T | undefined;
|
|
56
|
+
export interface Task {
|
|
57
|
+
id: number;
|
|
58
|
+
fn: ((didTimeout: boolean) => void) | null;
|
|
59
|
+
startTime: number;
|
|
60
|
+
expirationTime: number;
|
|
61
|
+
}
|
|
62
|
+
export declare function requestCallback(fn: () => void, options?: {
|
|
63
|
+
timeout: number;
|
|
64
|
+
}): Task;
|
|
65
|
+
export declare function cancelCallback(task: Task): void;
|
|
66
|
+
export declare function mapArray<T, U>(list: Accessor<readonly T[] | undefined | null | false>, mapFn: (v: T, i: Accessor<number>) => U, options?: {
|
|
67
|
+
fallback?: Accessor<any>;
|
|
68
|
+
}): () => U[];
|
|
69
|
+
export declare function indexArray<T, U>(list: Accessor<readonly T[] | undefined | null | false>, mapFn: (v: Accessor<T>, i: number) => U, options?: {
|
|
70
|
+
fallback?: Accessor<any>;
|
|
71
|
+
}): () => U[];
|
|
72
|
+
export type ObservableObserver<T> = ((v: T) => void) | {
|
|
73
|
+
next: (v: T) => void;
|
|
74
|
+
error?: (v: any) => void;
|
|
75
|
+
complete?: (v: boolean) => void;
|
|
76
|
+
};
|
|
77
|
+
export declare function observable<T>(input: Accessor<T>): {
|
|
78
|
+
subscribe(observer: ObservableObserver<T>): {
|
|
79
|
+
unsubscribe(): void;
|
|
80
|
+
};
|
|
81
|
+
[Symbol.observable](): {
|
|
82
|
+
subscribe(observer: ObservableObserver<T>): {
|
|
83
|
+
unsubscribe(): void;
|
|
84
|
+
};
|
|
85
|
+
[Symbol.observable](): /*elided*/ any;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
export declare function from<T>(producer: ((setter: Setter<T>) => () => void) | {
|
|
89
|
+
subscribe: (fn: (v: T) => void) => (() => void) | {
|
|
90
|
+
unsubscribe: () => void;
|
|
91
|
+
};
|
|
92
|
+
}): Accessor<T>;
|
|
93
|
+
export declare function enableExternalSource(factory: any): void;
|
|
94
|
+
/**
|
|
95
|
+
* @deprecated since version 1.7.0 and will be removed in next major - use catchError instead
|
|
96
|
+
*/
|
|
97
|
+
export declare function onError(fn: (err: Error) => void): void;
|
|
98
|
+
export {};
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import { Accessor, Setter, Signal } from "./reactive.js";
|
|
2
|
+
import type { JSX } from "../jsx.js";
|
|
3
|
+
export type Component<P = {}> = (props: P) => JSX.Element;
|
|
4
|
+
export type VoidProps<P = {}> = P & {
|
|
5
|
+
children?: never;
|
|
6
|
+
};
|
|
7
|
+
export type VoidComponent<P = {}> = Component<VoidProps<P>>;
|
|
8
|
+
export type ParentProps<P = {}> = P & {
|
|
9
|
+
children?: JSX.Element;
|
|
10
|
+
};
|
|
11
|
+
export type ParentComponent<P = {}> = Component<ParentProps<P>>;
|
|
12
|
+
export type FlowProps<P = {}, C = JSX.Element> = P & {
|
|
13
|
+
children: C;
|
|
14
|
+
};
|
|
15
|
+
export type FlowComponent<P = {}, C = JSX.Element> = Component<FlowProps<P, C>>;
|
|
16
|
+
export type Ref<T> = T | ((val: T) => void);
|
|
17
|
+
export type ValidComponent = keyof JSX.IntrinsicElements | Component<any> | (string & {});
|
|
18
|
+
export type ComponentProps<T extends ValidComponent> = T extends Component<infer P> ? P : T extends keyof JSX.IntrinsicElements ? JSX.IntrinsicElements[T] : Record<string, unknown>;
|
|
19
|
+
type SharedConfig = {
|
|
20
|
+
context?: HydrationContext;
|
|
21
|
+
getContextId(): string;
|
|
22
|
+
getNextContextId(): string;
|
|
23
|
+
};
|
|
24
|
+
export declare const sharedConfig: SharedConfig;
|
|
25
|
+
export declare function createUniqueId(): string;
|
|
26
|
+
export declare function createComponent<T>(Comp: (props: T) => JSX.Element, props: T): JSX.Element;
|
|
27
|
+
export declare function mergeProps<T>(source: T): T;
|
|
28
|
+
export declare function mergeProps<T, U>(source: T, source1: U): T & U;
|
|
29
|
+
export declare function mergeProps<T, U, V>(source: T, source1: U, source2: V): T & U & V;
|
|
30
|
+
export declare function mergeProps<T, U, V, W>(source: T, source1: U, source2: V, source3: W): T & U & V & W;
|
|
31
|
+
export declare function splitProps<T extends object, K1 extends keyof T>(props: T, ...keys: [K1[]]): [Pick<T, K1>, Omit<T, K1>];
|
|
32
|
+
export declare function splitProps<T extends object, K1 extends keyof T, K2 extends keyof T>(props: T, ...keys: [K1[], K2[]]): [Pick<T, K1>, Pick<T, K2>, Omit<T, K1 | K2>];
|
|
33
|
+
export declare function splitProps<T extends object, K1 extends keyof T, K2 extends keyof T, K3 extends keyof T>(props: T, ...keys: [K1[], K2[], K3[]]): [Pick<T, K1>, Pick<T, K2>, Pick<T, K3>, Omit<T, K1 | K2 | K3>];
|
|
34
|
+
export declare function splitProps<T extends object, K1 extends keyof T, K2 extends keyof T, K3 extends keyof T, K4 extends keyof T>(props: T, ...keys: [K1[], K2[], K3[], K4[]]): [Pick<T, K1>, Pick<T, K2>, Pick<T, K3>, Pick<T, K4>, Omit<T, K1 | K2 | K3 | K4>];
|
|
35
|
+
export declare function splitProps<T extends object, K1 extends keyof T, K2 extends keyof T, K3 extends keyof T, K4 extends keyof T, K5 extends keyof T>(props: T, ...keys: [K1[], K2[], K3[], K4[], K5[]]): [
|
|
36
|
+
Pick<T, K1>,
|
|
37
|
+
Pick<T, K2>,
|
|
38
|
+
Pick<T, K3>,
|
|
39
|
+
Pick<T, K4>,
|
|
40
|
+
Pick<T, K5>,
|
|
41
|
+
Omit<T, K1 | K2 | K3 | K4 | K5>
|
|
42
|
+
];
|
|
43
|
+
export declare function For<T>(props: {
|
|
44
|
+
each: T[];
|
|
45
|
+
fallback?: string;
|
|
46
|
+
children: (item: T, index: () => number) => string;
|
|
47
|
+
}): string | any[] | undefined;
|
|
48
|
+
export declare function Index<T>(props: {
|
|
49
|
+
each: T[];
|
|
50
|
+
fallback?: string;
|
|
51
|
+
children: (item: () => T, index: number) => string;
|
|
52
|
+
}): string | any[] | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* Conditionally render its children or an optional fallback component
|
|
55
|
+
* @description https://docs.solidjs.com/reference/components/show
|
|
56
|
+
*/
|
|
57
|
+
export declare function Show<T>(props: {
|
|
58
|
+
when: T | undefined | null | false;
|
|
59
|
+
keyed?: boolean;
|
|
60
|
+
fallback?: string;
|
|
61
|
+
children: string | ((item: NonNullable<T> | Accessor<NonNullable<T>>) => string);
|
|
62
|
+
}): string;
|
|
63
|
+
export declare function Switch(props: {
|
|
64
|
+
fallback?: string;
|
|
65
|
+
children: MatchProps<unknown> | MatchProps<unknown>[];
|
|
66
|
+
}): string;
|
|
67
|
+
type MatchProps<T> = {
|
|
68
|
+
when: T | false;
|
|
69
|
+
keyed?: boolean;
|
|
70
|
+
children: string | ((item: NonNullable<T> | Accessor<NonNullable<T>>) => string);
|
|
71
|
+
};
|
|
72
|
+
export declare function Match<T>(props: MatchProps<T>): MatchProps<T>;
|
|
73
|
+
export declare function resetErrorBoundaries(): void;
|
|
74
|
+
export declare function ErrorBoundary(props: {
|
|
75
|
+
fallback: string | ((err: any, reset: () => void) => string);
|
|
76
|
+
children: string;
|
|
77
|
+
}): string | ((err: any, reset: () => void) => string) | {
|
|
78
|
+
t: string;
|
|
79
|
+
};
|
|
80
|
+
export interface Resource<T> {
|
|
81
|
+
(): T | undefined;
|
|
82
|
+
state: "unresolved" | "pending" | "ready" | "refreshing" | "errored";
|
|
83
|
+
loading: boolean;
|
|
84
|
+
error: any;
|
|
85
|
+
latest: T | undefined;
|
|
86
|
+
}
|
|
87
|
+
type SuspenseContextType = {
|
|
88
|
+
resources: Map<string, {
|
|
89
|
+
_loading: boolean;
|
|
90
|
+
error: any;
|
|
91
|
+
}>;
|
|
92
|
+
completed: () => void;
|
|
93
|
+
};
|
|
94
|
+
export type ResourceActions<T> = {
|
|
95
|
+
mutate: Setter<T>;
|
|
96
|
+
refetch: (info?: unknown) => void;
|
|
97
|
+
};
|
|
98
|
+
export type ResourceReturn<T> = [Resource<T>, ResourceActions<T>];
|
|
99
|
+
export type ResourceSource<S> = S | false | null | undefined | (() => S | false | null | undefined);
|
|
100
|
+
export type ResourceFetcher<S, T> = (k: S, info: ResourceFetcherInfo<T>) => T | Promise<T>;
|
|
101
|
+
export type ResourceFetcherInfo<T> = {
|
|
102
|
+
value: T | undefined;
|
|
103
|
+
refetching?: unknown;
|
|
104
|
+
};
|
|
105
|
+
export type ResourceOptions<T> = undefined extends T ? {
|
|
106
|
+
initialValue?: T;
|
|
107
|
+
name?: string;
|
|
108
|
+
deferStream?: boolean;
|
|
109
|
+
ssrLoadFrom?: "initial" | "server";
|
|
110
|
+
storage?: () => Signal<T | undefined>;
|
|
111
|
+
onHydrated?: <S, T>(k: S, info: ResourceFetcherInfo<T>) => void;
|
|
112
|
+
} : {
|
|
113
|
+
initialValue: T;
|
|
114
|
+
name?: string;
|
|
115
|
+
deferStream?: boolean;
|
|
116
|
+
ssrLoadFrom?: "initial" | "server";
|
|
117
|
+
storage?: (v?: T) => Signal<T | undefined>;
|
|
118
|
+
onHydrated?: <S, T>(k: S, info: ResourceFetcherInfo<T>) => void;
|
|
119
|
+
};
|
|
120
|
+
export declare function createResource<T, S = true>(fetcher: ResourceFetcher<S, T>, options?: ResourceOptions<undefined>): ResourceReturn<T | undefined>;
|
|
121
|
+
export declare function createResource<T, S = true>(fetcher: ResourceFetcher<S, T>, options: ResourceOptions<T>): ResourceReturn<T>;
|
|
122
|
+
export declare function createResource<T, S>(source: ResourceSource<S>, fetcher: ResourceFetcher<S, T>, options?: ResourceOptions<undefined>): ResourceReturn<T | undefined>;
|
|
123
|
+
export declare function createResource<T, S>(source: ResourceSource<S>, fetcher: ResourceFetcher<S, T>, options: ResourceOptions<T>): ResourceReturn<T>;
|
|
124
|
+
export declare function lazy<T extends Component<any>>(fn: () => Promise<{
|
|
125
|
+
default: T;
|
|
126
|
+
}>): T & {
|
|
127
|
+
preload: () => Promise<{
|
|
128
|
+
default: T;
|
|
129
|
+
}>;
|
|
130
|
+
};
|
|
131
|
+
export declare function enableScheduling(): void;
|
|
132
|
+
export declare function enableHydration(): void;
|
|
133
|
+
export declare function startTransition(fn: () => any): void;
|
|
134
|
+
export declare function useTransition(): [() => boolean, (fn: () => any) => void];
|
|
135
|
+
type HydrationContext = {
|
|
136
|
+
id: string;
|
|
137
|
+
count: number;
|
|
138
|
+
serialize: (id: string, v: Promise<any> | any, deferStream?: boolean) => void;
|
|
139
|
+
nextRoot: (v: any) => string;
|
|
140
|
+
replace: (id: string, replacement: () => any) => void;
|
|
141
|
+
block: (p: Promise<any>) => void;
|
|
142
|
+
resources: Record<string, any>;
|
|
143
|
+
suspense: Record<string, SuspenseContextType>;
|
|
144
|
+
registerFragment: (v: string) => (v?: string, err?: any) => boolean;
|
|
145
|
+
lazy: Record<string, Promise<any>>;
|
|
146
|
+
async?: boolean;
|
|
147
|
+
noHydrate: boolean;
|
|
148
|
+
};
|
|
149
|
+
export declare function SuspenseList(props: {
|
|
150
|
+
children: string;
|
|
151
|
+
revealOrder: "forwards" | "backwards" | "together";
|
|
152
|
+
tail?: "collapsed" | "hidden";
|
|
153
|
+
}): string;
|
|
154
|
+
export declare function Suspense(props: {
|
|
155
|
+
fallback?: string;
|
|
156
|
+
children: string;
|
|
157
|
+
}): string | number | boolean | Node | JSX.ArrayElement | {
|
|
158
|
+
t: string;
|
|
159
|
+
} | null | undefined;
|
|
160
|
+
export {};
|