diff --git a/packages/react/package.json b/packages/react/package.json index adc56488..5c9f27a8 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@frigade/react", - "version": "2.6.5", + "version": "2.6.5-unstable", "description": "Build better product onboarding, faster.", "type": "module", "main": "./dist/index.js", diff --git a/packages/react/release-unstable.sh b/packages/react/release-unstable.sh new file mode 100755 index 00000000..0f4116a5 --- /dev/null +++ b/packages/react/release-unstable.sh @@ -0,0 +1 @@ +yarn install && yarn build && npm publish --tag unstable diff --git a/packages/react/src/components/Collection/index.tsx b/packages/react/src/components/Collection/index.tsx index 565d742f..3937974b 100644 --- a/packages/react/src/components/Collection/index.tsx +++ b/packages/react/src/components/Collection/index.tsx @@ -48,6 +48,8 @@ export function Collection({ collectionId, part, variables = {}, ...props }: Col const { currentFlow } = useCollection(collectionId) + console.log('CDB: Collection component ', currentFlow) + const FlowComponent: EmotionJSX.ElementType = flowTypeMap[currentFlow?.rawData?.flowType] ?? null if (currentFlow == null || FlowComponent == null) { diff --git a/packages/react/src/components/Flow/index.tsx b/packages/react/src/components/Flow/index.tsx index 7b3dbb68..4d1f4c51 100644 --- a/packages/react/src/components/Flow/index.tsx +++ b/packages/react/src/components/Flow/index.tsx @@ -105,6 +105,8 @@ export function Flow({ const shouldForceMount = forceMount && (flow?.isCompleted || flow?.isSkipped) + console.log('CDB: Flow component ', flow, hasModalCollision, shouldForceMount) + if (!flow) { return null } diff --git a/packages/react/src/hooks/useCollection.ts b/packages/react/src/hooks/useCollection.ts index 9e2e7ec5..96f845e1 100644 --- a/packages/react/src/hooks/useCollection.ts +++ b/packages/react/src/hooks/useCollection.ts @@ -32,6 +32,8 @@ export function useCollection(collectionId?: string): { frigade?.registerCollection(collectionId) }, [collectionId]) + console.log('CDB: useCollection ', collection, flow) + return { collection, currentFlow: flow,