@nascentdigital/funnel-apps 4.4.18
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/react/app/domain/AppService.d.ts +19 -0
- package/dist/react/app/domain/AppService.js +19 -0
- package/dist/react/app/domain/AppServiceClient.d.ts +7 -0
- package/dist/react/app/domain/AppServiceClient.js +57 -0
- package/dist/react/app/domain/AppState.d.ts +1 -0
- package/dist/react/app/domain/AppState.js +2 -0
- package/dist/react/app/domain/index.d.ts +3 -0
- package/dist/react/app/domain/index.js +19 -0
- package/dist/react/app/server/AbstractAppService.d.ts +17 -0
- package/dist/react/app/server/AbstractAppService.js +24 -0
- package/dist/react/app/server/AppServices.d.ts +11 -0
- package/dist/react/app/server/AppServices.js +92 -0
- package/dist/react/app/server/index.d.ts +4 -0
- package/dist/react/app/server/index.js +20 -0
- package/dist/react/app/web/App.d.ts +38 -0
- package/dist/react/app/web/App.js +116 -0
- package/dist/react/app/web/AppContainer.d.ts +16 -0
- package/dist/react/app/web/AppContainer.js +109 -0
- package/dist/react/app/web/AppContext.d.ts +7 -0
- package/dist/react/app/web/AppContext.js +6 -0
- package/dist/react/app/web/AppLayout.d.ts +7 -0
- package/dist/react/app/web/AppLayout.js +34 -0
- package/dist/react/app/web/AppPage.d.ts +13 -0
- package/dist/react/app/web/AppPage.js +30 -0
- package/dist/react/app/web/AppRoot.d.ts +7 -0
- package/dist/react/app/web/AppRoot.js +43 -0
- package/dist/react/app/web/index.d.ts +5 -0
- package/dist/react/app/web/index.js +21 -0
- package/dist/react/app/web/useApp.d.ts +2 -0
- package/dist/react/app/web/useApp.js +33 -0
- package/dist/react/auth0/server/Auth0IdentityService.d.ts +25 -0
- package/dist/react/auth0/server/Auth0IdentityService.js +84 -0
- package/dist/react/auth0/server/Auth0Profile.d.ts +19 -0
- package/dist/react/auth0/server/Auth0Profile.js +108 -0
- package/dist/react/auth0/server/Auth0ProfileFactory.d.ts +15 -0
- package/dist/react/auth0/server/Auth0ProfileFactory.js +51 -0
- package/dist/react/auth0/server/Auth0ProfileManagementService.d.ts +17 -0
- package/dist/react/auth0/server/Auth0ProfileManagementService.js +127 -0
- package/dist/react/auth0/server/Auth0ProfileServices.d.ts +13 -0
- package/dist/react/auth0/server/Auth0ProfileServices.js +19 -0
- package/dist/react/auth0/server/Auth0ProfileStore.d.ts +17 -0
- package/dist/react/auth0/server/Auth0ProfileStore.js +83 -0
- package/dist/react/auth0/server/Auth0ProfileUserService.d.ts +16 -0
- package/dist/react/auth0/server/Auth0ProfileUserService.js +48 -0
- package/dist/react/auth0/server/index.d.ts +4 -0
- package/dist/react/auth0/server/index.js +20 -0
- package/dist/react/auth0/web/Auth0IdentityClient.d.ts +34 -0
- package/dist/react/auth0/web/Auth0IdentityClient.js +200 -0
- package/dist/react/auth0/web/Auth0IdentityClientProvider.d.ts +35 -0
- package/dist/react/auth0/web/Auth0IdentityClientProvider.js +67 -0
- package/dist/react/auth0/web/index.d.ts +1 -0
- package/dist/react/auth0/web/index.js +17 -0
- package/dist/react/bridge/core/BridgeConnection.d.ts +6 -0
- package/dist/react/bridge/core/BridgeConnection.js +2 -0
- package/dist/react/bridge/core/BridgeConstants.d.ts +7 -0
- package/dist/react/bridge/core/BridgeConstants.js +15 -0
- package/dist/react/bridge/core/BridgeEvent.d.ts +52 -0
- package/dist/react/bridge/core/BridgeEvent.js +28 -0
- package/dist/react/bridge/core/BridgeMethod.d.ts +12 -0
- package/dist/react/bridge/core/BridgeMethod.js +2 -0
- package/dist/react/bridge/core/BridgeMethodCall.d.ts +23 -0
- package/dist/react/bridge/core/BridgeMethodCall.js +37 -0
- package/dist/react/bridge/core/BridgeMethods.d.ts +35 -0
- package/dist/react/bridge/core/BridgeMethods.js +2 -0
- package/dist/react/bridge/core/BridgeState.d.ts +24 -0
- package/dist/react/bridge/core/BridgeState.js +2 -0
- package/dist/react/bridge/core/index.d.ts +7 -0
- package/dist/react/bridge/core/index.js +23 -0
- package/dist/react/bridge/web/Bridge.d.ts +32 -0
- package/dist/react/bridge/web/Bridge.js +183 -0
- package/dist/react/bridge/web/BridgeContext.d.ts +8 -0
- package/dist/react/bridge/web/BridgeContext.js +6 -0
- package/dist/react/bridge/web/BridgeGlobals.d.ts +12 -0
- package/dist/react/bridge/web/BridgeGlobals.js +2 -0
- package/dist/react/bridge/web/BridgeProvider.d.ts +7 -0
- package/dist/react/bridge/web/BridgeProvider.js +36 -0
- package/dist/react/bridge/web/index.d.ts +6 -0
- package/dist/react/bridge/web/index.js +22 -0
- package/dist/react/bridge/web/useBridge.d.ts +3 -0
- package/dist/react/bridge/web/useBridge.js +39 -0
- package/dist/react/bridge/web/useBridgeState.d.ts +2 -0
- package/dist/react/bridge/web/useBridgeState.js +43 -0
- package/dist/react/bridge/web/useSafeArea.d.ts +1 -0
- package/dist/react/bridge/web/useSafeArea.js +11 -0
- package/dist/react/content/core/AppContentClient.d.ts +14 -0
- package/dist/react/content/core/AppContentClient.js +51 -0
- package/dist/react/content/core/ContentClientContext.d.ts +7 -0
- package/dist/react/content/core/ContentClientContext.js +6 -0
- package/dist/react/content/core/index.d.ts +1 -0
- package/dist/react/content/core/index.js +17 -0
- package/dist/react/content/domain/ContentAppRequest.d.ts +20 -0
- package/dist/react/content/domain/ContentAppRequest.js +11 -0
- package/dist/react/content/domain/index.d.ts +1 -0
- package/dist/react/content/domain/index.js +17 -0
- package/dist/react/content/server/ContentAppService.d.ts +11 -0
- package/dist/react/content/server/ContentAppService.js +34 -0
- package/dist/react/content/server/index.d.ts +1 -0
- package/dist/react/content/server/index.js +17 -0
- package/dist/react/content/web/ContentProvider.d.ts +5 -0
- package/dist/react/content/web/ContentProvider.js +17 -0
- package/dist/react/content/web/index.d.ts +6 -0
- package/dist/react/content/web/index.js +22 -0
- package/dist/react/content/web/useCollection.d.ts +10 -0
- package/dist/react/content/web/useCollection.js +22 -0
- package/dist/react/content/web/useCollections.d.ts +10 -0
- package/dist/react/content/web/useCollections.js +32 -0
- package/dist/react/content/web/useContentClient.d.ts +1 -0
- package/dist/react/content/web/useContentClient.js +9 -0
- package/dist/react/cookies/web/CookieService.d.ts +25 -0
- package/dist/react/cookies/web/CookieService.js +45 -0
- package/dist/react/cookies/web/CookieServiceContext.d.ts +7 -0
- package/dist/react/cookies/web/CookieServiceContext.js +6 -0
- package/dist/react/cookies/web/CookieServiceProvider.d.ts +6 -0
- package/dist/react/cookies/web/CookieServiceProvider.js +16 -0
- package/dist/react/cookies/web/index.d.ts +3 -0
- package/dist/react/cookies/web/index.js +19 -0
- package/dist/react/cookies/web/useCookieService.d.ts +2 -0
- package/dist/react/cookies/web/useCookieService.js +29 -0
- package/dist/react/identity/core/AbstractIdentityClient.d.ts +22 -0
- package/dist/react/identity/core/AbstractIdentityClient.js +31 -0
- package/dist/react/identity/core/IdentityClient.d.ts +22 -0
- package/dist/react/identity/core/IdentityClient.js +13 -0
- package/dist/react/identity/core/IdentityClientContext.d.ts +7 -0
- package/dist/react/identity/core/IdentityClientContext.js +6 -0
- package/dist/react/identity/core/index.d.ts +6 -0
- package/dist/react/identity/core/index.js +22 -0
- package/dist/react/identity/core/useIdentity.d.ts +10 -0
- package/dist/react/identity/core/useIdentity.js +39 -0
- package/dist/react/identity/core/useIdentityClient.d.ts +2 -0
- package/dist/react/identity/core/useIdentityClient.js +17 -0
- package/dist/react/identity/domain/AnonymousIdentity.d.ts +15 -0
- package/dist/react/identity/domain/AnonymousIdentity.js +27 -0
- package/dist/react/identity/domain/AuthenticatedIdentity.d.ts +25 -0
- package/dist/react/identity/domain/AuthenticatedIdentity.js +32 -0
- package/dist/react/identity/domain/Identity.d.ts +6 -0
- package/dist/react/identity/domain/Identity.js +2 -0
- package/dist/react/identity/domain/IdentityAppRequest.d.ts +8 -0
- package/dist/react/identity/domain/IdentityAppRequest.js +10 -0
- package/dist/react/identity/domain/index.d.ts +4 -0
- package/dist/react/identity/domain/index.js +20 -0
- package/dist/react/identity/server/IdentityAppService.d.ts +9 -0
- package/dist/react/identity/server/IdentityAppService.js +32 -0
- package/dist/react/identity/server/IdentityService.d.ts +17 -0
- package/dist/react/identity/server/IdentityService.js +25 -0
- package/dist/react/identity/server/index.d.ts +4 -0
- package/dist/react/identity/server/index.js +20 -0
- package/dist/react/identity/web/WebIdentityClientProvider.d.ts +8 -0
- package/dist/react/identity/web/WebIdentityClientProvider.js +27 -0
- package/dist/react/identity/web/WebIdentityProvider.d.ts +5 -0
- package/dist/react/identity/web/WebIdentityProvider.js +21 -0
- package/dist/react/identity/web/bridge/AppBridgeIdentityClient.d.ts +14 -0
- package/dist/react/identity/web/bridge/AppBridgeIdentityClient.js +47 -0
- package/dist/react/identity/web/bridge/AppBridgeIdentityClientProvider.d.ts +2 -0
- package/dist/react/identity/web/bridge/AppBridgeIdentityClientProvider.js +28 -0
- package/dist/react/identity/web/bridge/index.d.ts +1 -0
- package/dist/react/identity/web/bridge/index.js +17 -0
- package/dist/react/identity/web/index.d.ts +3 -0
- package/dist/react/identity/web/index.js +19 -0
- package/dist/react/nav/core/SpecSourceContext.d.ts +7 -0
- package/dist/react/nav/core/SpecSourceContext.js +6 -0
- package/dist/react/nav/core/index.d.ts +2 -0
- package/dist/react/nav/core/index.js +18 -0
- package/dist/react/nav/core/useSpec.d.ts +3 -0
- package/dist/react/nav/core/useSpec.js +30 -0
- package/dist/react/nav/domain/Icon.d.ts +2 -0
- package/dist/react/nav/domain/Icon.js +2 -0
- package/dist/react/nav/domain/Modal.d.ts +25 -0
- package/dist/react/nav/domain/Modal.js +28 -0
- package/dist/react/nav/domain/Navigation.d.ts +13 -0
- package/dist/react/nav/domain/Navigation.js +2 -0
- package/dist/react/nav/domain/NavigationCommand.d.ts +14 -0
- package/dist/react/nav/domain/NavigationCommand.js +2 -0
- package/dist/react/nav/domain/Route.d.ts +12 -0
- package/dist/react/nav/domain/Route.js +2 -0
- package/dist/react/nav/domain/Routes.d.ts +6 -0
- package/dist/react/nav/domain/Routes.js +74 -0
- package/dist/react/nav/domain/Screen.d.ts +24 -0
- package/dist/react/nav/domain/Screen.js +28 -0
- package/dist/react/nav/domain/Skeleton.d.ts +26 -0
- package/dist/react/nav/domain/Skeleton.js +2 -0
- package/dist/react/nav/domain/Spec.d.ts +33 -0
- package/dist/react/nav/domain/Spec.js +124 -0
- package/dist/react/nav/domain/SpecSource.d.ts +21 -0
- package/dist/react/nav/domain/SpecSource.js +28 -0
- package/dist/react/nav/domain/Stack.d.ts +35 -0
- package/dist/react/nav/domain/Stack.js +44 -0
- package/dist/react/nav/domain/Tabs.d.ts +37 -0
- package/dist/react/nav/domain/Tabs.js +45 -0
- package/dist/react/nav/domain/icons/ImageIcon.d.ts +2 -0
- package/dist/react/nav/domain/icons/ImageIcon.js +7 -0
- package/dist/react/nav/domain/icons/LucideIcon.d.ts +2 -0
- package/dist/react/nav/domain/icons/LucideIcon.js +7 -0
- package/dist/react/nav/domain/icons/index.d.ts +2 -0
- package/dist/react/nav/domain/icons/index.js +18 -0
- package/dist/react/nav/domain/index.d.ts +14 -0
- package/dist/react/nav/domain/index.js +30 -0
- package/dist/react/nav/domain/sources/AbstractSpecSource.d.ts +23 -0
- package/dist/react/nav/domain/sources/AbstractSpecSource.js +64 -0
- package/dist/react/nav/domain/sources/StaticSpecSource.d.ts +9 -0
- package/dist/react/nav/domain/sources/StaticSpecSource.js +16 -0
- package/dist/react/nav/domain/sources/index.d.ts +2 -0
- package/dist/react/nav/domain/sources/index.js +18 -0
- package/dist/react/nav/server/SpecService.d.ts +9 -0
- package/dist/react/nav/server/SpecService.js +31 -0
- package/dist/react/nav/server/exports.d.ts +1 -0
- package/dist/react/nav/server/exports.js +17 -0
- package/dist/react/nav/server/index.d.ts +2 -0
- package/dist/react/nav/server/index.js +38 -0
- package/dist/react/nav/web/WebSpecProvider.d.ts +2 -0
- package/dist/react/nav/web/WebSpecProvider.js +41 -0
- package/dist/react/nav/web/index.d.ts +3 -0
- package/dist/react/nav/web/index.js +19 -0
- package/dist/react/nav/web/navigator/NativeNavigator.d.ts +13 -0
- package/dist/react/nav/web/navigator/NativeNavigator.js +47 -0
- package/dist/react/nav/web/navigator/Navigator.d.ts +7 -0
- package/dist/react/nav/web/navigator/Navigator.js +2 -0
- package/dist/react/nav/web/navigator/NavigatorContext.d.ts +7 -0
- package/dist/react/nav/web/navigator/NavigatorContext.js +6 -0
- package/dist/react/nav/web/navigator/WebNavigator.d.ts +13 -0
- package/dist/react/nav/web/navigator/WebNavigator.js +38 -0
- package/dist/react/nav/web/navigator/index.d.ts +5 -0
- package/dist/react/nav/web/navigator/index.js +21 -0
- package/dist/react/nav/web/navigator/useNavigator.d.ts +1 -0
- package/dist/react/nav/web/navigator/useNavigator.js +17 -0
- package/dist/react/nav.d.ts +1 -0
- package/dist/react/nav.js +37 -0
- package/dist/react/profile/core/AbstractProfileClient.d.ts +18 -0
- package/dist/react/profile/core/AbstractProfileClient.js +31 -0
- package/dist/react/profile/core/ProfileClient.d.ts +21 -0
- package/dist/react/profile/core/ProfileClient.js +2 -0
- package/dist/react/profile/core/ProfileClientContext.d.ts +7 -0
- package/dist/react/profile/core/ProfileClientContext.js +6 -0
- package/dist/react/profile/core/index.d.ts +6 -0
- package/dist/react/profile/core/index.js +22 -0
- package/dist/react/profile/core/useProfile.d.ts +9 -0
- package/dist/react/profile/core/useProfile.js +47 -0
- package/dist/react/profile/core/useProfileClient.d.ts +2 -0
- package/dist/react/profile/core/useProfileClient.js +17 -0
- package/dist/react/profile/core/useProfileStore.d.ts +2 -0
- package/dist/react/profile/core/useProfileStore.js +28 -0
- package/dist/react/profile/domain/Profile.d.ts +80 -0
- package/dist/react/profile/domain/Profile.js +209 -0
- package/dist/react/profile/domain/ProfileAppRequest.d.ts +15 -0
- package/dist/react/profile/domain/ProfileAppRequest.js +12 -0
- package/dist/react/profile/domain/ProfileStore.d.ts +65 -0
- package/dist/react/profile/domain/ProfileStore.js +180 -0
- package/dist/react/profile/domain/index.d.ts +3 -0
- package/dist/react/profile/domain/index.js +19 -0
- package/dist/react/profile/server/ProfileAppService.d.ts +11 -0
- package/dist/react/profile/server/ProfileAppService.js +49 -0
- package/dist/react/profile/server/ProfileManagementService.d.ts +28 -0
- package/dist/react/profile/server/ProfileManagementService.js +3 -0
- package/dist/react/profile/server/ProfileServices.d.ts +22 -0
- package/dist/react/profile/server/ProfileServices.js +24 -0
- package/dist/react/profile/server/ProfileUserService.d.ts +5 -0
- package/dist/react/profile/server/ProfileUserService.js +2 -0
- package/dist/react/profile/server/index.d.ts +5 -0
- package/dist/react/profile/server/index.js +21 -0
- package/dist/react/profile/web/WebProfile.d.ts +11 -0
- package/dist/react/profile/web/WebProfile.js +37 -0
- package/dist/react/profile/web/WebProfileClient.d.ts +9 -0
- package/dist/react/profile/web/WebProfileClient.js +76 -0
- package/dist/react/profile/web/WebProfileProvider.d.ts +5 -0
- package/dist/react/profile/web/WebProfileProvider.js +62 -0
- package/dist/react/profile/web/WebProfileStore.d.ts +8 -0
- package/dist/react/profile/web/WebProfileStore.js +32 -0
- package/dist/react/profile/web/index.d.ts +3 -0
- package/dist/react/profile/web/index.js +19 -0
- package/dist/react/push/domain/PushAppRequest.d.ts +13 -0
- package/dist/react/push/domain/PushAppRequest.js +12 -0
- package/dist/react/push/domain/PushStore.d.ts +7 -0
- package/dist/react/push/domain/PushStore.js +9 -0
- package/dist/react/push/domain/index.d.ts +2 -0
- package/dist/react/push/domain/index.js +18 -0
- package/dist/react/push/server/PushService.d.ts +22 -0
- package/dist/react/push/server/PushService.js +57 -0
- package/dist/react/push/server/index.d.ts +3 -0
- package/dist/react/push/server/index.js +19 -0
- package/dist/react/push/server/keygen.d.ts +1 -0
- package/dist/react/push/server/keygen.js +8 -0
- package/dist/react/push/web/PushClient.d.ts +35 -0
- package/dist/react/push/web/PushClient.js +204 -0
- package/dist/react/push/web/PushContext.d.ts +7 -0
- package/dist/react/push/web/PushContext.js +6 -0
- package/dist/react/push/web/PushProvider.d.ts +6 -0
- package/dist/react/push/web/PushProvider.js +42 -0
- package/dist/react/push/web/index.d.ts +4 -0
- package/dist/react/push/web/index.js +20 -0
- package/dist/react/push/web/usePushClient.d.ts +3 -0
- package/dist/react/push/web/usePushClient.js +40 -0
- package/dist/react/server.d.ts +7 -0
- package/dist/react/server.js +23 -0
- package/dist/react/ui/web/HideSplash.d.ts +1 -0
- package/dist/react/ui/web/HideSplash.js +28 -0
- package/dist/react/ui/web/Link.d.ts +6 -0
- package/dist/react/ui/web/Link.js +12 -0
- package/dist/react/ui/web/SafeArea.d.ts +9 -0
- package/dist/react/ui/web/SafeArea.js +26 -0
- package/dist/react/ui/web/index.d.ts +3 -0
- package/dist/react/ui/web/index.js +19 -0
- package/dist/react/web.d.ts +10 -0
- package/dist/react/web.js +26 -0
- package/dist/reactnative/app/domain/AppService.d.ts +19 -0
- package/dist/reactnative/app/domain/AppService.js +19 -0
- package/dist/reactnative/app/domain/AppServiceClient.d.ts +7 -0
- package/dist/reactnative/app/domain/AppServiceClient.js +57 -0
- package/dist/reactnative/app/domain/AppState.d.ts +1 -0
- package/dist/reactnative/app/domain/AppState.js +2 -0
- package/dist/reactnative/app/domain/index.d.ts +3 -0
- package/dist/reactnative/app/domain/index.js +19 -0
- package/dist/reactnative/app/rn/AppContainer.d.ts +10 -0
- package/dist/reactnative/app/rn/AppContainer.js +77 -0
- package/dist/reactnative/app/rn/AppRoot.d.ts +5 -0
- package/dist/reactnative/app/rn/AppRoot.js +22 -0
- package/dist/reactnative/app/rn/AppServiceClient.d.ts +4 -0
- package/dist/reactnative/app/rn/AppServiceClient.js +44 -0
- package/dist/reactnative/app/rn/index.d.ts +5 -0
- package/dist/reactnative/app/rn/index.js +22 -0
- package/dist/reactnative/auth0/rn/Auth0IdentityClient.d.ts +33 -0
- package/dist/reactnative/auth0/rn/Auth0IdentityClient.js +234 -0
- package/dist/reactnative/auth0/rn/Auth0IdentityClientProvider.d.ts +27 -0
- package/dist/reactnative/auth0/rn/Auth0IdentityClientProvider.js +60 -0
- package/dist/reactnative/auth0/rn/index.d.ts +2 -0
- package/dist/reactnative/auth0/rn/index.js +18 -0
- package/dist/reactnative/bridge/core/BridgeConnection.d.ts +6 -0
- package/dist/reactnative/bridge/core/BridgeConnection.js +2 -0
- package/dist/reactnative/bridge/core/BridgeConstants.d.ts +7 -0
- package/dist/reactnative/bridge/core/BridgeConstants.js +15 -0
- package/dist/reactnative/bridge/core/BridgeEvent.d.ts +52 -0
- package/dist/reactnative/bridge/core/BridgeEvent.js +28 -0
- package/dist/reactnative/bridge/core/BridgeMethod.d.ts +12 -0
- package/dist/reactnative/bridge/core/BridgeMethod.js +2 -0
- package/dist/reactnative/bridge/core/BridgeMethodCall.d.ts +23 -0
- package/dist/reactnative/bridge/core/BridgeMethodCall.js +37 -0
- package/dist/reactnative/bridge/core/BridgeMethods.d.ts +35 -0
- package/dist/reactnative/bridge/core/BridgeMethods.js +2 -0
- package/dist/reactnative/bridge/core/BridgeState.d.ts +24 -0
- package/dist/reactnative/bridge/core/BridgeState.js +2 -0
- package/dist/reactnative/bridge/core/index.d.ts +7 -0
- package/dist/reactnative/bridge/core/index.js +23 -0
- package/dist/reactnative/bridge/rn/BridgeProxy.d.ts +35 -0
- package/dist/reactnative/bridge/rn/BridgeProxy.js +331 -0
- package/dist/reactnative/bridge/rn/BridgeProxyContext.d.ts +8 -0
- package/dist/reactnative/bridge/rn/BridgeProxyContext.js +6 -0
- package/dist/reactnative/bridge/rn/BridgeProxyProvider.d.ts +8 -0
- package/dist/reactnative/bridge/rn/BridgeProxyProvider.js +39 -0
- package/dist/reactnative/bridge/rn/BridgeWebview.d.ts +7 -0
- package/dist/reactnative/bridge/rn/BridgeWebview.js +51 -0
- package/dist/reactnative/bridge/rn/index.d.ts +7 -0
- package/dist/reactnative/bridge/rn/index.js +23 -0
- package/dist/reactnative/bridge/rn/useBridgeProxy.d.ts +3 -0
- package/dist/reactnative/bridge/rn/useBridgeProxy.js +38 -0
- package/dist/reactnative/bridge/rn/useBridgeProxyCalls.d.ts +3 -0
- package/dist/reactnative/bridge/rn/useBridgeProxyCalls.js +32 -0
- package/dist/reactnative/bridge/rn/useBridgeProxyState.d.ts +2 -0
- package/dist/reactnative/bridge/rn/useBridgeProxyState.js +46 -0
- package/dist/reactnative/identity/core/AbstractIdentityClient.d.ts +22 -0
- package/dist/reactnative/identity/core/AbstractIdentityClient.js +31 -0
- package/dist/reactnative/identity/core/IdentityClient.d.ts +22 -0
- package/dist/reactnative/identity/core/IdentityClient.js +13 -0
- package/dist/reactnative/identity/core/IdentityClientContext.d.ts +7 -0
- package/dist/reactnative/identity/core/IdentityClientContext.js +6 -0
- package/dist/reactnative/identity/core/index.d.ts +6 -0
- package/dist/reactnative/identity/core/index.js +22 -0
- package/dist/reactnative/identity/core/useIdentity.d.ts +10 -0
- package/dist/reactnative/identity/core/useIdentity.js +39 -0
- package/dist/reactnative/identity/core/useIdentityClient.d.ts +2 -0
- package/dist/reactnative/identity/core/useIdentityClient.js +17 -0
- package/dist/reactnative/identity/domain/AnonymousIdentity.d.ts +15 -0
- package/dist/reactnative/identity/domain/AnonymousIdentity.js +27 -0
- package/dist/reactnative/identity/domain/AuthenticatedIdentity.d.ts +25 -0
- package/dist/reactnative/identity/domain/AuthenticatedIdentity.js +32 -0
- package/dist/reactnative/identity/domain/Identity.d.ts +6 -0
- package/dist/reactnative/identity/domain/Identity.js +2 -0
- package/dist/reactnative/identity/domain/IdentityAppRequest.d.ts +8 -0
- package/dist/reactnative/identity/domain/IdentityAppRequest.js +10 -0
- package/dist/reactnative/identity/domain/index.d.ts +4 -0
- package/dist/reactnative/identity/domain/index.js +20 -0
- package/dist/reactnative/identity/rn/RNIdentityClientProvider.d.ts +8 -0
- package/dist/reactnative/identity/rn/RNIdentityClientProvider.js +22 -0
- package/dist/reactnative/identity/rn/RNIdentityProvider.d.ts +5 -0
- package/dist/reactnative/identity/rn/RNIdentityProvider.js +14 -0
- package/dist/reactnative/identity/rn/index.d.ts +3 -0
- package/dist/reactnative/identity/rn/index.js +19 -0
- package/dist/reactnative/nav/core/SpecSourceContext.d.ts +7 -0
- package/dist/reactnative/nav/core/SpecSourceContext.js +6 -0
- package/dist/reactnative/nav/core/index.d.ts +2 -0
- package/dist/reactnative/nav/core/index.js +18 -0
- package/dist/reactnative/nav/core/useSpec.d.ts +3 -0
- package/dist/reactnative/nav/core/useSpec.js +30 -0
- package/dist/reactnative/nav/domain/Icon.d.ts +2 -0
- package/dist/reactnative/nav/domain/Icon.js +2 -0
- package/dist/reactnative/nav/domain/Modal.d.ts +25 -0
- package/dist/reactnative/nav/domain/Modal.js +28 -0
- package/dist/reactnative/nav/domain/Navigation.d.ts +13 -0
- package/dist/reactnative/nav/domain/Navigation.js +2 -0
- package/dist/reactnative/nav/domain/NavigationCommand.d.ts +14 -0
- package/dist/reactnative/nav/domain/NavigationCommand.js +2 -0
- package/dist/reactnative/nav/domain/Route.d.ts +12 -0
- package/dist/reactnative/nav/domain/Route.js +2 -0
- package/dist/reactnative/nav/domain/Routes.d.ts +6 -0
- package/dist/reactnative/nav/domain/Routes.js +74 -0
- package/dist/reactnative/nav/domain/Screen.d.ts +24 -0
- package/dist/reactnative/nav/domain/Screen.js +28 -0
- package/dist/reactnative/nav/domain/Skeleton.d.ts +26 -0
- package/dist/reactnative/nav/domain/Skeleton.js +2 -0
- package/dist/reactnative/nav/domain/Spec.d.ts +33 -0
- package/dist/reactnative/nav/domain/Spec.js +124 -0
- package/dist/reactnative/nav/domain/SpecSource.d.ts +21 -0
- package/dist/reactnative/nav/domain/SpecSource.js +28 -0
- package/dist/reactnative/nav/domain/Stack.d.ts +35 -0
- package/dist/reactnative/nav/domain/Stack.js +44 -0
- package/dist/reactnative/nav/domain/Tabs.d.ts +37 -0
- package/dist/reactnative/nav/domain/Tabs.js +45 -0
- package/dist/reactnative/nav/domain/icons/ImageIcon.d.ts +2 -0
- package/dist/reactnative/nav/domain/icons/ImageIcon.js +7 -0
- package/dist/reactnative/nav/domain/icons/LucideIcon.d.ts +2 -0
- package/dist/reactnative/nav/domain/icons/LucideIcon.js +7 -0
- package/dist/reactnative/nav/domain/icons/index.d.ts +2 -0
- package/dist/reactnative/nav/domain/icons/index.js +18 -0
- package/dist/reactnative/nav/domain/index.d.ts +14 -0
- package/dist/reactnative/nav/domain/index.js +30 -0
- package/dist/reactnative/nav/domain/sources/AbstractSpecSource.d.ts +23 -0
- package/dist/reactnative/nav/domain/sources/AbstractSpecSource.js +64 -0
- package/dist/reactnative/nav/domain/sources/StaticSpecSource.d.ts +9 -0
- package/dist/reactnative/nav/domain/sources/StaticSpecSource.js +16 -0
- package/dist/reactnative/nav/domain/sources/index.d.ts +2 -0
- package/dist/reactnative/nav/domain/sources/index.js +18 -0
- package/dist/reactnative/nav/rn/NavigationEngine.d.ts +1 -0
- package/dist/reactnative/nav/rn/NavigationEngine.js +155 -0
- package/dist/reactnative/nav/rn/NavigationScreen.d.ts +9 -0
- package/dist/reactnative/nav/rn/NavigationScreen.js +215 -0
- package/dist/reactnative/nav/rn/RNSpecProvider.d.ts +2 -0
- package/dist/reactnative/nav/rn/RNSpecProvider.js +30 -0
- package/dist/reactnative/nav/rn/RNSpecSource.d.ts +5 -0
- package/dist/reactnative/nav/rn/RNSpecSource.js +30 -0
- package/dist/reactnative/nav/rn/index.d.ts +4 -0
- package/dist/reactnative/nav/rn/index.js +20 -0
- package/dist/reactnative/profile/domain/Profile.d.ts +80 -0
- package/dist/reactnative/profile/domain/Profile.js +209 -0
- package/dist/reactnative/profile/domain/ProfileAppRequest.d.ts +15 -0
- package/dist/reactnative/profile/domain/ProfileAppRequest.js +12 -0
- package/dist/reactnative/profile/domain/ProfileStore.d.ts +65 -0
- package/dist/reactnative/profile/domain/ProfileStore.js +180 -0
- package/dist/reactnative/profile/domain/index.d.ts +3 -0
- package/dist/reactnative/profile/domain/index.js +19 -0
- package/dist/reactnative/push/domain/PushAppRequest.d.ts +13 -0
- package/dist/reactnative/push/domain/PushAppRequest.js +12 -0
- package/dist/reactnative/push/domain/PushStore.d.ts +7 -0
- package/dist/reactnative/push/domain/PushStore.js +9 -0
- package/dist/reactnative/push/domain/index.d.ts +2 -0
- package/dist/reactnative/push/domain/index.js +18 -0
- package/dist/reactnative/push/rn/PushClient.d.ts +32 -0
- package/dist/reactnative/push/rn/PushClient.js +247 -0
- package/dist/reactnative/push/rn/PushContext.d.ts +7 -0
- package/dist/reactnative/push/rn/PushContext.js +6 -0
- package/dist/reactnative/push/rn/PushProvider.d.ts +2 -0
- package/dist/reactnative/push/rn/PushProvider.js +45 -0
- package/dist/reactnative/push/rn/index.d.ts +3 -0
- package/dist/reactnative/push/rn/index.js +19 -0
- package/dist/reactnative/push/rn/usePushClient.d.ts +3 -0
- package/dist/reactnative/push/rn/usePushClient.js +40 -0
- package/dist/reactnative/rn.d.ts +7 -0
- package/dist/reactnative/rn.js +23 -0
- package/dist/reactnative/ui/rn/Tailwind.d.ts +175 -0
- package/dist/reactnative/ui/rn/Tailwind.js +211 -0
- package/dist/reactnative/ui/rn/atomic/Button.d.ts +97 -0
- package/dist/reactnative/ui/rn/atomic/Button.js +75 -0
- package/dist/reactnative/ui/rn/atomic/TextField.d.ts +112 -0
- package/dist/reactnative/ui/rn/atomic/TextField.js +135 -0
- package/dist/reactnative/ui/rn/atomic/index.d.ts +2 -0
- package/dist/reactnative/ui/rn/atomic/index.js +18 -0
- package/dist/reactnative/ui/rn/index.d.ts +1 -0
- package/dist/reactnative/ui/rn/index.js +17 -0
- package/dist/styles/rn/_index.css +2 -0
- package/dist/styles/rn/atomic/Button.css +54 -0
- package/dist/styles/rn/atomic/TextField.css +77 -0
- package/dist/styles/rn/atomic/_index.css +2 -0
- package/dist/styles/rn/base/_index.css +1 -0
- package/dist/styles/rn/base/tailwind.css +3 -0
- package/dist/styles/rn.css +1 -0
- package/dist/styles/web/_index.css +1 -0
- package/dist/styles/web/layout/SafeArea.css +17 -0
- package/dist/styles/web/layout/_index.css +1 -0
- package/dist/styles/web.css +1 -0
- package/package.json +87 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.AppContentClient = void 0;
|
|
15
|
+
const funnel_core_1 = require("@nascentdigital/funnel-core");
|
|
16
|
+
const AppServiceClient_1 = require("../../app/domain/AppServiceClient");
|
|
17
|
+
// class
|
|
18
|
+
class AppContentClient {
|
|
19
|
+
constructor(args) {
|
|
20
|
+
this._apiToken = args.apiToken;
|
|
21
|
+
}
|
|
22
|
+
async getCollection(args) {
|
|
23
|
+
// fetch content
|
|
24
|
+
const collection = await AppServiceClient_1.AppServiceClient.post({
|
|
25
|
+
apiToken: this._apiToken,
|
|
26
|
+
id: '_nd-content',
|
|
27
|
+
method: 'content.getCollection',
|
|
28
|
+
data: args
|
|
29
|
+
});
|
|
30
|
+
// bail if no collection
|
|
31
|
+
if (!collection) {
|
|
32
|
+
return undefined;
|
|
33
|
+
}
|
|
34
|
+
// return linked collection
|
|
35
|
+
return funnel_core_1.Schema.LinkedData.resolveStatic({ unlinkedData: collection });
|
|
36
|
+
}
|
|
37
|
+
async findCollection(args) {
|
|
38
|
+
// fetch content
|
|
39
|
+
const _a = await AppServiceClient_1.AppServiceClient.post({
|
|
40
|
+
apiToken: this._apiToken,
|
|
41
|
+
id: '_nd-content',
|
|
42
|
+
method: 'content.findCollection',
|
|
43
|
+
data: args
|
|
44
|
+
}), { items } = _a, paginationResult = __rest(_a, ["items"]);
|
|
45
|
+
// convert items from data to linked data
|
|
46
|
+
const linkedItems = items.map(item => funnel_core_1.Schema.LinkedData.resolveStatic({ unlinkedData: item }));
|
|
47
|
+
// return
|
|
48
|
+
return Object.assign(Object.assign({}, paginationResult), { items: linkedItems });
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.AppContentClient = AppContentClient;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './AppContentClient';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./AppContentClient"), exports);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { CollectionClient } from '@nascentdigital/funnel-cms';
|
|
2
|
+
import { PartialBy } from '@nascentdigital/funnel-core';
|
|
3
|
+
import type { AppService } from '../../app/domain';
|
|
4
|
+
export type ContentAppRequest = ContentAppRequest.GetCollection | ContentAppRequest.FindCollection;
|
|
5
|
+
export declare namespace ContentAppRequest {
|
|
6
|
+
const appId: "_nd-content";
|
|
7
|
+
type AppId = typeof appId;
|
|
8
|
+
type GetCollection = AppService.Request<AppId, typeof GetCollection, GetCollection.Args>;
|
|
9
|
+
const GetCollection: "content.getCollection";
|
|
10
|
+
namespace GetCollection {
|
|
11
|
+
type Args = PartialBy<CollectionClient.Get.Args, 'version'>;
|
|
12
|
+
type Result = CollectionClient.Get.Result;
|
|
13
|
+
}
|
|
14
|
+
type FindCollection = AppService.Request<AppId, typeof FindCollection, FindCollection.Args>;
|
|
15
|
+
const FindCollection: "content.findCollection";
|
|
16
|
+
namespace FindCollection {
|
|
17
|
+
type Args = PartialBy<CollectionClient.Find.Args, 'version'>;
|
|
18
|
+
type Result = CollectionClient.Find.Result;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ContentAppRequest = void 0;
|
|
4
|
+
// extension
|
|
5
|
+
var ContentAppRequest;
|
|
6
|
+
(function (ContentAppRequest) {
|
|
7
|
+
// app id
|
|
8
|
+
ContentAppRequest.appId = '_nd-content';
|
|
9
|
+
ContentAppRequest.GetCollection = 'content.getCollection';
|
|
10
|
+
ContentAppRequest.FindCollection = 'content.findCollection';
|
|
11
|
+
})(ContentAppRequest || (exports.ContentAppRequest = ContentAppRequest = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ContentAppRequest';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ContentAppRequest"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { JsonValue } from 'type-fest';
|
|
2
|
+
import { AbstractAppService } from '../../app/server/AbstractAppService';
|
|
3
|
+
import type { Identity } from '../../identity/domain';
|
|
4
|
+
import type { ContentAppRequest } from '../domain';
|
|
5
|
+
export declare class ContentAppService extends AbstractAppService<ContentAppRequest> {
|
|
6
|
+
private readonly _client;
|
|
7
|
+
private readonly _brand;
|
|
8
|
+
private readonly _version;
|
|
9
|
+
constructor();
|
|
10
|
+
onExecute(request: ContentAppRequest, identity?: Identity): Promise<JsonValue>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ContentAppService = void 0;
|
|
4
|
+
const funnel_cms_1 = require("@nascentdigital/funnel-cms");
|
|
5
|
+
const funnel_core_1 = require("@nascentdigital/funnel-core");
|
|
6
|
+
const AbstractAppService_1 = require("../../app/server/AbstractAppService");
|
|
7
|
+
// service
|
|
8
|
+
class ContentAppService extends AbstractAppService_1.AbstractAppService {
|
|
9
|
+
constructor() {
|
|
10
|
+
// construct base
|
|
11
|
+
super({
|
|
12
|
+
id: '_nd-content',
|
|
13
|
+
name: 'Content Service'
|
|
14
|
+
});
|
|
15
|
+
// bind content client
|
|
16
|
+
this._client = funnel_cms_1.ContentClient.forServer();
|
|
17
|
+
this._brand = funnel_core_1.AppConfig.brand();
|
|
18
|
+
this._version = funnel_core_1.AppConfig.get().version;
|
|
19
|
+
}
|
|
20
|
+
async onExecute(request, identity) {
|
|
21
|
+
// handle methods
|
|
22
|
+
switch (request.method) {
|
|
23
|
+
case 'content.getCollection': {
|
|
24
|
+
return await this._client.collections.get(Object.assign({ version: this._version }, request.data));
|
|
25
|
+
}
|
|
26
|
+
case 'content.findCollection': {
|
|
27
|
+
return await this._client.collections.find(Object.assign({ brand: this._brand, version: this._version }, request.data));
|
|
28
|
+
}
|
|
29
|
+
default:
|
|
30
|
+
throw new funnel_core_1.InvalidOperationError(`Unrecognized ${this.name} method`);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.ContentAppService = ContentAppService;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ContentAppService';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ContentAppService"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ContentProvider = ContentProvider;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = require("react");
|
|
6
|
+
const core_1 = require("../../identity/core");
|
|
7
|
+
const core_2 = require("../core");
|
|
8
|
+
const ContentClientContext_1 = require("../core/ContentClientContext");
|
|
9
|
+
// container
|
|
10
|
+
function ContentProvider({ children }) {
|
|
11
|
+
// bind hooks + context
|
|
12
|
+
const identity = (0, core_1.useAuthenticatedIdentity)();
|
|
13
|
+
const contentClient = (0, react_1.useMemo)(() => new core_2.AppContentClient({ apiToken: identity === null || identity === void 0 ? void 0 : identity.apiToken }), [identity === null || identity === void 0 ? void 0 : identity.apiToken]);
|
|
14
|
+
const context = (0, react_1.useMemo)(() => ({ contentClient }), [contentClient]);
|
|
15
|
+
// render
|
|
16
|
+
return ((0, jsx_runtime_1.jsx)(ContentClientContext_1.ContentClientContext.Provider, { value: context, children: children }));
|
|
17
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("../core"), exports);
|
|
18
|
+
__exportStar(require("../domain"), exports);
|
|
19
|
+
__exportStar(require("./ContentProvider"), exports);
|
|
20
|
+
__exportStar(require("./useCollection"), exports);
|
|
21
|
+
__exportStar(require("./useCollections"), exports);
|
|
22
|
+
__exportStar(require("./useContentClient"), exports);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IsometricError, Schema } from '@nascentdigital/funnel-core';
|
|
2
|
+
import { ContentAppRequest } from '../domain';
|
|
3
|
+
export declare function useCollection<T extends Schema.Collection = Schema.Collection>(args: ContentAppRequest.GetCollection.Args): useCollection.Result<Schema.Collection.LinkedData.FromRef<T>>;
|
|
4
|
+
export declare namespace useCollection {
|
|
5
|
+
type Result<T> = {
|
|
6
|
+
loading: boolean;
|
|
7
|
+
collection?: T;
|
|
8
|
+
error?: IsometricError;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useCollection = useCollection;
|
|
4
|
+
const react_1 = require("react");
|
|
5
|
+
const useContentClient_1 = require("./useContentClient");
|
|
6
|
+
// hook
|
|
7
|
+
function useCollection(args) {
|
|
8
|
+
// bind
|
|
9
|
+
const client = (0, useContentClient_1.useContentClient)();
|
|
10
|
+
const [collection, setCollection] = (0, react_1.useState)(undefined);
|
|
11
|
+
// destructure for dependency array
|
|
12
|
+
const { id, version } = args;
|
|
13
|
+
// fetch collections
|
|
14
|
+
(0, react_1.useEffect)(() => {
|
|
15
|
+
client.getCollection({ id, version }).then(setCollection);
|
|
16
|
+
}, [client, id, version]);
|
|
17
|
+
// return
|
|
18
|
+
return {
|
|
19
|
+
loading: collection === undefined,
|
|
20
|
+
collection
|
|
21
|
+
};
|
|
22
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IsometricError, Schema } from '@nascentdigital/funnel-core';
|
|
2
|
+
import { ContentAppRequest } from '../domain';
|
|
3
|
+
export declare function useCollections<T extends Schema.Collection = Schema.Collection>(args: Omit<ContentAppRequest.FindCollection.Args, 'pagination' | 'tags' | 'tagsMatch'>): useCollections.Result<Schema.Collection.LinkedData.FromRef<T>>;
|
|
4
|
+
export declare namespace useCollections {
|
|
5
|
+
type Result<T> = {
|
|
6
|
+
loading: boolean;
|
|
7
|
+
items?: T[] | undefined;
|
|
8
|
+
error?: IsometricError;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useCollections = useCollections;
|
|
4
|
+
const react_1 = require("react");
|
|
5
|
+
const useContentClient_1 = require("./useContentClient");
|
|
6
|
+
// hook
|
|
7
|
+
function useCollections(args) {
|
|
8
|
+
// bind
|
|
9
|
+
const client = (0, useContentClient_1.useContentClient)();
|
|
10
|
+
const [items, setItems] = (0, react_1.useState)(undefined);
|
|
11
|
+
// destructure for dependency array
|
|
12
|
+
const { type, version, groupId, brand, language, name } = args;
|
|
13
|
+
// fetch collections
|
|
14
|
+
(0, react_1.useEffect)(() => {
|
|
15
|
+
client.findCollection({
|
|
16
|
+
type,
|
|
17
|
+
version,
|
|
18
|
+
groupId,
|
|
19
|
+
brand,
|
|
20
|
+
language,
|
|
21
|
+
name,
|
|
22
|
+
pagination: { page: 1, pageSize: 100 }
|
|
23
|
+
}).then(result => {
|
|
24
|
+
setItems(result.items);
|
|
25
|
+
});
|
|
26
|
+
}, [client, type, version, groupId, brand, language, name]);
|
|
27
|
+
// return
|
|
28
|
+
return {
|
|
29
|
+
loading: items === undefined,
|
|
30
|
+
items
|
|
31
|
+
};
|
|
32
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useContentClient(): import(".").AppContentClient;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useContentClient = useContentClient;
|
|
4
|
+
const react_1 = require("react");
|
|
5
|
+
const ContentClientContext_1 = require("../core/ContentClientContext");
|
|
6
|
+
// hook
|
|
7
|
+
function useContentClient() {
|
|
8
|
+
return (0, react_1.useContext)(ContentClientContext_1.ContentClientContext).contentClient;
|
|
9
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { EventBus } from '@nascentdigital/funnel-core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import UniversalCookie from 'universal-cookie';
|
|
4
|
+
export declare class CookieService {
|
|
5
|
+
private readonly _eventBus;
|
|
6
|
+
readonly cookies: UniversalCookie;
|
|
7
|
+
constructor(args: CookieService.ConstructorArgs);
|
|
8
|
+
get hasNativeCookie(): boolean;
|
|
9
|
+
get events$(): Observable<CookieService.Event>;
|
|
10
|
+
private raiseEvent;
|
|
11
|
+
}
|
|
12
|
+
export declare namespace CookieService {
|
|
13
|
+
type ConstructorArgs = {
|
|
14
|
+
eventBus: EventBus;
|
|
15
|
+
ssrCookies?: string;
|
|
16
|
+
};
|
|
17
|
+
interface Event extends EventBus.Event<'CookieService', Event.Type> {
|
|
18
|
+
cookieService: CookieService;
|
|
19
|
+
}
|
|
20
|
+
namespace Event {
|
|
21
|
+
type Type = 'changed';
|
|
22
|
+
function filter(event: EventBus.Event): event is Event;
|
|
23
|
+
function create(event: EventBus.Args<Event>): Event;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.CookieService = void 0;
|
|
7
|
+
const funnel_core_1 = require("@nascentdigital/funnel-core");
|
|
8
|
+
const rxjs_1 = require("rxjs");
|
|
9
|
+
const universal_cookie_1 = __importDefault(require("universal-cookie"));
|
|
10
|
+
// service
|
|
11
|
+
class CookieService {
|
|
12
|
+
constructor(args) {
|
|
13
|
+
var _a;
|
|
14
|
+
// initialize instance variables
|
|
15
|
+
this._eventBus = args.eventBus;
|
|
16
|
+
this.cookies = new universal_cookie_1.default(funnel_core_1.Browser.available
|
|
17
|
+
? undefined
|
|
18
|
+
: ((_a = args.ssrCookies) !== null && _a !== void 0 ? _a : ''));
|
|
19
|
+
}
|
|
20
|
+
get hasNativeCookie() {
|
|
21
|
+
return this.cookies.get('_nd-AppBridge-native') === true;
|
|
22
|
+
}
|
|
23
|
+
get events$() {
|
|
24
|
+
return this._eventBus.events$.pipe((0, rxjs_1.filter)(CookieService.Event.filter));
|
|
25
|
+
}
|
|
26
|
+
raiseEvent(type) {
|
|
27
|
+
this._eventBus.publish(CookieService.Event.create({ type, cookieService: this }));
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.CookieService = CookieService;
|
|
31
|
+
// extension
|
|
32
|
+
(function (CookieService) {
|
|
33
|
+
let Event;
|
|
34
|
+
(function (Event) {
|
|
35
|
+
// methods
|
|
36
|
+
function filter(event) {
|
|
37
|
+
return event.domain === 'CookieService';
|
|
38
|
+
}
|
|
39
|
+
Event.filter = filter;
|
|
40
|
+
function create(event) {
|
|
41
|
+
return funnel_core_1.EventBus.createEvent(Object.assign({ domain: 'CookieService' }, event));
|
|
42
|
+
}
|
|
43
|
+
Event.create = create;
|
|
44
|
+
})(Event = CookieService.Event || (CookieService.Event = {}));
|
|
45
|
+
})(CookieService || (exports.CookieService = CookieService = {}));
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { CookieService } from './CookieService';
|
|
3
|
+
export declare function CookieServiceProvider({ eventBus, ssrCookies: ssrCookiesRaw, children }: CookieServiceProvider.Props): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare namespace CookieServiceProvider {
|
|
5
|
+
type Props = CookieService.ConstructorArgs & PropsWithChildren;
|
|
6
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CookieServiceProvider = CookieServiceProvider;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const funnel_core_1 = require("@nascentdigital/funnel-core");
|
|
6
|
+
const react_1 = require("react");
|
|
7
|
+
const CookieService_1 = require("./CookieService");
|
|
8
|
+
const CookieServiceContext_1 = require("./CookieServiceContext");
|
|
9
|
+
// container
|
|
10
|
+
function CookieServiceProvider({ eventBus, ssrCookies: ssrCookiesRaw, children }) {
|
|
11
|
+
// bind context
|
|
12
|
+
const ssrCookies = funnel_core_1.Browser.available ? undefined : ssrCookiesRaw;
|
|
13
|
+
const context = (0, react_1.useMemo)(() => ({ cookieService: new CookieService_1.CookieService({ eventBus, ssrCookies }) }), [eventBus, ssrCookies]);
|
|
14
|
+
// render
|
|
15
|
+
return ((0, jsx_runtime_1.jsx)(CookieServiceContext_1.CookieServiceContext.Provider, { value: context, children: children }));
|
|
16
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./CookieService"), exports);
|
|
18
|
+
__exportStar(require("./CookieServiceProvider"), exports);
|
|
19
|
+
__exportStar(require("./useCookieService"), exports);
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useCookieService = useCookieService;
|
|
4
|
+
const funnel_core_1 = require("@nascentdigital/funnel-core");
|
|
5
|
+
const hooks_1 = require("@nascentdigital/funnel-ui/hooks");
|
|
6
|
+
const react_1 = require("react");
|
|
7
|
+
const CookieServiceContext_1 = require("./CookieServiceContext");
|
|
8
|
+
// hook
|
|
9
|
+
function useCookieService() {
|
|
10
|
+
// bind memos + hooks
|
|
11
|
+
const { cookieService } = (0, react_1.useContext)(CookieServiceContext_1.CookieServiceContext);
|
|
12
|
+
const touch = (0, hooks_1.useTouch)();
|
|
13
|
+
// bind worker
|
|
14
|
+
(0, react_1.useEffect)(() => {
|
|
15
|
+
// skip if there's no cookieService
|
|
16
|
+
if (!cookieService) {
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
// bind cookieService
|
|
20
|
+
const subscription = cookieService.events$.subscribe(() => touch());
|
|
21
|
+
// clear subscription on unmount
|
|
22
|
+
return () => subscription.unsubscribe();
|
|
23
|
+
}, [cookieService, touch]);
|
|
24
|
+
if (!cookieService) {
|
|
25
|
+
throw new funnel_core_1.InvalidOperationError('Cannot access useCookieService() outside of CookieServiceProvider scope');
|
|
26
|
+
}
|
|
27
|
+
// return cookieService
|
|
28
|
+
return cookieService;
|
|
29
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IsometricError } from '@nascentdigital/funnel-core';
|
|
2
|
+
import { BehaviorSubject } from 'rxjs';
|
|
3
|
+
import { AnonymousIdentity, AuthenticatedIdentity } from '../domain';
|
|
4
|
+
import { IdentityClient } from './IdentityClient';
|
|
5
|
+
export declare abstract class AbstractIdentityClient implements IdentityClient {
|
|
6
|
+
protected readonly _identity$: BehaviorSubject<AnonymousIdentity | AuthenticatedIdentity | undefined>;
|
|
7
|
+
protected readonly _error$: BehaviorSubject<IsometricError | undefined>;
|
|
8
|
+
protected constructor();
|
|
9
|
+
get identity$(): import("rxjs").Observable<AnonymousIdentity | AuthenticatedIdentity | undefined>;
|
|
10
|
+
get identity(): AnonymousIdentity | AuthenticatedIdentity | undefined;
|
|
11
|
+
set identity(identity: AnonymousIdentity | AuthenticatedIdentity | undefined);
|
|
12
|
+
get error$(): import("rxjs").Observable<IsometricError | undefined>;
|
|
13
|
+
get error(): IsometricError | undefined;
|
|
14
|
+
set error(error: IsometricError | undefined);
|
|
15
|
+
abstract get availableMethods(): ReadonlyArray<IdentityClient.Method>;
|
|
16
|
+
abstract login(method?: IdentityClient.Method): Promise<void>;
|
|
17
|
+
abstract loginWithEmail(email: string, password: string): Promise<void>;
|
|
18
|
+
abstract logout(): Promise<void>;
|
|
19
|
+
abstract createAccount(email: string, password: string): Promise<void>;
|
|
20
|
+
abstract resetAccount(email: string): Promise<void>;
|
|
21
|
+
abstract deleteAccount(): Promise<void>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AbstractIdentityClient = void 0;
|
|
4
|
+
const rxjs_1 = require("rxjs");
|
|
5
|
+
// class
|
|
6
|
+
class AbstractIdentityClient {
|
|
7
|
+
constructor() {
|
|
8
|
+
// initialize instance variables
|
|
9
|
+
this._identity$ = new rxjs_1.BehaviorSubject(undefined);
|
|
10
|
+
this._error$ = new rxjs_1.BehaviorSubject(undefined);
|
|
11
|
+
}
|
|
12
|
+
get identity$() {
|
|
13
|
+
return this._identity$.asObservable();
|
|
14
|
+
}
|
|
15
|
+
get identity() {
|
|
16
|
+
return this._identity$.getValue();
|
|
17
|
+
}
|
|
18
|
+
set identity(identity) {
|
|
19
|
+
this._identity$.next(identity);
|
|
20
|
+
}
|
|
21
|
+
get error$() {
|
|
22
|
+
return this._error$.asObservable();
|
|
23
|
+
}
|
|
24
|
+
get error() {
|
|
25
|
+
return this._error$.getValue();
|
|
26
|
+
}
|
|
27
|
+
set error(error) {
|
|
28
|
+
this._error$.next(error);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.AbstractIdentityClient = AbstractIdentityClient;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IsometricError } from '@nascentdigital/funnel-core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { AnonymousIdentity, AuthenticatedIdentity } from '../domain';
|
|
4
|
+
export interface IdentityClient {
|
|
5
|
+
readonly identity$: Observable<AnonymousIdentity | AuthenticatedIdentity | undefined>;
|
|
6
|
+
readonly identity: AnonymousIdentity | AuthenticatedIdentity | undefined;
|
|
7
|
+
readonly availableMethods: ReadonlyArray<IdentityClient.Method>;
|
|
8
|
+
readonly error$: Observable<IsometricError | undefined>;
|
|
9
|
+
readonly error: IsometricError | undefined;
|
|
10
|
+
login(method?: IdentityClient.Method): Promise<void>;
|
|
11
|
+
loginWithEmail(email: string, password: string): Promise<void>;
|
|
12
|
+
logout(): Promise<void>;
|
|
13
|
+
createAccount(email: string, password: string): Promise<void>;
|
|
14
|
+
resetAccount(email: string): Promise<void>;
|
|
15
|
+
deleteAccount(): Promise<void>;
|
|
16
|
+
}
|
|
17
|
+
export declare namespace IdentityClient {
|
|
18
|
+
type Method = 'email' | 'google' | 'apple' | 'facebook' | 'linkedin';
|
|
19
|
+
namespace Method {
|
|
20
|
+
const all: ReadonlyArray<Method>;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IdentityClient = void 0;
|
|
4
|
+
// extension
|
|
5
|
+
var IdentityClient;
|
|
6
|
+
(function (IdentityClient) {
|
|
7
|
+
let Method;
|
|
8
|
+
(function (Method) {
|
|
9
|
+
Method.all = [
|
|
10
|
+
'email', 'google', 'apple', 'facebook', 'linkedin'
|
|
11
|
+
];
|
|
12
|
+
})(Method = IdentityClient.Method || (IdentityClient.Method = {}));
|
|
13
|
+
})(IdentityClient || (exports.IdentityClient = IdentityClient = {}));
|