@elliemae/pui-app-sdk 3.0.0-beta.9 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/cjs/analytics/appdynamics.js +29 -9
- package/dist/cjs/analytics/index.js +28 -13
- package/dist/cjs/analytics/page-view-event.js +11 -10
- package/dist/cjs/analytics/user-session-event.js +12 -11
- package/dist/cjs/analytics/user-wait-event.js +11 -10
- package/dist/cjs/analytics/web-analytics.js +34 -3
- package/dist/cjs/api/auth/index.js +11 -10
- package/dist/cjs/api/helpers.js +12 -11
- package/dist/cjs/api/users/index.js +11 -10
- package/dist/cjs/communication/http-client/index.js +60 -21
- package/dist/cjs/communication/http-client/request-interceptor.js +11 -10
- package/dist/cjs/communication/http-client/response-interceptor.js +13 -7
- package/dist/cjs/communication/http-client/retry-axios.js +14 -8
- package/dist/cjs/communication/http-client/retry.js +11 -10
- package/dist/cjs/data/auth/actions.js +19 -2
- package/dist/cjs/data/auth/reducer.js +14 -8
- package/dist/cjs/data/breakpoint/index.js +13 -7
- package/dist/cjs/data/error/index.js +11 -10
- package/dist/cjs/data/index.js +13 -12
- package/dist/cjs/data/live-message/index.js +11 -10
- package/dist/cjs/data/logout/actions.js +19 -2
- package/dist/cjs/data/navigation-prompt/actions.js +19 -2
- package/dist/cjs/data/react-redux.js +11 -10
- package/dist/cjs/data/reducers.js +32 -18
- package/dist/cjs/data/saga.js +19 -2
- package/dist/cjs/data/store.js +18 -22
- package/dist/cjs/data/wait-message/actions.js +19 -2
- package/dist/cjs/data/wait-message/reducer.js +14 -8
- package/dist/cjs/data/webpack-hmr.js +42 -0
- package/dist/cjs/index.js +90 -85
- package/dist/cjs/micro-frontend.js +14 -13
- package/dist/cjs/package.json +7 -1
- package/dist/cjs/sideeffect/auth/index.js +36 -20
- package/dist/cjs/sideeffect/error-toast/index.js +34 -17
- package/dist/cjs/sideeffect/wait-message/index.js +36 -20
- package/dist/cjs/typings/styled.d.js +1 -19
- package/dist/cjs/utils/app-config/config.js +14 -8
- package/dist/cjs/utils/app-config/index.js +17 -11
- package/dist/cjs/utils/app-host-integration/react.js +11 -10
- package/dist/cjs/utils/auth/helper.js +13 -7
- package/dist/cjs/utils/auth/index.js +42 -25
- package/dist/cjs/utils/await.js +18 -1
- package/dist/cjs/utils/constants.js +19 -2
- package/dist/cjs/utils/font-size.js +19 -2
- package/dist/cjs/utils/guest-with-service.js +19 -2
- package/dist/cjs/utils/helpers.js +20 -3
- package/dist/cjs/utils/history.js +11 -10
- package/dist/cjs/utils/log-records.js +19 -2
- package/dist/cjs/utils/micro-frontend/console-logger.js +12 -11
- package/dist/cjs/utils/micro-frontend/guest.js +25 -19
- package/dist/cjs/utils/micro-frontend/host.js +30 -29
- package/dist/cjs/utils/micro-frontend/index.js +17 -11
- package/dist/cjs/utils/micro-frontend/types.js +18 -1
- package/dist/cjs/utils/redact-pii.js +19 -2
- package/dist/cjs/utils/service-worker.js +14 -14
- package/dist/cjs/utils/session.js +15 -14
- package/dist/cjs/utils/storybook/manager.js +12 -11
- package/dist/cjs/utils/storybook/preview.js +24 -19
- package/dist/cjs/utils/storybook/theme.js +50 -19
- package/dist/cjs/utils/testing/index.js +34 -14
- package/dist/cjs/utils/testing/render-with-redux.js +37 -15
- package/dist/cjs/utils/testing/render-with-router-redux.js +41 -19
- package/dist/cjs/utils/testing/render-with-router.js +40 -15
- package/dist/cjs/utils/testing/render-with-state-addons.js +56 -21
- package/dist/cjs/utils/types.js +18 -1
- package/dist/cjs/utils/url.js +19 -2
- package/dist/cjs/utils/web-storage.js +13 -7
- package/dist/cjs/utils/window.js +11 -10
- package/dist/cjs/view/app-root/hosted-app.js +24 -15
- package/dist/cjs/view/app-root/index.js +40 -24
- package/dist/cjs/view/app-root/stand-alone-app.js +27 -17
- package/dist/cjs/view/app-root/style.js +11 -10
- package/dist/cjs/view/app-router.js +77 -0
- package/dist/cjs/view/{media-breakpoint/index.js → breakpoint/use-breakpoint.js} +20 -21
- package/dist/cjs/view/{useMediaBreakpoints/index.js → breakpoint/use-media-query-list.js} +15 -14
- package/dist/cjs/view/error-boundary/default-error-template.js +14 -8
- package/dist/cjs/view/error-boundary/index.js +35 -13
- package/dist/cjs/view/error-toast/index.js +36 -20
- package/dist/cjs/view/fetch-host-app-data/index.js +16 -10
- package/dist/cjs/view/fetch-host-app-data/store.js +26 -11
- package/dist/cjs/view/fields/check-box/index.js +57 -26
- package/dist/cjs/view/fields/combo-box/index.js +68 -28
- package/dist/cjs/view/fields/connect-form.js +26 -13
- package/dist/cjs/view/fields/date-input/index.js +58 -23
- package/dist/cjs/view/fields/date-picker/index.js +58 -23
- package/dist/cjs/view/fields/form-item-layout/index.js +56 -25
- package/dist/cjs/view/fields/form-layout-block-item/index.js +84 -0
- package/dist/cjs/view/fields/input-mask/index.js +58 -24
- package/dist/cjs/view/fields/large-text-box/index.js +58 -23
- package/dist/cjs/view/fields/radio/index.js +67 -25
- package/dist/cjs/view/fields/radio-group/index.js +57 -22
- package/dist/cjs/view/fields/text-box/index.js +58 -23
- package/dist/cjs/view/fields/watch-value.js +19 -11
- package/dist/cjs/view/form/index.js +32 -15
- package/dist/cjs/view/form/personal-info-section.js +46 -36
- package/dist/cjs/view/form/submit-button/index.js +48 -15
- package/dist/cjs/view/guest-unload-handlers/index.js +11 -10
- package/dist/cjs/view/host-binding-events/index.js +19 -2
- package/dist/cjs/view/live-message/index.js +15 -9
- package/dist/cjs/view/loadable/index.js +30 -12
- package/dist/cjs/view/login/index.js +16 -20
- package/dist/cjs/view/message-to-host-app/index.js +11 -10
- package/dist/cjs/view/micro-app/app-factory/index.js +38 -20
- package/dist/cjs/view/micro-app/const.js +19 -2
- package/dist/cjs/view/micro-app/index.js +17 -11
- package/dist/cjs/view/micro-app/resources/manifest.js +14 -13
- package/dist/cjs/view/micro-app/resources/script.js +12 -11
- package/dist/cjs/view/micro-app/resources/style.js +11 -10
- package/dist/cjs/view/micro-app/types.js +18 -1
- package/dist/cjs/view/micro-app/use-app-will-render.js +36 -19
- package/dist/cjs/view/micro-app/utils.js +11 -10
- package/dist/cjs/view/micro-iframe-app/app.js +57 -22
- package/dist/cjs/view/micro-iframe-app/iframe/const.js +19 -2
- package/dist/cjs/view/micro-iframe-app/iframe/index.js +37 -14
- package/dist/cjs/view/micro-iframe-app/index.js +49 -14
- package/dist/cjs/view/micro-iframe-app/types.js +18 -1
- package/dist/cjs/view/micro-iframe-app/use-frame-loaded.js +16 -15
- package/dist/cjs/view/modals/error/index.js +31 -22
- package/dist/cjs/view/modals/navigation-prompt/index.js +39 -22
- package/dist/cjs/view/modals/session-expiry/customHooks.js +14 -13
- package/dist/cjs/view/modals/session-expiry/index.js +39 -30
- package/dist/cjs/view/modals/wait-message/index.js +59 -22
- package/dist/cjs/view/modals/wait-message/{html-wait-message.js → use-html-wait-message.js} +14 -15
- package/dist/cjs/view/modals/wait-message/wait-message-launcher.js +14 -14
- package/dist/cjs/view/page.js +51 -0
- package/dist/cjs/view/render-with-delay/index.js +15 -9
- package/dist/cjs/view/render-with-host-data/index.js +16 -10
- package/dist/cjs/view/require-auth.js +58 -0
- package/dist/cjs/view/session-timeout/index.js +23 -13
- package/dist/cjs/view/storybook/decorator.js +15 -9
- package/dist/cjs/view/use-previous.js +11 -10
- package/dist/cjs/view/{window-size/index.js → use-window-size-change.js} +15 -16
- package/dist/cjs/view/visually-hidden/index.js +32 -13
- package/dist/esm/analytics/appdynamics.js +34 -0
- package/dist/esm/analytics/index.js +43 -0
- package/dist/{es → esm}/analytics/page-view-event.js +0 -0
- package/dist/{es → esm}/analytics/user-session-event.js +0 -0
- package/dist/{es → esm}/analytics/user-wait-event.js +0 -0
- package/dist/esm/analytics/web-analytics.js +30 -0
- package/dist/{es → esm}/api/auth/index.js +0 -0
- package/dist/{es → esm}/api/helpers.js +0 -0
- package/dist/{es → esm}/api/users/index.js +0 -0
- package/dist/{es → esm}/api/users/users.json +0 -0
- package/dist/{es → esm}/app.config.json +0 -0
- package/dist/esm/communication/http-client/index.js +70 -0
- package/dist/{es → esm}/communication/http-client/request-interceptor.js +0 -0
- package/dist/{es → esm}/communication/http-client/response-interceptor.js +0 -0
- package/dist/{es → esm}/communication/http-client/retry-axios.js +1 -1
- package/dist/{es → esm}/communication/http-client/retry.js +0 -0
- package/dist/{es → esm}/data/auth/actions.js +0 -0
- package/dist/{es → esm}/data/auth/reducer.js +0 -0
- package/dist/{es → esm}/data/breakpoint/index.js +0 -0
- package/dist/{es → esm}/data/error/index.js +0 -0
- package/dist/{es → esm}/data/index.js +0 -0
- package/dist/{es → esm}/data/live-message/index.js +0 -0
- package/dist/{es → esm}/data/logout/actions.js +0 -0
- package/dist/{es → esm}/data/navigation-prompt/actions.js +0 -0
- package/dist/{es → esm}/data/react-redux.js +0 -0
- package/dist/esm/data/reducers.js +33 -0
- package/dist/{es → esm}/data/saga.js +0 -0
- package/dist/{es → esm}/data/store.js +5 -12
- package/dist/{es → esm}/data/wait-message/actions.js +0 -0
- package/dist/{es → esm}/data/wait-message/reducer.js +0 -0
- package/dist/esm/data/webpack-hmr.js +17 -0
- package/dist/{es → esm}/index.js +13 -11
- package/dist/{es → esm}/index.pug +0 -0
- package/dist/{es → esm}/micro-frontend.js +0 -0
- package/dist/esm/package.json +7 -0
- package/dist/esm/sideeffect/auth/index.js +64 -0
- package/dist/esm/sideeffect/error-toast/index.js +43 -0
- package/dist/esm/sideeffect/wait-message/index.js +55 -0
- package/dist/{es → esm}/typings/custom.d.js +0 -0
- package/dist/{es → esm}/typings/elliemae.d.js +0 -0
- package/dist/{es → esm}/typings/styled.d.js +0 -0
- package/dist/{es → esm}/typings/thirdparty.d.js +0 -0
- package/dist/{es → esm}/utils/app-config/config.js +1 -1
- package/dist/{es → esm}/utils/app-config/index.js +0 -0
- package/dist/{es → esm}/utils/app-host-integration/react.js +0 -0
- package/dist/{es → esm}/utils/auth/helper.js +0 -0
- package/dist/{es → esm}/utils/auth/index.js +25 -7
- package/dist/{es → esm}/utils/await.js +0 -0
- package/dist/{es → esm}/utils/constants.js +0 -0
- package/dist/{es → esm}/utils/font-size.js +0 -0
- package/dist/{es → esm}/utils/guest-with-service.js +0 -0
- package/dist/{es → esm}/utils/helpers.js +1 -1
- package/dist/{es → esm}/utils/history.js +0 -0
- package/dist/{es → esm}/utils/log-records.js +0 -0
- package/dist/{es → esm}/utils/micro-frontend/console-logger.js +0 -0
- package/dist/{es → esm}/utils/micro-frontend/guest.js +1 -1
- package/dist/{es → esm}/utils/micro-frontend/host.js +5 -4
- package/dist/{es → esm}/utils/micro-frontend/index.js +0 -0
- package/dist/{es → esm}/utils/micro-frontend/types.js +0 -0
- package/dist/{es → esm}/utils/redact-pii.js +0 -0
- package/dist/{es → esm}/utils/service-worker.js +2 -3
- package/dist/{es → esm}/utils/session.js +2 -2
- package/dist/{es → esm}/utils/storybook/manager.js +0 -0
- package/dist/{es → esm}/utils/storybook/preview.js +7 -3
- package/dist/esm/utils/storybook/theme.js +45 -0
- package/dist/esm/utils/testing/index.js +38 -0
- package/dist/esm/utils/testing/render-with-redux.js +35 -0
- package/dist/esm/utils/testing/render-with-router-redux.js +41 -0
- package/dist/esm/utils/testing/render-with-router.js +37 -0
- package/dist/esm/utils/testing/render-with-state-addons.js +69 -0
- package/dist/{es → esm}/utils/types.js +0 -0
- package/dist/{es → esm}/utils/url.js +0 -0
- package/dist/{es → esm}/utils/web-storage.js +0 -0
- package/dist/{es → esm}/utils/window.js +0 -0
- package/dist/esm/view/app-root/hosted-app.js +18 -0
- package/dist/{es → esm}/view/app-root/index.js +19 -7
- package/dist/esm/view/app-root/stand-alone-app.js +25 -0
- package/dist/{es → esm}/view/app-root/style.js +0 -0
- package/dist/esm/view/app-router.js +50 -0
- package/dist/{es/view/media-breakpoint/index.js → esm/view/breakpoint/use-breakpoint.js} +4 -6
- package/dist/{es/view/useMediaBreakpoints/index.js → esm/view/breakpoint/use-media-query-list.js} +4 -4
- package/dist/esm/view/error-boundary/default-error-template.js +5 -0
- package/dist/esm/view/error-boundary/index.js +54 -0
- package/dist/esm/view/error-toast/index.js +42 -0
- package/dist/{es → esm}/view/fetch-host-app-data/index.js +0 -0
- package/dist/esm/view/fetch-host-app-data/store.js +28 -0
- package/dist/esm/view/fields/check-box/index.js +52 -0
- package/dist/esm/view/fields/combo-box/index.js +64 -0
- package/dist/esm/view/fields/connect-form.js +24 -0
- package/dist/esm/view/fields/date-input/index.js +53 -0
- package/dist/esm/view/fields/date-picker/index.js +53 -0
- package/dist/esm/view/fields/form-item-layout/index.js +50 -0
- package/dist/esm/view/fields/form-layout-block-item/index.js +57 -0
- package/dist/esm/view/fields/input-mask/index.js +59 -0
- package/dist/esm/view/fields/large-text-box/index.js +53 -0
- package/dist/esm/view/fields/radio/index.js +62 -0
- package/dist/esm/view/fields/radio-group/index.js +52 -0
- package/dist/esm/view/fields/text-box/index.js +53 -0
- package/dist/esm/view/fields/watch-value.js +23 -0
- package/dist/esm/view/form/index.js +46 -0
- package/dist/{es → esm}/view/form/personal-info-section.js +29 -25
- package/dist/esm/view/form/submit-button/index.js +48 -0
- package/dist/{es → esm}/view/guest-unload-handlers/index.js +0 -0
- package/dist/{es → esm}/view/host-binding-events/index.js +0 -0
- package/dist/{es → esm}/view/intro.stories.mdx +0 -0
- package/dist/{es → esm}/view/live-message/index.js +0 -0
- package/dist/esm/view/loadable/index.js +28 -0
- package/dist/{es → esm}/view/login/index.js +2 -7
- package/dist/{es → esm}/view/message-to-host-app/index.js +0 -0
- package/dist/{es → esm}/view/micro-app/app-factory/index.js +21 -2
- package/dist/{es → esm}/view/micro-app/const.js +0 -0
- package/dist/{es → esm}/view/micro-app/index.js +0 -0
- package/dist/{es → esm}/view/micro-app/resources/manifest.js +0 -0
- package/dist/{es → esm}/view/micro-app/resources/script.js +1 -1
- package/dist/{es → esm}/view/micro-app/resources/style.js +0 -0
- package/dist/{es → esm}/view/micro-app/types.js +0 -0
- package/dist/{es → esm}/view/micro-app/use-app-will-render.js +21 -3
- package/dist/{es → esm}/view/micro-app/utils.js +0 -0
- package/dist/esm/view/micro-iframe-app/app.js +58 -0
- package/dist/{es → esm}/view/micro-iframe-app/iframe/const.js +0 -0
- package/dist/{es → esm}/view/micro-iframe-app/iframe/index.html +0 -0
- package/dist/esm/view/micro-iframe-app/iframe/index.js +54 -0
- package/dist/esm/view/micro-iframe-app/index.js +57 -0
- package/dist/{es → esm}/view/micro-iframe-app/types.js +0 -0
- package/dist/{es → esm}/view/micro-iframe-app/use-frame-loaded.js +2 -2
- package/dist/esm/view/modals/error/index.js +33 -0
- package/dist/esm/view/modals/navigation-prompt/index.js +40 -0
- package/dist/{es → esm}/view/modals/session-expiry/customHooks.js +0 -0
- package/dist/esm/view/modals/session-expiry/index.js +51 -0
- package/dist/esm/view/modals/wait-message/index.js +69 -0
- package/dist/esm/view/modals/wait-message/use-html-wait-message.js +11 -0
- package/dist/{es → esm}/view/modals/wait-message/wait-message-launcher.js +1 -2
- package/dist/{es/route/page-view.js → esm/view/page.js} +7 -0
- package/dist/{es → esm}/view/render-with-delay/index.js +1 -1
- package/dist/{es → esm}/view/render-with-host-data/index.js +0 -0
- package/dist/esm/view/require-auth.js +29 -0
- package/dist/{es → esm}/view/session-timeout/index.js +5 -1
- package/dist/{es → esm}/view/storybook/decorator.js +0 -0
- package/dist/{es → esm}/view/use-previous.js +0 -0
- package/dist/{es/view/window-size/index.js → esm/view/use-window-size-change.js} +3 -5
- package/dist/esm/view/visually-hidden/index.js +37 -0
- package/dist/types/{lib/analytics → analytics}/appdynamics.d.ts +0 -0
- package/dist/types/{lib/analytics → analytics}/index.d.ts +0 -0
- package/dist/types/{lib/analytics → analytics}/page-view-event.d.ts +0 -0
- package/dist/types/{lib/analytics → analytics}/user-session-event.d.ts +0 -0
- package/dist/types/{lib/analytics → analytics}/user-wait-event.d.ts +0 -0
- package/dist/types/{lib/analytics → analytics}/web-analytics.d.ts +0 -0
- package/dist/types/{lib/api → api}/auth/index.d.ts +0 -0
- package/dist/types/{lib/api → api}/helpers.d.ts +0 -0
- package/dist/types/{lib/api → api}/users/index.d.ts +0 -0
- package/dist/types/{lib/api → api}/users/index.endpoint.d.ts +0 -0
- package/dist/types/{lib/communication → communication}/http-client/index.d.ts +0 -0
- package/dist/types/{lib/communication → communication}/http-client/request-interceptor.d.ts +0 -0
- package/dist/types/{lib/communication → communication}/http-client/response-interceptor.d.ts +0 -0
- package/dist/types/{lib/communication → communication}/http-client/retry-axios.d.ts +0 -0
- package/dist/types/{lib/communication → communication}/http-client/retry.d.ts +0 -0
- package/dist/types/{lib/communication → communication}/http-client/tests/hello.endpoint.d.ts +0 -0
- package/dist/types/{.storybook/manager.d.ts → communication/http-client/tests/index.test.d.ts} +0 -0
- package/dist/types/{lib/communication → communication}/http-client/tests/private.endpoint.d.ts +0 -0
- package/dist/types/{lib/data → data}/auth/actions.d.ts +0 -0
- package/dist/types/{lib/data → data}/auth/reducer.d.ts +0 -0
- package/dist/types/{lib/data → data}/breakpoint/index.d.ts +0 -0
- package/dist/types/{lib/data → data}/error/index.d.ts +0 -0
- package/dist/types/{lib/data → data}/index.d.ts +0 -0
- package/dist/types/{lib/data → data}/live-message/index.d.ts +0 -0
- package/dist/types/{lib/data → data}/logout/actions.d.ts +0 -0
- package/dist/types/{lib/data → data}/navigation-prompt/actions.d.ts +0 -0
- package/dist/types/data/react-redux.d.ts +11 -0
- package/dist/types/{lib/data → data}/reducers.d.ts +0 -0
- package/dist/types/{lib/data → data}/saga.d.ts +0 -0
- package/dist/types/{lib/data → data}/store.d.ts +0 -1
- package/dist/types/{lib/data → data}/tests/store.test.d.ts +0 -0
- package/dist/types/{lib/data → data}/wait-message/actions.d.ts +0 -0
- package/dist/types/{lib/data → data}/wait-message/reducer.d.ts +0 -0
- package/dist/types/data/webpack-hmr.d.ts +1 -0
- package/dist/types/{lib/index.d.ts → index.d.ts} +5 -6
- package/dist/types/{lib/micro-frontend.d.ts → micro-frontend.d.ts} +0 -0
- package/dist/types/{lib/sideeffect → sideeffect}/auth/index.d.ts +0 -0
- package/dist/types/{lib/sideeffect → sideeffect}/error-toast/index.d.ts +0 -0
- package/dist/types/{lib/sideeffect → sideeffect}/wait-message/index.d.ts +0 -0
- package/dist/types/{lib/utils → utils}/app-config/config.d.ts +1 -1
- package/dist/types/{lib/utils → utils}/app-config/index.d.ts +0 -0
- package/dist/types/{lib/utils → utils}/app-host-integration/react.d.ts +0 -0
- package/dist/types/{lib/utils → utils}/auth/helper.d.ts +0 -0
- package/dist/types/{lib/utils → utils}/auth/index.d.ts +0 -0
- package/dist/types/{lib/utils → utils}/await.d.ts +0 -0
- package/dist/types/{lib/utils → utils}/constants.d.ts +0 -0
- package/dist/types/{lib/utils → utils}/font-size.d.ts +0 -0
- package/dist/types/{lib/utils → utils}/guest-with-service.d.ts +0 -0
- package/dist/types/{lib/utils → utils}/helpers.d.ts +0 -0
- package/dist/types/utils/history.d.ts +2 -0
- package/dist/types/{lib/utils → utils}/log-records.d.ts +0 -0
- package/dist/types/{lib/utils → utils}/micro-frontend/console-logger.d.ts +0 -0
- package/dist/types/{lib/utils → utils}/micro-frontend/guest.d.ts +2 -2
- package/dist/types/{lib/utils → utils}/micro-frontend/host.d.ts +2 -2
- package/dist/types/{lib/utils → utils}/micro-frontend/index.d.ts +0 -0
- package/dist/types/{lib/utils → utils}/micro-frontend/types.d.ts +0 -0
- package/dist/types/{lib/utils → utils}/redact-pii.d.ts +0 -0
- package/dist/types/{lib/utils → utils}/service-worker.d.ts +0 -0
- package/dist/types/{lib/utils → utils}/session.d.ts +5 -2
- package/dist/types/{lib/utils → utils}/storybook/cjs/main.d.ts +0 -0
- package/dist/types/{lib/utils → utils}/storybook/cjs/middleware.d.ts +0 -0
- package/dist/types/{lib/utils → utils}/storybook/cjs/vite.d.ts +0 -0
- package/dist/types/{lib/utils → utils}/storybook/cjs/webpack.d.ts +0 -0
- package/dist/types/{lib/utils → utils}/storybook/manager.d.ts +0 -0
- package/dist/types/{lib/utils → utils}/storybook/preview.d.ts +1 -0
- package/dist/types/{lib/utils → utils}/storybook/theme.d.ts +0 -0
- package/dist/types/{lib/utils → utils}/testing/index.d.ts +0 -0
- package/dist/types/{lib/utils → utils}/testing/render-with-redux.d.ts +0 -0
- package/dist/types/{lib/utils → utils}/testing/render-with-router-redux.d.ts +0 -0
- package/dist/types/{lib/utils → utils}/testing/render-with-router.d.ts +1 -1
- package/dist/types/{lib/utils → utils}/testing/render-with-state-addons.d.ts +1 -1
- package/dist/types/{lib/utils → utils}/types.d.ts +0 -0
- package/dist/types/{lib/utils → utils}/url.d.ts +0 -0
- package/dist/types/{lib/utils → utils}/web-storage.d.ts +0 -0
- package/dist/types/{lib/utils → utils}/window.d.ts +0 -0
- package/dist/types/{lib/view → view}/app-root/hosted-app.d.ts +1 -1
- package/dist/types/{lib/view → view}/app-root/index.d.ts +1 -1
- package/dist/types/{lib/view → view}/app-root/stand-alone-app.d.ts +1 -1
- package/dist/types/{lib/view → view}/app-root/style.d.ts +0 -0
- package/dist/types/view/app-router.d.ts +9 -0
- package/dist/types/{lib/view/media-breakpoint → view/breakpoint}/index.stories.d.ts +0 -0
- package/dist/types/view/breakpoint/use-breakpoint.d.ts +1 -0
- package/dist/types/view/breakpoint/use-media-query-list.d.ts +1 -0
- package/dist/types/{lib/view → view}/error-boundary/default-error-template.d.ts +1 -1
- package/dist/types/{lib/view → view}/error-boundary/index.d.ts +0 -0
- package/dist/types/{lib/view → view}/error-toast/index.d.ts +0 -0
- package/dist/types/{lib/view → view}/error-toast/index.stories.d.ts +0 -0
- package/dist/types/{lib/view → view}/fetch-host-app-data/index.d.ts +0 -0
- package/dist/types/{lib/view → view}/fetch-host-app-data/store.d.ts +0 -0
- package/dist/types/{lib/view → view}/fields/check-box/index.d.ts +2 -4
- package/dist/types/{lib/view → view}/fields/check-box/index.stories.d.ts +1 -3
- package/dist/types/{lib/view → view}/fields/check-box/set-value.stories.d.ts +0 -0
- package/dist/types/{lib/view → view}/fields/combo-box/index.d.ts +1 -2
- package/dist/types/view/fields/combo-box/index.stories.d.ts +5 -0
- package/dist/types/{lib/view → view}/fields/connect-form.d.ts +1 -1
- package/dist/types/{lib/view → view}/fields/date-input/index.d.ts +1 -1
- package/dist/types/{lib/view → view}/fields/date-input/index.stories.d.ts +0 -0
- package/dist/types/{lib/view → view}/fields/date-picker/index.d.ts +2 -1
- package/dist/types/{lib/view → view}/fields/date-picker/index.stories.d.ts +1 -3
- package/dist/types/{lib/view → view}/fields/form-item-layout/index.d.ts +1 -1
- package/dist/types/{lib/view → view}/fields/form-item-layout/index.stories.d.ts +0 -0
- package/dist/types/view/fields/form-layout-block-item/index.d.ts +8 -0
- package/dist/types/{lib/view/header → view/fields/form-layout-block-item}/index.stories.d.ts +2 -2
- package/dist/types/{lib/view → view}/fields/input-mask/index.d.ts +1 -1
- package/dist/types/{lib/view → view}/fields/input-mask/index.stories.d.ts +1 -3
- package/dist/types/{lib/view → view}/fields/large-text-box/index.d.ts +1 -1
- package/dist/types/{lib/view → view}/fields/large-text-box/index.stories.d.ts +1 -3
- package/dist/types/{lib/view → view}/fields/radio/index.d.ts +2 -2
- package/dist/types/{lib/view → view}/fields/radio/index.stories.d.ts +1 -3
- package/dist/types/{lib/view → view}/fields/radio/set-value.stories.d.ts +0 -0
- package/dist/types/{lib/view → view}/fields/radio-group/index.d.ts +1 -1
- package/dist/types/{lib/view → view}/fields/radio-group/index.stories.d.ts +0 -0
- package/dist/types/{lib/view → view}/fields/text-box/index.d.ts +1 -1
- package/dist/types/{lib/view → view}/fields/text-box/index.stories.d.ts +0 -0
- package/dist/types/view/fields/watch-value.d.ts +6 -0
- package/dist/types/{lib/view → view}/form/index.d.ts +0 -0
- package/dist/types/{lib/view → view}/form/index.stories.d.ts +0 -0
- package/dist/types/view/form/personal-info-section.d.ts +5 -0
- package/dist/types/{lib/view → view}/form/submit-button/index.d.ts +2 -1
- package/dist/types/{lib/view → view}/form/usecases.stories.d.ts +0 -0
- package/dist/types/{lib/view → view}/guest-unload-handlers/index.d.ts +0 -0
- package/dist/types/{lib/view → view}/host-binding-events/index.d.ts +0 -0
- package/dist/types/view/live-message/index.d.ts +2 -0
- package/dist/types/{lib/view → view}/live-message/index.stories.d.ts +0 -0
- package/dist/types/{lib/view → view}/loadable/index.d.ts +0 -0
- package/dist/types/{lib/view → view}/login/index.d.ts +1 -2
- package/dist/types/{lib/view → view}/message-to-host-app/index.d.ts +0 -0
- package/dist/types/{lib/view → view}/micro-app/app-factory/index.d.ts +0 -0
- package/dist/types/{lib/view → view}/micro-app/const.d.ts +0 -0
- package/dist/types/{lib/view → view}/micro-app/index.d.ts +0 -0
- package/dist/types/{lib/view → view}/micro-app/resources/manifest.d.ts +0 -0
- package/dist/types/{lib/view → view}/micro-app/resources/script.d.ts +0 -0
- package/dist/types/{lib/view → view}/micro-app/resources/style.d.ts +0 -0
- package/dist/types/{lib/view → view}/micro-app/types.d.ts +0 -0
- package/dist/types/{lib/view → view}/micro-app/use-app-will-render.d.ts +0 -0
- package/dist/types/{lib/view → view}/micro-app/utils.d.ts +0 -0
- package/dist/types/{lib/view → view}/micro-iframe-app/app.d.ts +0 -0
- package/dist/types/{lib/view → view}/micro-iframe-app/iframe/const.d.ts +0 -0
- package/dist/types/{lib/view → view}/micro-iframe-app/iframe/index.d.ts +0 -0
- package/dist/types/{lib/view → view}/micro-iframe-app/index.d.ts +0 -0
- package/dist/types/{lib/view → view}/micro-iframe-app/types.d.ts +0 -0
- package/dist/types/{lib/view → view}/micro-iframe-app/use-frame-loaded.d.ts +0 -0
- package/dist/types/view/modals/error/index.d.ts +9 -0
- package/dist/types/{lib/view → view}/modals/error/index.stories.d.ts +0 -0
- package/dist/types/{lib/view → view}/modals/navigation-prompt/index.d.ts +0 -1
- package/dist/types/{lib/view → view}/modals/navigation-prompt/index.stories.d.ts +0 -0
- package/dist/types/{lib/view → view}/modals/session-expiry/customHooks.d.ts +0 -0
- package/dist/types/{lib/view → view}/modals/session-expiry/index.d.ts +0 -1
- package/dist/types/{lib/view → view}/modals/session-expiry/index.stories.d.ts +0 -0
- package/dist/types/{lib/view → view}/modals/wait-message/index.d.ts +0 -0
- package/dist/types/{lib/view → view}/modals/wait-message/index.stories.d.ts +6 -2
- package/dist/types/view/modals/wait-message/use-html-wait-message.d.ts +1 -0
- package/dist/types/view/modals/wait-message/wait-message-launcher.d.ts +1 -0
- package/dist/types/view/page.d.ts +8 -0
- package/dist/types/{lib/view → view}/render-with-delay/index.d.ts +0 -0
- package/dist/types/{lib/view → view}/render-with-host-data/index.d.ts +0 -0
- package/dist/types/view/require-auth.d.ts +8 -0
- package/dist/types/view/session-timeout/index.d.ts +2 -0
- package/dist/types/{lib/view → view}/session-timeout/index.stories.d.ts +1 -4
- package/dist/types/{lib/view → view}/storybook/decorator.d.ts +0 -0
- package/dist/types/{lib/view → view}/use-previous.d.ts +0 -0
- package/dist/types/view/use-window-size-change.d.ts +1 -0
- package/dist/types/{lib/view → view}/visually-hidden/index.d.ts +0 -0
- package/package.json +60 -46
- package/dist/cjs/communication/http-client/tests/index.test-disable.js +0 -64
- package/dist/cjs/route/index.js +0 -49
- package/dist/cjs/route/page-view.js +0 -38
- package/dist/cjs/route/private-route/index.js +0 -69
- package/dist/cjs/view/header/center-region/index.js +0 -65
- package/dist/cjs/view/header/index.js +0 -44
- package/dist/cjs/view/header/logo-region/index.js +0 -33
- package/dist/cjs/view/header/logo-region/logo.svg +0 -2
- package/dist/cjs/view/header/nav-region/index.js +0 -47
- package/dist/cjs/view/header/nav-region/notification/index.js +0 -32
- package/dist/cjs/view/header/nav-region/notification/index.svg +0 -5
- package/dist/cjs/view/header/nav-region/user/index.js +0 -32
- package/dist/cjs/view/header/nav-region/user/index.svg +0 -4
- package/dist/es/analytics/appdynamics.js +0 -18
- package/dist/es/analytics/index.js +0 -27
- package/dist/es/analytics/web-analytics.js +0 -14
- package/dist/es/communication/http-client/index.js +0 -35
- package/dist/es/communication/http-client/tests/index.test-disable.js +0 -46
- package/dist/es/data/reducers.js +0 -18
- package/dist/es/package.json +0 -1
- package/dist/es/route/index.js +0 -26
- package/dist/es/route/private-route/index.js +0 -46
- package/dist/es/sideeffect/auth/index.js +0 -47
- package/dist/es/sideeffect/error-toast/index.js +0 -25
- package/dist/es/sideeffect/wait-message/index.js +0 -38
- package/dist/es/utils/storybook/theme.js +0 -13
- package/dist/es/utils/testing/index.js +0 -22
- package/dist/es/utils/testing/render-with-redux.js +0 -17
- package/dist/es/utils/testing/render-with-router-redux.js +0 -23
- package/dist/es/utils/testing/render-with-router.js +0 -16
- package/dist/es/utils/testing/render-with-state-addons.js +0 -38
- package/dist/es/view/app-root/hosted-app.js +0 -15
- package/dist/es/view/app-root/stand-alone-app.js +0 -21
- package/dist/es/view/error-boundary/default-error-template.js +0 -5
- package/dist/es/view/error-boundary/index.js +0 -36
- package/dist/es/view/error-toast/index.js +0 -30
- package/dist/es/view/fetch-host-app-data/store.js +0 -12
- package/dist/es/view/fields/check-box/index.js +0 -25
- package/dist/es/view/fields/combo-box/index.js +0 -28
- package/dist/es/view/fields/connect-form.js +0 -10
- package/dist/es/view/fields/date-input/index.js +0 -22
- package/dist/es/view/fields/date-picker/index.js +0 -22
- package/dist/es/view/fields/form-item-layout/index.js +0 -23
- package/dist/es/view/fields/input-mask/index.js +0 -28
- package/dist/es/view/fields/large-text-box/index.js +0 -22
- package/dist/es/view/fields/radio/index.js +0 -24
- package/dist/es/view/fields/radio-group/index.js +0 -21
- package/dist/es/view/fields/text-box/index.js +0 -22
- package/dist/es/view/fields/watch-value.js +0 -21
- package/dist/es/view/form/index.js +0 -33
- package/dist/es/view/form/submit-button/index.js +0 -19
- package/dist/es/view/header/center-region/index.js +0 -42
- package/dist/es/view/header/index.js +0 -21
- package/dist/es/view/header/logo-region/index.js +0 -10
- package/dist/es/view/header/logo-region/logo.svg +0 -2
- package/dist/es/view/header/nav-region/index.js +0 -24
- package/dist/es/view/header/nav-region/notification/index.js +0 -9
- package/dist/es/view/header/nav-region/notification/index.svg +0 -5
- package/dist/es/view/header/nav-region/user/index.js +0 -9
- package/dist/es/view/header/nav-region/user/index.svg +0 -4
- package/dist/es/view/loadable/index.js +0 -14
- package/dist/es/view/micro-iframe-app/app.js +0 -27
- package/dist/es/view/micro-iframe-app/iframe/index.js +0 -35
- package/dist/es/view/micro-iframe-app/index.js +0 -26
- package/dist/es/view/modals/error/index.js +0 -24
- package/dist/es/view/modals/navigation-prompt/index.js +0 -22
- package/dist/es/view/modals/session-expiry/index.js +0 -40
- package/dist/es/view/modals/wait-message/html-wait-message.js +0 -13
- package/dist/es/view/modals/wait-message/index.js +0 -36
- package/dist/es/view/visually-hidden/index.js +0 -22
- package/dist/types/.storybook/main.d.ts +0 -63
- package/dist/types/.storybook/middleware.d.ts +0 -2
- package/dist/types/.storybook/preview.d.ts +0 -25
- package/dist/types/.storybook/theme.d.ts +0 -4
- package/dist/types/lib/communication/http-client/tests/index.test-disable.d.ts +0 -1
- package/dist/types/lib/data/react-redux.d.ts +0 -20
- package/dist/types/lib/route/index.d.ts +0 -8
- package/dist/types/lib/route/page-view.d.ts +0 -1
- package/dist/types/lib/route/private-route/index.d.ts +0 -8
- package/dist/types/lib/utils/history.d.ts +0 -2
- package/dist/types/lib/view/fields/combo-box/index.stories.d.ts +0 -7
- package/dist/types/lib/view/fields/watch-value.d.ts +0 -6
- package/dist/types/lib/view/form/personal-info-section.d.ts +0 -5
- package/dist/types/lib/view/header/center-region/index.d.ts +0 -9
- package/dist/types/lib/view/header/index.d.ts +0 -7
- package/dist/types/lib/view/header/logo-region/index.d.ts +0 -2
- package/dist/types/lib/view/header/nav-region/index.d.ts +0 -2
- package/dist/types/lib/view/header/nav-region/notification/index.d.ts +0 -2
- package/dist/types/lib/view/header/nav-region/user/index.d.ts +0 -2
- package/dist/types/lib/view/live-message/index.d.ts +0 -2
- package/dist/types/lib/view/media-breakpoint/index.d.ts +0 -2
- package/dist/types/lib/view/modals/error/index.d.ts +0 -8
- package/dist/types/lib/view/modals/wait-message/html-wait-message.d.ts +0 -6
- package/dist/types/lib/view/modals/wait-message/wait-message-launcher.d.ts +0 -2
- package/dist/types/lib/view/session-timeout/index.d.ts +0 -2
- package/dist/types/lib/view/useMediaBreakpoints/index.d.ts +0 -1
- package/dist/types/lib/view/window-size/index.d.ts +0 -2
|
@@ -1,33 +1,55 @@
|
|
|
1
1
|
var __create = Object.create;
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defProps = Object.defineProperties;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
8
|
var __getProtoOf = Object.getPrototypeOf;
|
|
6
9
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
11
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
12
|
+
var __spreadValues = (a, b) => {
|
|
13
|
+
for (var prop in b || (b = {}))
|
|
14
|
+
if (__hasOwnProp.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
if (__getOwnPropSymbols)
|
|
17
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
18
|
+
if (__propIsEnum.call(b, prop))
|
|
19
|
+
__defNormalProp(a, prop, b[prop]);
|
|
20
|
+
}
|
|
21
|
+
return a;
|
|
22
|
+
};
|
|
23
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
7
24
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
25
|
var __export = (target, all) => {
|
|
9
|
-
__markAsModule(target);
|
|
10
26
|
for (var name in all)
|
|
11
27
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
28
|
};
|
|
13
|
-
var __reExport = (target, module2, desc) => {
|
|
29
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
|
14
30
|
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
15
31
|
for (let key of __getOwnPropNames(module2))
|
|
16
|
-
if (!__hasOwnProp.call(target, key) && key !== "default")
|
|
32
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
17
33
|
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
18
34
|
}
|
|
19
35
|
return target;
|
|
20
36
|
};
|
|
21
|
-
var
|
|
22
|
-
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default",
|
|
37
|
+
var __toESM = (module2, isNodeMode) => {
|
|
38
|
+
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
23
39
|
};
|
|
24
|
-
|
|
40
|
+
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
41
|
+
return (module2, temp) => {
|
|
42
|
+
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
43
|
+
};
|
|
44
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
45
|
+
var error_boundary_exports = {};
|
|
46
|
+
__export(error_boundary_exports, {
|
|
25
47
|
ErrorBoundary: () => ErrorBoundary
|
|
26
48
|
});
|
|
27
|
-
var import_react =
|
|
28
|
-
var import_default_error_template =
|
|
29
|
-
var import_micro_frontend =
|
|
30
|
-
var import_log_records =
|
|
49
|
+
var import_react = __toESM(require("react"));
|
|
50
|
+
var import_default_error_template = require("./default-error-template.js");
|
|
51
|
+
var import_micro_frontend = require("../../utils/micro-frontend/index.js");
|
|
52
|
+
var import_log_records = require("../../utils/log-records.js");
|
|
31
53
|
class ErrorBoundary extends import_react.default.Component {
|
|
32
54
|
constructor(props) {
|
|
33
55
|
super(props);
|
|
@@ -40,10 +62,9 @@ class ErrorBoundary extends import_react.default.Component {
|
|
|
40
62
|
});
|
|
41
63
|
const logger = (0, import_micro_frontend.getLogger)();
|
|
42
64
|
if (logger)
|
|
43
|
-
logger.error({
|
|
44
|
-
...import_log_records.logRecords.UNHANDLED_ERROR,
|
|
65
|
+
logger.error(__spreadProps(__spreadValues({}, import_log_records.logRecords.UNHANDLED_ERROR), {
|
|
45
66
|
exception: error
|
|
46
|
-
});
|
|
67
|
+
}));
|
|
47
68
|
}
|
|
48
69
|
render() {
|
|
49
70
|
const { children, errorTemplate } = this.props;
|
|
@@ -55,3 +76,4 @@ class ErrorBoundary extends import_react.default.Component {
|
|
|
55
76
|
}) : children;
|
|
56
77
|
}
|
|
57
78
|
}
|
|
79
|
+
module.exports = __toCommonJS(error_boundary_exports);
|
|
@@ -2,52 +2,68 @@ var __create = Object.create;
|
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
6
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
9
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
10
|
+
var __spreadValues = (a, b) => {
|
|
11
|
+
for (var prop in b || (b = {}))
|
|
12
|
+
if (__hasOwnProp.call(b, prop))
|
|
13
|
+
__defNormalProp(a, prop, b[prop]);
|
|
14
|
+
if (__getOwnPropSymbols)
|
|
15
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
16
|
+
if (__propIsEnum.call(b, prop))
|
|
17
|
+
__defNormalProp(a, prop, b[prop]);
|
|
18
|
+
}
|
|
19
|
+
return a;
|
|
20
|
+
};
|
|
7
21
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
22
|
var __export = (target, all) => {
|
|
9
|
-
__markAsModule(target);
|
|
10
23
|
for (var name in all)
|
|
11
24
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
25
|
};
|
|
13
|
-
var __reExport = (target, module2, desc) => {
|
|
26
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
|
14
27
|
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
15
28
|
for (let key of __getOwnPropNames(module2))
|
|
16
|
-
if (!__hasOwnProp.call(target, key) && key !== "default")
|
|
29
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
17
30
|
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
18
31
|
}
|
|
19
32
|
return target;
|
|
20
33
|
};
|
|
21
|
-
var
|
|
22
|
-
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default",
|
|
34
|
+
var __toESM = (module2, isNodeMode) => {
|
|
35
|
+
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
23
36
|
};
|
|
24
|
-
|
|
37
|
+
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
38
|
+
return (module2, temp) => {
|
|
39
|
+
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
40
|
+
};
|
|
41
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
42
|
+
var error_toast_exports = {};
|
|
43
|
+
__export(error_toast_exports, {
|
|
25
44
|
ErrorToast: () => ErrorToast
|
|
26
45
|
});
|
|
27
|
-
var React =
|
|
28
|
-
var import_react =
|
|
29
|
-
var import_ds_toast =
|
|
30
|
-
var import_react_redux =
|
|
31
|
-
var import_error =
|
|
46
|
+
var React = __toESM(require("react"));
|
|
47
|
+
var import_react = require("react");
|
|
48
|
+
var import_ds_toast = require("@elliemae/ds-toast");
|
|
49
|
+
var import_react_redux = require("../../data/react-redux.js");
|
|
50
|
+
var import_error = require("../../data/error/index.js");
|
|
32
51
|
const ErrorToast = (0, import_react.memo)((props) => {
|
|
33
52
|
const storeError = (0, import_react_redux.useAppSelector)((state) => state?.error);
|
|
34
53
|
const dispatch = (0, import_react_redux.useAppDispatch)();
|
|
35
54
|
(0, import_react.useEffect)(() => {
|
|
36
55
|
if (storeError && (storeError?.description || storeError?.messageText)) {
|
|
37
|
-
const toastProps = {
|
|
56
|
+
const toastProps = __spreadValues(__spreadValues({
|
|
38
57
|
position: import_ds_toast.ToastPosition.TOP_RIGHT,
|
|
39
58
|
messageTitle: "Error",
|
|
40
|
-
type: import_ds_toast.ToastType.ERROR
|
|
41
|
-
|
|
42
|
-
...storeError
|
|
43
|
-
};
|
|
59
|
+
type: import_ds_toast.ToastType.ERROR
|
|
60
|
+
}, props), storeError);
|
|
44
61
|
const messageText = toastProps.description || toastProps.messageText;
|
|
45
62
|
if (messageText)
|
|
46
|
-
(0, import_ds_toast.toast)({ messageText,
|
|
63
|
+
(0, import_ds_toast.toast)(__spreadValues({ messageText }, toastProps));
|
|
47
64
|
dispatch(import_error.actions.clear());
|
|
48
65
|
}
|
|
49
66
|
}, [storeError, props, dispatch]);
|
|
50
|
-
return /* @__PURE__ */ React.createElement(import_ds_toast.DSToast, {
|
|
51
|
-
...props
|
|
52
|
-
});
|
|
67
|
+
return /* @__PURE__ */ React.createElement(import_ds_toast.DSToast, __spreadValues({}, props));
|
|
53
68
|
});
|
|
69
|
+
module.exports = __toCommonJS(error_toast_exports);
|
|
@@ -6,28 +6,33 @@ var __getProtoOf = Object.getPrototypeOf;
|
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
7
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
8
|
var __export = (target, all) => {
|
|
9
|
-
__markAsModule(target);
|
|
10
9
|
for (var name in all)
|
|
11
10
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
11
|
};
|
|
13
|
-
var __reExport = (target, module2, desc) => {
|
|
12
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
|
14
13
|
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
15
14
|
for (let key of __getOwnPropNames(module2))
|
|
16
|
-
if (!__hasOwnProp.call(target, key) && key !== "default")
|
|
15
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
17
16
|
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
18
17
|
}
|
|
19
18
|
return target;
|
|
20
19
|
};
|
|
21
|
-
var
|
|
22
|
-
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default",
|
|
20
|
+
var __toESM = (module2, isNodeMode) => {
|
|
21
|
+
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
23
22
|
};
|
|
24
|
-
|
|
23
|
+
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
24
|
+
return (module2, temp) => {
|
|
25
|
+
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
|
+
};
|
|
27
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
+
var fetch_host_app_data_exports = {};
|
|
29
|
+
__export(fetch_host_app_data_exports, {
|
|
25
30
|
fetchHostAppData: () => fetchHostAppData
|
|
26
31
|
});
|
|
27
|
-
var import_lodash =
|
|
28
|
-
var import_store =
|
|
29
|
-
var import_message_to_host_app =
|
|
30
|
-
var import_host_binding_events =
|
|
32
|
+
var import_lodash = __toESM(require("lodash"));
|
|
33
|
+
var import_store = require("./store.js");
|
|
34
|
+
var import_message_to_host_app = require("../message-to-host-app/index.js");
|
|
35
|
+
var import_host_binding_events = require("../host-binding-events/index.js");
|
|
31
36
|
const fetchHostAppData = (hostedAppUrl, guestAppId) => {
|
|
32
37
|
const isDataExist = (0, import_store.isHostAppDataExist)();
|
|
33
38
|
return new Promise((resolve) => {
|
|
@@ -39,3 +44,4 @@ const fetchHostAppData = (hostedAppUrl, guestAppId) => {
|
|
|
39
44
|
}
|
|
40
45
|
});
|
|
41
46
|
};
|
|
47
|
+
module.exports = __toCommonJS(fetch_host_app_data_exports);
|
|
@@ -1,35 +1,50 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
1
|
var __defProp = Object.defineProperty;
|
|
3
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
7
19
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
20
|
var __export = (target, all) => {
|
|
9
|
-
__markAsModule(target);
|
|
10
21
|
for (var name in all)
|
|
11
22
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
23
|
};
|
|
13
|
-
var __reExport = (target, module2, desc) => {
|
|
24
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
|
14
25
|
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
15
26
|
for (let key of __getOwnPropNames(module2))
|
|
16
|
-
if (!__hasOwnProp.call(target, key) && key !== "default")
|
|
27
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
17
28
|
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
18
29
|
}
|
|
19
30
|
return target;
|
|
20
31
|
};
|
|
21
|
-
var
|
|
22
|
-
return
|
|
23
|
-
};
|
|
24
|
-
|
|
32
|
+
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
33
|
+
return (module2, temp) => {
|
|
34
|
+
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
35
|
+
};
|
|
36
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
37
|
+
var store_exports = {};
|
|
38
|
+
__export(store_exports, {
|
|
25
39
|
getHostAppDataByKey: () => getHostAppDataByKey,
|
|
26
40
|
isHostAppDataExist: () => isHostAppDataExist,
|
|
27
41
|
setHostAppData: () => setHostAppData
|
|
28
42
|
});
|
|
29
|
-
var import_lodash =
|
|
43
|
+
var import_lodash = require("lodash");
|
|
30
44
|
let hostAppData = {};
|
|
31
45
|
const setHostAppData = (appData) => {
|
|
32
|
-
hostAppData = {
|
|
46
|
+
hostAppData = __spreadValues(__spreadValues({}, hostAppData), appData);
|
|
33
47
|
};
|
|
34
48
|
const getHostAppDataByKey = (key = "", defaultValue = null) => (0, import_lodash.get)(hostAppData, key, defaultValue);
|
|
35
49
|
const isHostAppDataExist = () => hostAppData && Object.keys(hostAppData).length > 0;
|
|
50
|
+
module.exports = __toCommonJS(store_exports);
|
|
@@ -1,46 +1,77 @@
|
|
|
1
1
|
var __create = Object.create;
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defProps = Object.defineProperties;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
8
|
var __getProtoOf = Object.getPrototypeOf;
|
|
6
9
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
11
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
12
|
+
var __spreadValues = (a, b) => {
|
|
13
|
+
for (var prop in b || (b = {}))
|
|
14
|
+
if (__hasOwnProp.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
if (__getOwnPropSymbols)
|
|
17
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
18
|
+
if (__propIsEnum.call(b, prop))
|
|
19
|
+
__defNormalProp(a, prop, b[prop]);
|
|
20
|
+
}
|
|
21
|
+
return a;
|
|
22
|
+
};
|
|
23
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
7
24
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
25
|
+
var __objRest = (source, exclude) => {
|
|
26
|
+
var target = {};
|
|
27
|
+
for (var prop in source)
|
|
28
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
29
|
+
target[prop] = source[prop];
|
|
30
|
+
if (source != null && __getOwnPropSymbols)
|
|
31
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
32
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
33
|
+
target[prop] = source[prop];
|
|
34
|
+
}
|
|
35
|
+
return target;
|
|
36
|
+
};
|
|
8
37
|
var __export = (target, all) => {
|
|
9
|
-
__markAsModule(target);
|
|
10
38
|
for (var name in all)
|
|
11
39
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
40
|
};
|
|
13
|
-
var __reExport = (target, module2, desc) => {
|
|
41
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
|
14
42
|
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
15
43
|
for (let key of __getOwnPropNames(module2))
|
|
16
|
-
if (!__hasOwnProp.call(target, key) && key !== "default")
|
|
44
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
17
45
|
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
18
46
|
}
|
|
19
47
|
return target;
|
|
20
48
|
};
|
|
21
|
-
var
|
|
22
|
-
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default",
|
|
49
|
+
var __toESM = (module2, isNodeMode) => {
|
|
50
|
+
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
23
51
|
};
|
|
24
|
-
|
|
25
|
-
|
|
52
|
+
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
53
|
+
return (module2, temp) => {
|
|
54
|
+
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
55
|
+
};
|
|
56
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
57
|
+
var check_box_exports = {};
|
|
58
|
+
__export(check_box_exports, {
|
|
26
59
|
CheckBox: () => CheckBox
|
|
27
60
|
});
|
|
28
|
-
var React =
|
|
29
|
-
var
|
|
30
|
-
var import_react_hook_form =
|
|
31
|
-
const CheckBox = ({
|
|
32
|
-
name,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
})
|
|
46
|
-
});
|
|
61
|
+
var React = __toESM(require("react"));
|
|
62
|
+
var import_ds_controlled_form = require("@elliemae/ds-controlled-form");
|
|
63
|
+
var import_react_hook_form = require("react-hook-form");
|
|
64
|
+
const CheckBox = (_a) => {
|
|
65
|
+
var _b = _a, { name, rules = {} } = _b, rest = __objRest(_b, ["name", "rules"]);
|
|
66
|
+
return /* @__PURE__ */ React.createElement(import_react_hook_form.Controller, {
|
|
67
|
+
name,
|
|
68
|
+
rules,
|
|
69
|
+
render: (_a2) => {
|
|
70
|
+
var { field: _b2 } = _a2, _c = _b2, { value = false } = _c, restProps = __objRest(_c, ["value"]);
|
|
71
|
+
return /* @__PURE__ */ React.createElement(import_ds_controlled_form.DSControlledCheckbox, __spreadProps(__spreadValues(__spreadValues({}, rest), restProps), {
|
|
72
|
+
checked: value
|
|
73
|
+
}));
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
};
|
|
77
|
+
module.exports = __toCommonJS(check_box_exports);
|
|
@@ -1,49 +1,89 @@
|
|
|
1
1
|
var __create = Object.create;
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defProps = Object.defineProperties;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
8
|
var __getProtoOf = Object.getPrototypeOf;
|
|
6
9
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
11
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
12
|
+
var __spreadValues = (a, b) => {
|
|
13
|
+
for (var prop in b || (b = {}))
|
|
14
|
+
if (__hasOwnProp.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
if (__getOwnPropSymbols)
|
|
17
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
18
|
+
if (__propIsEnum.call(b, prop))
|
|
19
|
+
__defNormalProp(a, prop, b[prop]);
|
|
20
|
+
}
|
|
21
|
+
return a;
|
|
22
|
+
};
|
|
23
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
7
24
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
25
|
+
var __objRest = (source, exclude) => {
|
|
26
|
+
var target = {};
|
|
27
|
+
for (var prop in source)
|
|
28
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
29
|
+
target[prop] = source[prop];
|
|
30
|
+
if (source != null && __getOwnPropSymbols)
|
|
31
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
32
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
33
|
+
target[prop] = source[prop];
|
|
34
|
+
}
|
|
35
|
+
return target;
|
|
36
|
+
};
|
|
8
37
|
var __export = (target, all) => {
|
|
9
|
-
__markAsModule(target);
|
|
10
38
|
for (var name in all)
|
|
11
39
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
40
|
};
|
|
13
|
-
var __reExport = (target, module2, desc) => {
|
|
41
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
|
14
42
|
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
15
43
|
for (let key of __getOwnPropNames(module2))
|
|
16
|
-
if (!__hasOwnProp.call(target, key) && key !== "default")
|
|
44
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
17
45
|
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
18
46
|
}
|
|
19
47
|
return target;
|
|
20
48
|
};
|
|
21
|
-
var
|
|
22
|
-
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default",
|
|
49
|
+
var __toESM = (module2, isNodeMode) => {
|
|
50
|
+
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
23
51
|
};
|
|
24
|
-
|
|
52
|
+
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
53
|
+
return (module2, temp) => {
|
|
54
|
+
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
55
|
+
};
|
|
56
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
57
|
+
var combo_box_exports = {};
|
|
58
|
+
__export(combo_box_exports, {
|
|
25
59
|
ComboBox: () => ComboBox
|
|
26
60
|
});
|
|
27
|
-
var React =
|
|
28
|
-
var import_ComboBox =
|
|
29
|
-
var import_react_hook_form =
|
|
30
|
-
const ComboBox = ({
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
61
|
+
var React = __toESM(require("react"));
|
|
62
|
+
var import_ComboBox = __toESM(require("@elliemae/ds-form/ComboBox"));
|
|
63
|
+
var import_react_hook_form = require("react-hook-form");
|
|
64
|
+
const ComboBox = (_a) => {
|
|
65
|
+
var _b = _a, {
|
|
66
|
+
name,
|
|
67
|
+
defaultValue = "",
|
|
68
|
+
rules = {}
|
|
69
|
+
} = _b, rest = __objRest(_b, [
|
|
70
|
+
"name",
|
|
71
|
+
"defaultValue",
|
|
72
|
+
"rules"
|
|
73
|
+
]);
|
|
74
|
+
return /* @__PURE__ */ React.createElement(import_react_hook_form.Controller, {
|
|
75
|
+
name,
|
|
76
|
+
rules,
|
|
77
|
+
defaultValue,
|
|
78
|
+
render: (_a2) => {
|
|
79
|
+
var { field: _b2 } = _a2, _c = _b2, { onChange } = _c, props = __objRest(_c, ["onChange"]);
|
|
80
|
+
return /* @__PURE__ */ React.createElement(import_ComboBox.default, __spreadProps(__spreadValues(__spreadValues({}, rest), props), {
|
|
81
|
+
onChange: (selected) => {
|
|
82
|
+
const { value = selected } = selected;
|
|
83
|
+
onChange(value);
|
|
84
|
+
}
|
|
85
|
+
}));
|
|
47
86
|
}
|
|
48
|
-
})
|
|
49
|
-
}
|
|
87
|
+
});
|
|
88
|
+
};
|
|
89
|
+
module.exports = __toCommonJS(combo_box_exports);
|
|
@@ -1,33 +1,46 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
1
|
var __defProp = Object.defineProperty;
|
|
3
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
7
19
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
20
|
var __export = (target, all) => {
|
|
9
|
-
__markAsModule(target);
|
|
10
21
|
for (var name in all)
|
|
11
22
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
23
|
};
|
|
13
|
-
var __reExport = (target, module2, desc) => {
|
|
24
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
|
14
25
|
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
15
26
|
for (let key of __getOwnPropNames(module2))
|
|
16
|
-
if (!__hasOwnProp.call(target, key) && key !== "default")
|
|
27
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
17
28
|
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
18
29
|
}
|
|
19
30
|
return target;
|
|
20
31
|
};
|
|
21
|
-
var
|
|
22
|
-
return
|
|
23
|
-
};
|
|
24
|
-
|
|
32
|
+
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
33
|
+
return (module2, temp) => {
|
|
34
|
+
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
35
|
+
};
|
|
36
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
37
|
+
var connect_form_exports = {};
|
|
38
|
+
__export(connect_form_exports, {
|
|
25
39
|
ConnectForm: () => ConnectForm
|
|
26
40
|
});
|
|
27
|
-
var import_react_hook_form =
|
|
41
|
+
var import_react_hook_form = require("react-hook-form");
|
|
28
42
|
const ConnectForm = ({ children }) => {
|
|
29
43
|
const methods = (0, import_react_hook_form.useFormContext)();
|
|
30
|
-
return children({
|
|
31
|
-
...methods
|
|
32
|
-
});
|
|
44
|
+
return children(__spreadValues({}, methods));
|
|
33
45
|
};
|
|
46
|
+
module.exports = __toCommonJS(connect_form_exports);
|