@elliemae/pui-app-sdk 2.16.1 → 3.0.0-beta.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/dist/cjs/analytics/appdynamics.js +34 -30
- package/dist/cjs/analytics/index.js +32 -26
- package/dist/cjs/analytics/page-view-event.js +33 -29
- package/dist/cjs/analytics/user-session-event.js +34 -27
- package/dist/cjs/analytics/user-wait-event.js +31 -17
- package/dist/cjs/analytics/web-analytics.js +16 -19
- package/dist/cjs/api/auth/index.js +41 -39
- package/dist/cjs/api/helpers.js +33 -99
- package/dist/cjs/api/users/index.js +28 -16
- package/dist/cjs/communication/http-client/index.js +44 -48
- package/dist/cjs/communication/http-client/request-interceptor.js +28 -12
- package/dist/cjs/communication/http-client/response-interceptor.js +41 -38
- package/dist/cjs/communication/http-client/retry-axios.js +68 -122
- package/dist/cjs/communication/http-client/retry.js +42 -36
- package/dist/cjs/communication/http-client/tests/index.test-disable.js +48 -56
- package/dist/cjs/data/auth/actions.js +17 -26
- package/dist/cjs/data/auth/reducer.js +30 -18
- package/dist/cjs/data/breakpoint/index.js +38 -32
- package/dist/cjs/data/error/index.js +33 -18
- package/dist/cjs/data/live-message/index.js +34 -25
- package/dist/cjs/data/logout/actions.js +12 -9
- package/dist/cjs/data/navigation-prompt/actions.js +12 -9
- package/dist/cjs/data/react-redux.js +29 -13
- package/dist/cjs/data/reducers.js +35 -23
- package/dist/cjs/data/saga.js +12 -9
- package/dist/cjs/data/store.js +53 -60
- package/dist/cjs/data/wait-message/actions.js +14 -13
- package/dist/cjs/data/wait-message/reducer.js +32 -24
- package/dist/cjs/index.js +187 -800
- package/dist/cjs/route/index.js +37 -32
- package/dist/cjs/route/page-view.js +30 -22
- package/dist/cjs/route/private-route/index.js +52 -60
- package/dist/cjs/sideeffect/auth/index.js +42 -30
- package/dist/cjs/sideeffect/error-toast/index.js +39 -26
- package/dist/cjs/sideeffect/wait-message/index.js +45 -29
- package/dist/cjs/typings/custom.d.js +0 -1
- package/dist/cjs/typings/elliemae.d.js +0 -1
- package/dist/cjs/typings/styled.d.js +19 -3
- package/dist/cjs/utils/app-config/config.js +33 -33
- package/dist/cjs/utils/app-config/index.js +42 -44
- package/dist/cjs/utils/app-host-integration/react.js +27 -14
- package/dist/cjs/utils/auth/helper.js +30 -18
- package/dist/cjs/utils/auth/index.js +76 -116
- package/dist/cjs/utils/await.js +3 -0
- package/dist/cjs/utils/constants.js +22 -21
- package/dist/cjs/utils/font-size.js +13 -14
- package/dist/cjs/utils/guest-with-service.js +11 -12
- package/dist/cjs/utils/helpers.js +15 -19
- package/dist/cjs/utils/history.js +29 -12
- package/dist/cjs/utils/log-records.js +38 -35
- package/dist/cjs/utils/micro-frontend/console-logger.js +39 -23
- package/dist/cjs/utils/micro-frontend/guest.js +80 -128
- package/dist/cjs/utils/micro-frontend/host.js +84 -124
- package/dist/cjs/utils/micro-frontend/index.js +60 -61
- package/dist/cjs/utils/micro-frontend/types.js +3 -5
- package/dist/cjs/utils/redact-pii.js +15 -17
- package/dist/cjs/utils/service-worker.js +36 -21
- package/dist/cjs/utils/session.js +64 -70
- package/dist/cjs/utils/storybook/main.js +32 -25
- package/dist/cjs/utils/storybook/manager.js +31 -16
- package/dist/cjs/utils/storybook/middleware.js +3 -7
- package/dist/cjs/utils/storybook/preview.js +57 -48
- package/dist/cjs/utils/storybook/theme.js +30 -14
- package/dist/cjs/utils/storybook/vite.js +6 -0
- package/dist/cjs/utils/storybook/webpack.js +13 -0
- package/dist/cjs/utils/testing/index.js +38 -50
- package/dist/cjs/utils/testing/render-with-redux.js +34 -27
- package/dist/cjs/utils/testing/render-with-router-redux.js +40 -37
- package/dist/cjs/utils/testing/render-with-router.js +34 -28
- package/dist/cjs/utils/testing/render-with-state-addons.js +40 -36
- package/dist/cjs/utils/types.js +3 -0
- package/dist/cjs/utils/url.js +12 -13
- package/dist/cjs/utils/web-storage.js +40 -30
- package/dist/cjs/utils/window.js +36 -28
- package/dist/cjs/view/app-root/hosted-app.js +35 -32
- package/dist/cjs/view/app-root/index.js +57 -62
- package/dist/cjs/view/app-root/stand-alone-app.js +38 -37
- package/dist/cjs/view/app-root/style.js +50 -12
- package/dist/cjs/view/error-boundary/default-error-template.js +10 -15
- package/dist/cjs/view/error-boundary/index.js +41 -43
- package/dist/cjs/view/error-toast/index.js +42 -32
- package/dist/cjs/view/fetch-host-app-data/index.js +34 -26
- package/dist/cjs/view/fetch-host-app-data/store.js +31 -24
- package/dist/cjs/view/fields/check-box/index.js +34 -39
- package/dist/cjs/view/fields/combo-box/index.js +37 -31
- package/dist/cjs/view/fields/connect-form.js +30 -15
- package/dist/cjs/view/fields/date-input/index.js +34 -26
- package/dist/cjs/view/fields/date-picker/index.js +34 -26
- package/dist/cjs/view/fields/form-item-layout/index.js +36 -30
- package/dist/cjs/view/fields/input-mask/index.js +35 -41
- package/dist/cjs/view/fields/large-text-box/index.js +34 -26
- package/dist/cjs/view/fields/radio/index.js +34 -30
- package/dist/cjs/view/fields/radio-group/index.js +32 -27
- package/dist/cjs/view/fields/text-box/index.js +34 -26
- package/dist/cjs/view/fields/watch-value.js +41 -35
- package/dist/cjs/view/form/index.js +41 -34
- package/dist/cjs/view/form/personal-info-section.js +56 -80
- package/dist/cjs/view/form/submit-button/index.js +34 -23
- package/dist/cjs/view/guest-unload-handlers/index.js +33 -22
- package/dist/cjs/view/header/center-region/index.js +61 -38
- package/dist/cjs/view/header/index.js +41 -35
- package/dist/cjs/view/header/logo-region/index.js +31 -23
- package/dist/cjs/view/header/nav-region/index.js +44 -30
- package/dist/cjs/view/header/nav-region/notification/index.js +28 -18
- package/dist/cjs/view/header/nav-region/user/index.js +28 -18
- package/dist/cjs/view/host-binding-events/index.js +10 -11
- package/dist/cjs/view/live-message/index.js +33 -34
- package/dist/cjs/view/loadable/index.js +33 -27
- package/dist/cjs/view/login/index.js +36 -30
- package/dist/cjs/view/media-breakpoint/index.js +43 -34
- package/dist/cjs/view/message-to-host-app/index.js +31 -20
- package/dist/cjs/view/micro-app/app-factory/index.js +98 -134
- package/dist/cjs/view/micro-app/const.js +10 -7
- package/dist/cjs/view/micro-app/index.js +37 -27
- package/dist/cjs/view/micro-app/resources/manifest.js +41 -34
- package/dist/cjs/view/micro-app/resources/script.js +56 -53
- package/dist/cjs/view/micro-app/resources/style.js +44 -38
- package/dist/cjs/view/micro-app/types.js +3 -5
- package/dist/cjs/view/micro-app/use-app-will-render.js +58 -50
- package/dist/cjs/view/micro-app/utils.js +32 -21
- package/dist/cjs/view/micro-iframe-app/app.js +37 -39
- package/dist/cjs/view/micro-iframe-app/iframe/const.js +10 -7
- package/dist/cjs/view/micro-iframe-app/iframe/index.js +51 -47
- package/dist/cjs/view/micro-iframe-app/index.js +36 -24
- package/dist/cjs/view/micro-iframe-app/types.js +3 -5
- package/dist/cjs/view/micro-iframe-app/use-frame-loaded.js +40 -36
- package/dist/cjs/view/modals/error/index.js +35 -28
- package/dist/cjs/view/modals/navigation-prompt/index.js +38 -37
- package/dist/cjs/view/modals/session-expiry/customHooks.js +40 -35
- package/dist/cjs/view/modals/session-expiry/index.js +45 -50
- package/dist/cjs/view/modals/wait-message/html-wait-message.js +32 -18
- package/dist/cjs/view/modals/wait-message/index.js +50 -53
- package/dist/cjs/view/modals/wait-message/wait-message-launcher.js +33 -21
- package/dist/cjs/view/render-with-delay/index.js +30 -19
- package/dist/cjs/view/render-with-host-data/index.js +35 -30
- package/dist/cjs/view/session-timeout/index.js +44 -35
- package/dist/cjs/view/storybook/decorator.js +32 -21
- package/dist/cjs/view/use-previous.js +29 -13
- package/dist/cjs/view/useMediaBreakpoints/index.js +34 -19
- package/dist/cjs/view/visually-hidden/index.js +41 -21
- package/dist/cjs/view/window-size/index.js +37 -29
- package/dist/es/analytics/appdynamics.js +14 -15
- package/dist/es/analytics/index.js +11 -17
- package/dist/es/analytics/page-view-event.js +11 -20
- package/dist/es/analytics/user-session-event.js +13 -15
- package/dist/es/analytics/user-wait-event.js +10 -6
- package/dist/es/analytics/web-analytics.js +12 -10
- package/dist/es/api/auth/index.js +22 -27
- package/dist/es/api/helpers.js +8 -81
- package/dist/es/api/users/index.js +7 -8
- package/dist/es/communication/http-client/index.js +24 -30
- package/dist/es/communication/http-client/request-interceptor.js +6 -3
- package/dist/es/communication/http-client/response-interceptor.js +20 -21
- package/dist/es/communication/http-client/retry-axios.js +45 -105
- package/dist/es/communication/http-client/retry.js +22 -25
- package/dist/es/communication/http-client/tests/index.test-disable.js +28 -47
- package/dist/es/data/auth/actions.js +13 -19
- package/dist/es/data/auth/reducer.js +9 -7
- package/dist/es/data/breakpoint/index.js +19 -21
- package/dist/es/data/error/index.js +11 -9
- package/dist/es/data/live-message/index.js +12 -16
- package/dist/es/data/logout/actions.js +9 -5
- package/dist/es/data/navigation-prompt/actions.js +9 -5
- package/dist/es/data/react-redux.js +7 -3
- package/dist/es/data/reducers.js +10 -7
- package/dist/es/data/saga.js +8 -5
- package/dist/es/data/store.js +27 -44
- package/dist/es/data/wait-message/actions.js +11 -9
- package/dist/es/data/wait-message/reducer.js +10 -10
- package/dist/es/index.js +181 -83
- package/dist/es/route/index.js +16 -19
- package/dist/es/route/page-view.js +9 -9
- package/dist/es/route/private-route/index.js +30 -38
- package/dist/es/sideeffect/auth/index.js +27 -14
- package/dist/es/sideeffect/error-toast/index.js +15 -14
- package/dist/es/sideeffect/wait-message/index.js +18 -14
- package/dist/es/typings/styled.d.js +1 -1
- package/dist/es/utils/app-config/config.js +11 -9
- package/dist/es/utils/app-config/index.js +21 -31
- package/dist/es/utils/app-host-integration/react.js +8 -6
- package/dist/es/utils/auth/helper.js +8 -4
- package/dist/es/utils/auth/index.js +59 -83
- package/dist/es/utils/constants.js +18 -13
- package/dist/es/utils/font-size.js +7 -3
- package/dist/es/utils/guest-with-service.js +6 -7
- package/dist/es/utils/helpers.js +10 -6
- package/dist/es/utils/history.js +7 -3
- package/dist/es/utils/log-records.js +34 -31
- package/dist/es/utils/micro-frontend/console-logger.js +17 -13
- package/dist/es/utils/micro-frontend/guest.js +52 -108
- package/dist/es/utils/micro-frontend/host.js +53 -89
- package/dist/es/utils/micro-frontend/index.js +39 -37
- package/dist/es/utils/micro-frontend/types.js +0 -1
- package/dist/es/utils/redact-pii.js +10 -11
- package/dist/es/utils/service-worker.js +14 -11
- package/dist/es/utils/session.js +47 -48
- package/dist/es/utils/storybook/manager.js +8 -5
- package/dist/es/utils/storybook/preview.js +30 -26
- package/dist/es/utils/storybook/theme.js +9 -6
- package/dist/es/utils/testing/index.js +14 -21
- package/dist/es/utils/testing/render-with-redux.js +13 -13
- package/dist/es/utils/testing/render-with-router-redux.js +19 -21
- package/dist/es/utils/testing/render-with-router.js +14 -16
- package/dist/es/utils/testing/render-with-state-addons.js +18 -18
- package/dist/es/utils/url.js +7 -3
- package/dist/es/utils/web-storage.js +21 -17
- package/dist/es/utils/window.js +18 -18
- package/dist/es/view/app-root/hosted-app.js +13 -17
- package/dist/es/view/app-root/index.js +34 -39
- package/dist/es/view/app-root/stand-alone-app.js +17 -19
- package/dist/es/view/app-root/style.js +30 -5
- package/dist/es/view/error-boundary/default-error-template.js +4 -5
- package/dist/es/view/error-boundary/index.js +20 -27
- package/dist/es/view/error-toast/index.js +21 -16
- package/dist/es/view/fetch-host-app-data/index.js +13 -13
- package/dist/es/view/fetch-host-app-data/store.js +10 -7
- package/dist/es/view/fields/check-box/index.js +16 -18
- package/dist/es/view/fields/combo-box/index.js +19 -19
- package/dist/es/view/fields/connect-form.js +8 -6
- package/dist/es/view/fields/date-input/index.js +16 -14
- package/dist/es/view/fields/date-picker/index.js +16 -14
- package/dist/es/view/fields/form-item-layout/index.js +15 -16
- package/dist/es/view/fields/input-mask/index.js +20 -14
- package/dist/es/view/fields/large-text-box/index.js +16 -14
- package/dist/es/view/fields/radio/index.js +16 -18
- package/dist/es/view/fields/radio-group/index.js +14 -15
- package/dist/es/view/fields/text-box/index.js +16 -14
- package/dist/es/view/fields/watch-value.js +19 -24
- package/dist/es/view/form/index.js +22 -22
- package/dist/es/view/form/personal-info-section.js +31 -52
- package/dist/es/view/form/submit-button/index.js +12 -10
- package/dist/es/view/guest-unload-handlers/index.js +11 -10
- package/dist/es/view/header/center-region/index.js +40 -23
- package/dist/es/view/header/index.js +19 -19
- package/dist/es/view/header/logo-region/index.js +8 -9
- package/dist/es/view/header/nav-region/index.js +22 -15
- package/dist/es/view/header/nav-region/notification/index.js +5 -6
- package/dist/es/view/header/nav-region/user/index.js +5 -6
- package/dist/es/view/host-binding-events/index.js +7 -3
- package/dist/es/view/live-message/index.js +13 -23
- package/dist/es/view/loadable/index.js +12 -15
- package/dist/es/view/login/index.js +14 -18
- package/dist/es/view/media-breakpoint/index.js +19 -17
- package/dist/es/view/message-to-host-app/index.js +11 -10
- package/dist/es/view/micro-app/app-factory/index.js +67 -86
- package/dist/es/view/micro-app/const.js +4 -1
- package/dist/es/view/micro-app/index.js +13 -11
- package/dist/es/view/micro-app/resources/manifest.js +19 -19
- package/dist/es/view/micro-app/resources/script.js +36 -36
- package/dist/es/view/micro-app/resources/style.js +23 -22
- package/dist/es/view/micro-app/types.js +0 -1
- package/dist/es/view/micro-app/use-app-will-render.js +32 -28
- package/dist/es/view/micro-app/utils.js +12 -14
- package/dist/es/view/micro-iframe-app/app.js +15 -22
- package/dist/es/view/micro-iframe-app/iframe/const.js +4 -1
- package/dist/es/view/micro-iframe-app/iframe/index.js +27 -32
- package/dist/es/view/micro-iframe-app/index.js +11 -12
- package/dist/es/view/micro-iframe-app/types.js +0 -1
- package/dist/es/view/micro-iframe-app/use-frame-loaded.js +16 -21
- package/dist/es/view/modals/error/index.js +12 -10
- package/dist/es/view/modals/navigation-prompt/index.js +12 -16
- package/dist/es/view/modals/session-expiry/customHooks.js +13 -15
- package/dist/es/view/modals/session-expiry/index.js +16 -24
- package/dist/es/view/modals/wait-message/html-wait-message.js +10 -10
- package/dist/es/view/modals/wait-message/index.js +31 -39
- package/dist/es/view/modals/wait-message/wait-message-launcher.js +9 -8
- package/dist/es/view/render-with-delay/index.js +7 -10
- package/dist/es/view/render-with-host-data/index.js +11 -15
- package/dist/es/view/session-timeout/index.js +21 -12
- package/dist/es/view/storybook/decorator.js +9 -7
- package/dist/es/view/use-previous.js +6 -3
- package/dist/es/view/useMediaBreakpoints/index.js +11 -9
- package/dist/es/view/visually-hidden/index.js +19 -10
- package/dist/es/view/window-size/index.js +16 -19
- package/dist/types/utils/storybook/main.d.cts +41 -0
- package/dist/types/utils/storybook/{middleware.d.ts → middleware.d.cts} +0 -0
- package/dist/types/utils/storybook/preview.d.ts +2 -2
- package/dist/types/utils/storybook/vite.d.cts +4 -0
- package/dist/types/utils/storybook/webpack.d.cts +8 -0
- package/dist/types/utils/window.d.ts +1 -1
- package/dist/types/view/visually-hidden/index.d.ts +1 -3
- package/package.json +7 -5
- package/dist/cjs/api/users/index.endpoint.js +0 -14
- package/dist/cjs/api/users/users.json +0 -8
- package/dist/cjs/app.config.json +0 -129
- package/dist/cjs/communication/http-client/tests/hello.endpoint.js +0 -14
- package/dist/cjs/communication/http-client/tests/private.endpoint.js +0 -14
- package/dist/cjs/index.pug +0 -15
- package/dist/cjs/view/error-toast/index.stories.js +0 -128
- package/dist/cjs/view/fields/check-box/index.stories.js +0 -64
- package/dist/cjs/view/fields/check-box/set-value.stories.js +0 -83
- package/dist/cjs/view/fields/combo-box/index.stories.js +0 -65
- package/dist/cjs/view/fields/date-input/index.stories.js +0 -53
- package/dist/cjs/view/fields/date-input/index1.stories.js +0 -53
- package/dist/cjs/view/fields/date-picker/index.stories.js +0 -53
- package/dist/cjs/view/fields/form-item-layout/index.stories.js +0 -43
- package/dist/cjs/view/fields/input-mask/index.stories.js +0 -52
- package/dist/cjs/view/fields/large-text-box/index.stories.js +0 -47
- package/dist/cjs/view/fields/radio/index.stories.js +0 -60
- package/dist/cjs/view/fields/radio/set-value.stories.js +0 -81
- package/dist/cjs/view/fields/radio-group/index.stories.js +0 -85
- package/dist/cjs/view/fields/text-box/index.stories.js +0 -48
- package/dist/cjs/view/form/index.stories.js +0 -71
- package/dist/cjs/view/form/usecases.stories.js +0 -59
- package/dist/cjs/view/header/index.stories.js +0 -24
- package/dist/cjs/view/header/logo-region/logo.svg +0 -2
- package/dist/cjs/view/header/nav-region/notification/index.svg +0 -5
- package/dist/cjs/view/header/nav-region/user/index.svg +0 -4
- package/dist/cjs/view/intro.stories.mdx +0 -27
- package/dist/cjs/view/live-message/index.stories.js +0 -53
- package/dist/cjs/view/media-breakpoint/index.stories.js +0 -24
- package/dist/cjs/view/micro-iframe-app/iframe/index.html +0 -74
- package/dist/cjs/view/modals/error/index.stories.js +0 -36
- package/dist/cjs/view/modals/navigation-prompt/index.stories.js +0 -32
- package/dist/cjs/view/modals/session-expiry/index.stories.js +0 -30
- package/dist/cjs/view/modals/wait-message/index.stories.js +0 -47
- package/dist/cjs/view/session-timeout/index.stories.js +0 -28
- package/dist/es/api/users/index.endpoint.js +0 -14
- package/dist/es/api/users/users.json +0 -8
- package/dist/es/app.config.json +0 -129
- package/dist/es/communication/http-client/tests/hello.endpoint.js +0 -14
- package/dist/es/communication/http-client/tests/private.endpoint.js +0 -14
- package/dist/es/index.pug +0 -15
- package/dist/es/utils/storybook/main.js +0 -38
- package/dist/es/utils/storybook/middleware.js +0 -9
- package/dist/es/view/error-toast/index.stories.js +0 -108
- package/dist/es/view/fields/check-box/index.stories.js +0 -47
- package/dist/es/view/fields/check-box/set-value.stories.js +0 -65
- package/dist/es/view/fields/combo-box/index.stories.js +0 -48
- package/dist/es/view/fields/date-input/index.stories.js +0 -35
- package/dist/es/view/fields/date-input/index1.stories.js +0 -35
- package/dist/es/view/fields/date-picker/index.stories.js +0 -35
- package/dist/es/view/fields/form-item-layout/index.stories.js +0 -27
- package/dist/es/view/fields/input-mask/index.stories.js +0 -35
- package/dist/es/view/fields/large-text-box/index.stories.js +0 -30
- package/dist/es/view/fields/radio/index.stories.js +0 -43
- package/dist/es/view/fields/radio/set-value.stories.js +0 -63
- package/dist/es/view/fields/radio-group/index.stories.js +0 -68
- package/dist/es/view/fields/text-box/index.stories.js +0 -31
- package/dist/es/view/form/index.stories.js +0 -56
- package/dist/es/view/form/usecases.stories.js +0 -43
- package/dist/es/view/header/index.stories.js +0 -14
- package/dist/es/view/header/logo-region/logo.svg +0 -2
- package/dist/es/view/header/nav-region/notification/index.svg +0 -5
- package/dist/es/view/header/nav-region/user/index.svg +0 -4
- package/dist/es/view/intro.stories.mdx +0 -27
- package/dist/es/view/live-message/index.stories.js +0 -32
- package/dist/es/view/media-breakpoint/index.stories.js +0 -10
- package/dist/es/view/micro-iframe-app/iframe/index.html +0 -74
- package/dist/es/view/modals/error/index.stories.js +0 -21
- package/dist/es/view/modals/navigation-prompt/index.stories.js +0 -18
- package/dist/es/view/modals/session-expiry/index.stories.js +0 -18
- package/dist/es/view/modals/wait-message/index.stories.js +0 -33
- package/dist/es/view/session-timeout/index.stories.js +0 -13
- package/dist/types/utils/storybook/main.d.ts +0 -30
- package/dist/types/view/fields/date-input/index1.stories.d.ts +0 -24
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.default = exports.Basic = void 0;
|
|
9
|
-
|
|
10
|
-
var _jsx2 = _interopRequireDefault(require("@babel/runtime/helpers/jsx"));
|
|
11
|
-
|
|
12
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
13
|
-
|
|
14
|
-
var _reactAriaLive = require("react-aria-live");
|
|
15
|
-
|
|
16
|
-
var _reactRedux = require("../../data/react-redux.js");
|
|
17
|
-
|
|
18
|
-
var _index = require("../../data/live-message/index.js");
|
|
19
|
-
|
|
20
|
-
var _index2 = require("./index.js");
|
|
21
|
-
|
|
22
|
-
var _LiveMessage, _LiveMessageStory;
|
|
23
|
-
|
|
24
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
25
|
-
|
|
26
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
27
|
-
|
|
28
|
-
var _default = {
|
|
29
|
-
title: 'A11y/LiveMessage',
|
|
30
|
-
component: _index2.LiveMessage
|
|
31
|
-
};
|
|
32
|
-
exports.default = _default;
|
|
33
|
-
|
|
34
|
-
const LiveMessageStory = () => {
|
|
35
|
-
const dispatch = (0, _reactRedux.useAppDispatch)();
|
|
36
|
-
return /*#__PURE__*/(0, _jsx2.default)(_reactAriaLive.LiveAnnouncer, {}, void 0, _LiveMessage || (_LiveMessage = /*#__PURE__*/(0, _jsx2.default)(_index2.LiveMessage, {})), /*#__PURE__*/(0, _jsx2.default)("button", {
|
|
37
|
-
type: "button",
|
|
38
|
-
onClick: () => dispatch(_index.actions.announce({
|
|
39
|
-
message: 'Page changed',
|
|
40
|
-
ariaLive: 'polite'
|
|
41
|
-
}))
|
|
42
|
-
}, void 0, "Announce"));
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
const Basic = () => {
|
|
46
|
-
const [show, setShow] = (0, _react.useState)(false);
|
|
47
|
-
(0, _react.useEffect)(() => {
|
|
48
|
-
setShow(true);
|
|
49
|
-
}, []);
|
|
50
|
-
return show ? _LiveMessageStory || (_LiveMessageStory = /*#__PURE__*/(0, _jsx2.default)(LiveMessageStory, {})) : null;
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
exports.Basic = Basic;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.default = exports.Basic = void 0;
|
|
9
|
-
|
|
10
|
-
var _jsx2 = _interopRequireDefault(require("@babel/runtime/helpers/jsx"));
|
|
11
|
-
|
|
12
|
-
var _index = require("./index.js");
|
|
13
|
-
|
|
14
|
-
var _MediaBreakpoint;
|
|
15
|
-
|
|
16
|
-
var _default = {
|
|
17
|
-
title: 'Components/MediaBreakpoint',
|
|
18
|
-
component: _index.MediaBreakpoint
|
|
19
|
-
};
|
|
20
|
-
exports.default = _default;
|
|
21
|
-
|
|
22
|
-
const Basic = () => _MediaBreakpoint || (_MediaBreakpoint = /*#__PURE__*/(0, _jsx2.default)(_index.MediaBreakpoint, {}));
|
|
23
|
-
|
|
24
|
-
exports.Basic = Basic;
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<!-- The first thing in any HTML file should be the charset -->
|
|
5
|
-
<meta charset="utf-8" />
|
|
6
|
-
<!-- Make the page mobile compatible -->
|
|
7
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
8
|
-
<!-- Allow installing the app to the homescreen -->
|
|
9
|
-
<meta name="mobile-web-app-capable" content="yes" />
|
|
10
|
-
<link rel="icon" href="/favicon.ico" />
|
|
11
|
-
<title>Application</title>
|
|
12
|
-
<!-- Google Tag Manager -->
|
|
13
|
-
<!-- <script nonce="__CSP_NONCE__">
|
|
14
|
-
(function (w, d, s, l, i) {
|
|
15
|
-
w[l] = w[l] || [];
|
|
16
|
-
w[l].push({ 'gtm.start': new Date().getTime(), event: 'gtm.js' });
|
|
17
|
-
var f = d.getElementsByTagName(s)[0],
|
|
18
|
-
j = d.createElement(s),
|
|
19
|
-
dl = l != 'dataLayer' ? '&l=' + l : '';
|
|
20
|
-
j.async = true;
|
|
21
|
-
j.src =
|
|
22
|
-
'https://www.googletagmanager.com/gtm.js?id=' +
|
|
23
|
-
i +
|
|
24
|
-
dl;
|
|
25
|
-
f.parentNode.insertBefore(j, f);
|
|
26
|
-
})(window, document, 'script', 'dataLayer', window.emui.gtm.id);
|
|
27
|
-
</script> -->
|
|
28
|
-
<!-- <script nonce="__CSP_NONCE__">
|
|
29
|
-
window.emuiUserMonitoring = window.parent.emuiUserMonitoring || {
|
|
30
|
-
setCustomVirtualPageName: function () {},
|
|
31
|
-
startVirtualPageMonitoringWithAutoEnd: function () {},
|
|
32
|
-
};
|
|
33
|
-
</script> -->
|
|
34
|
-
<script>
|
|
35
|
-
(function (i, s, o, g, r, a, m) {
|
|
36
|
-
i['GoogleAnalyticsObject'] = r;
|
|
37
|
-
(i[r] =
|
|
38
|
-
i[r] ||
|
|
39
|
-
function () {
|
|
40
|
-
(i[r].q = i[r].q || []).push(arguments);
|
|
41
|
-
}),
|
|
42
|
-
(i[r].l = 1 * new Date());
|
|
43
|
-
(a = s.createElement(o)), (m = s.getElementsByTagName(o)[0]);
|
|
44
|
-
a.async = 1;
|
|
45
|
-
a.src = g;
|
|
46
|
-
m.parentNode.insertBefore(a, m);
|
|
47
|
-
})(
|
|
48
|
-
window,
|
|
49
|
-
document,
|
|
50
|
-
'script',
|
|
51
|
-
'https://www.google-analytics.com/analytics.js',
|
|
52
|
-
'ga',
|
|
53
|
-
);
|
|
54
|
-
</script>
|
|
55
|
-
<style>
|
|
56
|
-
.full-width {
|
|
57
|
-
width: 100%;
|
|
58
|
-
}
|
|
59
|
-
.full-height {
|
|
60
|
-
height: 100%;
|
|
61
|
-
}
|
|
62
|
-
</style>
|
|
63
|
-
</head>
|
|
64
|
-
|
|
65
|
-
<body class="full-width full-height">
|
|
66
|
-
<!-- Display a message if JS has been disabled on the browser. -->
|
|
67
|
-
<noscript
|
|
68
|
-
>If you're seeing this message, that means
|
|
69
|
-
<strong>JavaScript has been disabled on your browser</strong>, please
|
|
70
|
-
<strong>enable JS</strong> to make this app work.</noscript
|
|
71
|
-
>
|
|
72
|
-
<div id="pui-app-container-" class="full-width full-height"></div>
|
|
73
|
-
</body>
|
|
74
|
-
</html>
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.default = exports.CloseModal = exports.Basic = void 0;
|
|
9
|
-
|
|
10
|
-
var _jsx3 = _interopRequireDefault(require("@babel/runtime/helpers/jsx"));
|
|
11
|
-
|
|
12
|
-
var _index = require("./index.js");
|
|
13
|
-
|
|
14
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
-
|
|
16
|
-
var _default = {
|
|
17
|
-
title: 'Modals/Error',
|
|
18
|
-
component: _index.Error
|
|
19
|
-
};
|
|
20
|
-
exports.default = _default;
|
|
21
|
-
|
|
22
|
-
const Template = args => /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Error, { ...args
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
const Basic = Template.bind({});
|
|
26
|
-
exports.Basic = Basic;
|
|
27
|
-
Basic.args = {
|
|
28
|
-
name: 'Loan',
|
|
29
|
-
open: true,
|
|
30
|
-
children: /*#__PURE__*/(0, _jsx3.default)("h2", {}, void 0, "This is an error message")
|
|
31
|
-
};
|
|
32
|
-
const CloseModal = Template.bind({});
|
|
33
|
-
exports.CloseModal = CloseModal;
|
|
34
|
-
CloseModal.args = { ...Basic.args,
|
|
35
|
-
open: false
|
|
36
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.Close = exports.Basic = void 0;
|
|
7
|
-
|
|
8
|
-
var _index = require("./index.js");
|
|
9
|
-
|
|
10
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
-
|
|
12
|
-
var _default = {
|
|
13
|
-
title: 'Modals/NavigationPrompt',
|
|
14
|
-
component: _index.NavigationPrompt
|
|
15
|
-
};
|
|
16
|
-
exports.default = _default;
|
|
17
|
-
|
|
18
|
-
const Template = args => /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.NavigationPrompt, { ...args
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
const Basic = Template.bind({});
|
|
22
|
-
exports.Basic = Basic;
|
|
23
|
-
Basic.args = {
|
|
24
|
-
open: true
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
const Close = () => Template.bind({});
|
|
28
|
-
|
|
29
|
-
exports.Close = Close;
|
|
30
|
-
Close.args = {
|
|
31
|
-
open: false
|
|
32
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.Close = exports.Basic = void 0;
|
|
7
|
-
|
|
8
|
-
var _index = require("./index.js");
|
|
9
|
-
|
|
10
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
-
|
|
12
|
-
var _default = {
|
|
13
|
-
title: 'Modals/SessionExpiry',
|
|
14
|
-
component: _index.SessionExpiry
|
|
15
|
-
};
|
|
16
|
-
exports.default = _default;
|
|
17
|
-
|
|
18
|
-
const Template = args => /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.SessionExpiry, { ...args
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
const Basic = Template.bind({});
|
|
22
|
-
exports.Basic = Basic;
|
|
23
|
-
Basic.args = {
|
|
24
|
-
open: true
|
|
25
|
-
};
|
|
26
|
-
const Close = Template.bind({});
|
|
27
|
-
exports.Close = Close;
|
|
28
|
-
Close.args = {
|
|
29
|
-
open: false
|
|
30
|
-
};
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.Close = exports.Basic = void 0;
|
|
7
|
-
|
|
8
|
-
var _react = require("react");
|
|
9
|
-
|
|
10
|
-
var _reactRedux = require("../../../data/react-redux.js");
|
|
11
|
-
|
|
12
|
-
var _actions = require("../../../data/wait-message/actions.js");
|
|
13
|
-
|
|
14
|
-
var _index = require("./index.js");
|
|
15
|
-
|
|
16
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
|
-
|
|
18
|
-
const Template = ({
|
|
19
|
-
isOpen,
|
|
20
|
-
...rest
|
|
21
|
-
}) => {
|
|
22
|
-
const dispatch = (0, _reactRedux.useAppDispatch)();
|
|
23
|
-
(0, _react.useEffect)(() => {
|
|
24
|
-
if (!dispatch) return;
|
|
25
|
-
if (isOpen) dispatch(_actions.waitMessage.open());else dispatch(_actions.waitMessage.close());
|
|
26
|
-
}, [isOpen, dispatch]);
|
|
27
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.WaitMessage, { ...rest
|
|
28
|
-
});
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
var _default = {
|
|
32
|
-
title: 'Modals/WaitMessage',
|
|
33
|
-
component: _index.WaitMessage
|
|
34
|
-
};
|
|
35
|
-
exports.default = _default;
|
|
36
|
-
const Basic = Template.bind({});
|
|
37
|
-
exports.Basic = Basic;
|
|
38
|
-
Basic.args = {
|
|
39
|
-
size: 'm',
|
|
40
|
-
isOpen: true
|
|
41
|
-
};
|
|
42
|
-
const Close = Template.bind({});
|
|
43
|
-
exports.Close = Close;
|
|
44
|
-
Close.args = {
|
|
45
|
-
size: 'm',
|
|
46
|
-
isOpen: false
|
|
47
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.default = exports.Basic = void 0;
|
|
9
|
-
|
|
10
|
-
var _jsx2 = _interopRequireDefault(require("@babel/runtime/helpers/jsx"));
|
|
11
|
-
|
|
12
|
-
var _storybookReactRouter = _interopRequireDefault(require("storybook-react-router"));
|
|
13
|
-
|
|
14
|
-
var _index = require("./index.js");
|
|
15
|
-
|
|
16
|
-
var _SessionTimeout;
|
|
17
|
-
|
|
18
|
-
var _default = {
|
|
19
|
-
title: 'Components/SessionTimeout',
|
|
20
|
-
component: _index.SessionTimeout
|
|
21
|
-
};
|
|
22
|
-
exports.default = _default;
|
|
23
|
-
|
|
24
|
-
const Basic = () => _SessionTimeout || (_SessionTimeout = /*#__PURE__*/(0, _jsx2.default)(_index.SessionTimeout, {})); // eslint-disable-next-line @typescript-eslint/no-unsafe-call
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
exports.Basic = Basic;
|
|
28
|
-
Basic.decorators = [(0, _storybookReactRouter.default)()];
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
const express = require('express');
|
|
2
|
-
|
|
3
|
-
const router = express.Router();
|
|
4
|
-
|
|
5
|
-
const users = require("./users.json"); // define the route
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
router.get('/', (req, res) => {
|
|
9
|
-
res.json(users);
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
module.exports = app => {
|
|
13
|
-
app.use('/sdk/users', router);
|
|
14
|
-
};
|
package/dist/es/app.config.json
DELETED
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"appId": "app-sdk",
|
|
3
|
-
"brand": "primary",
|
|
4
|
-
"activeEnv": "localhost",
|
|
5
|
-
"hosted": true,
|
|
6
|
-
"sessionTimeoutWarnInterval": "60000",
|
|
7
|
-
"sessionTimeoutInterval": "70000",
|
|
8
|
-
"serviceEndpoints": {
|
|
9
|
-
"api": "",
|
|
10
|
-
"idp": ""
|
|
11
|
-
},
|
|
12
|
-
"walkMeUrl": "https://cdn.walkme.com/users/897bcebc13fd48038c790e2866e6a9fb/test/walkme_897bcebc13fd48038c790e2866e6a9fb_https.js",
|
|
13
|
-
"env": {
|
|
14
|
-
"localhost": {
|
|
15
|
-
"serviceEndpoints": {
|
|
16
|
-
"api": "",
|
|
17
|
-
"idp": ""
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
"dev": {
|
|
21
|
-
"serviceEndpoints": {
|
|
22
|
-
"api": "https://dev-api.appsdk.rd.elliemae.io",
|
|
23
|
-
"idp": "https://int.idp.ellielabs.com"
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
"dev2": {
|
|
27
|
-
"serviceEndpoints": {
|
|
28
|
-
"api": "https://int.api.ellielabs.com",
|
|
29
|
-
"idp": "https://int.idp.ellielabs.com"
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
"qa": {
|
|
33
|
-
"serviceEndpoints": {
|
|
34
|
-
"api": "https://qa-api.appsdk.rd.elliemae.io",
|
|
35
|
-
"idp": "https://int.idp.ellielabs.com"
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
"qa2": {
|
|
39
|
-
"serviceEndpoints": {
|
|
40
|
-
"api": "https://int.api.ellielabs.com",
|
|
41
|
-
"idp": "https://int.idp.ellielabs.com"
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
"qa3": {
|
|
45
|
-
"serviceEndpoints": {
|
|
46
|
-
"api": "https://int.api.ellielabs.com",
|
|
47
|
-
"idp": "https://int.idp.ellielabs.com"
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
"int": {
|
|
51
|
-
"serviceEndpoints": {
|
|
52
|
-
"api": "https://int.api.ellielabs.com",
|
|
53
|
-
"idp": "https://int.idp.ellielabs.com"
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
"peg-osb1": {
|
|
57
|
-
"serviceEndpoints": {
|
|
58
|
-
"api": "https://encompass-peg-api.elliemae.com",
|
|
59
|
-
"idp": "https://peg.idp.ellielabs.com/authorize"
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
"peg-osb2": {
|
|
63
|
-
"serviceEndpoints": {
|
|
64
|
-
"api": "https://encompass-peg2-api.elliemae.com",
|
|
65
|
-
"idp": "https://peg.idp.ellielabs.com/authorize"
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
"peg": {
|
|
69
|
-
"serviceEndpoints": {
|
|
70
|
-
"api": "https://peg2-west.api.ellielabs.com",
|
|
71
|
-
"idp": "https://peg.idp.ellielabs.com/authorize"
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
"peg-oapi-west": {
|
|
75
|
-
"serviceEndpoints": {
|
|
76
|
-
"api": "https://peg2-west.api.ellielabs.com",
|
|
77
|
-
"idp": "https://peg.idp.ellielabs.com/authorize"
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
"peg-oapi-east": {
|
|
81
|
-
"serviceEndpoints": {
|
|
82
|
-
"api": "https://peg2-east.api.ellielabs.com",
|
|
83
|
-
"idp": "https://peg.idp.ellielabs.com/authorize"
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
"peg2-oapi-east": {
|
|
87
|
-
"serviceEndpoints": {
|
|
88
|
-
"api": "https://peg2-east.api.ellielabs.com",
|
|
89
|
-
"idp": "https://peg.idp.ellielabs.com/authorize"
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
"peg3": {
|
|
93
|
-
"serviceEndpoints": {
|
|
94
|
-
"api": "https://pel1.api.ellielabs.com",
|
|
95
|
-
"idp": "https://peg3.idp.ellielabs.com/authorize"
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
"stage": {
|
|
99
|
-
"serviceEndpoints": {
|
|
100
|
-
"api": "https://stg.api.elliemae.com",
|
|
101
|
-
"idp": "https://stg.idp.elliemae.com/authorize"
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
"beta": {
|
|
105
|
-
"serviceEndpoints": {
|
|
106
|
-
"api": "https://concept.api.elliemae.com",
|
|
107
|
-
"idp": "https://concept.idp.elliemae.com/authorize"
|
|
108
|
-
}
|
|
109
|
-
},
|
|
110
|
-
"demo": {
|
|
111
|
-
"serviceEndpoints": {
|
|
112
|
-
"api": "https://concept.api.elliemae.com",
|
|
113
|
-
"idp": "https://concept.idp.elliemae.com/authorize"
|
|
114
|
-
}
|
|
115
|
-
},
|
|
116
|
-
"epc": {
|
|
117
|
-
"serviceEndpoints": {
|
|
118
|
-
"api": "https://concept.api.elliemae.com",
|
|
119
|
-
"idp": "https://concept.idp.elliemae.com/authorize"
|
|
120
|
-
}
|
|
121
|
-
},
|
|
122
|
-
"prod": {
|
|
123
|
-
"serviceEndpoints": {
|
|
124
|
-
"api": "https://api.elliemae.com",
|
|
125
|
-
"idp": "https://idp.elliemae.com/authorize"
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/* Important: This file should use CommonJS import exports rather ES6 import and export */
|
|
2
|
-
const express = require('express');
|
|
3
|
-
|
|
4
|
-
const router = express.Router(); // define the route
|
|
5
|
-
|
|
6
|
-
router.get('/', (req, res) => {
|
|
7
|
-
res.json({
|
|
8
|
-
name: 'pui-app-sdk'
|
|
9
|
-
});
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
module.exports = app => {
|
|
13
|
-
app.use('/hello', router);
|
|
14
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/* Important: This file should use CommonJS import exports rather ES6 import and export */
|
|
2
|
-
const express = require('express');
|
|
3
|
-
|
|
4
|
-
const router = express.Router(); // define the route
|
|
5
|
-
|
|
6
|
-
router.get('/', (req, res) => {
|
|
7
|
-
if (req.headers.authorization !== 'pui') res.status(401).send('unauthorized');else res.send({
|
|
8
|
-
message: 'you are viewing a private message'
|
|
9
|
-
});
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
module.exports = app => {
|
|
13
|
-
app.use('/private', router);
|
|
14
|
-
};
|
package/dist/es/index.pug
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
doctype html
|
|
2
|
-
head
|
|
3
|
-
meta(charset='UTF-8')
|
|
4
|
-
meta(name='viewport' content='width=device-width, initial-scale=1.0')
|
|
5
|
-
meta(http-equiv='X-UA-Compatible' content='ie=edge')
|
|
6
|
-
title #{htmlWebpackPlugin.options.libraryName}
|
|
7
|
-
p This library #{htmlWebpackPlugin.options.libraryName} exposes the following properties
|
|
8
|
-
ul#libraryAttributes
|
|
9
|
-
script(lang='javascript').
|
|
10
|
-
window.onload = () => {
|
|
11
|
-
const attribNode = document.getElementById('libraryAttributes');
|
|
12
|
-
if (attribNode) {
|
|
13
|
-
attribNode.innerHTML = Object.keys(window['#{htmlWebpackPlugin.options.libraryName}'] || {}).reduce((value, attribute) => value += `<li>${attribute}</li>`, '');
|
|
14
|
-
}
|
|
15
|
-
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
const {
|
|
2
|
-
webpackFinal,
|
|
3
|
-
managerWebpack
|
|
4
|
-
} = require('@elliemae/pui-cli/lib/webpack/webpack.storybook');
|
|
5
|
-
|
|
6
|
-
module.exports = {
|
|
7
|
-
stories: ['../@(lib|app)/**/*.stories.@(js|jsx|ts|tsx|mdx)'],
|
|
8
|
-
addons: ['@storybook/addon-storysource', {
|
|
9
|
-
name: '@storybook/addon-docs',
|
|
10
|
-
options: {
|
|
11
|
-
sourceLoaderOptions: {
|
|
12
|
-
parser: 'typescript',
|
|
13
|
-
injectStoryParameters: false
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
}, '@storybook/addon-knobs', '@storybook/addon-controls', '@storybook/addon-a11y', '@storybook/addon-actions', '@storybook/addon-backgrounds', '@storybook/addon-viewport', '@storybook/addon-toolbars', '@storybook/addon-links', '@storybook/addon-events'],
|
|
17
|
-
managerWebpack,
|
|
18
|
-
webpackFinal,
|
|
19
|
-
core: {
|
|
20
|
-
builder: 'webpack5'
|
|
21
|
-
},
|
|
22
|
-
reactOptions: {
|
|
23
|
-
fastRefresh: false
|
|
24
|
-
},
|
|
25
|
-
typescript: {
|
|
26
|
-
check: true,
|
|
27
|
-
checkOptions: {},
|
|
28
|
-
reactDocgen: 'react-docgen-typescript',
|
|
29
|
-
reactDocgenTypescriptOptions: {
|
|
30
|
-
shouldExtractLiteralValuesFromEnum: true,
|
|
31
|
-
propFilter: prop => prop.parent ? !/node_modules/.test(prop.parent.fileName) : true,
|
|
32
|
-
compilerOptions: {
|
|
33
|
-
allowSyntheticDefaultImports: false,
|
|
34
|
-
esModuleInterop: false
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
};
|