@shopify/ui-extensions-server-kit 0.0.0-snapshot-20240814205424
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +127 -0
- package/README.md +74 -0
- package/dist/ExtensionServerClient/ExtensionServerClient.cjs.js +1 -0
- package/dist/ExtensionServerClient/ExtensionServerClient.d.ts +28 -0
- package/dist/ExtensionServerClient/ExtensionServerClient.es.js +133 -0
- package/dist/ExtensionServerClient/ExtensionServerClient.test.d.ts +1 -0
- package/dist/ExtensionServerClient/index.d.ts +2 -0
- package/dist/ExtensionServerClient/types.cjs.js +1 -0
- package/dist/ExtensionServerClient/types.d.ts +124 -0
- package/dist/ExtensionServerClient/types.es.js +4 -0
- package/dist/context/ExtensionServerProvider.cjs.js +1 -0
- package/dist/context/ExtensionServerProvider.d.ts +2 -0
- package/dist/context/ExtensionServerProvider.es.js +29 -0
- package/dist/context/ExtensionServerProvider.test.d.ts +1 -0
- package/dist/context/constants.cjs.js +1 -0
- package/dist/context/constants.d.ts +3 -0
- package/dist/context/constants.es.js +14 -0
- package/dist/context/index.d.ts +3 -0
- package/dist/context/types.d.ts +11 -0
- package/dist/hooks/index.d.ts +5 -0
- package/dist/hooks/useExtensionClient.cjs.js +1 -0
- package/dist/hooks/useExtensionClient.d.ts +1 -0
- package/dist/hooks/useExtensionClient.es.js +8 -0
- package/dist/hooks/useExtensionServerContext.cjs.js +1 -0
- package/dist/hooks/useExtensionServerContext.d.ts +1 -0
- package/dist/hooks/useExtensionServerContext.es.js +6 -0
- package/dist/hooks/useExtensionServerEvent.cjs.js +1 -0
- package/dist/hooks/useExtensionServerEvent.d.ts +1 -0
- package/dist/hooks/useExtensionServerEvent.es.js +9 -0
- package/dist/hooks/useExtensionServerState.cjs.js +1 -0
- package/dist/hooks/useExtensionServerState.d.ts +1 -0
- package/dist/hooks/useExtensionServerState.es.js +9 -0
- package/dist/hooks/useIsomorphicLayoutEffect.cjs.js +1 -0
- package/dist/hooks/useIsomorphicLayoutEffect.d.ts +2 -0
- package/dist/hooks/useIsomorphicLayoutEffect.es.js +5 -0
- package/dist/i18n.cjs.js +1 -0
- package/dist/i18n.d.ts +93 -0
- package/dist/i18n.es.js +61 -0
- package/dist/i18n.test.d.ts +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.cjs2.js +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.es.js +54 -0
- package/dist/index.es2.js +8 -0
- package/dist/state/actions/actions.cjs.js +1 -0
- package/dist/state/actions/actions.d.ts +6 -0
- package/dist/state/actions/actions.es.js +37 -0
- package/dist/state/actions/index.d.ts +2 -0
- package/dist/state/actions/types.d.ts +21 -0
- package/dist/state/index.d.ts +2 -0
- package/dist/state/reducers/constants.cjs.js +1 -0
- package/dist/state/reducers/constants.d.ts +2 -0
- package/dist/state/reducers/constants.es.js +7 -0
- package/dist/state/reducers/extensionServerReducer.cjs.js +1 -0
- package/dist/state/reducers/extensionServerReducer.d.ts +3 -0
- package/dist/state/reducers/extensionServerReducer.es.js +57 -0
- package/dist/state/reducers/extensionServerReducer.test.d.ts +1 -0
- package/dist/state/reducers/index.d.ts +3 -0
- package/dist/state/reducers/types.d.ts +6 -0
- package/dist/testing/MockExtensionServerProvider.cjs.js +1 -0
- package/dist/testing/MockExtensionServerProvider.d.ts +7 -0
- package/dist/testing/MockExtensionServerProvider.es.js +24 -0
- package/dist/testing/app.cjs.js +1 -0
- package/dist/testing/app.d.ts +2 -0
- package/dist/testing/app.es.js +16 -0
- package/dist/testing/extensions.cjs.js +1 -0
- package/dist/testing/extensions.d.ts +6 -0
- package/dist/testing/extensions.es.js +65 -0
- package/dist/testing/index.d.ts +3 -0
- package/dist/types.cjs.js +1 -0
- package/dist/types.d.ts +173 -0
- package/dist/types.es.js +4 -0
- package/dist/utilities/assetToString.cjs.js +1 -0
- package/dist/utilities/assetToString.d.ts +2 -0
- package/dist/utilities/assetToString.es.js +7 -0
- package/dist/utilities/assetToString.test.d.ts +1 -0
- package/dist/utilities/groupByKey.cjs.js +1 -0
- package/dist/utilities/groupByKey.d.ts +3 -0
- package/dist/utilities/groupByKey.es.js +6 -0
- package/dist/utilities/index.d.ts +7 -0
- package/dist/utilities/isUIExtension.cjs.js +1 -0
- package/dist/utilities/isUIExtension.d.ts +1 -0
- package/dist/utilities/isUIExtension.es.js +6 -0
- package/dist/utilities/isValidSurface.cjs.js +1 -0
- package/dist/utilities/isValidSurface.d.ts +2 -0
- package/dist/utilities/isValidSurface.es.js +7 -0
- package/dist/utilities/noop.cjs.js +1 -0
- package/dist/utilities/noop.d.ts +1 -0
- package/dist/utilities/noop.es.js +5 -0
- package/dist/utilities/replaceUpdated.cjs.js +1 -0
- package/dist/utilities/replaceUpdated.d.ts +1 -0
- package/dist/utilities/replaceUpdated.es.js +14 -0
- package/dist/utilities/replaceUpdated.test.d.ts +1 -0
- package/dist/utilities/set.cjs.js +1 -0
- package/dist/utilities/set.d.ts +4 -0
- package/dist/utilities/set.es.js +18 -0
- package/dist/utilities/set.test.d.ts +1 -0
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/index.mjs +1 -0
- package/node_modules/@shopify/react-testing/LICENSE.md +21 -0
- package/node_modules/@shopify/react-testing/README.md +711 -0
- package/node_modules/@shopify/react-testing/build/cjs/TestWrapper.js +52 -0
- package/node_modules/@shopify/react-testing/build/cjs/_virtual/_rollupPluginBabelHelpers.js +47 -0
- package/node_modules/@shopify/react-testing/build/cjs/compat.js +14 -0
- package/node_modules/@shopify/react-testing/build/cjs/destroy.js +13 -0
- package/node_modules/@shopify/react-testing/build/cjs/element.js +225 -0
- package/node_modules/@shopify/react-testing/build/cjs/index.js +21 -0
- package/node_modules/@shopify/react-testing/build/cjs/matchers/components.js +46 -0
- package/node_modules/@shopify/react-testing/build/cjs/matchers/context.js +25 -0
- package/node_modules/@shopify/react-testing/build/cjs/matchers/index.js +16 -0
- package/node_modules/@shopify/react-testing/build/cjs/matchers/props.js +38 -0
- package/node_modules/@shopify/react-testing/build/cjs/matchers/strings.js +42 -0
- package/node_modules/@shopify/react-testing/build/cjs/matchers/utilities.js +110 -0
- package/node_modules/@shopify/react-testing/build/cjs/mount.js +76 -0
- package/node_modules/@shopify/react-testing/build/cjs/root.js +284 -0
- package/node_modules/@shopify/react-testing/build/cjs/toReactString.js +86 -0
- package/node_modules/@shopify/react-testing/build/cjs/types.js +28 -0
- package/node_modules/@shopify/react-testing/build/esm/TestWrapper.mjs +44 -0
- package/node_modules/@shopify/react-testing/build/esm/_virtual/_rollupPluginBabelHelpers.mjs +42 -0
- package/node_modules/@shopify/react-testing/build/esm/compat.mjs +10 -0
- package/node_modules/@shopify/react-testing/build/esm/destroy.mjs +9 -0
- package/node_modules/@shopify/react-testing/build/esm/element.mjs +221 -0
- package/node_modules/@shopify/react-testing/build/esm/index.mjs +5 -0
- package/node_modules/@shopify/react-testing/build/esm/matchers/components.mjs +41 -0
- package/node_modules/@shopify/react-testing/build/esm/matchers/context.mjs +21 -0
- package/node_modules/@shopify/react-testing/build/esm/matchers/index.mjs +14 -0
- package/node_modules/@shopify/react-testing/build/esm/matchers/props.mjs +33 -0
- package/node_modules/@shopify/react-testing/build/esm/matchers/strings.mjs +37 -0
- package/node_modules/@shopify/react-testing/build/esm/matchers/utilities.mjs +101 -0
- package/node_modules/@shopify/react-testing/build/esm/mount.mjs +70 -0
- package/node_modules/@shopify/react-testing/build/esm/root.mjs +275 -0
- package/node_modules/@shopify/react-testing/build/esm/toReactString.mjs +80 -0
- package/node_modules/@shopify/react-testing/build/esm/types.mjs +26 -0
- package/node_modules/@shopify/react-testing/build/esnext/TestWrapper.esnext +44 -0
- package/node_modules/@shopify/react-testing/build/esnext/compat.esnext +10 -0
- package/node_modules/@shopify/react-testing/build/esnext/destroy.esnext +9 -0
- package/node_modules/@shopify/react-testing/build/esnext/element.esnext +221 -0
- package/node_modules/@shopify/react-testing/build/esnext/index.esnext +5 -0
- package/node_modules/@shopify/react-testing/build/esnext/matchers/components.esnext +41 -0
- package/node_modules/@shopify/react-testing/build/esnext/matchers/context.esnext +21 -0
- package/node_modules/@shopify/react-testing/build/esnext/matchers/index.esnext +14 -0
- package/node_modules/@shopify/react-testing/build/esnext/matchers/props.esnext +33 -0
- package/node_modules/@shopify/react-testing/build/esnext/matchers/strings.esnext +37 -0
- package/node_modules/@shopify/react-testing/build/esnext/matchers/utilities.esnext +99 -0
- package/node_modules/@shopify/react-testing/build/esnext/mount.esnext +71 -0
- package/node_modules/@shopify/react-testing/build/esnext/root.esnext +275 -0
- package/node_modules/@shopify/react-testing/build/esnext/toReactString.esnext +80 -0
- package/node_modules/@shopify/react-testing/build/esnext/types.esnext +26 -0
- package/node_modules/@shopify/react-testing/build/ts/TestWrapper.d.ts +17 -0
- package/node_modules/@shopify/react-testing/build/ts/TestWrapper.d.ts.map +1 -0
- package/node_modules/@shopify/react-testing/build/ts/compat.d.ts +3 -0
- package/node_modules/@shopify/react-testing/build/ts/compat.d.ts.map +1 -0
- package/node_modules/@shopify/react-testing/build/ts/destroy.d.ts +2 -0
- package/node_modules/@shopify/react-testing/build/ts/destroy.d.ts.map +1 -0
- package/node_modules/@shopify/react-testing/build/ts/element.d.ts +42 -0
- package/node_modules/@shopify/react-testing/build/ts/element.d.ts.map +1 -0
- package/node_modules/@shopify/react-testing/build/ts/index.d.ts +7 -0
- package/node_modules/@shopify/react-testing/build/ts/index.d.ts.map +1 -0
- package/node_modules/@shopify/react-testing/build/ts/matchers/components.d.ts +12 -0
- package/node_modules/@shopify/react-testing/build/ts/matchers/components.d.ts.map +1 -0
- package/node_modules/@shopify/react-testing/build/ts/matchers/context.d.ts +8 -0
- package/node_modules/@shopify/react-testing/build/ts/matchers/context.d.ts.map +1 -0
- package/node_modules/@shopify/react-testing/build/ts/matchers/index.d.ts +20 -0
- package/node_modules/@shopify/react-testing/build/ts/matchers/index.d.ts.map +1 -0
- package/node_modules/@shopify/react-testing/build/ts/matchers/props.d.ts +10 -0
- package/node_modules/@shopify/react-testing/build/ts/matchers/props.d.ts.map +1 -0
- package/node_modules/@shopify/react-testing/build/ts/matchers/strings.d.ts +11 -0
- package/node_modules/@shopify/react-testing/build/ts/matchers/strings.d.ts.map +1 -0
- package/node_modules/@shopify/react-testing/build/ts/matchers/utilities.d.ts +17 -0
- package/node_modules/@shopify/react-testing/build/ts/matchers/utilities.d.ts.map +1 -0
- package/node_modules/@shopify/react-testing/build/ts/mount.d.ts +39 -0
- package/node_modules/@shopify/react-testing/build/ts/mount.d.ts.map +1 -0
- package/node_modules/@shopify/react-testing/build/ts/root.d.ts +55 -0
- package/node_modules/@shopify/react-testing/build/ts/root.d.ts.map +1 -0
- package/node_modules/@shopify/react-testing/build/ts/toReactString.d.ts +5 -0
- package/node_modules/@shopify/react-testing/build/ts/toReactString.d.ts.map +1 -0
- package/node_modules/@shopify/react-testing/build/ts/types.d.ts +89 -0
- package/node_modules/@shopify/react-testing/build/ts/types.d.ts.map +1 -0
- package/node_modules/@shopify/react-testing/index.esnext +1 -0
- package/node_modules/@shopify/react-testing/index.js +1 -0
- package/node_modules/@shopify/react-testing/index.mjs +1 -0
- package/node_modules/@shopify/react-testing/matchers.esnext +1 -0
- package/node_modules/@shopify/react-testing/matchers.js +1 -0
- package/node_modules/@shopify/react-testing/matchers.mjs +1 -0
- package/node_modules/@shopify/react-testing/package.json +69 -0
- package/node_modules/@shopify/ui-extensions-test-utils/CHANGELOG.md +66 -0
- package/node_modules/@shopify/ui-extensions-test-utils/dist/index.js +3 -0
- package/node_modules/@shopify/ui-extensions-test-utils/dist/render.js +5 -0
- package/node_modules/@shopify/ui-extensions-test-utils/dist/renderHook.js +20 -0
- package/node_modules/@shopify/ui-extensions-test-utils/dist/withProviders.js +6 -0
- package/node_modules/@shopify/ui-extensions-test-utils/package.json +41 -0
- package/node_modules/@shopify/ui-extensions-test-utils/project.json +39 -0
- package/node_modules/@types/node/LICENSE +21 -0
- package/node_modules/@types/node/README.md +15 -0
- package/node_modules/@types/node/assert/strict.d.ts +8 -0
- package/node_modules/@types/node/assert.d.ts +985 -0
- package/node_modules/@types/node/async_hooks.d.ts +522 -0
- package/node_modules/@types/node/buffer.d.ts +2321 -0
- package/node_modules/@types/node/child_process.d.ts +1544 -0
- package/node_modules/@types/node/cluster.d.ts +432 -0
- package/node_modules/@types/node/console.d.ts +412 -0
- package/node_modules/@types/node/constants.d.ts +19 -0
- package/node_modules/@types/node/crypto.d.ts +4451 -0
- package/node_modules/@types/node/dgram.d.ts +586 -0
- package/node_modules/@types/node/diagnostics_channel.d.ts +192 -0
- package/node_modules/@types/node/dns/promises.d.ts +381 -0
- package/node_modules/@types/node/dns.d.ts +809 -0
- package/node_modules/@types/node/dom-events.d.ts +122 -0
- package/node_modules/@types/node/domain.d.ts +170 -0
- package/node_modules/@types/node/events.d.ts +803 -0
- package/node_modules/@types/node/fs/promises.d.ts +1205 -0
- package/node_modules/@types/node/fs.d.ts +4211 -0
- package/node_modules/@types/node/globals.d.ts +377 -0
- package/node_modules/@types/node/globals.global.d.ts +1 -0
- package/node_modules/@types/node/http.d.ts +1801 -0
- package/node_modules/@types/node/http2.d.ts +2386 -0
- package/node_modules/@types/node/https.d.ts +544 -0
- package/node_modules/@types/node/index.d.ts +88 -0
- package/node_modules/@types/node/inspector.d.ts +2739 -0
- package/node_modules/@types/node/module.d.ts +298 -0
- package/node_modules/@types/node/net.d.ts +913 -0
- package/node_modules/@types/node/os.d.ts +473 -0
- package/node_modules/@types/node/package.json +235 -0
- package/node_modules/@types/node/path.d.ts +191 -0
- package/node_modules/@types/node/perf_hooks.d.ts +626 -0
- package/node_modules/@types/node/process.d.ts +1531 -0
- package/node_modules/@types/node/punycode.d.ts +117 -0
- package/node_modules/@types/node/querystring.d.ts +141 -0
- package/node_modules/@types/node/readline/promises.d.ts +143 -0
- package/node_modules/@types/node/readline.d.ts +666 -0
- package/node_modules/@types/node/repl.d.ts +430 -0
- package/node_modules/@types/node/stream/consumers.d.ts +12 -0
- package/node_modules/@types/node/stream/promises.d.ts +83 -0
- package/node_modules/@types/node/stream/web.d.ts +336 -0
- package/node_modules/@types/node/stream.d.ts +1731 -0
- package/node_modules/@types/node/string_decoder.d.ts +67 -0
- package/node_modules/@types/node/test.d.ts +1113 -0
- package/node_modules/@types/node/timers/promises.d.ts +93 -0
- package/node_modules/@types/node/timers.d.ts +126 -0
- package/node_modules/@types/node/tls.d.ts +1203 -0
- package/node_modules/@types/node/trace_events.d.ts +171 -0
- package/node_modules/@types/node/ts4.8/assert/strict.d.ts +8 -0
- package/node_modules/@types/node/ts4.8/assert.d.ts +985 -0
- package/node_modules/@types/node/ts4.8/async_hooks.d.ts +522 -0
- package/node_modules/@types/node/ts4.8/buffer.d.ts +2321 -0
- package/node_modules/@types/node/ts4.8/child_process.d.ts +1544 -0
- package/node_modules/@types/node/ts4.8/cluster.d.ts +432 -0
- package/node_modules/@types/node/ts4.8/console.d.ts +412 -0
- package/node_modules/@types/node/ts4.8/constants.d.ts +19 -0
- package/node_modules/@types/node/ts4.8/crypto.d.ts +4450 -0
- package/node_modules/@types/node/ts4.8/dgram.d.ts +586 -0
- package/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +192 -0
- package/node_modules/@types/node/ts4.8/dns/promises.d.ts +381 -0
- package/node_modules/@types/node/ts4.8/dns.d.ts +809 -0
- package/node_modules/@types/node/ts4.8/dom-events.d.ts +122 -0
- package/node_modules/@types/node/ts4.8/domain.d.ts +170 -0
- package/node_modules/@types/node/ts4.8/events.d.ts +754 -0
- package/node_modules/@types/node/ts4.8/fs/promises.d.ts +1205 -0
- package/node_modules/@types/node/ts4.8/fs.d.ts +4211 -0
- package/node_modules/@types/node/ts4.8/globals.d.ts +377 -0
- package/node_modules/@types/node/ts4.8/globals.global.d.ts +1 -0
- package/node_modules/@types/node/ts4.8/http.d.ts +1801 -0
- package/node_modules/@types/node/ts4.8/http2.d.ts +2386 -0
- package/node_modules/@types/node/ts4.8/https.d.ts +544 -0
- package/node_modules/@types/node/ts4.8/index.d.ts +88 -0
- package/node_modules/@types/node/ts4.8/inspector.d.ts +2739 -0
- package/node_modules/@types/node/ts4.8/module.d.ts +298 -0
- package/node_modules/@types/node/ts4.8/net.d.ts +913 -0
- package/node_modules/@types/node/ts4.8/os.d.ts +473 -0
- package/node_modules/@types/node/ts4.8/path.d.ts +191 -0
- package/node_modules/@types/node/ts4.8/perf_hooks.d.ts +626 -0
- package/node_modules/@types/node/ts4.8/process.d.ts +1531 -0
- package/node_modules/@types/node/ts4.8/punycode.d.ts +117 -0
- package/node_modules/@types/node/ts4.8/querystring.d.ts +141 -0
- package/node_modules/@types/node/ts4.8/readline/promises.d.ts +143 -0
- package/node_modules/@types/node/ts4.8/readline.d.ts +666 -0
- package/node_modules/@types/node/ts4.8/repl.d.ts +430 -0
- package/node_modules/@types/node/ts4.8/stream/consumers.d.ts +12 -0
- package/node_modules/@types/node/ts4.8/stream/promises.d.ts +83 -0
- package/node_modules/@types/node/ts4.8/stream/web.d.ts +336 -0
- package/node_modules/@types/node/ts4.8/stream.d.ts +1731 -0
- package/node_modules/@types/node/ts4.8/string_decoder.d.ts +67 -0
- package/node_modules/@types/node/ts4.8/test.d.ts +1113 -0
- package/node_modules/@types/node/ts4.8/timers/promises.d.ts +93 -0
- package/node_modules/@types/node/ts4.8/timers.d.ts +126 -0
- package/node_modules/@types/node/ts4.8/tls.d.ts +1203 -0
- package/node_modules/@types/node/ts4.8/trace_events.d.ts +171 -0
- package/node_modules/@types/node/ts4.8/tty.d.ts +206 -0
- package/node_modules/@types/node/ts4.8/url.d.ts +937 -0
- package/node_modules/@types/node/ts4.8/util.d.ts +2075 -0
- package/node_modules/@types/node/ts4.8/v8.d.ts +541 -0
- package/node_modules/@types/node/ts4.8/vm.d.ts +667 -0
- package/node_modules/@types/node/ts4.8/wasi.d.ts +158 -0
- package/node_modules/@types/node/ts4.8/worker_threads.d.ts +692 -0
- package/node_modules/@types/node/ts4.8/zlib.d.ts +517 -0
- package/node_modules/@types/node/tty.d.ts +206 -0
- package/node_modules/@types/node/url.d.ts +937 -0
- package/node_modules/@types/node/util.d.ts +2075 -0
- package/node_modules/@types/node/v8.d.ts +541 -0
- package/node_modules/@types/node/vm.d.ts +667 -0
- package/node_modules/@types/node/wasi.d.ts +158 -0
- package/node_modules/@types/node/worker_threads.d.ts +692 -0
- package/node_modules/@types/node/zlib.d.ts +517 -0
- package/node_modules/@types/react/LICENSE +21 -0
- package/node_modules/@types/react/README.md +16 -0
- package/node_modules/@types/react/experimental.d.ts +192 -0
- package/node_modules/@types/react/global.d.ts +151 -0
- package/node_modules/@types/react/index.d.ts +3175 -0
- package/node_modules/@types/react/jsx-dev-runtime.d.ts +2 -0
- package/node_modules/@types/react/jsx-runtime.d.ts +2 -0
- package/node_modules/@types/react/package.json +149 -0
- package/node_modules/@vitejs/plugin-react-refresh/LICENSE +21 -0
- package/node_modules/@vitejs/plugin-react-refresh/README.md +73 -0
- package/node_modules/@vitejs/plugin-react-refresh/index.d.ts +14 -0
- package/node_modules/@vitejs/plugin-react-refresh/index.js +239 -0
- package/node_modules/@vitejs/plugin-react-refresh/package.json +35 -0
- package/package.json +64 -0
- package/project.json +74 -0
- package/scripts/create-entry-files.ts +44 -0
- package/src/ExtensionServerClient/ExtensionServerClient.test.ts +730 -0
- package/src/ExtensionServerClient/ExtensionServerClient.ts +310 -0
- package/src/ExtensionServerClient/index.ts +2 -0
- package/src/ExtensionServerClient/types.ts +159 -0
- package/src/context/ExtensionServerProvider.test.tsx +173 -0
- package/src/context/ExtensionServerProvider.tsx +46 -0
- package/src/context/constants.ts +15 -0
- package/src/context/index.ts +3 -0
- package/src/context/types.ts +13 -0
- package/src/hooks/index.ts +5 -0
- package/src/hooks/useExtensionClient.ts +6 -0
- package/src/hooks/useExtensionServerContext.ts +4 -0
- package/src/hooks/useExtensionServerEvent.ts +11 -0
- package/src/hooks/useExtensionServerState.ts +6 -0
- package/src/hooks/useIsomorphicLayoutEffect.ts +6 -0
- package/src/i18n.test.ts +417 -0
- package/src/i18n.ts +208 -0
- package/src/index.ts +7 -0
- package/src/state/actions/actions.ts +36 -0
- package/src/state/actions/index.ts +2 -0
- package/src/state/actions/types.ts +26 -0
- package/src/state/index.ts +2 -0
- package/src/state/reducers/constants.ts +6 -0
- package/src/state/reducers/extensionServerReducer.test.ts +160 -0
- package/src/state/reducers/extensionServerReducer.ts +87 -0
- package/src/state/reducers/index.ts +3 -0
- package/src/state/reducers/types.ts +7 -0
- package/src/testing/MockExtensionServerProvider.tsx +36 -0
- package/src/testing/app.ts +15 -0
- package/src/testing/extensions.ts +70 -0
- package/src/testing/index.ts +3 -0
- package/src/types.ts +177 -0
- package/src/utilities/assetToString.test.ts +16 -0
- package/src/utilities/assetToString.ts +8 -0
- package/src/utilities/groupByKey.ts +3 -0
- package/src/utilities/index.ts +7 -0
- package/src/utilities/isUIExtension.ts +7 -0
- package/src/utilities/isValidSurface.ts +7 -0
- package/src/utilities/noop.ts +1 -0
- package/src/utilities/replaceUpdated.test.ts +26 -0
- package/src/utilities/replaceUpdated.ts +16 -0
- package/src/utilities/set.test.ts +19 -0
- package/src/utilities/set.ts +29 -0
- package/testing.d.ts +1 -0
- package/testing.js +1 -0
- package/testing.mjs +1 -0
- package/tests/setup.ts +6 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// https://github.com/facebook/react/blob/master/packages/shared/ReactWorkTag.js
|
|
2
|
+
let Tag;
|
|
3
|
+
|
|
4
|
+
(function (Tag) {
|
|
5
|
+
Tag[Tag["FunctionComponent"] = 0] = "FunctionComponent";
|
|
6
|
+
Tag[Tag["ClassComponent"] = 1] = "ClassComponent";
|
|
7
|
+
Tag[Tag["IndeterminateComponent"] = 2] = "IndeterminateComponent";
|
|
8
|
+
Tag[Tag["HostRoot"] = 3] = "HostRoot";
|
|
9
|
+
Tag[Tag["HostPortal"] = 4] = "HostPortal";
|
|
10
|
+
Tag[Tag["HostComponent"] = 5] = "HostComponent";
|
|
11
|
+
Tag[Tag["HostText"] = 6] = "HostText";
|
|
12
|
+
Tag[Tag["Fragment"] = 7] = "Fragment";
|
|
13
|
+
Tag[Tag["Mode"] = 8] = "Mode";
|
|
14
|
+
Tag[Tag["ContextConsumer"] = 9] = "ContextConsumer";
|
|
15
|
+
Tag[Tag["ContextProvider"] = 10] = "ContextProvider";
|
|
16
|
+
Tag[Tag["ForwardRef"] = 11] = "ForwardRef";
|
|
17
|
+
Tag[Tag["Profiler"] = 12] = "Profiler";
|
|
18
|
+
Tag[Tag["SuspenseComponent"] = 13] = "SuspenseComponent";
|
|
19
|
+
Tag[Tag["MemoComponent"] = 14] = "MemoComponent";
|
|
20
|
+
Tag[Tag["SimpleMemoComponent"] = 15] = "SimpleMemoComponent";
|
|
21
|
+
Tag[Tag["LazyComponent"] = 16] = "LazyComponent";
|
|
22
|
+
Tag[Tag["IncompleteClassComponent"] = 17] = "IncompleteClassComponent";
|
|
23
|
+
Tag[Tag["DehydratedSuspenseComponent"] = 18] = "DehydratedSuspenseComponent";
|
|
24
|
+
})(Tag || (Tag = {}));
|
|
25
|
+
|
|
26
|
+
export { Tag };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface State<ChildProps> {
|
|
3
|
+
props?: Partial<ChildProps>;
|
|
4
|
+
}
|
|
5
|
+
interface Props {
|
|
6
|
+
children: React.ReactElement<any>;
|
|
7
|
+
render(element: React.ReactElement<any>): React.ReactElement<any>;
|
|
8
|
+
}
|
|
9
|
+
export declare class TestWrapper<ChildProps> extends React.Component<Props, State<ChildProps>> {
|
|
10
|
+
state: State<ChildProps>;
|
|
11
|
+
rootRef: React.Component | null;
|
|
12
|
+
setProps(props: Partial<ChildProps>): void;
|
|
13
|
+
render(): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
14
|
+
private setRef;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=TestWrapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TestWrapper.d.ts","sourceRoot":"","sources":["../../src/TestWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,KAAK,CAAC,UAAU;IACxB,KAAK,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC;CAC7B;AAED,UAAU,KAAK;IACb,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;IAClC,MAAM,CAAC,OAAO,EAAE,KAAK,CAAC,YAAY,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;CACnE;AAED,qBAAa,WAAW,CAAC,UAAU,CAAE,SAAQ,KAAK,CAAC,SAAS,CAC1D,KAAK,EACL,KAAK,CAAC,UAAU,CAAC,CAClB;IACC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,CAAM;IAE9B,OAAO,EAAE,KAAK,CAAC,SAAS,GAAG,IAAI,CAAQ;IAGvC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC,UAAU,CAAC;IAInC,MAAM;IAUN,OAAO,CAAC,MAAM,CAEZ;CACH"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compat.d.ts","sourceRoot":"","sources":["../../src/compat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAE,KAAK,EAAC,MAAM,SAAS,CAAC;AAE7C,wBAAgB,YAAY,CAAC,QAAQ,EAAE,aAAa,GAAG,KAAK,CAQ3D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"destroy.d.ts","sourceRoot":"","sources":["../../src/destroy.ts"],"names":[],"mappings":"AAEA,wBAAgB,UAAU,SAIzB"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Tag, Node, Predicate, FunctionKeys, DeepPartialArguments, PropsFor, UnknowablePropsFor, DebugOptions } from './types';
|
|
3
|
+
declare type Root = import('./root').Root<any>;
|
|
4
|
+
interface Tree<Props> {
|
|
5
|
+
tag: Tag;
|
|
6
|
+
type: string | React.ComponentType<any> | null;
|
|
7
|
+
props: Props;
|
|
8
|
+
instance?: any;
|
|
9
|
+
}
|
|
10
|
+
export declare class Element<Props> implements Node<Props> {
|
|
11
|
+
private readonly tree;
|
|
12
|
+
private readonly allChildren;
|
|
13
|
+
readonly root: Root;
|
|
14
|
+
get props(): Props;
|
|
15
|
+
get type(): string | React.ComponentType<any> | null;
|
|
16
|
+
get isDOM(): boolean;
|
|
17
|
+
get instance(): any;
|
|
18
|
+
get children(): Element<unknown>[];
|
|
19
|
+
private get elementDescendants();
|
|
20
|
+
private get elementChildren();
|
|
21
|
+
get descendants(): Element<unknown>[];
|
|
22
|
+
get domNodes(): HTMLElement[];
|
|
23
|
+
get domNode(): HTMLElement | null;
|
|
24
|
+
private descendantsCache;
|
|
25
|
+
private elementChildrenCache;
|
|
26
|
+
constructor(tree: Tree<Props>, allChildren: (Element<unknown> | string)[], root: Root);
|
|
27
|
+
data(key: string): string | undefined;
|
|
28
|
+
prop<K extends keyof Props>(key: K): Props[K];
|
|
29
|
+
text(): string;
|
|
30
|
+
html(): string;
|
|
31
|
+
is<Type extends React.ComponentType<any> | string>(type: Type): this is Element<PropsFor<Type>>;
|
|
32
|
+
find<Type extends React.ComponentType<any> | string>(type: Type, props?: Partial<PropsFor<Type>>): Element<PropsFor<Type>> | null;
|
|
33
|
+
findAll<Type extends React.ComponentType<any> | string>(type: Type, props?: Partial<PropsFor<Type>>): Element<PropsFor<Type>>[];
|
|
34
|
+
findWhere<Type extends React.ComponentType<any> | string | unknown = unknown>(predicate: Predicate): Element<UnknowablePropsFor<Type>> | null;
|
|
35
|
+
findAllWhere<Type extends React.ComponentType<any> | string | unknown = unknown>(predicate: Predicate): Element<UnknowablePropsFor<Type>>[];
|
|
36
|
+
trigger<K extends FunctionKeys<Props>>(prop: K, ...args: DeepPartialArguments<Props[K]>): ReturnType<NonNullable<Props[K] extends ((...args: any[]) => any) | undefined ? Props[K] : never>>;
|
|
37
|
+
triggerKeypath<T = unknown>(keypath: string, ...args: unknown[]): T;
|
|
38
|
+
debug(options?: DebugOptions): any;
|
|
39
|
+
toString(): any;
|
|
40
|
+
}
|
|
41
|
+
export {};
|
|
42
|
+
//# sourceMappingURL=element.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"element.d.ts","sourceRoot":"","sources":["../../src/element.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EACL,GAAG,EACH,IAAI,EACJ,SAAS,EACT,YAAY,EACZ,oBAAoB,EACpB,QAAQ,EACR,kBAAkB,EAClB,YAAY,EACb,MAAM,SAAS,CAAC;AAEjB,aAAK,IAAI,GAAG,OAAO,QAAQ,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;AAEvC,UAAU,IAAI,CAAC,KAAK;IAClB,GAAG,EAAE,GAAG,CAAC;IACT,IAAI,EAAE,MAAM,GAAG,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC;IAC/C,KAAK,EAAE,KAAK,CAAC;IACb,QAAQ,CAAC,EAAE,GAAG,CAAC;CAChB;AAED,qBAAa,OAAO,CAAC,KAAK,CAAE,YAAW,IAAI,CAAC,KAAK,CAAC;IAqE9C,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,WAAW;aACZ,IAAI,EAAE,IAAI;IAtE5B,IAAI,KAAK,IAAI,KAAK,CAEjB;IAED,IAAI,IAAI,6CAEP;IAED,IAAI,KAAK,YAER;IAED,IAAI,QAAQ,QAEX;IAED,IAAI,QAAQ,uBAEX;IAED,OAAO,KAAK,kBAAkB,GAM7B;IAED,OAAO,KAAK,eAAe,GAQ1B;IAED,IAAI,WAAW,uBAEd;IAED,IAAI,QAAQ,IAAI,WAAW,EAAE,CAQ5B;IAED,IAAI,OAAO,IAAI,WAAW,GAAG,IAAI,CAUhC;IAED,OAAO,CAAC,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ACV,IAAI,SAAS,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,EAClE,SAAS,EAAE,SAAS,GAAG,OAAO,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC,EAAE;IAM5D,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,KAAK,CAAC,EACnC,IAAI,EAAE,CAAC,EACP,GAAG,IAAI,EAAE,oBAAoB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GACtC,UAAU,CACX,WAAW,CACT,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC,GAAG,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,CAC1E,CACF;IAcD,cAAc,CAAC,CAAC,GAAG,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,CAAC;IA6BnE,KAAK,CAAC,OAAO,CAAC,EAAE,YAAY;IAI5B,QAAQ;CAGT"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAClC,YAAY,EAAC,IAAI,EAAC,MAAM,SAAS,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="jest" />
|
|
2
|
+
import { ComponentType } from 'react';
|
|
3
|
+
import { Node, PropsFor } from '../types';
|
|
4
|
+
export declare function toContainReactComponent<Type extends string | ComponentType<any>>(this: jest.MatcherUtils, node: Node<unknown>, type: Type, props?: Partial<PropsFor<Type>>): {
|
|
5
|
+
pass: boolean;
|
|
6
|
+
message: () => string;
|
|
7
|
+
};
|
|
8
|
+
export declare function toContainReactComponentTimes<Type extends string | ComponentType<any>>(this: jest.MatcherUtils, node: Node<unknown>, type: Type, times: number, props?: Partial<PropsFor<Type>>): {
|
|
9
|
+
pass: boolean;
|
|
10
|
+
message: () => string;
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=components.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../src/matchers/components.ts"],"names":[],"mappings":";AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,OAAO,CAAC;AAQpC,OAAO,EAAC,IAAI,EAAE,QAAQ,EAAC,MAAM,UAAU,CAAC;AAUxC,wBAAgB,uBAAuB,CACrC,IAAI,SAAS,MAAM,GAAG,aAAa,CAAC,GAAG,CAAC,EAExC,IAAI,EAAE,IAAI,CAAC,YAAY,EACvB,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,EACnB,IAAI,EAAE,IAAI,EACV,KAAK,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;;;EAwDhC;AAED,wBAAgB,4BAA4B,CAC1C,IAAI,SAAS,MAAM,GAAG,aAAa,CAAC,GAAG,CAAC,EAExC,IAAI,EAAE,IAAI,CAAC,YAAY,EACvB,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,EACnB,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,MAAM,EACb,KAAK,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;;;EA2ChC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="jest" />
|
|
2
|
+
import { Context } from 'react';
|
|
3
|
+
import { Node } from '../types';
|
|
4
|
+
export declare function toProvideReactContext<Type>(this: jest.MatcherUtils, node: Node<unknown>, Context: Context<Type>, value?: Type): {
|
|
5
|
+
pass: boolean;
|
|
6
|
+
message: () => string;
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/matchers/context.ts"],"names":[],"mappings":";AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,OAAO,CAAC;AAQ9B,OAAO,EAAC,IAAI,EAAC,MAAM,UAAU,CAAC;AAI9B,wBAAgB,qBAAqB,CAAC,IAAI,EACxC,IAAI,EAAE,IAAI,CAAC,YAAY,EACvB,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,EACnB,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,EACtB,KAAK,CAAC,EAAE,IAAI;;;EAqDb"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ComponentType, Context as ReactContext } from 'react';
|
|
2
|
+
import { Node, PropsFor } from '../types';
|
|
3
|
+
declare type PropsFromNode<T> = T extends Node<infer U> ? U : never;
|
|
4
|
+
declare global {
|
|
5
|
+
namespace jest {
|
|
6
|
+
interface Matchers<R, T = {}> {
|
|
7
|
+
toHaveReactProps(props: Partial<PropsFromNode<T>>): void;
|
|
8
|
+
toHaveReactDataProps(data: {
|
|
9
|
+
[key: string]: string;
|
|
10
|
+
}): void;
|
|
11
|
+
toContainReactComponent<Type extends string | ComponentType<any>>(type: Type, props?: Partial<PropsFor<Type>>): void;
|
|
12
|
+
toContainReactComponentTimes<Type extends string | ComponentType<any>>(type: Type, times: number, props?: Partial<PropsFor<Type>>): void;
|
|
13
|
+
toProvideReactContext<Type>(context: ReactContext<Type>, value?: Type): void;
|
|
14
|
+
toContainReactText(text: string): void;
|
|
15
|
+
toContainReactHtml(text: string): void;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/matchers/index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|
+
/// <reference types="jest" />
|
|
2
|
+
import { Node } from '../types';
|
|
3
|
+
export declare function toHaveReactProps<Props>(this: jest.MatcherUtils, node: Node<Props>, props: Partial<Props>): {
|
|
4
|
+
pass: boolean;
|
|
5
|
+
message: () => string;
|
|
6
|
+
};
|
|
7
|
+
export declare function toHaveReactDataProps(this: jest.MatcherUtils, node: Node<unknown>, data: {
|
|
8
|
+
[key: string]: string;
|
|
9
|
+
}): any;
|
|
10
|
+
//# sourceMappingURL=props.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/matchers/props.ts"],"names":[],"mappings":";AAOA,OAAO,EAAC,IAAI,EAAC,MAAM,UAAU,CAAC;AAI9B,wBAAgB,gBAAgB,CAAC,KAAK,EACpC,IAAI,EAAE,IAAI,CAAC,YAAY,EACvB,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,EACjB,KAAK,EAAE,OAAO,CAAC,KAAK,CAAC;;;EA2CtB;AAED,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,IAAI,CAAC,YAAY,EACvB,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,EACnB,IAAI,EAAE;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAC,OAG9B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="jest" />
|
|
2
|
+
import { Node } from '../types';
|
|
3
|
+
export declare function toContainReactText<Props>(this: jest.MatcherUtils, node: Node<Props>, text: string): {
|
|
4
|
+
pass: boolean;
|
|
5
|
+
message: () => string;
|
|
6
|
+
};
|
|
7
|
+
export declare function toContainReactHtml<Props>(this: jest.MatcherUtils, node: Node<Props>, text: string): {
|
|
8
|
+
pass: boolean;
|
|
9
|
+
message: () => string;
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=strings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"strings.d.ts","sourceRoot":"","sources":["../../../src/matchers/strings.ts"],"names":[],"mappings":";AAQA,OAAO,EAAC,IAAI,EAAC,MAAM,UAAU,CAAC;AAI9B,wBAAgB,kBAAkB,CAAC,KAAK,EACtC,IAAI,EAAE,IAAI,CAAC,YAAY,EACvB,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,EACjB,IAAI,EAAE,MAAM;;;EA4Bb;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EACtC,IAAI,EAAE,IAAI,CAAC,YAAY,EACvB,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,EACjB,IAAI,EAAE,MAAM;;;EA4Bb"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Node } from '../types';
|
|
3
|
+
export declare function assertIsNode(node: unknown, { expectation, isNot }: {
|
|
4
|
+
expectation: string;
|
|
5
|
+
isNot: boolean;
|
|
6
|
+
}): void;
|
|
7
|
+
export declare function assertIsType(type: unknown, { expectation, isNot }: {
|
|
8
|
+
expectation: string;
|
|
9
|
+
isNot: boolean;
|
|
10
|
+
}): void;
|
|
11
|
+
export declare function diffs(element: Node<any>[], props: object, expand?: boolean): string;
|
|
12
|
+
export declare function printType(type: string | React.ComponentType<any>): string;
|
|
13
|
+
export declare function diffPropsForNode(node: Node<any>, props: object, { expand }: {
|
|
14
|
+
expand?: boolean | undefined;
|
|
15
|
+
}): string | null;
|
|
16
|
+
export declare function pluralize(word: string, count: number): string;
|
|
17
|
+
//# sourceMappingURL=utilities.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utilities.d.ts","sourceRoot":"","sources":["../../../src/matchers/utilities.ts"],"names":[],"mappings":";AAYA,OAAO,EAAC,IAAI,EAAC,MAAM,UAAU,CAAC;AAE9B,wBAAgB,YAAY,CAC1B,IAAI,EAAE,OAAO,EACb,EAAC,WAAW,EAAE,KAAK,EAAC,EAAE;IAAC,WAAW,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAC,QA6C5D;AAED,wBAAgB,YAAY,CAC1B,IAAI,EAAE,OAAO,EACb,EAAC,WAAW,EAAE,KAAK,EAAC,EAAE;IAAC,WAAW,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAC,QAa5D;AAED,wBAAgB,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,UAS1E;AAeD,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,UAchE;AAED,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,EACf,KAAK,EAAE,MAAM,EACb,EAAC,MAAc,EAAC;;CAAA,iBAKjB;AAiCD,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,UAEpD"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IfAllOptionalKeys } from '@shopify/useful-types';
|
|
3
|
+
import { Root, Options as RootOptions } from './root';
|
|
4
|
+
import { Element } from './element';
|
|
5
|
+
export { Root, Element };
|
|
6
|
+
export declare function mount<Props>(element: React.ReactElement<Props>): Root<Props>;
|
|
7
|
+
declare type AfterMountOption<MountOptions extends object, Context extends object, Async extends boolean> = Async extends true ? {
|
|
8
|
+
afterMount(wrapper: CustomRoot<unknown, Context>, options: MountOptions): PromiseLike<void>;
|
|
9
|
+
} : {
|
|
10
|
+
afterMount?(wrapper: CustomRoot<unknown, Context>, options: MountOptions): void;
|
|
11
|
+
};
|
|
12
|
+
declare type ContextOption<MountOptions extends object, Context extends object> = IfAllOptionalKeys<Context, {
|
|
13
|
+
context?(options: MountOptions): Context;
|
|
14
|
+
}, {
|
|
15
|
+
context(options: MountOptions): Context;
|
|
16
|
+
}>;
|
|
17
|
+
interface Cleanup<MountOptions extends object, Context extends object> {
|
|
18
|
+
cleanup?(wrapper: CustomRoot<unknown, Context>, options: MountOptions): void;
|
|
19
|
+
}
|
|
20
|
+
export declare type CustomMountOptions<MountOptions extends object = {}, CreateContext extends object = {}, Context extends object = CreateContext, Async extends boolean = false> = {
|
|
21
|
+
render(element: React.ReactElement<any>, context: Context, options: MountOptions): React.ReactElement<any>;
|
|
22
|
+
} & ContextOption<MountOptions, CreateContext> & AfterMountOption<MountOptions, Context, Async> & Cleanup<MountOptions, Context>;
|
|
23
|
+
export interface CustomMount<MountOptions extends object, Context extends object, Async extends boolean> {
|
|
24
|
+
<Props>(...args: IfAllOptionalKeys<MountOptions, [
|
|
25
|
+
React.ReactElement<any>,
|
|
26
|
+
MountOptions?
|
|
27
|
+
], [
|
|
28
|
+
React.ReactElement<any>,
|
|
29
|
+
MountOptions
|
|
30
|
+
]>): CustomMountResult<Props, Context, Async>;
|
|
31
|
+
extend<AdditionalMountOptions extends object = {}, AdditionalContext extends object = {}, AdditionalAsync extends boolean = false>(options: CustomMountOptions<MountOptions & AdditionalMountOptions, AdditionalContext, Context & AdditionalContext, AdditionalAsync>): CustomMount<MountOptions & AdditionalMountOptions, Context & AdditionalContext, AdditionalAsync extends true ? AdditionalAsync : Async>;
|
|
32
|
+
}
|
|
33
|
+
declare type CustomMountResult<Props, Context extends object, Async extends boolean> = Async extends true ? Promise<CustomRoot<Props, Context>> : CustomRoot<Props, Context>;
|
|
34
|
+
export declare class CustomRoot<Props, Context extends object> extends Root<Props> {
|
|
35
|
+
readonly context: Context;
|
|
36
|
+
constructor(tree: React.ReactElement<Props>, context: Context, options?: RootOptions);
|
|
37
|
+
}
|
|
38
|
+
export declare function createMount<MountOptions extends object = {}, Context extends object = {}, Async extends boolean = false>({ render, context: createContext, afterMount, cleanup, }: CustomMountOptions<MountOptions, Context, Context, Async>): CustomMount<MountOptions, Context, Async>;
|
|
39
|
+
//# sourceMappingURL=mount.d.ts.map
|
|
@@ -0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,CACvD,CAAC;CACH;AAED,aAAK,iBAAiB,CACpB,KAAK,EACL,OAAO,SAAS,MAAM,EACtB,KAAK,SAAS,OAAO,IACnB,KAAK,SAAS,IAAI,GAClB,OAAO,CAAC,UAAU,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,GACnC,UAAU,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;AAE/B,qBAAa,UAAU,CAAC,KAAK,EAAE,OAAO,SAAS,MAAM,CAAE,SAAQ,IAAI,CAAC,KAAK,CAAC;aAGtD,OAAO,EAAE,OAAO;gBADhC,IAAI,EAAE,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,EACf,OAAO,EAAE,OAAO,EAChC,OAAO,CAAC,EAAE,WAAW;CAIxB;AAED,wBAAgB,WAAW,CACzB,YAAY,SAAS,MAAM,GAAG,EAAE,EAChC,OAAO,SAAS,MAAM,GAAG,EAAE,EAC3B,KAAK,SAAS,OAAO,GAAG,KAAK,EAC7B,EACA,MAAM,EACN,OAAO,EAAE,aAA8B,EACvC,UAA8B,EAC9B,OAAO,GACR,EAAE,kBAAkB,CAAC,YAAY,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,CAAC,GAAG,WAAW,CACxE,YAAY,EACZ,OAAO,EACP,KAAK,CACN,CAsDA"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Element } from './element';
|
|
3
|
+
import { Node, Predicate, FunctionKeys, DeepPartialArguments, PropsFor, DebugOptions } from './types';
|
|
4
|
+
declare type ResolveRoot = (element: Element<unknown>) => Element<unknown> | null;
|
|
5
|
+
declare type Render = (element: React.ReactElement<unknown>) => React.ReactElement<unknown>;
|
|
6
|
+
export interface Options {
|
|
7
|
+
render?: Render;
|
|
8
|
+
resolveRoot?: ResolveRoot;
|
|
9
|
+
}
|
|
10
|
+
export declare const connected: Set<Root<unknown>>;
|
|
11
|
+
export declare class Root<Props> implements Node<Props> {
|
|
12
|
+
private tree;
|
|
13
|
+
get props(): Props;
|
|
14
|
+
get isDOM(): boolean;
|
|
15
|
+
get type(): string | React.ComponentType<any> | null;
|
|
16
|
+
get instance(): any;
|
|
17
|
+
get children(): Element<unknown>[];
|
|
18
|
+
get descendants(): Element<unknown>[];
|
|
19
|
+
get domNodes(): HTMLElement[];
|
|
20
|
+
get domNode(): HTMLElement | null;
|
|
21
|
+
private wrapper;
|
|
22
|
+
private element;
|
|
23
|
+
private root;
|
|
24
|
+
private acting;
|
|
25
|
+
private render;
|
|
26
|
+
private resolveRoot;
|
|
27
|
+
private get mounted();
|
|
28
|
+
constructor(tree: React.ReactElement<Props>, { render, resolveRoot }?: Options);
|
|
29
|
+
act<T>(action: () => T, { update }?: {
|
|
30
|
+
update?: boolean | undefined;
|
|
31
|
+
}): T;
|
|
32
|
+
html(): string;
|
|
33
|
+
text(): string;
|
|
34
|
+
is<Type extends React.ComponentType<any> | string>(type: Type): this is Root<PropsFor<Type>>;
|
|
35
|
+
prop<K extends keyof Props>(key: K): Props[K];
|
|
36
|
+
data(key: string): string | undefined;
|
|
37
|
+
find<Type extends React.ComponentType<any> | string>(type: Type, props?: Partial<PropsFor<Type>>): Element<PropsFor<Type>> | null;
|
|
38
|
+
findAll<Type extends React.ComponentType<any> | string>(type: Type, props?: Partial<PropsFor<Type>>): Element<PropsFor<Type>>[];
|
|
39
|
+
findWhere<Type extends React.ComponentType<any> | string | unknown = unknown>(predicate: Predicate): Element<import("./types").UnknowablePropsFor<Type>> | null;
|
|
40
|
+
findAllWhere<Type extends React.ComponentType<any> | string | unknown = unknown>(predicate: Predicate): Element<import("./types").UnknowablePropsFor<Type>>[];
|
|
41
|
+
trigger<K extends FunctionKeys<Props>>(prop: K, ...args: DeepPartialArguments<Props[K]>): ReturnType<NonNullable<Props[K] extends ((...args: any[]) => any) | undefined ? Props[K] : never>>;
|
|
42
|
+
triggerKeypath<T = unknown>(keypath: string, ...args: unknown[]): T;
|
|
43
|
+
mount(): void;
|
|
44
|
+
unmount(): void;
|
|
45
|
+
destroy(): void;
|
|
46
|
+
setProps(props: Partial<Props>): void;
|
|
47
|
+
forceUpdate(): void;
|
|
48
|
+
debug(options?: DebugOptions): any;
|
|
49
|
+
toString(): any;
|
|
50
|
+
private update;
|
|
51
|
+
private ensureRoot;
|
|
52
|
+
private withRoot;
|
|
53
|
+
}
|
|
54
|
+
export {};
|
|
55
|
+
//# sourceMappingURL=root.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root.d.ts","sourceRoot":"","sources":["../../src/root.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAElC,OAAO,EAGL,IAAI,EACJ,SAAS,EACT,YAAY,EACZ,oBAAoB,EACpB,QAAQ,EACR,YAAY,EACb,MAAM,SAAS,CAAC;AAKjB,aAAK,WAAW,GAAG,CAAC,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,KAAK,OAAO,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;AAC1E,aAAK,MAAM,GAAG,CACZ,OAAO,EAAE,KAAK,CAAC,YAAY,CAAC,OAAO,CAAC,KACjC,KAAK,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;AAEjC,MAAM,WAAW,OAAO;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B;AAED,eAAO,MAAM,SAAS,oBAA2B,CAAC;AAElD,qBAAa,IAAI,CAAC,KAAK,CAAE,YAAW,IAAI,CAAC,KAAK,CAAC;IA8C3C,OAAO,CAAC,IAAI;IA7Cd,IAAI,KAAK,UAER;IAED,IAAI,KAAK,YAER;IAED,IAAI,IAAI,6CAEP;IAED,IAAI,QAAQ,QAEX;IAED,IAAI,QAAQ,uBAEX;IAED,IAAI,WAAW,uBAEd;IAED,IAAI,QAAQ,kBAEX;IAED,IAAI,OAAO,uBAEV;IAED,OAAO,C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,CAAC,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,EAClE,SAAS,EAAE,SAAS;IAItB,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,KAAK,CAAC,EACnC,IAAI,EAAE,CAAC,EACP,GAAG,IAAI,EAAE,oBAAoB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GACtC,UAAU,CACX,WAAW,CACT,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC,GAAG,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,CAC1E,CACF;IAID,cAAc,CAAC,CAAC,GAAG,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE;IAI/D,KAAK;IAyBL,OAAO;IAWP,OAAO;IAWP,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC,KAAK,CAAC;IAK9B,WAAW;IAKX,KAAK,CAAC,OAAO,CAAC,EAAE,YAAY;IAK5B,QAAQ;IAIR,OAAO,CAAC,MAAM;IAcd,OAAO,CAAC,UAAU;IAQlB,OAAO,CAAC,QAAQ;CAIjB"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { DebugOptions, Node } from './types';
|
|
2
|
+
export declare function toReactString<Props>(node: Node<Props>, options?: DebugOptions, level?: number): any;
|
|
3
|
+
export declare function toPropString(key: string, value: unknown, verbosity?: number): string;
|
|
4
|
+
export declare function nodeName<Props>({ type }: Node<Props>): string;
|
|
5
|
+
//# sourceMappingURL=toReactString.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toReactString.d.ts","sourceRoot":"","sources":["../../src/toReactString.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,YAAY,EAAE,IAAI,EAAC,MAAM,SAAS,CAAC;AAE3C,wBAAgB,aAAa,CAAC,KAAK,EACjC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,EACjB,OAAO,GAAE,YAAiB,EAC1B,KAAK,SAAI,OA4DV;AAED,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,SAAI,UAsBtE;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,EAAC,IAAI,EAAC,EAAE,IAAI,CAAC,KAAK,CAAC,UAelD"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare type PropsFor<T extends string | React.ComponentType<any>> = T extends string ? T extends keyof JSX.IntrinsicElements ? JSX.IntrinsicElements[T] : React.HTMLAttributes<T> : T extends React.ComponentType<any> ? React.ComponentPropsWithoutRef<T> : never;
|
|
3
|
+
export declare type UnknowablePropsFor<T extends string | React.ComponentType<any> | unknown> = T extends string | React.ComponentType<any> ? PropsFor<T> : unknown;
|
|
4
|
+
export declare type FunctionKeys<T> = {
|
|
5
|
+
[K in keyof T]-?: NonNullable<T[K]> extends (...args: any[]) => any ? K : never;
|
|
6
|
+
}[keyof T];
|
|
7
|
+
interface DeepPartialArray<T> extends Array<DeepPartial<T>> {
|
|
8
|
+
}
|
|
9
|
+
interface DeepPartialReadonlyArray<T> extends ReadonlyArray<DeepPartial<T>> {
|
|
10
|
+
}
|
|
11
|
+
declare type DeepPartialObject<T extends object> = {
|
|
12
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
13
|
+
};
|
|
14
|
+
declare type DeepPartial<T> = T extends (infer U)[] ? DeepPartialArray<U> : T extends ReadonlyArray<infer U> ? DeepPartialReadonlyArray<U> : T extends object ? DeepPartialObject<T> : T;
|
|
15
|
+
export declare type DeepPartialArguments<T> = {
|
|
16
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
17
|
+
} & any[];
|
|
18
|
+
export declare enum Tag {
|
|
19
|
+
FunctionComponent = 0,
|
|
20
|
+
ClassComponent = 1,
|
|
21
|
+
IndeterminateComponent = 2,
|
|
22
|
+
HostRoot = 3,
|
|
23
|
+
HostPortal = 4,
|
|
24
|
+
HostComponent = 5,
|
|
25
|
+
HostText = 6,
|
|
26
|
+
Fragment = 7,
|
|
27
|
+
Mode = 8,
|
|
28
|
+
ContextConsumer = 9,
|
|
29
|
+
ContextProvider = 10,
|
|
30
|
+
ForwardRef = 11,
|
|
31
|
+
Profiler = 12,
|
|
32
|
+
SuspenseComponent = 13,
|
|
33
|
+
MemoComponent = 14,
|
|
34
|
+
SimpleMemoComponent = 15,
|
|
35
|
+
LazyComponent = 16,
|
|
36
|
+
IncompleteClassComponent = 17,
|
|
37
|
+
DehydratedSuspenseComponent = 18
|
|
38
|
+
}
|
|
39
|
+
export interface Fiber {
|
|
40
|
+
tag: Tag;
|
|
41
|
+
key: null | string;
|
|
42
|
+
elementType: React.ComponentType | string | null;
|
|
43
|
+
type: React.ComponentType | string | null;
|
|
44
|
+
stateNode: any;
|
|
45
|
+
return: Fiber | null;
|
|
46
|
+
child: Fiber | null;
|
|
47
|
+
sibling: Fiber | null;
|
|
48
|
+
index: number;
|
|
49
|
+
ref: React.LegacyRef<unknown>;
|
|
50
|
+
pendingProps: unknown;
|
|
51
|
+
memoizedProps: unknown;
|
|
52
|
+
memoizedState: unknown;
|
|
53
|
+
}
|
|
54
|
+
export declare type ReactInstance = {
|
|
55
|
+
_reactInternals: Fiber;
|
|
56
|
+
} | {
|
|
57
|
+
_reactInternalFiber: Fiber;
|
|
58
|
+
};
|
|
59
|
+
export declare type Predicate = (node: Node<unknown>) => boolean;
|
|
60
|
+
export interface Node<Props> {
|
|
61
|
+
readonly props: Props;
|
|
62
|
+
readonly type: string | React.ComponentType<any> | null;
|
|
63
|
+
readonly isDOM: boolean;
|
|
64
|
+
readonly instance: any;
|
|
65
|
+
readonly children: Node<unknown>[];
|
|
66
|
+
readonly descendants: Node<unknown>[];
|
|
67
|
+
readonly domNodes: HTMLElement[];
|
|
68
|
+
readonly domNode: HTMLElement | null;
|
|
69
|
+
data(key: string): string | undefined;
|
|
70
|
+
prop<K extends keyof Props>(key: K): Props[K];
|
|
71
|
+
text(): string;
|
|
72
|
+
html(): string;
|
|
73
|
+
is<Type extends React.ComponentType<any> | string>(type: Type): this is Node<PropsFor<Type>>;
|
|
74
|
+
find<Type extends React.ComponentType<any> | string>(type: Type, props?: Partial<PropsFor<Type>>): Node<PropsFor<Type>> | null;
|
|
75
|
+
findAll<Type extends React.ComponentType<any> | string>(type: Type, props?: Partial<PropsFor<Type>>): Node<PropsFor<Type>>[];
|
|
76
|
+
findWhere(predicate: Predicate): Node<unknown> | null;
|
|
77
|
+
findAllWhere(predicate: Predicate): Node<unknown>[];
|
|
78
|
+
trigger<K extends FunctionKeys<Props>>(prop: K, ...args: DeepPartialArguments<Props[K]>): ReturnType<NonNullable<Props[K] extends ((...args: any[]) => any) | undefined ? Props[K] : never>>;
|
|
79
|
+
triggerKeypath<T = unknown>(keypath: string, ...args: unknown[]): T;
|
|
80
|
+
debug(options?: DebugOptions): string;
|
|
81
|
+
toString(): string;
|
|
82
|
+
}
|
|
83
|
+
export interface DebugOptions {
|
|
84
|
+
allProps?: boolean;
|
|
85
|
+
depth?: number;
|
|
86
|
+
verbosity?: number;
|
|
87
|
+
}
|
|
88
|
+
export {};
|
|
89
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,oBAAY,QAAQ,CAClB,CAAC,SAAS,MAAM,GAAG,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,IACzC,CAAC,SAAS,MAAM,GAChB,CAAC,SAAS,MAAM,GAAG,CAAC,iBAAiB,GACnC,GAAG,CAAC,iBAAiB,CAAC,CAAC,CAAC,GACxB,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,GACzB,CAAC,SAAS,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,GAClC,KAAK,CAA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AO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,GAC9B,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC;IAC1B,SAAS,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;IACtD,YAAY,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;IAEpD,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,KAAK,CAAC,EACnC,IAAI,EAAE,CAAC,EACP,GAAG,IAAI,EAAE,oBAAoB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GACtC,UAAU,CACX,WAAW,CACT,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC,GAAG,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,CAC1E,CACF,CAAC;IACF,cAAc,CAAC,CAAC,GAAG,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,CAAC,CAAC;IAEpE,KAAK,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,MAAM,CAAC;IACtC,QAAQ,IAAI,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./build/esnext/index.esnext";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("./build/cjs/index.js");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./build/esm/index.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./build/esnext/matchers/index.esnext";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("./build/cjs/matchers/index.js");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./build/esm/matchers/index.mjs";
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@shopify/react-testing",
|
|
3
|
+
"version": "3.3.10",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"description": "A library for testing React components according to our conventions",
|
|
6
|
+
"main": "index.js",
|
|
7
|
+
"types": "./build/ts/index.d.ts",
|
|
8
|
+
"typesVersions": {
|
|
9
|
+
"*": {
|
|
10
|
+
"matchers": [
|
|
11
|
+
"./build/ts/matchers/index.d.ts"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"sideEffects": false,
|
|
16
|
+
"publishConfig": {
|
|
17
|
+
"access": "public",
|
|
18
|
+
"@shopify:registry": "https://registry.npmjs.org"
|
|
19
|
+
},
|
|
20
|
+
"author": "Shopify Inc.",
|
|
21
|
+
"repository": {
|
|
22
|
+
"type": "git",
|
|
23
|
+
"url": "git+https://github.com/Shopify/quilt.git",
|
|
24
|
+
"directory": "packages/react-testing"
|
|
25
|
+
},
|
|
26
|
+
"bugs": {
|
|
27
|
+
"url": "https://github.com/Shopify/quilt/issues"
|
|
28
|
+
},
|
|
29
|
+
"homepage": "https://github.com/Shopify/quilt/blob/main/packages/react-testing/README.md",
|
|
30
|
+
"engines": {
|
|
31
|
+
"node": ">=12.14.0"
|
|
32
|
+
},
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"@shopify/useful-types": "^4.0.3",
|
|
35
|
+
"jest-matcher-utils": "^26.6.2",
|
|
36
|
+
"react-reconciler": "^0.26.2"
|
|
37
|
+
},
|
|
38
|
+
"files": [
|
|
39
|
+
"build/",
|
|
40
|
+
"!build/*.tsbuildinfo",
|
|
41
|
+
"!build/ts/**/tests/",
|
|
42
|
+
"index.js",
|
|
43
|
+
"index.mjs",
|
|
44
|
+
"index.esnext",
|
|
45
|
+
"matchers.js",
|
|
46
|
+
"matchers.mjs",
|
|
47
|
+
"matchers.esnext"
|
|
48
|
+
],
|
|
49
|
+
"peerDependencies": {
|
|
50
|
+
"react": ">=16.8.0 <18.0.0",
|
|
51
|
+
"react-dom": ">=16.8.0 <18.0.0"
|
|
52
|
+
},
|
|
53
|
+
"module": "index.mjs",
|
|
54
|
+
"esnext": "index.esnext",
|
|
55
|
+
"exports": {
|
|
56
|
+
"./matchers": {
|
|
57
|
+
"esnext": "./matchers.esnext",
|
|
58
|
+
"import": "./matchers.mjs",
|
|
59
|
+
"require": "./matchers.js"
|
|
60
|
+
},
|
|
61
|
+
".": {
|
|
62
|
+
"esnext": "./index.esnext",
|
|
63
|
+
"import": "./index.mjs",
|
|
64
|
+
"require": "./index.js"
|
|
65
|
+
},
|
|
66
|
+
"./*": "./*"
|
|
67
|
+
},
|
|
68
|
+
"gitHead": "c2d1591178ba2f54775299a8038497348c955e0b"
|
|
69
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# @shopify/ui-extensions-test-utils
|
|
2
|
+
|
|
3
|
+
## 3.26.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 1d6fe3475: Increase minimum Node version to 18
|
|
8
|
+
- 0896e62b1: Versioned app config support
|
|
9
|
+
|
|
10
|
+
## 3.25.0
|
|
11
|
+
|
|
12
|
+
## 3.24.1
|
|
13
|
+
|
|
14
|
+
## 3.24.0
|
|
15
|
+
|
|
16
|
+
## 3.23.0
|
|
17
|
+
|
|
18
|
+
## 3.22.1
|
|
19
|
+
|
|
20
|
+
## 3.22.0
|
|
21
|
+
|
|
22
|
+
## 3.21.0
|
|
23
|
+
|
|
24
|
+
## 3.20.1
|
|
25
|
+
|
|
26
|
+
## 3.20.0
|
|
27
|
+
|
|
28
|
+
## 3.19.0
|
|
29
|
+
|
|
30
|
+
## 3.18.0
|
|
31
|
+
|
|
32
|
+
## 3.17.0
|
|
33
|
+
|
|
34
|
+
## 3.16.3
|
|
35
|
+
|
|
36
|
+
## 3.16.2
|
|
37
|
+
|
|
38
|
+
## 3.16.1
|
|
39
|
+
|
|
40
|
+
## 3.16.0
|
|
41
|
+
|
|
42
|
+
## 3.15.0
|
|
43
|
+
|
|
44
|
+
## 3.14.0
|
|
45
|
+
|
|
46
|
+
## 3.13.1
|
|
47
|
+
|
|
48
|
+
## 3.13.0
|
|
49
|
+
|
|
50
|
+
## 3.12.0
|
|
51
|
+
|
|
52
|
+
## 3.11.0
|
|
53
|
+
|
|
54
|
+
## 3.10.1
|
|
55
|
+
|
|
56
|
+
## 3.10.0
|
|
57
|
+
|
|
58
|
+
## 3.9.2
|
|
59
|
+
|
|
60
|
+
## 3.9.1
|
|
61
|
+
|
|
62
|
+
## 3.9.0
|
|
63
|
+
|
|
64
|
+
## 3.8.0
|
|
65
|
+
|
|
66
|
+
## 3.7.1
|