@shopify/ui-extensions-server-kit 5.3.1 → 5.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/README.md +3 -2
- package/dist/ExtensionServerClient/ExtensionServerClient.d.ts +3 -5
- package/dist/ExtensionServerClient/server-types.d.ts +31 -7
- package/dist/_virtual/jsx-runtime.cjs.js +1 -0
- package/dist/_virtual/jsx-runtime.cjs2.js +1 -0
- package/dist/_virtual/jsx-runtime.es.js +5 -0
- package/dist/_virtual/jsx-runtime.es2.js +4 -0
- package/dist/_virtual/react-jsx-runtime.development.cjs.js +1 -0
- package/dist/_virtual/react-jsx-runtime.development.es.js +4 -0
- package/dist/_virtual/react-jsx-runtime.production.min.cjs.js +1 -0
- package/dist/_virtual/react-jsx-runtime.production.min.es.js +4 -0
- package/dist/context/ExtensionServerProvider.d.ts +2 -1
- package/dist/i18n.d.ts +2 -8
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs2.js +1 -1
- package/dist/index.es.js +18 -18
- package/dist/index.es2.js +3 -3
- package/dist/node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.development.cjs.js +22 -0
- package/dist/node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.development.es.js +604 -0
- package/dist/node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.production.min.cjs.js +9 -0
- package/dist/node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.production.min.es.js +28 -0
- package/dist/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.cjs.js +1 -0
- package/dist/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.es.js +10 -0
- package/dist/packages/ui-extensions-server-kit/src/ExtensionServerClient/ExtensionServerClient.cjs.js +1 -0
- package/dist/{ExtensionServerClient → packages/ui-extensions-server-kit/src/ExtensionServerClient}/ExtensionServerClient.es.js +21 -18
- package/dist/packages/ui-extensions-server-kit/src/context/ExtensionServerProvider.cjs.js +1 -0
- package/dist/packages/ui-extensions-server-kit/src/context/ExtensionServerProvider.es.js +30 -0
- package/dist/{context → packages/ui-extensions-server-kit/src/context}/constants.cjs.js +1 -1
- package/dist/packages/ui-extensions-server-kit/src/hooks/useExtensionServerContext.cjs.js +1 -0
- package/dist/{hooks → packages/ui-extensions-server-kit/src/hooks}/useExtensionServerContext.es.js +3 -2
- package/dist/packages/ui-extensions-server-kit/src/testing/MockExtensionServerProvider.cjs.js +1 -0
- package/dist/packages/ui-extensions-server-kit/src/testing/MockExtensionServerProvider.es.js +25 -0
- package/dist/{testing → packages/ui-extensions-server-kit/src/testing}/extensions.cjs.js +1 -1
- package/dist/{testing → packages/ui-extensions-server-kit/src/testing}/extensions.es.js +3 -2
- package/dist/packages/ui-extensions-server-kit/src/utilities/isUIExtension.cjs.js +1 -0
- package/dist/{utilities → packages/ui-extensions-server-kit/src/utilities}/isUIExtension.es.js +3 -2
- package/dist/{utilities → packages/ui-extensions-server-kit/src/utilities}/isValidSurface.cjs.js +1 -1
- package/dist/packages/ui-extensions-server-kit/src/utilities/isValidSurface.es.js +7 -0
- package/dist/testing/MockExtensionServerProvider.d.ts +2 -1
- package/dist/types.d.ts +14 -7
- package/dist/utilities/isUIExtension.d.ts +1 -1
- package/dist/utilities/isValidSurface.d.ts +1 -1
- package/dist/utilities/set.d.ts +1 -1
- package/node_modules/{@shopify/react-testing/LICENSE.md → @testing-library/react/LICENSE} +2 -3
- package/node_modules/@testing-library/react/README.md +692 -0
- package/node_modules/@testing-library/react/dist/@testing-library/react.cjs.js +537 -0
- package/node_modules/@testing-library/react/dist/@testing-library/react.esm.js +497 -0
- package/node_modules/@testing-library/react/dist/@testing-library/react.pure.cjs.js +501 -0
- package/node_modules/@testing-library/react/dist/@testing-library/react.pure.esm.js +461 -0
- package/node_modules/@testing-library/react/dist/@testing-library/react.pure.umd.js +502 -0
- package/node_modules/@testing-library/react/dist/@testing-library/react.pure.umd.js.map +1 -0
- package/node_modules/@testing-library/react/dist/@testing-library/react.pure.umd.min.js +2 -0
- package/node_modules/@testing-library/react/dist/@testing-library/react.pure.umd.min.js.map +1 -0
- package/node_modules/@testing-library/react/dist/@testing-library/react.umd.js +538 -0
- package/node_modules/@testing-library/react/dist/@testing-library/react.umd.js.map +1 -0
- package/node_modules/@testing-library/react/dist/@testing-library/react.umd.min.js +2 -0
- package/node_modules/@testing-library/react/dist/@testing-library/react.umd.min.js.map +1 -0
- package/node_modules/@testing-library/react/dist/act-compat.js +80 -0
- package/node_modules/@testing-library/react/dist/config.js +33 -0
- package/node_modules/@testing-library/react/dist/fire-event.js +70 -0
- package/node_modules/@testing-library/react/dist/index.js +52 -0
- package/node_modules/@testing-library/react/dist/pure.js +356 -0
- package/node_modules/@testing-library/react/dont-cleanup-after-each.js +1 -0
- package/node_modules/@testing-library/react/package.json +116 -0
- package/node_modules/@testing-library/react/pure.d.ts +1 -0
- package/node_modules/@testing-library/react/pure.js +2 -0
- package/node_modules/@testing-library/react/types/index.d.ts +287 -0
- package/node_modules/@testing-library/react/types/pure.d.ts +1 -0
- package/node_modules/@types/react/README.md +4 -5
- package/node_modules/@types/react/canary.d.ts +166 -0
- package/node_modules/@types/react/experimental.d.ts +21 -86
- package/node_modules/@types/react/global.d.ts +146 -137
- package/node_modules/@types/react/index.d.ts +2738 -1370
- package/node_modules/@types/react/jsx-dev-runtime.d.ts +45 -2
- package/node_modules/@types/react/jsx-runtime.d.ts +36 -2
- package/node_modules/@types/react/package.json +111 -54
- package/node_modules/@types/react/ts5.0/canary.d.ts +166 -0
- package/node_modules/@types/react/ts5.0/experimental.d.ts +127 -0
- package/node_modules/@types/react/ts5.0/global.d.ts +160 -0
- package/node_modules/@types/react/ts5.0/index.d.ts +4530 -0
- package/node_modules/@types/react/ts5.0/jsx-dev-runtime.d.ts +44 -0
- package/node_modules/@types/react/ts5.0/jsx-runtime.d.ts +35 -0
- package/node_modules/@vitejs/plugin-react/README.md +159 -0
- package/node_modules/@vitejs/plugin-react/dist/index.d.ts +75 -0
- package/node_modules/@vitejs/plugin-react/dist/index.js +401 -0
- package/node_modules/@vitejs/plugin-react/dist/refresh-runtime.js +663 -0
- package/node_modules/@vitejs/plugin-react/package.json +77 -0
- package/node_modules/@vitejs/plugin-react/types/preamble.d.ts +1 -0
- package/package.json +9 -10
- package/project.json +1 -1
- package/src/ExtensionServerClient/ExtensionServerClient.test.ts +6 -5
- package/src/ExtensionServerClient/ExtensionServerClient.ts +27 -19
- package/src/ExtensionServerClient/server-types.ts +17 -7
- package/src/ExtensionServerClient/types.ts +0 -2
- package/src/context/ExtensionServerProvider.test.tsx +55 -73
- package/src/context/ExtensionServerProvider.tsx +1 -0
- package/src/i18n.ts +2 -5
- package/src/state/reducers/extensionServerReducer.test.ts +2 -2
- package/src/testing/extensions.ts +1 -0
- package/src/types.ts +15 -5
- package/src/utilities/assetToString.ts +0 -1
- package/src/utilities/isUIExtension.ts +5 -4
- package/src/utilities/isValidSurface.ts +2 -3
- package/src/utilities/replaceUpdated.ts +0 -2
- package/src/utilities/set.ts +10 -5
- package/tests/setup.ts +1 -4
- package/vite.config.mts +57 -0
- package/dist/ExtensionServerClient/ExtensionServerClient.cjs.js +0 -1
- package/dist/context/ExtensionServerProvider.cjs.js +0 -1
- package/dist/context/ExtensionServerProvider.es.js +0 -29
- package/dist/hooks/useExtensionServerContext.cjs.js +0 -1
- package/dist/testing/MockExtensionServerProvider.cjs.js +0 -1
- package/dist/testing/MockExtensionServerProvider.es.js +0 -24
- package/dist/utilities/isUIExtension.cjs.js +0 -1
- package/dist/utilities/isValidSurface.es.js +0 -7
- package/node_modules/@shopify/react-testing/README.md +0 -711
- package/node_modules/@shopify/react-testing/build/cjs/TestWrapper.js +0 -52
- package/node_modules/@shopify/react-testing/build/cjs/_virtual/_rollupPluginBabelHelpers.js +0 -47
- package/node_modules/@shopify/react-testing/build/cjs/compat.js +0 -14
- package/node_modules/@shopify/react-testing/build/cjs/destroy.js +0 -13
- package/node_modules/@shopify/react-testing/build/cjs/element.js +0 -225
- package/node_modules/@shopify/react-testing/build/cjs/index.js +0 -21
- package/node_modules/@shopify/react-testing/build/cjs/matchers/components.js +0 -46
- package/node_modules/@shopify/react-testing/build/cjs/matchers/context.js +0 -25
- package/node_modules/@shopify/react-testing/build/cjs/matchers/index.js +0 -16
- package/node_modules/@shopify/react-testing/build/cjs/matchers/props.js +0 -38
- package/node_modules/@shopify/react-testing/build/cjs/matchers/strings.js +0 -42
- package/node_modules/@shopify/react-testing/build/cjs/matchers/utilities.js +0 -110
- package/node_modules/@shopify/react-testing/build/cjs/mount.js +0 -76
- package/node_modules/@shopify/react-testing/build/cjs/root.js +0 -284
- package/node_modules/@shopify/react-testing/build/cjs/toReactString.js +0 -86
- package/node_modules/@shopify/react-testing/build/cjs/types.js +0 -28
- package/node_modules/@shopify/react-testing/build/esm/TestWrapper.mjs +0 -44
- package/node_modules/@shopify/react-testing/build/esm/_virtual/_rollupPluginBabelHelpers.mjs +0 -42
- package/node_modules/@shopify/react-testing/build/esm/compat.mjs +0 -10
- package/node_modules/@shopify/react-testing/build/esm/destroy.mjs +0 -9
- package/node_modules/@shopify/react-testing/build/esm/element.mjs +0 -221
- package/node_modules/@shopify/react-testing/build/esm/index.mjs +0 -5
- package/node_modules/@shopify/react-testing/build/esm/matchers/components.mjs +0 -41
- package/node_modules/@shopify/react-testing/build/esm/matchers/context.mjs +0 -21
- package/node_modules/@shopify/react-testing/build/esm/matchers/index.mjs +0 -14
- package/node_modules/@shopify/react-testing/build/esm/matchers/props.mjs +0 -33
- package/node_modules/@shopify/react-testing/build/esm/matchers/strings.mjs +0 -37
- package/node_modules/@shopify/react-testing/build/esm/matchers/utilities.mjs +0 -101
- package/node_modules/@shopify/react-testing/build/esm/mount.mjs +0 -70
- package/node_modules/@shopify/react-testing/build/esm/root.mjs +0 -275
- package/node_modules/@shopify/react-testing/build/esm/toReactString.mjs +0 -80
- package/node_modules/@shopify/react-testing/build/esm/types.mjs +0 -26
- package/node_modules/@shopify/react-testing/build/esnext/TestWrapper.esnext +0 -44
- package/node_modules/@shopify/react-testing/build/esnext/compat.esnext +0 -10
- package/node_modules/@shopify/react-testing/build/esnext/destroy.esnext +0 -9
- package/node_modules/@shopify/react-testing/build/esnext/element.esnext +0 -221
- package/node_modules/@shopify/react-testing/build/esnext/index.esnext +0 -5
- package/node_modules/@shopify/react-testing/build/esnext/matchers/components.esnext +0 -41
- package/node_modules/@shopify/react-testing/build/esnext/matchers/context.esnext +0 -21
- package/node_modules/@shopify/react-testing/build/esnext/matchers/index.esnext +0 -14
- package/node_modules/@shopify/react-testing/build/esnext/matchers/props.esnext +0 -33
- package/node_modules/@shopify/react-testing/build/esnext/matchers/strings.esnext +0 -37
- package/node_modules/@shopify/react-testing/build/esnext/matchers/utilities.esnext +0 -99
- package/node_modules/@shopify/react-testing/build/esnext/mount.esnext +0 -71
- package/node_modules/@shopify/react-testing/build/esnext/root.esnext +0 -275
- package/node_modules/@shopify/react-testing/build/esnext/toReactString.esnext +0 -80
- package/node_modules/@shopify/react-testing/build/esnext/types.esnext +0 -26
- package/node_modules/@shopify/react-testing/build/ts/TestWrapper.d.ts +0 -17
- package/node_modules/@shopify/react-testing/build/ts/TestWrapper.d.ts.map +0 -1
- package/node_modules/@shopify/react-testing/build/ts/compat.d.ts +0 -3
- package/node_modules/@shopify/react-testing/build/ts/compat.d.ts.map +0 -1
- package/node_modules/@shopify/react-testing/build/ts/destroy.d.ts +0 -2
- package/node_modules/@shopify/react-testing/build/ts/destroy.d.ts.map +0 -1
- package/node_modules/@shopify/react-testing/build/ts/element.d.ts +0 -42
- package/node_modules/@shopify/react-testing/build/ts/element.d.ts.map +0 -1
- package/node_modules/@shopify/react-testing/build/ts/index.d.ts +0 -7
- package/node_modules/@shopify/react-testing/build/ts/index.d.ts.map +0 -1
- package/node_modules/@shopify/react-testing/build/ts/matchers/components.d.ts +0 -12
- package/node_modules/@shopify/react-testing/build/ts/matchers/components.d.ts.map +0 -1
- package/node_modules/@shopify/react-testing/build/ts/matchers/context.d.ts +0 -8
- package/node_modules/@shopify/react-testing/build/ts/matchers/context.d.ts.map +0 -1
- package/node_modules/@shopify/react-testing/build/ts/matchers/index.d.ts +0 -20
- package/node_modules/@shopify/react-testing/build/ts/matchers/index.d.ts.map +0 -1
- package/node_modules/@shopify/react-testing/build/ts/matchers/props.d.ts +0 -10
- package/node_modules/@shopify/react-testing/build/ts/matchers/props.d.ts.map +0 -1
- package/node_modules/@shopify/react-testing/build/ts/matchers/strings.d.ts +0 -11
- package/node_modules/@shopify/react-testing/build/ts/matchers/strings.d.ts.map +0 -1
- package/node_modules/@shopify/react-testing/build/ts/matchers/utilities.d.ts +0 -17
- package/node_modules/@shopify/react-testing/build/ts/matchers/utilities.d.ts.map +0 -1
- package/node_modules/@shopify/react-testing/build/ts/mount.d.ts +0 -39
- package/node_modules/@shopify/react-testing/build/ts/mount.d.ts.map +0 -1
- package/node_modules/@shopify/react-testing/build/ts/root.d.ts +0 -55
- package/node_modules/@shopify/react-testing/build/ts/root.d.ts.map +0 -1
- package/node_modules/@shopify/react-testing/build/ts/toReactString.d.ts +0 -5
- package/node_modules/@shopify/react-testing/build/ts/toReactString.d.ts.map +0 -1
- package/node_modules/@shopify/react-testing/build/ts/types.d.ts +0 -89
- package/node_modules/@shopify/react-testing/build/ts/types.d.ts.map +0 -1
- package/node_modules/@shopify/react-testing/index.esnext +0 -1
- package/node_modules/@shopify/react-testing/index.js +0 -1
- package/node_modules/@shopify/react-testing/index.mjs +0 -1
- package/node_modules/@shopify/react-testing/matchers.esnext +0 -1
- package/node_modules/@shopify/react-testing/matchers.js +0 -1
- package/node_modules/@shopify/react-testing/matchers.mjs +0 -1
- package/node_modules/@shopify/react-testing/package.json +0 -69
- package/node_modules/@shopify/ui-extensions-test-utils/CHANGELOG.md +0 -66
- package/node_modules/@shopify/ui-extensions-test-utils/dist/index.d.ts +0 -3
- package/node_modules/@shopify/ui-extensions-test-utils/dist/index.js +0 -3
- package/node_modules/@shopify/ui-extensions-test-utils/dist/render.d.ts +0 -2
- package/node_modules/@shopify/ui-extensions-test-utils/dist/render.js +0 -5
- package/node_modules/@shopify/ui-extensions-test-utils/dist/renderHook.d.ts +0 -17
- package/node_modules/@shopify/ui-extensions-test-utils/dist/renderHook.js +0 -20
- package/node_modules/@shopify/ui-extensions-test-utils/dist/withProviders.d.ts +0 -9
- package/node_modules/@shopify/ui-extensions-test-utils/dist/withProviders.js +0 -7
- package/node_modules/@shopify/ui-extensions-test-utils/package.json +0 -40
- package/node_modules/@shopify/ui-extensions-test-utils/project.json +0 -39
- package/node_modules/@vitejs/plugin-react-refresh/README.md +0 -73
- package/node_modules/@vitejs/plugin-react-refresh/index.d.ts +0 -14
- package/node_modules/@vitejs/plugin-react-refresh/index.js +0 -239
- package/node_modules/@vitejs/plugin-react-refresh/package.json +0 -35
- /package/dist/{ExtensionServerClient → packages/ui-extensions-server-kit/src/ExtensionServerClient}/types.cjs.js +0 -0
- /package/dist/{ExtensionServerClient → packages/ui-extensions-server-kit/src/ExtensionServerClient}/types.es.js +0 -0
- /package/dist/{context → packages/ui-extensions-server-kit/src/context}/constants.es.js +0 -0
- /package/dist/{hooks → packages/ui-extensions-server-kit/src/hooks}/useExtensionServerState.cjs.js +0 -0
- /package/dist/{hooks → packages/ui-extensions-server-kit/src/hooks}/useExtensionServerState.es.js +0 -0
- /package/dist/{hooks → packages/ui-extensions-server-kit/src/hooks}/useIsomorphicLayoutEffect.cjs.js +0 -0
- /package/dist/{hooks → packages/ui-extensions-server-kit/src/hooks}/useIsomorphicLayoutEffect.es.js +0 -0
- /package/dist/{i18n.cjs.js → packages/ui-extensions-server-kit/src/i18n.cjs.js} +0 -0
- /package/dist/{i18n.es.js → packages/ui-extensions-server-kit/src/i18n.es.js} +0 -0
- /package/dist/{state → packages/ui-extensions-server-kit/src/state}/actions/actions.cjs.js +0 -0
- /package/dist/{state → packages/ui-extensions-server-kit/src/state}/actions/actions.es.js +0 -0
- /package/dist/{state → packages/ui-extensions-server-kit/src/state}/reducers/constants.cjs.js +0 -0
- /package/dist/{state → packages/ui-extensions-server-kit/src/state}/reducers/constants.es.js +0 -0
- /package/dist/{state → packages/ui-extensions-server-kit/src/state}/reducers/extensionServerReducer.cjs.js +0 -0
- /package/dist/{state → packages/ui-extensions-server-kit/src/state}/reducers/extensionServerReducer.es.js +0 -0
- /package/dist/{testing → packages/ui-extensions-server-kit/src/testing}/app.cjs.js +0 -0
- /package/dist/{testing → packages/ui-extensions-server-kit/src/testing}/app.es.js +0 -0
- /package/dist/{types.cjs.js → packages/ui-extensions-server-kit/src/types.cjs.js} +0 -0
- /package/dist/{types.es.js → packages/ui-extensions-server-kit/src/types.es.js} +0 -0
- /package/dist/{utilities → packages/ui-extensions-server-kit/src/utilities}/assetToString.cjs.js +0 -0
- /package/dist/{utilities → packages/ui-extensions-server-kit/src/utilities}/assetToString.es.js +0 -0
- /package/dist/{utilities → packages/ui-extensions-server-kit/src/utilities}/noop.cjs.js +0 -0
- /package/dist/{utilities → packages/ui-extensions-server-kit/src/utilities}/noop.es.js +0 -0
- /package/dist/{utilities → packages/ui-extensions-server-kit/src/utilities}/replaceUpdated.cjs.js +0 -0
- /package/dist/{utilities → packages/ui-extensions-server-kit/src/utilities}/replaceUpdated.es.js +0 -0
- /package/dist/{utilities → packages/ui-extensions-server-kit/src/utilities}/set.cjs.js +0 -0
- /package/dist/{utilities → packages/ui-extensions-server-kit/src/utilities}/set.es.js +0 -0
- /package/node_modules/@vitejs/{plugin-react-refresh → plugin-react}/LICENSE +0 -0
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var _rollupPluginBabelHelpers = require('./_virtual/_rollupPluginBabelHelpers.js');
|
|
6
|
-
var root = require('./root.js');
|
|
7
|
-
|
|
8
|
-
function mount(element) {
|
|
9
|
-
return new root.Root(element);
|
|
10
|
-
}
|
|
11
|
-
class CustomRoot extends root.Root {
|
|
12
|
-
constructor(tree, context, options) {
|
|
13
|
-
super(tree, options);
|
|
14
|
-
this.context = context;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
function createMount({
|
|
19
|
-
render,
|
|
20
|
-
context: createContext = defaultContext,
|
|
21
|
-
afterMount = defaultAfterMount,
|
|
22
|
-
cleanup
|
|
23
|
-
}) {
|
|
24
|
-
function mount(element, options = {}) {
|
|
25
|
-
const context = createContext(options);
|
|
26
|
-
const wrapper = new CustomRoot(element, context, {
|
|
27
|
-
render: element => render(element, context, options),
|
|
28
|
-
resolveRoot: root => root.find(element.type)
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
if (cleanup) {
|
|
32
|
-
const originalDestroy = wrapper.destroy.bind(wrapper);
|
|
33
|
-
|
|
34
|
-
wrapper.destroy = () => {
|
|
35
|
-
cleanup(wrapper, options);
|
|
36
|
-
originalDestroy();
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
const afterMountResult = afterMount(wrapper, options);
|
|
41
|
-
return afterMountResult != null && 'then' in afterMountResult ? afterMountResult.then(() => wrapper) : wrapper;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
Reflect.defineProperty(mount, 'extend', {
|
|
45
|
-
writable: false,
|
|
46
|
-
value: ({
|
|
47
|
-
context: createAdditionalContext = defaultContext,
|
|
48
|
-
render: additionalRender,
|
|
49
|
-
afterMount: additionalAfterMount = defaultAfterMount
|
|
50
|
-
}) => {
|
|
51
|
-
return createMount({
|
|
52
|
-
context: options => _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, createContext(options)), createAdditionalContext(options)),
|
|
53
|
-
render: (element, context, options) => render(additionalRender(element, context, options), context, options),
|
|
54
|
-
afterMount: (wrapper, options) => {
|
|
55
|
-
const result = additionalAfterMount(wrapper, options);
|
|
56
|
-
|
|
57
|
-
const finalResult = () => afterMount(wrapper, options);
|
|
58
|
-
|
|
59
|
-
return result != null && 'then' in result ? result.then(finalResult) : finalResult();
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
return mount;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
function defaultContext() {
|
|
68
|
-
return {};
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
function defaultAfterMount() {}
|
|
72
|
-
|
|
73
|
-
exports.Root = root.Root;
|
|
74
|
-
exports.CustomRoot = CustomRoot;
|
|
75
|
-
exports.createMount = createMount;
|
|
76
|
-
exports.mount = mount;
|
|
@@ -1,284 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var React = require('react');
|
|
6
|
-
var reactDom = require('react-dom');
|
|
7
|
-
var testUtils = require('react-dom/test-utils');
|
|
8
|
-
var TestWrapper = require('./TestWrapper.js');
|
|
9
|
-
var element = require('./element.js');
|
|
10
|
-
var compat = require('./compat.js');
|
|
11
|
-
var types = require('./types.js');
|
|
12
|
-
|
|
13
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
14
|
-
|
|
15
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
16
|
-
|
|
17
|
-
const {
|
|
18
|
-
findCurrentFiberUsingSlowPath
|
|
19
|
-
} = require('react-reconciler/reflection');
|
|
20
|
-
|
|
21
|
-
const connected = new Set();
|
|
22
|
-
class Root {
|
|
23
|
-
get props() {
|
|
24
|
-
return this.withRoot(root => root.props);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
get isDOM() {
|
|
28
|
-
return this.withRoot(root => root.isDOM);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
get type() {
|
|
32
|
-
return this.withRoot(root => root.type);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
get instance() {
|
|
36
|
-
return this.withRoot(root => root.instance);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
get children() {
|
|
40
|
-
return this.withRoot(root => root.children);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
get descendants() {
|
|
44
|
-
return this.withRoot(root => root.descendants);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
get domNodes() {
|
|
48
|
-
return this.withRoot(root => root.domNodes);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
get domNode() {
|
|
52
|
-
return this.withRoot(root => root.domNode);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
get mounted() {
|
|
56
|
-
return this.wrapper != null;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
constructor(tree, {
|
|
60
|
-
render = defaultRender,
|
|
61
|
-
resolveRoot = defaultResolveRoot
|
|
62
|
-
} = {}) {
|
|
63
|
-
this.tree = tree;
|
|
64
|
-
this.wrapper = null;
|
|
65
|
-
this.element = document.createElement('div');
|
|
66
|
-
this.root = null;
|
|
67
|
-
this.acting = false;
|
|
68
|
-
this.render = void 0;
|
|
69
|
-
this.resolveRoot = void 0;
|
|
70
|
-
this.render = render;
|
|
71
|
-
this.resolveRoot = resolveRoot;
|
|
72
|
-
this.mount();
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
act(action, {
|
|
76
|
-
update = true
|
|
77
|
-
} = {}) {
|
|
78
|
-
const updateWrapper = update ? this.update.bind(this) : noop;
|
|
79
|
-
let result;
|
|
80
|
-
|
|
81
|
-
if (this.acting) {
|
|
82
|
-
return action();
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
this.acting = true;
|
|
86
|
-
|
|
87
|
-
const afterResolve = () => {
|
|
88
|
-
updateWrapper();
|
|
89
|
-
this.acting = false;
|
|
90
|
-
return result;
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
const promise = testUtils.act(() => {
|
|
94
|
-
result = action(); // This condition checks the returned value is an actual Promise and returns it
|
|
95
|
-
// to React’s `act()` call, otherwise we just want to return `undefined`
|
|
96
|
-
|
|
97
|
-
if (isPromise(result)) {
|
|
98
|
-
return result;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
return undefined;
|
|
102
|
-
});
|
|
103
|
-
|
|
104
|
-
if (isPromise(result)) {
|
|
105
|
-
updateWrapper();
|
|
106
|
-
return Promise.resolve(promise).then(afterResolve);
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
return afterResolve();
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
html() {
|
|
113
|
-
return this.withRoot(root => root.html());
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
text() {
|
|
117
|
-
return this.withRoot(root => root.text());
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
is(type) {
|
|
121
|
-
return this.withRoot(root => root.is(type));
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
prop(key) {
|
|
125
|
-
return this.withRoot(root => root.prop(key));
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
data(key) {
|
|
129
|
-
return this.withRoot(root => root.data(key));
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
find(type, props) {
|
|
133
|
-
return this.withRoot(root => root.find(type, props));
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
findAll(type, props) {
|
|
137
|
-
return this.withRoot(root => root.findAll(type, props));
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
findWhere(predicate) {
|
|
141
|
-
return this.withRoot(root => root.findWhere(predicate));
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
findAllWhere(predicate) {
|
|
145
|
-
return this.withRoot(root => root.findAllWhere(predicate));
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
trigger(prop, ...args) {
|
|
149
|
-
return this.withRoot(root => root.trigger(prop, ...args));
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
triggerKeypath(keypath, ...args) {
|
|
153
|
-
return this.withRoot(root => root.triggerKeypath(keypath, ...args));
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
mount() {
|
|
157
|
-
if (this.mounted) {
|
|
158
|
-
throw new Error('Attempted to mount a node that was already mounted');
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
if (this.element.parentNode == null) {
|
|
162
|
-
document.body.appendChild(this.element);
|
|
163
|
-
connected.add(this);
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
this.act(() => {
|
|
167
|
-
reactDom.render( /*#__PURE__*/React__default["default"].createElement(TestWrapper.TestWrapper, {
|
|
168
|
-
render: this.render,
|
|
169
|
-
ref: wrapper => {
|
|
170
|
-
this.wrapper = wrapper;
|
|
171
|
-
}
|
|
172
|
-
}, this.tree), this.element);
|
|
173
|
-
});
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
unmount() {
|
|
177
|
-
if (!this.mounted) {
|
|
178
|
-
throw new Error('You attempted to unmount a node that was already unmounted');
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
this.ensureRoot();
|
|
182
|
-
this.act(() => reactDom.unmountComponentAtNode(this.element));
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
destroy() {
|
|
186
|
-
const {
|
|
187
|
-
element,
|
|
188
|
-
mounted
|
|
189
|
-
} = this;
|
|
190
|
-
|
|
191
|
-
if (mounted) {
|
|
192
|
-
this.unmount();
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
element.remove();
|
|
196
|
-
connected.delete(this);
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
setProps(props) {
|
|
200
|
-
this.ensureRoot();
|
|
201
|
-
this.act(() => this.wrapper.setProps(props));
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
forceUpdate() {
|
|
205
|
-
this.ensureRoot();
|
|
206
|
-
this.act(() => this.wrapper.forceUpdate());
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
debug(options) {
|
|
210
|
-
this.ensureRoot();
|
|
211
|
-
return this.root.debug(options);
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
toString() {
|
|
215
|
-
return this.withRoot(root => root.toString());
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
update() {
|
|
219
|
-
if (this.wrapper == null) {
|
|
220
|
-
this.root = null;
|
|
221
|
-
} else {
|
|
222
|
-
const rootFiber = compat.getInternals(this.wrapper.rootRef);
|
|
223
|
-
const topElement = fiberToElement(findCurrentFiberUsingSlowPath(rootFiber), this);
|
|
224
|
-
this.root = this.resolveRoot(topElement);
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
ensureRoot() {
|
|
229
|
-
if (this.wrapper == null || this.root == null) {
|
|
230
|
-
throw new Error('Attempted to operate on a mounted tree, but the component is no longer mounted');
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
withRoot(withRoot) {
|
|
235
|
-
this.ensureRoot();
|
|
236
|
-
return withRoot(this.root);
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
function defaultResolveRoot(element) {
|
|
242
|
-
return element.children[0];
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
function defaultRender(element) {
|
|
246
|
-
return element;
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
function fiberToElement(node, root) {
|
|
250
|
-
if (node.tag === types.Tag.HostText) {
|
|
251
|
-
return node.memoizedProps;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
const props = node.memoizedProps;
|
|
255
|
-
const children = childrenToTree(node.child, root);
|
|
256
|
-
return new element.Element({
|
|
257
|
-
tag: node.tag,
|
|
258
|
-
type: node.type,
|
|
259
|
-
props,
|
|
260
|
-
instance: node.stateNode
|
|
261
|
-
}, children, root);
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
function childrenToTree(fiber, root) {
|
|
265
|
-
let currentFiber = fiber;
|
|
266
|
-
const children = [];
|
|
267
|
-
|
|
268
|
-
while (currentFiber != null) {
|
|
269
|
-
const result = fiberToElement(currentFiber, root);
|
|
270
|
-
children.push(result);
|
|
271
|
-
currentFiber = currentFiber.sibling;
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
return children;
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
function isPromise(promise) {
|
|
278
|
-
return promise != null && typeof promise === 'object' && 'then' in promise;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
function noop() {}
|
|
282
|
-
|
|
283
|
-
exports.Root = Root;
|
|
284
|
-
exports.connected = connected;
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var jestMatcherUtils = require('jest-matcher-utils');
|
|
6
|
-
|
|
7
|
-
function toReactString(node, options = {}, level = 0) {
|
|
8
|
-
// if this is an array node then print all children at the current level
|
|
9
|
-
if (!node.type && node.children.length > 0) {
|
|
10
|
-
return node.children.map(child => toReactString(child, options, level)).join('\n');
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
const name = nodeName(node);
|
|
14
|
-
const indent = ' '.repeat(level);
|
|
15
|
-
const props = Object.keys(node.props) // we always filter out children no matter what, but unless allProps option
|
|
16
|
-
// is present we will also filter out insigificant props
|
|
17
|
-
.filter(key => options.allProps ? key !== 'children' : !/^(children|className)$|^(aria|data)-/.test(key)).reduce((list, key) => {
|
|
18
|
-
if (!key) {
|
|
19
|
-
return list;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
const value = node.props[key];
|
|
23
|
-
|
|
24
|
-
if (value === undefined && !options.allProps) {
|
|
25
|
-
return list;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
list.push(toPropString(key, value, options.verbosity));
|
|
29
|
-
return list;
|
|
30
|
-
}, []);
|
|
31
|
-
const hasChildren = node.children.length > 0 && !['svg'].includes(name);
|
|
32
|
-
const open = `${indent}<${name}${props.length > 0 ? ` ${props.join(' ')}` : ''}${hasChildren ? '>' : ' />'}`;
|
|
33
|
-
|
|
34
|
-
if (!hasChildren) {
|
|
35
|
-
return open;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
const close = `${indent}</${name}>`;
|
|
39
|
-
|
|
40
|
-
if (options.depth != null && level >= options.depth) {
|
|
41
|
-
return [open, `${indent} {/* <${node.children.length} child${node.children.length === 1 ? '' : 'ren'}... /> */}`, close].join('\n');
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
return [open, ...node.children.map(child => toReactString(child, options, level + 1)), close].join('\n');
|
|
45
|
-
}
|
|
46
|
-
function toPropString(key, value, verbosity = 1) {
|
|
47
|
-
if (value === undefined) {
|
|
48
|
-
return `${key}={undefined}`;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
if (value === null) {
|
|
52
|
-
return `${key}={null}`;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
if (typeof value === 'string') {
|
|
56
|
-
return `${key}="${value}"`;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
if (typeof value === 'boolean' && value) {
|
|
60
|
-
return value ? `${key}` : `${key}={false}`;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
if (value instanceof Array) {
|
|
64
|
-
return `${key}={${jestMatcherUtils.stringify(value, verbosity + 1)}}`;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
return `${key}={${jestMatcherUtils.stringify(value, verbosity)}}`;
|
|
68
|
-
}
|
|
69
|
-
function nodeName({
|
|
70
|
-
type
|
|
71
|
-
}) {
|
|
72
|
-
if (type && typeof type === 'object' && '_context' in type) {
|
|
73
|
-
const context = type._context;
|
|
74
|
-
return `${context.displayName || 'Context'}.${type === context.Provider ? 'Provider' : 'Consumer'}`;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
if (type == null) {
|
|
78
|
-
return 'Node';
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
return typeof type === 'string' ? type : type.displayName || type.name || 'Component';
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
exports.nodeName = nodeName;
|
|
85
|
-
exports.toPropString = toPropString;
|
|
86
|
-
exports.toReactString = toReactString;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
// https://github.com/facebook/react/blob/master/packages/shared/ReactWorkTag.js
|
|
6
|
-
exports.Tag = void 0;
|
|
7
|
-
|
|
8
|
-
(function (Tag) {
|
|
9
|
-
Tag[Tag["FunctionComponent"] = 0] = "FunctionComponent";
|
|
10
|
-
Tag[Tag["ClassComponent"] = 1] = "ClassComponent";
|
|
11
|
-
Tag[Tag["IndeterminateComponent"] = 2] = "IndeterminateComponent";
|
|
12
|
-
Tag[Tag["HostRoot"] = 3] = "HostRoot";
|
|
13
|
-
Tag[Tag["HostPortal"] = 4] = "HostPortal";
|
|
14
|
-
Tag[Tag["HostComponent"] = 5] = "HostComponent";
|
|
15
|
-
Tag[Tag["HostText"] = 6] = "HostText";
|
|
16
|
-
Tag[Tag["Fragment"] = 7] = "Fragment";
|
|
17
|
-
Tag[Tag["Mode"] = 8] = "Mode";
|
|
18
|
-
Tag[Tag["ContextConsumer"] = 9] = "ContextConsumer";
|
|
19
|
-
Tag[Tag["ContextProvider"] = 10] = "ContextProvider";
|
|
20
|
-
Tag[Tag["ForwardRef"] = 11] = "ForwardRef";
|
|
21
|
-
Tag[Tag["Profiler"] = 12] = "Profiler";
|
|
22
|
-
Tag[Tag["SuspenseComponent"] = 13] = "SuspenseComponent";
|
|
23
|
-
Tag[Tag["MemoComponent"] = 14] = "MemoComponent";
|
|
24
|
-
Tag[Tag["SimpleMemoComponent"] = 15] = "SimpleMemoComponent";
|
|
25
|
-
Tag[Tag["LazyComponent"] = 16] = "LazyComponent";
|
|
26
|
-
Tag[Tag["IncompleteClassComponent"] = 17] = "IncompleteClassComponent";
|
|
27
|
-
Tag[Tag["DehydratedSuspenseComponent"] = 18] = "DehydratedSuspenseComponent";
|
|
28
|
-
})(exports.Tag || (exports.Tag = {}));
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
class TestWrapper extends React.Component {
|
|
4
|
-
constructor(...args) {
|
|
5
|
-
super(...args);
|
|
6
|
-
this.state = {};
|
|
7
|
-
this.rootRef = null;
|
|
8
|
-
|
|
9
|
-
this.setRef = ref => {
|
|
10
|
-
this.rootRef = ref;
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
// eslint-disable-next-line @shopify/react-prefer-private-members
|
|
15
|
-
setProps(props) {
|
|
16
|
-
this.setState({
|
|
17
|
-
props
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
render() {
|
|
22
|
-
const {
|
|
23
|
-
props
|
|
24
|
-
} = this.state;
|
|
25
|
-
const {
|
|
26
|
-
children,
|
|
27
|
-
render
|
|
28
|
-
} = this.props;
|
|
29
|
-
const rootElement = props ? /*#__PURE__*/React.cloneElement(children, props) : children;
|
|
30
|
-
return render( /*#__PURE__*/React.createElement(TestInnerWrapper, {
|
|
31
|
-
ref: this.setRef
|
|
32
|
-
}, rootElement));
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
class TestInnerWrapper extends React.Component {
|
|
38
|
-
render() {
|
|
39
|
-
return this.props.children;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export { TestWrapper };
|
package/node_modules/@shopify/react-testing/build/esm/_virtual/_rollupPluginBabelHelpers.mjs
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
function ownKeys(object, enumerableOnly) {
|
|
2
|
-
var keys = Object.keys(object);
|
|
3
|
-
|
|
4
|
-
if (Object.getOwnPropertySymbols) {
|
|
5
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
6
|
-
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
|
7
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
8
|
-
})), keys.push.apply(keys, symbols);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
return keys;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
function _objectSpread2(target) {
|
|
15
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
16
|
-
var source = null != arguments[i] ? arguments[i] : {};
|
|
17
|
-
i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
|
|
18
|
-
_defineProperty(target, key, source[key]);
|
|
19
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
|
|
20
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
return target;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
function _defineProperty(obj, key, value) {
|
|
28
|
-
if (key in obj) {
|
|
29
|
-
Object.defineProperty(obj, key, {
|
|
30
|
-
value: value,
|
|
31
|
-
enumerable: true,
|
|
32
|
-
configurable: true,
|
|
33
|
-
writable: true
|
|
34
|
-
});
|
|
35
|
-
} else {
|
|
36
|
-
obj[key] = value;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
return obj;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export { _defineProperty as defineProperty, _objectSpread2 as objectSpread2 };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
function getInternals(instance) {
|
|
2
|
-
// In React 17+ _reactInternalFiber was renamed to _reactInternals. As such we need to handle both APIs to maintain support.
|
|
3
|
-
if ('_reactInternalFiber' in instance) {
|
|
4
|
-
return instance._reactInternalFiber;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
return instance._reactInternals;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export { getInternals };
|