@adminide-stack/yantra-mobile 12.0.160-alpha.1 → 12.0.160
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/lib/assets/channels/lucy.jpg +0 -0
- package/lib/components/GatewayConnector/GatewayConnector.js +3 -2
- package/lib/components/GatewayConnector/GatewayConnector.js.map +1 -1
- package/lib/components/GatewayToolbarButtonMobile.js +4 -2
- package/lib/components/GatewayToolbarButtonMobile.js.map +1 -1
- package/lib/components/NavigationHeader/HeaderMoreMenu.js +2 -1
- package/lib/components/NavigationHeader/HeaderMoreMenu.js.map +1 -1
- package/lib/components/NavigationHeader/NavigationHeader.js +13 -11
- package/lib/components/NavigationHeader/NavigationHeader.js.map +1 -1
- package/lib/features/attachments/ComposerAttachMenu.js +15 -6
- package/lib/features/attachments/ComposerAttachMenu.js.map +1 -1
- package/lib/features/canvas/AudioEditorExperience.js +44 -1
- package/lib/features/canvas/AudioEditorExperience.js.map +1 -1
- package/lib/features/canvas/CanvasAppsPanel.js +240 -0
- package/lib/features/canvas/CanvasAppsPanel.js.map +1 -0
- package/lib/features/canvas/CanvasBoardsGrid.js +264 -803
- package/lib/features/canvas/CanvasBoardsGrid.js.map +1 -1
- package/lib/features/canvas/CanvasEditToolsPanel.js +320 -66
- package/lib/features/canvas/CanvasEditToolsPanel.js.map +1 -1
- package/lib/features/canvas/CanvasExperience.js +366 -235
- package/lib/features/canvas/CanvasExperience.js.map +1 -1
- package/lib/features/canvas/CanvasGeneratePanel.js +437 -117
- package/lib/features/canvas/CanvasGeneratePanel.js.map +1 -1
- package/lib/features/canvas/CanvasLibrarySheet.js +218 -18
- package/lib/features/canvas/CanvasLibrarySheet.js.map +1 -1
- package/lib/features/canvas/CanvasLooksPanel.js +2 -2
- package/lib/features/canvas/CanvasLooksPanel.js.map +1 -1
- package/lib/features/canvas/CanvasTasksPanel.js +52 -12
- package/lib/features/canvas/CanvasTasksPanel.js.map +1 -1
- package/lib/features/canvas/CanvasTemplatesPanel.js +2 -2
- package/lib/features/canvas/CanvasTemplatesPanel.js.map +1 -1
- package/lib/features/canvas/CanvasToolDock.js +146 -37
- package/lib/features/canvas/CanvasToolDock.js.map +1 -1
- package/lib/features/canvas/DesignCategoryGallery.js +264 -7
- package/lib/features/canvas/DesignCategoryGallery.js.map +1 -1
- package/lib/features/canvas/NativeCanvasViewer.js +54 -7
- package/lib/features/canvas/NativeCanvasViewer.js.map +1 -1
- package/lib/features/canvas/SetStudioExperience.js +7 -5
- package/lib/features/canvas/SetStudioExperience.js.map +1 -1
- package/lib/features/canvas/VideoEditorExperience.js +9 -5
- package/lib/features/canvas/VideoEditorExperience.js.map +1 -1
- package/lib/features/canvas/VideoGeneratorExperience.js +295 -96
- package/lib/features/canvas/VideoGeneratorExperience.js.map +1 -1
- package/lib/features/canvas/appsCatalog.js +554 -0
- package/lib/features/canvas/appsCatalog.js.map +1 -0
- package/lib/features/canvas/boardActions.js +547 -0
- package/lib/features/canvas/boardActions.js.map +1 -0
- package/lib/features/canvas/boardHistory.js +264 -0
- package/lib/features/canvas/boardHistory.js.map +1 -0
- package/lib/features/canvas/canvasAgentChat.js +3 -2
- package/lib/features/canvas/canvasAgentChat.js.map +1 -1
- package/lib/features/canvas/canvasArtifacts.js +115 -0
- package/lib/features/canvas/canvasArtifacts.js.map +1 -0
- package/lib/features/canvas/canvasCore.js +5 -2
- package/lib/features/canvas/canvasCore.js.map +1 -1
- package/lib/features/canvas/canvasEditHistory.js +42 -0
- package/lib/features/canvas/canvasEditHistory.js.map +1 -0
- package/lib/features/canvas/canvasEditOps.js +27 -21
- package/lib/features/canvas/canvasEditOps.js.map +1 -1
- package/lib/features/canvas/canvasTasks.js +5 -4
- package/lib/features/canvas/canvasTasks.js.map +1 -1
- package/lib/features/canvas/canvasUi.js +9 -4
- package/lib/features/canvas/canvasUi.js.map +1 -1
- package/lib/features/canvas/catalogSearchIndex.js +271 -0
- package/lib/features/canvas/catalogSearchIndex.js.map +1 -0
- package/lib/features/canvas/characters/CharacterBuilder.js +331 -0
- package/lib/features/canvas/characters/CharacterBuilder.js.map +1 -0
- package/lib/features/canvas/characters/CharacterPicker.js +207 -0
- package/lib/features/canvas/characters/CharacterPicker.js.map +1 -0
- package/lib/features/canvas/characters/CharacterStudio.js +106 -0
- package/lib/features/canvas/characters/CharacterStudio.js.map +1 -0
- package/lib/features/canvas/characters/PhotoDumpTool.js +157 -0
- package/lib/features/canvas/characters/PhotoDumpTool.js.map +1 -0
- package/lib/features/canvas/characters/PhotoSlot.js +104 -0
- package/lib/features/canvas/characters/PhotoSlot.js.map +1 -0
- package/lib/features/canvas/characters/RunFooter.js +126 -0
- package/lib/features/canvas/characters/RunFooter.js.map +1 -0
- package/lib/features/canvas/characters/StoryFramesTool.js +245 -0
- package/lib/features/canvas/characters/StoryFramesTool.js.map +1 -0
- package/lib/features/canvas/characters/SubjectPicker.js +198 -0
- package/lib/features/canvas/characters/SubjectPicker.js.map +1 -0
- package/lib/features/canvas/characters/characterActions.js +364 -0
- package/lib/features/canvas/characters/characterActions.js.map +1 -0
- package/lib/features/canvas/characters/characterRuns.js +256 -0
- package/lib/features/canvas/characters/characterRuns.js.map +1 -0
- package/lib/features/canvas/characters/characterStore.js +137 -0
- package/lib/features/canvas/characters/characterStore.js.map +1 -0
- package/lib/features/canvas/characters/characterTools.js +33 -0
- package/lib/features/canvas/characters/characterTools.js.map +1 -0
- package/lib/features/canvas/characters/characterVocabulary.js +1138 -0
- package/lib/features/canvas/characters/characterVocabulary.js.map +1 -0
- package/lib/features/canvas/characters/charactersRpc.js +70 -0
- package/lib/features/canvas/characters/charactersRpc.js.map +1 -0
- package/lib/features/canvas/characters/photoDumpPacks.js +252 -0
- package/lib/features/canvas/characters/photoDumpPacks.js.map +1 -0
- package/lib/features/canvas/characters/placement.js +114 -0
- package/lib/features/canvas/characters/placement.js.map +1 -0
- package/lib/features/canvas/characters/storyboard.js +188 -0
- package/lib/features/canvas/characters/storyboard.js.map +1 -0
- package/lib/features/canvas/createTiles.js +16 -98
- package/lib/features/canvas/createTiles.js.map +1 -1
- package/lib/features/canvas/creditsOffer.js +21 -0
- package/lib/features/canvas/creditsOffer.js.map +1 -0
- package/lib/features/canvas/deepLinks.js.map +1 -1
- package/lib/features/canvas/designCatalog.js +6 -13
- package/lib/features/canvas/designCatalog.js.map +1 -1
- package/lib/features/canvas/editTools.js +122 -10
- package/lib/features/canvas/editTools.js.map +1 -1
- package/lib/features/canvas/editorControls.js +1 -1
- package/lib/features/canvas/elements/ElementForm.js +389 -0
- package/lib/features/canvas/elements/ElementForm.js.map +1 -0
- package/lib/features/canvas/elements/ElementMentionMenu.js +125 -0
- package/lib/features/canvas/elements/ElementMentionMenu.js.map +1 -0
- package/lib/features/canvas/elements/ElementThumb.js +23 -0
- package/lib/features/canvas/elements/ElementThumb.js.map +1 -0
- package/lib/features/canvas/elements/ElementsButton.js +55 -0
- package/lib/features/canvas/elements/ElementsButton.js.map +1 -0
- package/lib/features/canvas/elements/ElementsSheet.js +392 -0
- package/lib/features/canvas/elements/ElementsSheet.js.map +1 -0
- package/lib/features/canvas/elements/MentionedElements.js +159 -0
- package/lib/features/canvas/elements/MentionedElements.js.map +1 -0
- package/lib/features/canvas/elements/elementCopy.js +37 -0
- package/lib/features/canvas/elements/elementCopy.js.map +1 -0
- package/lib/features/canvas/elements/elementImages.js +66 -0
- package/lib/features/canvas/elements/elementImages.js.map +1 -0
- package/lib/features/canvas/elements/elementsStore.js +164 -0
- package/lib/features/canvas/elements/elementsStore.js.map +1 -0
- package/lib/features/canvas/elements/shotMentions.js +94 -0
- package/lib/features/canvas/elements/shotMentions.js.map +1 -0
- package/lib/features/canvas/elements/unicodeWords.js +13 -0
- package/lib/features/canvas/elements/unicodeWords.js.map +1 -0
- package/lib/features/canvas/elements/useElementMentions.js +94 -0
- package/lib/features/canvas/elements/useElementMentions.js.map +1 -0
- package/lib/features/canvas/elements/useGeneratorElements.js +83 -0
- package/lib/features/canvas/elements/useGeneratorElements.js.map +1 -0
- package/lib/features/canvas/elements/useSavedElements.js +170 -0
- package/lib/features/canvas/elements/useSavedElements.js.map +1 -0
- package/lib/features/canvas/enhance/AnimateControls.js +249 -0
- package/lib/features/canvas/enhance/AnimateControls.js.map +1 -0
- package/lib/features/canvas/enhance/ClipAudioControls.js +184 -0
- package/lib/features/canvas/enhance/ClipAudioControls.js.map +1 -0
- package/lib/features/canvas/enhance/ImageAiControls.js +293 -0
- package/lib/features/canvas/enhance/ImageAiControls.js.map +1 -0
- package/lib/features/canvas/enhance/MediaSlot.js +220 -0
- package/lib/features/canvas/enhance/MediaSlot.js.map +1 -0
- package/lib/features/canvas/enhance/PixelToolControls.js +236 -0
- package/lib/features/canvas/enhance/PixelToolControls.js.map +1 -0
- package/lib/features/canvas/enhance/RemixControls.js +166 -0
- package/lib/features/canvas/enhance/RemixControls.js.map +1 -0
- package/lib/features/canvas/enhance/enhanceUi.js +182 -0
- package/lib/features/canvas/enhance/enhanceUi.js.map +1 -0
- package/lib/features/canvas/enhance/useEnhanceRunner.js +218 -0
- package/lib/features/canvas/enhance/useEnhanceRunner.js.map +1 -0
- package/lib/features/canvas/enhanceCatalog.js +110 -0
- package/lib/features/canvas/enhanceCatalog.js.map +1 -0
- package/lib/features/canvas/enhanceOps.js +630 -0
- package/lib/features/canvas/enhanceOps.js.map +1 -0
- package/lib/features/canvas/enhanceRpc.js +404 -0
- package/lib/features/canvas/enhanceRpc.js.map +1 -0
- package/lib/features/canvas/generationModels.js +82 -11
- package/lib/features/canvas/generationModels.js.map +1 -1
- package/lib/features/canvas/generationTasks.js +46 -17
- package/lib/features/canvas/generationTasks.js.map +1 -1
- package/lib/features/canvas/generator/GeneratorModelMenu.js +118 -0
- package/lib/features/canvas/generator/GeneratorModelMenu.js.map +1 -0
- package/lib/features/canvas/generator/audio/AudioLaneSettings.js +127 -0
- package/lib/features/canvas/generator/audio/AudioLaneSettings.js.map +1 -0
- package/lib/features/canvas/generator/audio/audioLane.js +163 -0
- package/lib/features/canvas/generator/audio/audioLane.js.map +1 -0
- package/lib/features/canvas/generator/audio/audioVoices.js +108 -0
- package/lib/features/canvas/generator/audio/audioVoices.js.map +1 -0
- package/lib/features/canvas/generator/audio/clipAudio.js +149 -0
- package/lib/features/canvas/generator/audio/clipAudio.js.map +1 -0
- package/lib/features/canvas/generator/audio/dub.js +109 -0
- package/lib/features/canvas/generator/audio/dub.js.map +1 -0
- package/lib/features/canvas/generator/audio/soundtrack.js +70 -0
- package/lib/features/canvas/generator/audio/soundtrack.js.map +1 -0
- package/lib/features/canvas/generator/audio/useAudioVoices.js +38 -0
- package/lib/features/canvas/generator/audio/useAudioVoices.js.map +1 -0
- package/lib/features/canvas/generator/audio/useSamplePlayer.js +72 -0
- package/lib/features/canvas/generator/audio/useSamplePlayer.js.map +1 -0
- package/lib/features/canvas/generator/audio/useSampleUploads.js +11 -0
- package/lib/features/canvas/generator/audio/useSampleUploads.js.map +1 -0
- package/lib/features/canvas/generator/batchImages.js +198 -0
- package/lib/features/canvas/generator/batchImages.js.map +1 -0
- package/lib/features/canvas/generator/batchLayout.js +36 -0
- package/lib/features/canvas/generator/batchLayout.js.map +1 -0
- package/lib/features/canvas/generator/brandKitGeneration.js +47 -0
- package/lib/features/canvas/generator/brandKitGeneration.js.map +1 -0
- package/lib/features/canvas/generator/cameraVocabulary.js +90 -0
- package/lib/features/canvas/generator/cameraVocabulary.js.map +1 -1
- package/lib/features/canvas/generator/cinematicVocabulary.js +58 -0
- package/lib/features/canvas/generator/cinematicVocabulary.js.map +1 -1
- package/lib/features/canvas/generator/elementMentions.js +402 -0
- package/lib/features/canvas/generator/elementMentions.js.map +1 -0
- package/lib/features/canvas/generator/reuse/BatchCountPill.js +136 -0
- package/lib/features/canvas/generator/reuse/BatchCountPill.js.map +1 -0
- package/lib/features/canvas/generator/reuse/busyRuns.js +17 -0
- package/lib/features/canvas/generator/reuse/busyRuns.js.map +1 -0
- package/lib/features/canvas/generator/reuse/generationRecord.js +368 -0
- package/lib/features/canvas/generator/reuse/generationRecord.js.map +1 -0
- package/lib/features/canvas/generator/reuse/generationReuse.js +77 -0
- package/lib/features/canvas/generator/reuse/generationReuse.js.map +1 -0
- package/lib/features/canvas/generator/reuse/laneInputs.js +75 -0
- package/lib/features/canvas/generator/reuse/laneInputs.js.map +1 -0
- package/lib/features/canvas/generator/reuse/modelFavourites.js +87 -0
- package/lib/features/canvas/generator/reuse/modelFavourites.js.map +1 -0
- package/lib/features/canvas/generator/reuse/recreate.js +121 -0
- package/lib/features/canvas/generator/reuse/recreate.js.map +1 -0
- package/lib/features/canvas/generator/reuse/retryJob.js +142 -0
- package/lib/features/canvas/generator/reuse/retryJob.js.map +1 -0
- package/lib/features/canvas/generator/reuse/reusePlan.js +203 -0
- package/lib/features/canvas/generator/reuse/reusePlan.js.map +1 -0
- package/lib/features/canvas/generator/reuse/runBoard.js +117 -0
- package/lib/features/canvas/generator/reuse/runBoard.js.map +1 -0
- package/lib/features/canvas/generator/useShotSpec.js +4 -3
- package/lib/features/canvas/generator/useShotSpec.js.map +1 -1
- package/lib/features/canvas/generator/video/VideoExtrasControls.js +276 -0
- package/lib/features/canvas/generator/video/VideoExtrasControls.js.map +1 -0
- package/lib/features/canvas/generator/video/cameraMotions.js +66 -0
- package/lib/features/canvas/generator/video/cameraMotions.js.map +1 -0
- package/lib/features/canvas/generator/video/clipTile.js +20 -0
- package/lib/features/canvas/generator/video/clipTile.js.map +1 -0
- package/lib/features/canvas/generator/video/mediaSeconds.js +31 -0
- package/lib/features/canvas/generator/video/mediaSeconds.js.map +1 -0
- package/lib/features/canvas/generator/video/referenceMedia.js +156 -0
- package/lib/features/canvas/generator/video/referenceMedia.js.map +1 -0
- package/lib/features/canvas/generator/video/useVideoGenExtras.js +179 -0
- package/lib/features/canvas/generator/video/useVideoGenExtras.js.map +1 -0
- package/lib/features/canvas/generator/video/videoExtras.js +34 -0
- package/lib/features/canvas/generator/video/videoExtras.js.map +1 -0
- package/lib/features/canvas/generator/video/videoModelCaps.js +96 -0
- package/lib/features/canvas/generator/video/videoModelCaps.js.map +1 -0
- package/lib/features/canvas/home/BoardHistorySheet.js +266 -0
- package/lib/features/canvas/home/BoardHistorySheet.js.map +1 -0
- package/lib/features/canvas/home/BoardMenuSheet.js +157 -0
- package/lib/features/canvas/home/BoardMenuSheet.js.map +1 -0
- package/lib/features/canvas/home/BoardTile.js +224 -0
- package/lib/features/canvas/home/BoardTile.js.map +1 -0
- package/lib/features/canvas/home/HeroComposer.js +72 -6
- package/lib/features/canvas/home/HeroComposer.js.map +1 -1
- package/lib/features/canvas/home/SlidesPrompt.js +79 -0
- package/lib/features/canvas/home/SlidesPrompt.js.map +1 -0
- package/lib/features/canvas/home/TemplatesGallery.js +2 -19
- package/lib/features/canvas/home/TemplatesGallery.js.map +1 -1
- package/lib/features/canvas/home/TrashView.js +299 -0
- package/lib/features/canvas/home/TrashView.js.map +1 -0
- package/lib/features/canvas/home/heroShots.js +4 -2
- package/lib/features/canvas/home/heroShots.js.map +1 -1
- package/lib/features/canvas/home/templatesGallerySources.js +13 -58
- package/lib/features/canvas/home/templatesGallerySources.js.map +1 -1
- package/lib/features/canvas/home/useYourWork.js +218 -0
- package/lib/features/canvas/home/useYourWork.js.map +1 -0
- package/lib/features/canvas/homeWork.js +54 -119
- package/lib/features/canvas/homeWork.js.map +1 -1
- package/lib/features/canvas/influencer/influencerPipeline.js +9 -8
- package/lib/features/canvas/influencer/influencerPipeline.js.map +1 -1
- package/lib/features/canvas/lazyEditors.js +3 -2
- package/lib/features/canvas/lazyEditors.js.map +1 -1
- package/lib/features/canvas/lookReading.js +38 -0
- package/lib/features/canvas/lookReading.js.map +1 -0
- package/lib/features/canvas/matchLook.js +81 -0
- package/lib/features/canvas/matchLook.js.map +1 -0
- package/lib/features/canvas/mediaUrls.js +22 -1
- package/lib/features/canvas/mediaUrls.js.map +1 -1
- package/lib/features/canvas/pngPixels.js +224 -0
- package/lib/features/canvas/pngPixels.js.map +1 -0
- package/lib/features/canvas/rankedCatalogSearch.js +1 -1
- package/lib/features/canvas/serverTasks.js +12 -5
- package/lib/features/canvas/serverTasks.js.map +1 -1
- package/lib/features/canvas/studioCatalog.js +1 -1
- package/lib/features/canvas/surfaceIndex.js +287 -11
- package/lib/features/canvas/surfaceIndex.js.map +1 -1
- package/lib/features/canvas/templateSearch.js +90 -11
- package/lib/features/canvas/templateSearch.js.map +1 -1
- package/lib/features/canvas/videoEditor/agent/agentLoop.js +6 -5
- package/lib/features/canvas/videoEditor/agent/agentLoop.js.map +1 -1
- package/lib/features/canvas/videoEditor/agent/brainClient.js +13 -2
- package/lib/features/canvas/videoEditor/agent/brainClient.js.map +1 -1
- package/lib/features/canvas/videoEditor/agent/cutTools.js +150 -4
- package/lib/features/canvas/videoEditor/agent/cutTools.js.map +1 -1
- package/lib/features/canvas/videoEditor/exportTask.js +5 -2
- package/lib/features/canvas/videoEditor/exportTask.js.map +1 -1
- package/lib/features/canvas/videoEditor/formWidgets.js +1 -1
- package/lib/features/canvas/videoEditor/mediaActions.js +18 -3
- package/lib/features/canvas/videoEditor/mediaActions.js.map +1 -1
- package/lib/features/canvas/videoEditor/produce/ProduceVideoSheet.js +25 -2
- package/lib/features/canvas/videoEditor/produce/ProduceVideoSheet.js.map +1 -1
- package/lib/features/canvas/videoEditor/produce/produceScenes.js +15 -7
- package/lib/features/canvas/videoEditor/produce/produceScenes.js.map +1 -1
- package/lib/features/canvas/videoEditor/remoteMediaClient.js +3 -3
- package/lib/features/canvas/videoEditor/remoteMediaClient.js.map +1 -1
- package/lib/features/channels/ChannelIcon.js +62 -0
- package/lib/features/channels/ChannelIcon.js.map +1 -0
- package/lib/features/channels/ConnectAppsSheet.js +721 -0
- package/lib/features/channels/ConnectAppsSheet.js.map +1 -0
- package/lib/features/channels/HomeImessage.js +48 -0
- package/lib/features/channels/HomeImessage.js.map +1 -0
- package/lib/features/channels/channelLinks.js +90 -0
- package/lib/features/channels/channelLinks.js.map +1 -0
- package/lib/features/channels/useChannelsApi.js +299 -0
- package/lib/features/channels/useChannelsApi.js.map +1 -0
- package/lib/features/chat/AskUserCard.js +327 -21
- package/lib/features/chat/AskUserCard.js.map +1 -1
- package/lib/features/chat/ChatModelSheet.js +414 -0
- package/lib/features/chat/ChatModelSheet.js.map +1 -0
- package/lib/features/chat/TemplatesChatCards.js +32 -1
- package/lib/features/chat/TemplatesChatCards.js.map +1 -1
- package/lib/features/chat/askUser.js +130 -17
- package/lib/features/chat/askUser.js.map +1 -1
- package/lib/features/chat/chatModelCredentials.js +76 -0
- package/lib/features/chat/chatModelCredentials.js.map +1 -0
- package/lib/features/chat/chatModelPick.js +67 -0
- package/lib/features/chat/chatModelPick.js.map +1 -0
- package/lib/features/chat/credentialTemplates.js +43 -0
- package/lib/features/chat/credentialTemplates.js.map +1 -0
- package/lib/features/design/DesignEditorExperience.js +208 -22
- package/lib/features/design/DesignEditorExperience.js.map +1 -1
- package/lib/features/design/DesignExperience.js +23 -6
- package/lib/features/design/DesignExperience.js.map +1 -1
- package/lib/features/design/doc/aiDesign.js +6 -16
- package/lib/features/design/doc/aiDesign.js.map +1 -1
- package/lib/features/design/doc/arrange.js +72 -0
- package/lib/features/design/doc/arrange.js.map +1 -0
- package/lib/features/design/doc/artifacts.js +40 -10
- package/lib/features/design/doc/artifacts.js.map +1 -1
- package/lib/features/design/doc/bleedRunout.js +201 -0
- package/lib/features/design/doc/bleedRunout.js.map +1 -0
- package/lib/features/design/doc/briefForms.js +218 -0
- package/lib/features/design/doc/briefForms.js.map +1 -0
- package/lib/features/design/doc/chart.js +11 -1
- package/lib/features/design/doc/chart.js.map +1 -1
- package/lib/features/design/doc/deletedWork.js +13 -0
- package/lib/features/design/doc/deletedWork.js.map +1 -0
- package/lib/features/design/doc/demoVideo.js +91 -0
- package/lib/features/design/doc/demoVideo.js.map +1 -0
- package/lib/features/design/doc/docOps.js +15 -0
- package/lib/features/design/doc/docOps.js.map +1 -1
- package/lib/features/design/doc/layoutGuides.js +159 -0
- package/lib/features/design/doc/layoutGuides.js.map +1 -0
- package/lib/features/design/doc/pageTemplates.js +286 -0
- package/lib/features/design/doc/pageTemplates.js.map +1 -0
- package/lib/features/design/doc/resize.js +8 -3
- package/lib/features/design/doc/resize.js.map +1 -1
- package/lib/features/design/doc/sizes.js +18 -5
- package/lib/features/design/doc/sizes.js.map +1 -1
- package/lib/features/design/doc/textRuns.js +67 -0
- package/lib/features/design/doc/textRuns.js.map +1 -0
- package/lib/features/design/doc/types.js +8 -1
- package/lib/features/design/doc/types.js.map +1 -1
- package/lib/features/design/editor/AiPanel.js +71 -74
- package/lib/features/design/editor/AiPanel.js.map +1 -1
- package/lib/features/design/editor/AllPagesPanel.js +64 -0
- package/lib/features/design/editor/AllPagesPanel.js.map +1 -0
- package/lib/features/design/editor/CarouselWizard.js +139 -0
- package/lib/features/design/editor/CarouselWizard.js.map +1 -0
- package/lib/features/design/editor/DesignCanvas.js +205 -14
- package/lib/features/design/editor/DesignCanvas.js.map +1 -1
- package/lib/features/design/editor/ExportSheet.js +24 -8
- package/lib/features/design/editor/ExportSheet.js.map +1 -1
- package/lib/features/design/editor/FlyerBriefForm.js +221 -0
- package/lib/features/design/editor/FlyerBriefForm.js.map +1 -0
- package/lib/features/design/editor/GuidesPanel.js +152 -0
- package/lib/features/design/editor/GuidesPanel.js.map +1 -0
- package/lib/features/design/editor/LayerTools.js +24 -1
- package/lib/features/design/editor/LayerTools.js.map +1 -1
- package/lib/features/design/editor/LayersPanel.js +156 -0
- package/lib/features/design/editor/LayersPanel.js.map +1 -0
- package/lib/features/design/editor/ToolPanels.js +34 -1
- package/lib/features/design/editor/ToolPanels.js.map +1 -1
- package/lib/features/design/editor/WordStyleRow.js +66 -0
- package/lib/features/design/editor/WordStyleRow.js.map +1 -0
- package/lib/features/design/editor/useDesignSave.js +36 -2
- package/lib/features/design/editor/useDesignSave.js.map +1 -1
- package/lib/features/design/export/exportDesign.js +79 -19
- package/lib/features/design/export/exportDesign.js.map +1 -1
- package/lib/features/design/export/fetchBytes.js +26 -0
- package/lib/features/design/export/fetchBytes.js.map +1 -0
- package/lib/features/design/export/pdf.js +16 -1
- package/lib/features/design/export/pdf.js.map +1 -1
- package/lib/features/design/export/pptx.js +621 -0
- package/lib/features/design/export/pptx.js.map +1 -0
- package/lib/features/design/export/pptxChart.js +106 -0
- package/lib/features/design/export/pptxChart.js.map +1 -0
- package/lib/features/design/export/pptxGeometry.js +219 -0
- package/lib/features/design/export/pptxGeometry.js.map +1 -0
- package/lib/features/design/export/printFile.js +19 -0
- package/lib/features/design/export/printFile.js.map +1 -0
- package/lib/features/design/export/zip.js +91 -0
- package/lib/features/design/export/zip.js.map +1 -0
- package/lib/features/design/render/PageCapture.js +95 -23
- package/lib/features/design/render/PageCapture.js.map +1 -1
- package/lib/features/design/render/TextMeasure.js +1 -1
- package/lib/features/design/render/layers.js +1 -1
- package/lib/features/design/surface/BoardScreen.js +139 -102
- package/lib/features/design/surface/BoardScreen.js.map +1 -1
- package/lib/features/design/surface/BrandSheet.js +407 -0
- package/lib/features/design/surface/BrandSheet.js.map +1 -0
- package/lib/features/design/surface/ChatWorkView.js +154 -0
- package/lib/features/design/surface/ChatWorkView.js.map +1 -0
- package/lib/features/design/surface/CreationScreen.js +36 -2
- package/lib/features/design/surface/CreationScreen.js.map +1 -1
- package/lib/features/design/surface/DesignAgentChatPane.js +7 -1
- package/lib/features/design/surface/DesignAgentChatPane.js.map +1 -1
- package/lib/features/design/surface/DesignHome.js +505 -0
- package/lib/features/design/surface/DesignHome.js.map +1 -0
- package/lib/features/design/surface/DesignSurfaceExperience.js +182 -9
- package/lib/features/design/surface/DesignSurfaceExperience.js.map +1 -1
- package/lib/features/design/surface/TasksSheet.js +141 -0
- package/lib/features/design/surface/TasksSheet.js.map +1 -0
- package/lib/features/design/surface/TemplatesGallery.js +67 -17
- package/lib/features/design/surface/TemplatesGallery.js.map +1 -1
- package/lib/features/design/surface/WorkTiles.js +207 -0
- package/lib/features/design/surface/WorkTiles.js.map +1 -0
- package/lib/features/design/surface/agentTurn.js +4 -4
- package/lib/features/design/surface/agentTurn.js.map +1 -1
- package/lib/features/design/surface/brandKit.js +204 -0
- package/lib/features/design/surface/brandKit.js.map +1 -0
- package/lib/features/design/surface/designBoard.js +269 -58
- package/lib/features/design/surface/designBoard.js.map +1 -1
- package/lib/features/design/surface/designChannel.js +30 -6
- package/lib/features/design/surface/designChannel.js.map +1 -1
- package/lib/features/design/surface/designConnector.js +11 -3
- package/lib/features/design/surface/designConnector.js.map +1 -1
- package/lib/features/design/surface/designErrors.js +92 -0
- package/lib/features/design/surface/designErrors.js.map +1 -0
- package/lib/features/design/surface/designLinks.js +64 -1
- package/lib/features/design/surface/designLinks.js.map +1 -1
- package/lib/features/design/surface/designRun.js +7 -3
- package/lib/features/design/surface/designRun.js.map +1 -1
- package/lib/features/design/surface/designTheme.js +54 -93
- package/lib/features/design/surface/designTheme.js.map +1 -1
- package/lib/features/design/surface/execStream.js +2 -2
- package/lib/features/design/surface/execStream.js.map +1 -1
- package/lib/features/design/surface/freshLinks.js +69 -0
- package/lib/features/design/surface/freshLinks.js.map +1 -0
- package/lib/features/design/surface/graphicChat.js +37 -0
- package/lib/features/design/surface/graphicChat.js.map +1 -0
- package/lib/features/design/surface/templateKinds.js +61 -0
- package/lib/features/design/surface/templateKinds.js.map +1 -0
- package/lib/features/design/surface/useBrandKitInUse.js +90 -0
- package/lib/features/design/surface/useBrandKitInUse.js.map +1 -0
- package/lib/features/design/surface/useDesignSurface.js +202 -43
- package/lib/features/design/surface/useDesignSurface.js.map +1 -1
- package/lib/features/design/surface/workList.js +184 -0
- package/lib/features/design/surface/workList.js.map +1 -0
- package/lib/features/devices/bodyComposition.js.map +1 -1
- package/lib/features/docs/DocsEditorExperience.js +18 -3
- package/lib/features/docs/DocsEditorExperience.js.map +1 -1
- package/lib/features/docs/docArtifacts.js +11 -23
- package/lib/features/docs/docArtifacts.js.map +1 -1
- package/lib/features/docs/docExport.js +1 -13
- package/lib/features/docs/docExport.js.map +1 -1
- package/lib/features/docs/docShare.js +28 -1
- package/lib/features/docs/docShare.js.map +1 -1
- package/lib/features/docs/docxFile.js +221 -0
- package/lib/features/docs/docxFile.js.map +1 -0
- package/lib/features/home/sky/HomeSky.js +526 -0
- package/lib/features/home/sky/HomeSky.js.map +1 -0
- package/lib/features/home/sky/homeSkyBar.js +16 -0
- package/lib/features/home/sky/homeSkyBar.js.map +1 -0
- package/lib/features/home/sky/skyScene.js +273 -0
- package/lib/features/home/sky/skyScene.js.map +1 -0
- package/lib/features/home/sky/useSkyScene.js +32 -0
- package/lib/features/home/sky/useSkyScene.js.map +1 -0
- package/lib/features/home/weather.js +8 -3
- package/lib/features/home/weather.js.map +1 -1
- package/lib/features/links/openInApp.js +8 -1
- package/lib/features/links/openInApp.js.map +1 -1
- package/lib/features/webbuilder/codezenHandoff.js +7 -1
- package/lib/features/webbuilder/codezenHandoff.js.map +1 -1
- package/lib/hooks/useChatStream.js +3 -2
- package/lib/hooks/useChatStream.js.map +1 -1
- package/lib/screens/DesignNative/index.js +13 -3
- package/lib/screens/DesignNative/index.js.map +1 -1
- package/lib/screens/Devices/index.js.map +1 -1
- package/lib/screens/Home/HomeScreen.js +150 -28
- package/lib/screens/Home/HomeScreen.js.map +1 -1
- package/lib/screens/Home/components/HomeHero.js +7 -4
- package/lib/screens/Home/components/HomeHero.js.map +1 -1
- package/lib/screens/Home/components/HomeSuggestions.js +5 -3
- package/lib/screens/Home/components/HomeSuggestions.js.map +1 -1
- package/package.json +4 -4
- package/lib/features/design/surface/DesignBoards.js +0 -441
- package/lib/features/design/surface/DesignBoards.js.map +0 -1
- package/lib/features/design/surface/WetPaint.js +0 -140
- package/lib/features/design/surface/WetPaint.js.map +0 -1
- package/lib/features/design/surface/metaball.js +0 -48
- package/lib/features/design/surface/metaball.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {jsxs,jsx,Fragment}from'react/jsx-runtime';import {useState,useMemo,
|
|
1
|
+
import {jsxs,jsx,Fragment}from'react/jsx-runtime';import {useState,useMemo,useRef,useCallback}from'react';import {useWindowDimensions,View,Text,ScrollView,TextInput,FlatList,StyleSheet,Linking}from'react-native';import {MaterialCommunityIcons}from'@expo/vector-icons';import {WORK_PAGE,gridColumns,keptFilesText,boardCover,boardMeta,relativeTime}from'./homeWork.js';import {BoardHistorySheet}from'./home/BoardHistorySheet.js';import {BoardMenuSheet,RenameBoardSheet,BoardMenuButton}from'./home/BoardMenuSheet.js';import {WorkNotice,COVER_RATIO,NoMatches,CardBody,BoardCover}from'./home/BoardTile.js';import {HeroComposer}from'./home/HeroComposer.js';import {LoopingVideo}from'./home/LoopingVideo.js';import {pickPlayingRegion,centredIndex}from'./home/heroShots.js';import {TrashView}from'./home/TrashView.js';import {useYourWork}from'./home/useYourWork.js';import {renewMediaUrl}from'./useMediaSource.js';import {useCanvasTheme,themedStyles,CanvasThemeToggle}from'./canvasTheme.js';import {Pressable,pressedStyle,SectionHeader,Skeleton,RADIUS,SPACE,CoverPlaceholder,TYPE}from'./canvasUi.js';var __defProp = Object.defineProperty;
|
|
2
2
|
var __defProps = Object.defineProperties;
|
|
3
3
|
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
4
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
@@ -17,174 +17,76 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
const MINUTE = 6e4;
|
|
21
|
-
const HOUR = 60 * MINUTE;
|
|
22
|
-
const DAY = 24 * HOUR;
|
|
23
20
|
const GUTTER = SPACE.lg;
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
image: {
|
|
37
|
-
light: ["#fef3c7", "#b45309"],
|
|
38
|
-
dark: ["rgba(251,191,36,0.14)", "#fcd34d"]
|
|
39
|
-
},
|
|
40
|
-
video: {
|
|
41
|
-
light: ["#ffe4e6", "#be123c"],
|
|
42
|
-
dark: ["rgba(251,113,133,0.14)", "#fda4af"]
|
|
43
|
-
},
|
|
44
|
-
audio: {
|
|
45
|
-
light: ["#e0f2fe", "#0369a1"],
|
|
46
|
-
dark: ["rgba(56,189,248,0.14)", "#7dd3fc"]
|
|
47
|
-
},
|
|
48
|
-
slides: {
|
|
49
|
-
light: ["#ede9fe", "#6d28d9"],
|
|
50
|
-
dark: ["rgba(167,139,250,0.16)", "#c4b5fd"]
|
|
51
|
-
},
|
|
52
|
-
clips: {
|
|
53
|
-
light: ["#d1fae5", "#047857"],
|
|
54
|
-
dark: ["rgba(52,211,153,0.14)", "#6ee7b7"]
|
|
55
|
-
},
|
|
56
|
-
promo: {
|
|
57
|
-
light: ["#ffedd5", "#c2410c"],
|
|
58
|
-
dark: ["rgba(251,146,60,0.14)", "#fdba74"]
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
const FORMAT_SHAPE = {
|
|
62
|
-
presentation: {
|
|
63
|
-
w: 16,
|
|
64
|
-
h: 9,
|
|
65
|
-
stack: true
|
|
66
|
-
},
|
|
67
|
-
social: {
|
|
68
|
-
w: 1,
|
|
69
|
-
h: 1
|
|
70
|
-
},
|
|
71
|
-
carousel: {
|
|
72
|
-
w: 4,
|
|
73
|
-
h: 5,
|
|
74
|
-
stack: true
|
|
75
|
-
},
|
|
76
|
-
flyer: {
|
|
77
|
-
w: 3,
|
|
78
|
-
h: 4
|
|
79
|
-
},
|
|
80
|
-
"business-card": {
|
|
81
|
-
w: 7,
|
|
82
|
-
h: 4,
|
|
83
|
-
stack: true
|
|
84
|
-
},
|
|
85
|
-
logo: {
|
|
86
|
-
w: 1,
|
|
87
|
-
h: 1,
|
|
88
|
-
round: true
|
|
89
|
-
},
|
|
90
|
-
banner: {
|
|
91
|
-
w: 3,
|
|
92
|
-
h: 1
|
|
93
|
-
},
|
|
94
|
-
brochure: {
|
|
95
|
-
w: 11,
|
|
96
|
-
h: 8.5,
|
|
97
|
-
stack: true
|
|
98
|
-
},
|
|
99
|
-
branding: {
|
|
100
|
-
w: 8.5,
|
|
101
|
-
h: 11
|
|
102
|
-
},
|
|
103
|
-
doc: {
|
|
104
|
-
w: 8.5,
|
|
105
|
-
h: 11
|
|
106
|
-
},
|
|
107
|
-
custom: {
|
|
108
|
-
w: 5,
|
|
109
|
-
h: 4
|
|
110
|
-
},
|
|
111
|
-
tshirt: {
|
|
112
|
-
w: 5,
|
|
113
|
-
h: 6
|
|
21
|
+
const GROUP_HUES = {
|
|
22
|
+
generate: {
|
|
23
|
+
wash: "rgba(239,68,68,0.1)",
|
|
24
|
+
rule: ["rgba(239,68,68,0.25)", "rgba(248,113,113,0.3)"],
|
|
25
|
+
ink: ["#b91c1c", "#fca5a5"],
|
|
26
|
+
title: ["#991b1b", "#fecaca"]
|
|
27
|
+
},
|
|
28
|
+
edit: {
|
|
29
|
+
wash: "rgba(139,92,246,0.1)",
|
|
30
|
+
rule: ["rgba(139,92,246,0.25)", "rgba(167,139,250,0.3)"],
|
|
31
|
+
ink: ["#6d28d9", "#c4b5fd"],
|
|
32
|
+
title: ["#5b21b6", "#ddd6fe"]
|
|
114
33
|
}
|
|
115
34
|
};
|
|
116
|
-
const
|
|
117
|
-
const
|
|
35
|
+
const CREATE_COLUMN_GAP = 12;
|
|
36
|
+
const CREATE_ROW_MIN = 144;
|
|
118
37
|
const SHOWCASE_WIDTH = 248;
|
|
38
|
+
const TILE_MIN = 148;
|
|
39
|
+
const TILE_GAP = 12;
|
|
119
40
|
function CanvasBoardsGrid({
|
|
120
41
|
boards,
|
|
42
|
+
loading = false,
|
|
43
|
+
boardsMissing,
|
|
121
44
|
onOpen,
|
|
45
|
+
manager,
|
|
122
46
|
onNewCanvas,
|
|
123
|
-
designs = [],
|
|
124
|
-
onOpenDesign,
|
|
125
|
-
studioDesigns = [],
|
|
126
|
-
onOpenStudioDesign,
|
|
127
|
-
docs = [],
|
|
128
|
-
onOpenDoc,
|
|
129
47
|
onAskAgent,
|
|
130
48
|
createGroups = [],
|
|
131
49
|
onCreate,
|
|
132
50
|
featuredLooks = [],
|
|
133
|
-
onRecreateLook,
|
|
134
|
-
onOpenCategory,
|
|
135
|
-
templateRails,
|
|
136
|
-
onOpenTemplate,
|
|
137
|
-
onSeeAllTemplates,
|
|
138
|
-
onRetryTemplates,
|
|
139
51
|
showcase = [],
|
|
140
52
|
onUseShowcasePrompt,
|
|
141
53
|
runAction,
|
|
142
54
|
onStartWithPrompt,
|
|
143
55
|
onPickReference,
|
|
144
56
|
onBrowseTemplates,
|
|
145
|
-
studioMore = false,
|
|
146
|
-
studioError = null,
|
|
147
|
-
onRetryStudioDesigns,
|
|
148
|
-
onLoadMoreWork,
|
|
149
57
|
currentSessionId,
|
|
150
58
|
onOpenSession
|
|
151
59
|
}) {
|
|
152
60
|
const theme = useCanvasTheme();
|
|
153
61
|
const styles = makeStyles(theme);
|
|
154
|
-
const
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
const
|
|
158
|
-
const
|
|
62
|
+
const window = useWindowDimensions();
|
|
63
|
+
const [planeWidth, setPlaneWidth] = useState(0);
|
|
64
|
+
const width = planeWidth || window.width;
|
|
65
|
+
const contentWidth = width - GUTTER * 2;
|
|
66
|
+
const columns = gridColumns(contentWidth, TILE_MIN, TILE_GAP);
|
|
67
|
+
const tileWidth = Math.floor((contentWidth - TILE_GAP * (columns - 1)) / columns);
|
|
68
|
+
const rowWidth = (contentWidth - CREATE_COLUMN_GAP) / 2 >= CREATE_ROW_MIN ? (contentWidth - CREATE_COLUMN_GAP) / 2 : contentWidth;
|
|
159
69
|
const [visible, setVisible] = useState(WORK_PAGE);
|
|
160
|
-
const [filter, setFilter] = useState("all");
|
|
161
|
-
const [lookIndex, setLookIndex] = useState(-1);
|
|
162
70
|
const renew = useMemo(() => renewMediaUrl(runAction), [runAction]);
|
|
163
|
-
const work =
|
|
164
|
-
const
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
const
|
|
171
|
-
const lead = useMemo(() => [{
|
|
172
|
-
kind: "new",
|
|
173
|
-
id: "__new__"
|
|
174
|
-
}, ...startSession ? [{
|
|
71
|
+
const work = useYourWork(boards, manager);
|
|
72
|
+
const {
|
|
73
|
+
items,
|
|
74
|
+
search,
|
|
75
|
+
nameOf
|
|
76
|
+
} = work;
|
|
77
|
+
const startSession = currentSessionId && onOpenSession && !search && !boards.some((b) => b.channelId === currentSessionId) ? currentSessionId : null;
|
|
78
|
+
const tiles = useMemo(() => [...startSession ? [{
|
|
175
79
|
kind: "start",
|
|
176
80
|
id: "__start__",
|
|
177
81
|
sessionId: startSession
|
|
178
|
-
}] : []
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
const hasMore = visible <
|
|
185
|
-
const
|
|
186
|
-
height: windowHeight
|
|
187
|
-
} = useWindowDimensions();
|
|
82
|
+
}] : [], ...(search ? items : items.slice(0, visible)).map((board) => ({
|
|
83
|
+
kind: "board",
|
|
84
|
+
id: board.channelId,
|
|
85
|
+
board
|
|
86
|
+
}))], [startSession, items, search, visible]);
|
|
87
|
+
const inTrash = work.view === "trash";
|
|
88
|
+
const hasMore = !inTrash && !search && visible < items.length;
|
|
89
|
+
const windowHeight = window.height;
|
|
188
90
|
const regions = useRef({
|
|
189
91
|
hero: {
|
|
190
92
|
top: 0,
|
|
@@ -207,12 +109,23 @@ function CanvasBoardsGrid({
|
|
|
207
109
|
}, regions.current[id])), viewport.current.top, viewport.current.height);
|
|
208
110
|
setPlaying((prev) => prev === next ? prev : next);
|
|
209
111
|
}, []);
|
|
210
|
-
const
|
|
112
|
+
const measureHero = (e) => {
|
|
113
|
+
const {
|
|
114
|
+
y,
|
|
115
|
+
height
|
|
116
|
+
} = e.nativeEvent.layout;
|
|
117
|
+
regions.current.hero = {
|
|
118
|
+
top: y + SPACE.sm,
|
|
119
|
+
height
|
|
120
|
+
};
|
|
121
|
+
govern();
|
|
122
|
+
};
|
|
123
|
+
const measureShowcase = (e) => {
|
|
211
124
|
const {
|
|
212
125
|
y,
|
|
213
126
|
height
|
|
214
127
|
} = e.nativeEvent.layout;
|
|
215
|
-
regions.current
|
|
128
|
+
regions.current.showcase = {
|
|
216
129
|
top: y + SPACE.sm,
|
|
217
130
|
height
|
|
218
131
|
};
|
|
@@ -237,38 +150,51 @@ function CanvasBoardsGrid({
|
|
|
237
150
|
const next = centredIndex(contentOffset.x, layoutMeasurement.width, SHOWCASE_WIDTH, SPACE.sm, GUTTER, showcase.length);
|
|
238
151
|
setShowcaseIndex((prev) => prev === next ? prev : next);
|
|
239
152
|
};
|
|
240
|
-
const playingNow = lookIndex >= 0 ? null : playing;
|
|
241
153
|
const rows = useMemo(() => {
|
|
154
|
+
if (inTrash) return [];
|
|
242
155
|
const chunked = [];
|
|
243
|
-
for (let i = 0; i < tiles.length; i +=
|
|
156
|
+
for (let i = 0; i < tiles.length; i += columns) chunked.push(tiles.slice(i, i + columns));
|
|
244
157
|
return chunked;
|
|
245
|
-
}, [tiles]);
|
|
158
|
+
}, [tiles, columns, inTrash]);
|
|
246
159
|
const loadMore = useCallback(() => {
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
160
|
+
setVisible((count) => Math.min(count + WORK_PAGE, items.length));
|
|
161
|
+
}, [items.length]);
|
|
162
|
+
const createGroup = (entry) => {
|
|
163
|
+
var _a;
|
|
164
|
+
const hue = (_a = GROUP_HUES[entry.id]) != null ? _a : GROUP_HUES.generate;
|
|
165
|
+
const shade = theme.isDark ? 1 : 0;
|
|
166
|
+
return /* @__PURE__ */ jsxs(View, { style: styles.section, children: [
|
|
167
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.groupTitle, {
|
|
168
|
+
color: hue.title[shade],
|
|
169
|
+
borderBottomColor: hue.rule[shade]
|
|
170
|
+
}], accessibilityRole: "header", children: entry.title }),
|
|
171
|
+
/* @__PURE__ */ jsx(View, { style: styles.createRows, children: entry.tiles.map((tile) => /* @__PURE__ */ jsxs(Pressable, { onPress: () => onCreate == null ? void 0 : onCreate(tile.action, tile.id), style: ({
|
|
172
|
+
pressed
|
|
173
|
+
}) => [styles.createRow, {
|
|
174
|
+
width: rowWidth
|
|
175
|
+
}, pressedStyle(pressed)], accessibilityRole: "button", accessibilityLabel: `${tile.label}: ${tile.hint}`, testID: `create-tile-${tile.id}`, children: [
|
|
176
|
+
/* @__PURE__ */ jsx(View, { style: [styles.createIcon, {
|
|
177
|
+
backgroundColor: hue.wash
|
|
178
|
+
}], children: /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: tile.icon, size: 16, color: hue.ink[shade] }) }),
|
|
179
|
+
/* @__PURE__ */ jsxs(View, { style: styles.createText, children: [
|
|
180
|
+
/* @__PURE__ */ jsx(Text, { style: styles.createLabel, children: tile.label }),
|
|
181
|
+
/* @__PURE__ */ jsx(Text, { style: styles.createHint, children: tile.hint })
|
|
182
|
+
] })
|
|
183
|
+
] }, tile.id)) })
|
|
184
|
+
] }, entry.id);
|
|
271
185
|
};
|
|
186
|
+
const shownNotice = work.notice;
|
|
187
|
+
const noticeAction = (shownNotice == null ? void 0 : shownNotice.kind) === "trashed" ? {
|
|
188
|
+
action: {
|
|
189
|
+
label: "Undo",
|
|
190
|
+
onPress: () => void work.undoTrash(shownNotice.boardId, shownNotice.name)
|
|
191
|
+
}
|
|
192
|
+
} : (shownNotice == null ? void 0 : shownNotice.kind) === "copied" ? {
|
|
193
|
+
action: {
|
|
194
|
+
label: "Open",
|
|
195
|
+
onPress: () => onOpen(shownNotice.boardId)
|
|
196
|
+
}
|
|
197
|
+
} : {};
|
|
272
198
|
const header = /* @__PURE__ */ jsxs(View, { style: styles.header, children: [
|
|
273
199
|
onStartWithPrompt ? null : (
|
|
274
200
|
// Without the hero (no generator seam) home keeps a plain title row.
|
|
@@ -284,7 +210,7 @@ function CanvasBoardsGrid({
|
|
|
284
210
|
/* @__PURE__ */ jsx(Text, { style: styles.promptText, numberOfLines: 1, children: "Describe what you want to make" }),
|
|
285
211
|
/* @__PURE__ */ jsx(View, { style: styles.promptGo, children: /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "arrow-up", size: 18, color: theme.primaryForeground }) })
|
|
286
212
|
] }) : null,
|
|
287
|
-
onStartWithPrompt ? /* @__PURE__ */ jsx(View, { onLayout:
|
|
213
|
+
onStartWithPrompt ? /* @__PURE__ */ jsx(View, { onLayout: measureHero, children: /* @__PURE__ */ jsx(HeroComposer, { featuredLooks, showcase, playing: playing === "hero", onStartWithPrompt, onPickReference, onBrowseTemplates, runAction, headerActions: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
288
214
|
onAskAgent ? /* @__PURE__ */ jsx(Pressable, { onPress: onAskAgent, style: ({
|
|
289
215
|
pressed
|
|
290
216
|
}) => [styles.toggle, pressedStyle(pressed)], accessibilityRole: "button", accessibilityLabel: "Open AI Chat", children: /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "creation", size: 20, color: theme.foreground }) }) : null,
|
|
@@ -294,235 +220,106 @@ function CanvasBoardsGrid({
|
|
|
294
220
|
// Web home: the hero, then a "Create" heading over the tool groups.
|
|
295
221
|
/* @__PURE__ */ jsxs(View, { style: styles.createHead, children: [
|
|
296
222
|
/* @__PURE__ */ jsx(Text, { style: styles.createTitle, accessibilityRole: "header", children: "Create" }),
|
|
297
|
-
/* @__PURE__ */ jsx(Text, { style: styles.createSub, children: "Generate
|
|
223
|
+
/* @__PURE__ */ jsx(Text, { style: styles.createSub, children: "Generate or edit media." })
|
|
298
224
|
] })
|
|
299
225
|
) : null,
|
|
300
|
-
onCreate
|
|
301
|
-
|
|
302
|
-
/* @__PURE__ */ jsx(View, { style: styles.lanes, children: generate.tiles.map(lane) })
|
|
303
|
-
] }) : null,
|
|
304
|
-
onCreate && designGroup ? /* @__PURE__ */ jsxs(View, { style: styles.section, children: [
|
|
305
|
-
/* @__PURE__ */ jsx(SectionHeader, { title: "Design" }),
|
|
306
|
-
/* @__PURE__ */ jsx(ScrollView, { horizontal: true, showsHorizontalScrollIndicator: false, style: styles.bleed, contentContainerStyle: styles.railContent, children: designGroup.tiles.map((tile) => /* @__PURE__ */ jsx(FormatTile, { tile, onPress: () => {
|
|
307
|
-
if (!(onOpenCategory == null ? void 0 : onOpenCategory(tile.id))) onCreate(tile.action, tile.id);
|
|
308
|
-
} }, tile.id)) })
|
|
309
|
-
] }) : null,
|
|
310
|
-
onCreate && edit ? /* @__PURE__ */ jsxs(View, { style: styles.section, children: [
|
|
311
|
-
/* @__PURE__ */ jsx(SectionHeader, { title: "Edit & produce" }),
|
|
312
|
-
/* @__PURE__ */ jsx(ScrollView, { horizontal: true, showsHorizontalScrollIndicator: false, style: styles.bleed, contentContainerStyle: styles.railContent, children: edit.tiles.map((tile) => /* @__PURE__ */ jsxs(Pressable, { onPress: () => onCreate(tile.action, tile.id), style: ({
|
|
313
|
-
pressed
|
|
314
|
-
}) => [styles.tool, pressedStyle(pressed)], accessibilityRole: "button", accessibilityLabel: `${tile.label}: ${tile.hint}`, testID: `create-tile-${tile.id}`, children: [
|
|
315
|
-
/* @__PURE__ */ jsx(MaterialCommunityIcons, { name: tile.icon, size: 18, color: theme.foreground }),
|
|
316
|
-
/* @__PURE__ */ jsx(Text, { style: styles.toolLabel, children: tile.label })
|
|
317
|
-
] }, tile.id)) })
|
|
318
|
-
] }) : null,
|
|
319
|
-
featuredLooks.length > 0 && onRecreateLook ? /* @__PURE__ */ jsxs(View, { style: styles.section, children: [
|
|
320
|
-
/* @__PURE__ */ jsx(SectionHeader, { title: "Looks", detail: "Recreate a studio style" }),
|
|
321
|
-
/* @__PURE__ */ jsx(ScrollView, { horizontal: true, showsHorizontalScrollIndicator: false, style: styles.bleed, contentContainerStyle: styles.railContent, children: featuredLooks.map((look, i) => /* @__PURE__ */ jsxs(Pressable, { onPress: () => setLookIndex(i), style: ({
|
|
322
|
-
pressed
|
|
323
|
-
}) => [styles.look, pressedStyle(pressed)], accessibilityRole: "button", accessibilityLabel: `Open look ${look.name}`, children: [
|
|
324
|
-
look.cover ? /* @__PURE__ */ jsx(Image, { source: {
|
|
325
|
-
uri: look.cover
|
|
326
|
-
}, style: StyleSheet.absoluteFill, contentFit: "cover" }) : /* @__PURE__ */ jsx(View, { style: [styles.fill, styles.centered], children: /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "movie-open-outline", size: 22, color: theme.mutedForeground }) }),
|
|
327
|
-
/* @__PURE__ */ jsx(View, { style: styles.lookCaption, children: /* @__PURE__ */ jsx(Text, { style: styles.lookName, numberOfLines: 2, children: look.name }) })
|
|
328
|
-
] }, look.id)) })
|
|
329
|
-
] }) : null,
|
|
330
|
-
templateRails && onOpenTemplate ? /* @__PURE__ */ jsx(TemplateRails, { state: templateRails, onOpenTemplate, onSeeAll: onSeeAllTemplates, onRetry: onRetryTemplates }) : null,
|
|
331
|
-
showcase.length > 0 && onUseShowcasePrompt ? /* @__PURE__ */ jsxs(View, { style: styles.section, onLayout: measure("showcase"), children: [
|
|
226
|
+
onCreate ? createGroups.map(createGroup) : null,
|
|
227
|
+
showcase.length > 0 && onUseShowcasePrompt ? /* @__PURE__ */ jsxs(View, { style: styles.showcaseSection, onLayout: measureShowcase, children: [
|
|
332
228
|
/* @__PURE__ */ jsx(SectionHeader, { title: "Made with Seedance 2.0" }),
|
|
333
|
-
/* @__PURE__ */ jsx(
|
|
229
|
+
/* @__PURE__ */ jsx(Text, { style: styles.showcaseSub, children: "Community examples, CC-BY-4.0. Use one as your starting prompt." }),
|
|
230
|
+
/* @__PURE__ */ jsx(ScrollView, { horizontal: true, showsHorizontalScrollIndicator: false, style: styles.bleed, contentContainerStyle: styles.railContent, onScroll: onShowcaseScroll, scrollEventThrottle: 100, children: showcase.map((clip, i) => /* @__PURE__ */ jsx(ShowcaseTile, { clip, playing: playing === "showcase" && i === showcaseIndex, onUse: () => onUseShowcasePrompt(clip) }, clip.id)) })
|
|
334
231
|
] }) : null,
|
|
335
232
|
/* @__PURE__ */ jsxs(View, { style: styles.workHead, children: [
|
|
336
|
-
/* @__PURE__ */ jsx(
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
/* @__PURE__ */
|
|
345
|
-
|
|
233
|
+
/* @__PURE__ */ jsx(Text, { style: styles.createTitle, accessibilityRole: "header", children: inTrash ? "Trash" : "Your work" }),
|
|
234
|
+
/* @__PURE__ */ jsxs(View, { style: styles.workActions, children: [
|
|
235
|
+
manager ? /* @__PURE__ */ jsxs(Pressable, { onPress: () => work.switchView(inTrash ? "work" : "trash"), style: ({
|
|
236
|
+
pressed
|
|
237
|
+
}) => [styles.blank, pressedStyle(pressed)], accessibilityRole: "button", testID: inTrash ? "work-view-work" : "work-view-trash", children: [
|
|
238
|
+
/* @__PURE__ */ jsx(MaterialCommunityIcons, { name: inTrash ? "arrow-left" : "trash-can-outline", size: 16, color: theme.foreground }),
|
|
239
|
+
/* @__PURE__ */ jsx(Text, { style: styles.retryLabel, children: inTrash ? "Your work" : "Trash" })
|
|
240
|
+
] }) : null,
|
|
241
|
+
/* @__PURE__ */ jsxs(Pressable, { onPress: onNewCanvas, style: ({
|
|
242
|
+
pressed
|
|
243
|
+
}) => [styles.blank, pressedStyle(pressed)], accessibilityRole: "button", children: [
|
|
244
|
+
/* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "plus", size: 16, color: theme.foreground }),
|
|
245
|
+
/* @__PURE__ */ jsx(Text, { style: styles.retryLabel, children: "Blank canvas" })
|
|
246
|
+
] })
|
|
247
|
+
] }),
|
|
248
|
+
inTrash || boards.length > 0 ? /* @__PURE__ */ jsxs(View, { style: styles.search, children: [
|
|
249
|
+
/* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "magnify", size: 16, color: theme.mutedForeground }),
|
|
250
|
+
/* @__PURE__ */ jsx(TextInput, { value: work.query, onChangeText: work.setQuery, placeholder: "Search canvases", placeholderTextColor: theme.mutedForeground, accessibilityLabel: "Search canvases", returnKeyType: "search", autoCorrect: false, clearButtonMode: "while-editing", style: styles.searchInput, testID: "work-search" })
|
|
346
251
|
] }) : null
|
|
347
|
-
] })
|
|
252
|
+
] }),
|
|
253
|
+
work.notice ? /* @__PURE__ */ jsx(WorkNotice, __spreadProps(__spreadValues({ tone: work.notice.kind === "error" ? "error" : "info", text: work.notice.text }, noticeAction), { onDismiss: () => work.setNotice(null) })) : null,
|
|
254
|
+
work.kept ? /* @__PURE__ */ jsx(WorkNotice, { tone: "info", text: keptFilesText(work.kept), onDismiss: () => work.setKept(null) }) : null,
|
|
255
|
+
!inTrash && boardsMissing && !work.missingDismissed ? /* @__PURE__ */ jsx(WorkNotice, __spreadProps(__spreadValues({ tone: "error", text: "Some of your canvases couldn't be loaded, so they're missing here and from search." }, manager ? {
|
|
256
|
+
action: {
|
|
257
|
+
label: "Try again",
|
|
258
|
+
onPress: manager.refresh
|
|
259
|
+
}
|
|
260
|
+
} : {}), { onDismiss: () => work.setMissingDismissed(true) })) : null
|
|
348
261
|
] });
|
|
349
262
|
const footer = hasMore ? /* @__PURE__ */ jsx(View, { style: styles.workFooter, children: /* @__PURE__ */ jsx(Pressable, { onPress: loadMore, style: ({
|
|
350
263
|
pressed
|
|
351
264
|
}) => [styles.showAll, pressedStyle(pressed)], accessibilityRole: "button", testID: "your-work-load-more", children: /* @__PURE__ */ jsx(Text, { style: styles.retryLabel, children: "Load more" }) }) }) : null;
|
|
265
|
+
const empty = inTrash && manager ? /* @__PURE__ */ jsx(TrashView, { query: search, onClearQuery: () => work.setQuery(""), tileWidth, gap: TILE_GAP, index: manager.index, nameOf, onOpen, onChanged: manager.refresh, runAction, renew }) : loading && boards.length === 0 ? /* @__PURE__ */ jsx(View, { style: styles.row, accessibilityState: {
|
|
266
|
+
busy: true
|
|
267
|
+
}, children: [0, 1].map((i) => /* @__PURE__ */ jsx(Skeleton, { radius: RADIUS.md, style: {
|
|
268
|
+
width: tileWidth,
|
|
269
|
+
aspectRatio: COVER_RATIO
|
|
270
|
+
} }, i)) }) : search ? /* @__PURE__ */ jsx(NoMatches, { onClear: () => work.setQuery("") }) : /* @__PURE__ */ jsxs(View, { style: styles.empty, children: [
|
|
271
|
+
/* @__PURE__ */ jsx(Text, { style: styles.emptyTitle, children: "Your canvases will appear here" }),
|
|
272
|
+
/* @__PURE__ */ jsx(Text, { style: styles.emptyDetail, children: "Choose a tool in Create, or start from a template below. Your canvases will appear here, newest first." })
|
|
273
|
+
] });
|
|
352
274
|
const renderTile = (item) => {
|
|
353
|
-
var _a, _b, _c;
|
|
354
|
-
if (item.kind === "new") {
|
|
355
|
-
return /* @__PURE__ */ jsxs(Pressable, { onPress: onNewCanvas, style: ({
|
|
356
|
-
pressed
|
|
357
|
-
}) => [{
|
|
358
|
-
width: tileWidth
|
|
359
|
-
}, pressedStyle(pressed)], accessibilityRole: "button", accessibilityLabel: "New canvas", children: [
|
|
360
|
-
/* @__PURE__ */ jsx(View, { style: [styles.cover, styles.coverNew], children: /* @__PURE__ */ jsx(View, { style: styles.newPlus, children: /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "plus", size: 24, color: theme.primaryForeground }) }) }),
|
|
361
|
-
/* @__PURE__ */ jsx(Text, { style: styles.workTitle, children: "New canvas" }),
|
|
362
|
-
/* @__PURE__ */ jsx(Text, { style: styles.workMeta, children: "Start blank" })
|
|
363
|
-
] });
|
|
364
|
-
}
|
|
365
275
|
if (item.kind === "start") {
|
|
366
276
|
return /* @__PURE__ */ jsxs(Pressable, { onPress: () => onOpenSession == null ? void 0 : onOpenSession(item.sessionId), style: ({
|
|
367
277
|
pressed
|
|
368
278
|
}) => [{
|
|
369
279
|
width: tileWidth
|
|
370
280
|
}, pressedStyle(pressed)], accessibilityRole: "button", accessibilityLabel: "Open this chat's canvas", children: [
|
|
371
|
-
/* @__PURE__ */ jsx(View, { style: [styles.
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
const {
|
|
377
|
-
work: entry
|
|
378
|
-
} = item;
|
|
379
|
-
if (entry.type === "doc") {
|
|
380
|
-
const title2 = ((_a = entry.doc.title) == null ? void 0 : _a.trim()) || "Untitled doc";
|
|
381
|
-
return /* @__PURE__ */ jsxs(Pressable, { onPress: () => onOpenDoc == null ? void 0 : onOpenDoc(entry.doc.id), style: ({
|
|
382
|
-
pressed
|
|
383
|
-
}) => [{
|
|
384
|
-
width: tileWidth
|
|
385
|
-
}, pressedStyle(pressed)], accessibilityRole: "button", accessibilityLabel: `Open doc ${title2}`, children: [
|
|
386
|
-
/* @__PURE__ */ jsx(View, { style: [styles.cover, styles.centered], children: /* @__PURE__ */ jsx(DocPaper, { blocks: entry.doc.doc.blocks, title: title2, height: tileWidth - SPACE.lg * 2 }) }),
|
|
387
|
-
/* @__PURE__ */ jsx(Text, { style: styles.workTitle, numberOfLines: 1, children: title2 }),
|
|
388
|
-
/* @__PURE__ */ jsx(Text, { style: styles.workMeta, numberOfLines: 1, children: `Doc \xB7 ${relativeTime(entry.doc.updatedAt)}` })
|
|
389
|
-
] });
|
|
390
|
-
}
|
|
391
|
-
if (entry.type === "studio") {
|
|
392
|
-
const {
|
|
393
|
-
doc,
|
|
394
|
-
title: title2
|
|
395
|
-
} = entry.studio;
|
|
396
|
-
const page = doc.pages[0];
|
|
397
|
-
const frame = tileWidth - SPACE.xl * 2;
|
|
398
|
-
const ratio = doc.pageHeight / doc.pageWidth;
|
|
399
|
-
const pageW = ratio > 1 ? frame / ratio : frame;
|
|
400
|
-
const noun = studioNoun(entry.studio);
|
|
401
|
-
const meta = [noun, doc.pages.length > 1 ? `${doc.pages.length} pages` : "", relativeTime(entry.studio.updatedAt)].filter(Boolean).join(" \xB7 ");
|
|
402
|
-
return /* @__PURE__ */ jsxs(Pressable, { onPress: () => onOpenStudioDesign == null ? void 0 : onOpenStudioDesign(entry.studio.id), style: ({
|
|
403
|
-
pressed
|
|
404
|
-
}) => [{
|
|
405
|
-
width: tileWidth
|
|
406
|
-
}, pressedStyle(pressed)], accessibilityRole: "button", accessibilityLabel: `Open ${noun.toLowerCase()} ${title2}`, children: [
|
|
407
|
-
/* @__PURE__ */ jsx(View, { style: [styles.cover, styles.centered], children: page ? /* @__PURE__ */ jsx(DesignPageView, { doc, page, width: pageW }) : null }),
|
|
408
|
-
/* @__PURE__ */ jsx(Text, { style: styles.workTitle, numberOfLines: 1, children: title2 || "Untitled design" }),
|
|
409
|
-
/* @__PURE__ */ jsx(Text, { style: styles.workMeta, numberOfLines: 1, children: meta })
|
|
410
|
-
] });
|
|
411
|
-
}
|
|
412
|
-
if (entry.type === "design") {
|
|
413
|
-
const {
|
|
414
|
-
design
|
|
415
|
-
} = entry;
|
|
416
|
-
const noun = designNoun(design.doc);
|
|
417
|
-
const title2 = ((_b = design.title) == null ? void 0 : _b.trim()) || `Untitled ${noun.toLowerCase()}`;
|
|
418
|
-
const meta = [noun, pageCount(design.doc), relativeTime(design.savedAt)].filter(Boolean).join(" \xB7 ");
|
|
419
|
-
return /* @__PURE__ */ jsxs(Pressable, { onPress: () => onOpenDesign == null ? void 0 : onOpenDesign(design.channelId), style: ({
|
|
420
|
-
pressed
|
|
421
|
-
}) => [{
|
|
422
|
-
width: tileWidth
|
|
423
|
-
}, pressedStyle(pressed)], accessibilityRole: "button", accessibilityLabel: `Open ${noun.toLowerCase()} ${title2}`, children: [
|
|
424
|
-
/* @__PURE__ */ jsx(View, { style: [styles.cover, styles.centered], children: /* @__PURE__ */ jsx(DesignThumb, { doc: design.doc, maxWidth: tileWidth - SPACE.xl * 2, maxHeight: tileWidth - SPACE.xl * 2 }) }),
|
|
425
|
-
/* @__PURE__ */ jsx(Text, { style: styles.workTitle, numberOfLines: 1, children: title2 }),
|
|
426
|
-
/* @__PURE__ */ jsx(Text, { style: styles.workMeta, numberOfLines: 1, children: meta })
|
|
281
|
+
/* @__PURE__ */ jsx(View, { style: [styles.coverNew, {
|
|
282
|
+
width: tileWidth,
|
|
283
|
+
height: Math.round(tileWidth / COVER_RATIO)
|
|
284
|
+
}], children: /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "image-outline", size: 24, color: theme.mutedForeground }) }),
|
|
285
|
+
/* @__PURE__ */ jsx(CardBody, { title: "This chat's canvas", meta: "Start creating here" })
|
|
427
286
|
] });
|
|
428
287
|
}
|
|
429
288
|
const {
|
|
430
289
|
board
|
|
431
|
-
} =
|
|
432
|
-
const
|
|
433
|
-
|
|
434
|
-
return /* @__PURE__ */ jsxs(Pressable, { onPress: () => onOpen(board.channelId), style: ({
|
|
435
|
-
pressed
|
|
436
|
-
}) => [{
|
|
290
|
+
} = item;
|
|
291
|
+
const title = nameOf(board);
|
|
292
|
+
return /* @__PURE__ */ jsxs(View, { style: {
|
|
437
293
|
width: tileWidth
|
|
438
|
-
},
|
|
439
|
-
/* @__PURE__ */ jsxs(
|
|
440
|
-
|
|
441
|
-
|
|
294
|
+
}, children: [
|
|
295
|
+
/* @__PURE__ */ jsxs(Pressable, { onPress: () => onOpen(board.channelId), style: ({
|
|
296
|
+
pressed
|
|
297
|
+
}) => pressedStyle(pressed), accessibilityRole: "button", accessibilityLabel: `Open canvas ${title}`, children: [
|
|
298
|
+
/* @__PURE__ */ jsx(BoardCover, { item: boardCover(board.board.items), width: tileWidth, runAction, renew }),
|
|
299
|
+
/* @__PURE__ */ jsx(CardBody, { title, meta: boardMeta(board.itemCount, relativeTime(board.savedAt)) })
|
|
442
300
|
] }),
|
|
443
|
-
/* @__PURE__ */ jsx(
|
|
444
|
-
/* @__PURE__ */ jsx(Text, { style: styles.workMeta, numberOfLines: 1, children: `Canvas \xB7 ${relativeTime(board.savedAt)}` })
|
|
301
|
+
manager ? /* @__PURE__ */ jsx(View, { style: styles.tileMenu, children: /* @__PURE__ */ jsx(BoardMenuButton, { title, busy: work.busy.has(board.channelId), onPress: () => work.setMenuFor(board) }) }) : null
|
|
445
302
|
] });
|
|
446
303
|
};
|
|
447
|
-
return /* @__PURE__ */ jsxs(View, { style: styles.plane, children: [
|
|
448
|
-
work.
|
|
449
|
-
header,
|
|
450
|
-
/* @__PURE__ */ jsxs(View, { style: styles.empty, children: [
|
|
451
|
-
/* @__PURE__ */ jsx(View, { style: styles.emptyIcon, children: /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "image-multiple-outline", size: 26, color: theme.foreground }) }),
|
|
452
|
-
/* @__PURE__ */ jsx(Text, { style: styles.emptyTitle, children: "Nothing here yet" }),
|
|
453
|
-
/* @__PURE__ */ jsx(Text, { style: styles.emptyDetail, children: "Every chat gets its own canvas. Generate an image, video or audio and it lands here." }),
|
|
454
|
-
/* @__PURE__ */ jsxs(Pressable, { onPress: onNewCanvas, style: ({
|
|
455
|
-
pressed
|
|
456
|
-
}) => [styles.emptyCta, pressedStyle(pressed)], accessibilityRole: "button", children: [
|
|
457
|
-
/* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "plus", size: 18, color: theme.primaryForeground }),
|
|
458
|
-
/* @__PURE__ */ jsx(Text, { style: styles.emptyCtaLabel, children: "New canvas" })
|
|
459
|
-
] })
|
|
460
|
-
] })
|
|
461
|
-
] }) : /* @__PURE__ */ jsx(FlatList, { data: rows, keyExtractor: (pair) => pair.map((item) => item.id).join(":"), contentContainerStyle: styles.list, showsVerticalScrollIndicator: false, onEndReached: loadMore, onEndReachedThreshold: 0.4, onScroll: onListScroll, scrollEventThrottle: 100, ListHeaderComponent: header, ListFooterComponent: footer, renderItem: ({
|
|
304
|
+
return /* @__PURE__ */ jsxs(View, { style: styles.plane, onLayout: (e) => setPlaneWidth(e.nativeEvent.layout.width), children: [
|
|
305
|
+
/* @__PURE__ */ jsx(FlatList, { data: rows, extraData: [work.busy, work.notice, tileWidth], keyboardShouldPersistTaps: "handled", keyExtractor: (pair) => pair.map((item) => item.id).join(":"), contentContainerStyle: styles.list, showsVerticalScrollIndicator: false, onScroll: onListScroll, scrollEventThrottle: 100, ListHeaderComponent: header, ListEmptyComponent: empty, ListFooterComponent: footer, renderItem: ({
|
|
462
306
|
item: pair
|
|
463
|
-
}) => /* @__PURE__ */
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
onRetry
|
|
480
|
-
}) {
|
|
481
|
-
const theme = useCanvasTheme();
|
|
482
|
-
const styles = makeStyles(theme);
|
|
483
|
-
const count = state.rows[0].length + state.rows[1].length;
|
|
484
|
-
const pending = state.status === "loading";
|
|
485
|
-
if (state.status === "ready" && count === 0) return null;
|
|
486
|
-
return /* @__PURE__ */ jsxs(View, { style: styles.section, children: [
|
|
487
|
-
/* @__PURE__ */ jsx(SectionHeader, { title: "Templates for you", action: onSeeAll ? "See all" : void 0, onAction: onSeeAll }),
|
|
488
|
-
state.status === "failed" ? /* @__PURE__ */ jsxs(View, { style: styles.railError, children: [
|
|
489
|
-
/* @__PURE__ */ jsx(Text, { style: styles.railErrorText, children: count ? "Some templates couldn't load." : "Templates couldn't load." }),
|
|
490
|
-
onRetry ? /* @__PURE__ */ jsxs(Pressable, { onPress: onRetry, hitSlop: 8, style: ({
|
|
491
|
-
pressed
|
|
492
|
-
}) => [styles.retry, pressedStyle(pressed)], accessibilityRole: "button", children: [
|
|
493
|
-
/* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "refresh", size: 16, color: theme.foreground }),
|
|
494
|
-
/* @__PURE__ */ jsx(Text, { style: styles.retryLabel, children: "Retry" })
|
|
495
|
-
] }) : null
|
|
496
|
-
] }) : null,
|
|
497
|
-
state.rows.map((row, index) => row.length || pending ? /* @__PURE__ */ jsxs(ScrollView, { horizontal: true, showsHorizontalScrollIndicator: false, style: [styles.bleed, index === 0 && styles.templateRowGap], contentContainerStyle: styles.railContent, children: [
|
|
498
|
-
row.map((card) => /* @__PURE__ */ jsx(TemplateCover, { card, onPress: () => onOpenTemplate(card.id) }, card.id)),
|
|
499
|
-
pending ? Array.from({
|
|
500
|
-
length: row.length ? 2 : 4
|
|
501
|
-
}, (_, i) => /* @__PURE__ */ jsx(Skeleton, { radius: RADIUS.md, style: {
|
|
502
|
-
width: Math.round(TEMPLATE_HEIGHT * TEMPLATE_SKELETON_RATIOS[(i + index) % TEMPLATE_SKELETON_RATIOS.length]),
|
|
503
|
-
height: TEMPLATE_HEIGHT
|
|
504
|
-
} }, `skeleton-${i}`)) : null
|
|
505
|
-
] }, index) : null)
|
|
506
|
-
] });
|
|
507
|
-
}
|
|
508
|
-
function TemplateCover({
|
|
509
|
-
card,
|
|
510
|
-
onPress
|
|
511
|
-
}) {
|
|
512
|
-
const theme = useCanvasTheme();
|
|
513
|
-
const styles = makeStyles(theme);
|
|
514
|
-
const [loaded, setLoaded] = useState(false);
|
|
515
|
-
const width = Math.min(Math.round(TEMPLATE_HEIGHT * card.pageWidth / card.pageHeight), TEMPLATE_HEIGHT * 2);
|
|
516
|
-
return /* @__PURE__ */ jsxs(Pressable, { onPress, style: ({
|
|
517
|
-
pressed
|
|
518
|
-
}) => [styles.templateCover, {
|
|
519
|
-
width,
|
|
520
|
-
height: TEMPLATE_HEIGHT
|
|
521
|
-
}, pressedStyle(pressed)], accessibilityRole: "button", accessibilityLabel: `Use template ${card.title}`, children: [
|
|
522
|
-
loaded ? null : /* @__PURE__ */ jsx(Skeleton, {}),
|
|
523
|
-
/* @__PURE__ */ jsx(Image, { source: {
|
|
524
|
-
uri: card.coverUrl
|
|
525
|
-
}, style: StyleSheet.absoluteFill, contentFit: "contain", transition: 150, onLoad: () => setLoaded(true) })
|
|
307
|
+
}) => /* @__PURE__ */ jsx(View, { style: styles.row, children: pair.map((entry) => /* @__PURE__ */ jsx(View, { children: renderTile(entry) }, entry.id)) }) }),
|
|
308
|
+
manager ? /* @__PURE__ */ jsx(BoardMenuSheet, { title: work.menuFor ? nameOf(work.menuFor) : null, onAction: work.act, onClose: () => work.setMenuFor(null) }) : null,
|
|
309
|
+
work.renaming ? /* @__PURE__ */ jsx(RenameBoardSheet, { initial: nameOf(work.renaming), onCommit: (typed) => {
|
|
310
|
+
if (work.renaming) void work.rename(work.renaming, typed);
|
|
311
|
+
}, onClose: () => work.setRenaming(null) }) : null,
|
|
312
|
+
manager && work.historyFor ? /* @__PURE__ */ jsx(BoardHistorySheet, { boardId: work.historyFor.channelId, itemCount: work.historyFor.itemCount, index: manager.index, runAction, renew, onRestored: () => {
|
|
313
|
+
work.setHistoryFor(null);
|
|
314
|
+
work.setNotice({
|
|
315
|
+
kind: "info",
|
|
316
|
+
text: "Version restored. What was on the canvas before is kept in Version history, so you can switch back."
|
|
317
|
+
});
|
|
318
|
+
manager.refresh();
|
|
319
|
+
}, onFailed: (reason) => work.setNotice({
|
|
320
|
+
kind: "error",
|
|
321
|
+
text: `Version not restored. ${reason}`
|
|
322
|
+
}), onClose: () => work.setHistoryFor(null) }) : null
|
|
526
323
|
] });
|
|
527
324
|
}
|
|
528
325
|
function ShowcaseTile({
|
|
@@ -540,8 +337,7 @@ function ShowcaseTile({
|
|
|
540
337
|
pressed
|
|
541
338
|
}) => [styles.showcasePoster, pressedStyle(pressed)], accessibilityRole: "button", accessibilityLabel: `Use the prompt from ${clip.title}`, children: [
|
|
542
339
|
/* @__PURE__ */ jsx(CoverPlaceholder, { seed: clip.id, icon: "play" }),
|
|
543
|
-
/* @__PURE__ */ jsx(LoopingVideo, { src: clip.hls, poster: clip.poster, playing })
|
|
544
|
-
playing ? null : /* @__PURE__ */ jsx(View, { style: styles.playBadge, pointerEvents: "none", children: /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "play", size: 16, color: "#fafafa" }) })
|
|
340
|
+
/* @__PURE__ */ jsx(LoopingVideo, { src: clip.hls, poster: clip.poster, playing })
|
|
545
341
|
] }),
|
|
546
342
|
/* @__PURE__ */ jsx(Text, { style: styles.workTitle, numberOfLines: 1, children: clip.title }),
|
|
547
343
|
/* @__PURE__ */ jsxs(Pressable, { onPress: openSource, hitSlop: 6, style: styles.credit, accessibilityRole: "link", accessibilityLabel: `By ${clip.author}, ${clip.license}. Open the original post`, children: [
|
|
@@ -556,211 +352,6 @@ function ShowcaseTile({
|
|
|
556
352
|
] })
|
|
557
353
|
] });
|
|
558
354
|
}
|
|
559
|
-
function FormatTile({
|
|
560
|
-
tile,
|
|
561
|
-
onPress
|
|
562
|
-
}) {
|
|
563
|
-
var _a;
|
|
564
|
-
const theme = useCanvasTheme();
|
|
565
|
-
const styles = makeStyles(theme);
|
|
566
|
-
const shape = (_a = FORMAT_SHAPE[tile.id]) != null ? _a : {
|
|
567
|
-
w: 1,
|
|
568
|
-
h: 1
|
|
569
|
-
};
|
|
570
|
-
const box = 56;
|
|
571
|
-
const scale = box / Math.max(shape.w, shape.h);
|
|
572
|
-
const pageW = shape.w * scale;
|
|
573
|
-
const pageH = shape.h * scale;
|
|
574
|
-
return /* @__PURE__ */ jsxs(Pressable, { onPress, style: ({
|
|
575
|
-
pressed
|
|
576
|
-
}) => [styles.format, pressedStyle(pressed)], accessibilityRole: "button", accessibilityLabel: `${tile.label}: ${tile.hint}`, testID: `create-tile-${tile.id}`, children: [
|
|
577
|
-
/* @__PURE__ */ jsxs(View, { style: styles.formatWell, children: [
|
|
578
|
-
shape.stack ? /* @__PURE__ */ jsx(View, { style: [styles.formatPage, styles.formatPageBack, {
|
|
579
|
-
width: pageW,
|
|
580
|
-
height: pageH
|
|
581
|
-
}] }) : null,
|
|
582
|
-
/* @__PURE__ */ jsx(View, { style: [styles.formatPage, {
|
|
583
|
-
width: pageW,
|
|
584
|
-
height: pageH
|
|
585
|
-
}, shape.round && {
|
|
586
|
-
borderRadius: pageW / 2
|
|
587
|
-
}], children: /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: tile.icon, size: 18, color: theme.mutedForeground }) })
|
|
588
|
-
] }),
|
|
589
|
-
/* @__PURE__ */ jsx(Text, { style: styles.formatLabel, numberOfLines: 1, children: tile.label })
|
|
590
|
-
] });
|
|
591
|
-
}
|
|
592
|
-
function BoardCover({
|
|
593
|
-
item,
|
|
594
|
-
seed,
|
|
595
|
-
runAction,
|
|
596
|
-
renew
|
|
597
|
-
}) {
|
|
598
|
-
const theme = useCanvasTheme();
|
|
599
|
-
const styles = makeStyles(theme);
|
|
600
|
-
const isVideo = item.type === "video";
|
|
601
|
-
const [frame, setFrame] = useState(isVideo ? void 0 : item.src);
|
|
602
|
-
const [loaded, setLoaded] = useState(false);
|
|
603
|
-
useEffect(() => {
|
|
604
|
-
if (!isVideo) return void 0;
|
|
605
|
-
if (!runAction) {
|
|
606
|
-
setFrame(null);
|
|
607
|
-
return void 0;
|
|
608
|
-
}
|
|
609
|
-
let live = true;
|
|
610
|
-
void videoCoverFrame(unwrapProxyUrl(item.src), runAction, (result) => resultUrl(result, "YANTRA_VIDEO_EDIT_THUMBNAIL")).then((url) => {
|
|
611
|
-
if (live) setFrame(url);
|
|
612
|
-
});
|
|
613
|
-
return () => {
|
|
614
|
-
live = false;
|
|
615
|
-
};
|
|
616
|
-
}, [item.src, isVideo, runAction]);
|
|
617
|
-
const media = useMediaSource(frame != null ? frame : "", "image", renew);
|
|
618
|
-
const [stalled, setStalled] = useState(false);
|
|
619
|
-
useEffect(() => {
|
|
620
|
-
setLoaded(false);
|
|
621
|
-
setStalled(false);
|
|
622
|
-
const timer = setTimeout(() => setStalled(true), COVER_STALL_MS);
|
|
623
|
-
return () => clearTimeout(timer);
|
|
624
|
-
}, [media.key]);
|
|
625
|
-
if (frame === null || media.phase === "broken") {
|
|
626
|
-
return /* @__PURE__ */ jsx(CoverPlaceholder, { seed, icon: isVideo ? "play" : "image-outline", label: isVideo ? "Video" : void 0 });
|
|
627
|
-
}
|
|
628
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
629
|
-
loaded && media.phase === "ok" ? null : stalled ? /* @__PURE__ */ jsx(CoverPlaceholder, { seed, icon: isVideo ? "play" : "image-outline" }) : /* @__PURE__ */ jsx(Skeleton, {}),
|
|
630
|
-
frame ? /* @__PURE__ */ jsx(Image, { source: {
|
|
631
|
-
uri: media.src
|
|
632
|
-
}, style: StyleSheet.absoluteFill, contentFit: "cover", transition: 200, onLoad: () => setLoaded(true), onError: media.onError }, media.key) : null,
|
|
633
|
-
isVideo && loaded ? /* @__PURE__ */ jsx(View, { style: styles.playBadge, pointerEvents: "none", children: /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "play", size: 16, color: "#fafafa" }) }) : null
|
|
634
|
-
] });
|
|
635
|
-
}
|
|
636
|
-
function DesignThumb({
|
|
637
|
-
doc,
|
|
638
|
-
maxWidth,
|
|
639
|
-
maxHeight
|
|
640
|
-
}) {
|
|
641
|
-
const theme = useCanvasTheme();
|
|
642
|
-
const styles = makeStyles(theme);
|
|
643
|
-
const page = doc.pages[0];
|
|
644
|
-
if (!page || !(page.width > 0) || !(page.height > 0)) {
|
|
645
|
-
return /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "shape-outline", size: 28, color: theme.mutedForeground });
|
|
646
|
-
}
|
|
647
|
-
const scale = Math.min(maxWidth / page.width, maxHeight / page.height);
|
|
648
|
-
const layers = [...page.layers].sort((a, b) => a.zIndex - b.zIndex);
|
|
649
|
-
return /* @__PURE__ */ jsx(View, { style: [styles.designPage, {
|
|
650
|
-
width: page.width * scale,
|
|
651
|
-
height: page.height * scale,
|
|
652
|
-
backgroundColor: page.background || "#ffffff"
|
|
653
|
-
}], pointerEvents: "none", children: layers.length === 0 ? (
|
|
654
|
-
// An untouched page: a faint layout sketch (title, lines, picture) instead of a blank sheet.
|
|
655
|
-
/* @__PURE__ */ jsxs(View, { style: styles.sketch, children: [
|
|
656
|
-
/* @__PURE__ */ jsx(View, { style: [styles.sketchBar, {
|
|
657
|
-
width: "62%",
|
|
658
|
-
height: "9%"
|
|
659
|
-
}] }),
|
|
660
|
-
/* @__PURE__ */ jsx(View, { style: [styles.sketchBar, {
|
|
661
|
-
width: "86%",
|
|
662
|
-
height: "5%"
|
|
663
|
-
}] }),
|
|
664
|
-
/* @__PURE__ */ jsx(View, { style: [styles.sketchBar, {
|
|
665
|
-
width: "70%",
|
|
666
|
-
height: "5%"
|
|
667
|
-
}] }),
|
|
668
|
-
/* @__PURE__ */ jsx(View, { style: [styles.sketchBar, styles.sketchBlock], children: /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "image-outline", size: 16, color: "#b4b4bb" }) }),
|
|
669
|
-
/* @__PURE__ */ jsx(Text, { style: styles.blankPage, children: designNoun(doc) })
|
|
670
|
-
] })
|
|
671
|
-
) : layers.map((layer) => /* @__PURE__ */ jsx(DesignThumbLayer, { layer, scale }, layer.id)) });
|
|
672
|
-
}
|
|
673
|
-
function DesignThumbLayer({
|
|
674
|
-
layer,
|
|
675
|
-
scale
|
|
676
|
-
}) {
|
|
677
|
-
const box = {
|
|
678
|
-
position: "absolute",
|
|
679
|
-
left: layer.x * scale,
|
|
680
|
-
top: layer.y * scale,
|
|
681
|
-
width: layer.width * scale,
|
|
682
|
-
height: layer.height * scale,
|
|
683
|
-
opacity: layer.opacity
|
|
684
|
-
};
|
|
685
|
-
if (layer.type === "image") {
|
|
686
|
-
return /* @__PURE__ */ jsx(Image, { source: {
|
|
687
|
-
uri: layer.src
|
|
688
|
-
}, style: box, contentFit: "cover" });
|
|
689
|
-
}
|
|
690
|
-
if (layer.type === "shape") {
|
|
691
|
-
return /* @__PURE__ */ jsx(View, { style: [box, {
|
|
692
|
-
backgroundColor: layer.fill,
|
|
693
|
-
borderRadius: layer.cornerRadius * scale
|
|
694
|
-
}] });
|
|
695
|
-
}
|
|
696
|
-
return /* @__PURE__ */ jsx(Text, { style: [box, {
|
|
697
|
-
color: layer.color,
|
|
698
|
-
fontSize: Math.max(4, layer.fontSize * scale),
|
|
699
|
-
lineHeight: Math.max(5, layer.fontSize * scale * 1.15),
|
|
700
|
-
fontWeight: layer.bold ? "700" : "400",
|
|
701
|
-
textAlign: layer.align
|
|
702
|
-
}], numberOfLines: 3, children: layer.text });
|
|
703
|
-
}
|
|
704
|
-
function DocPaper({
|
|
705
|
-
blocks,
|
|
706
|
-
title,
|
|
707
|
-
height
|
|
708
|
-
}) {
|
|
709
|
-
const lines = docPreviewLines(blocks, 7);
|
|
710
|
-
const width = Math.round(height * 8.5 / 11);
|
|
711
|
-
return /* @__PURE__ */ jsxs(View, { style: [docPaperStyles.page, {
|
|
712
|
-
width,
|
|
713
|
-
height
|
|
714
|
-
}], pointerEvents: "none", children: [
|
|
715
|
-
/* @__PURE__ */ jsx(Text, { style: docPaperStyles.title, numberOfLines: 1, children: title }),
|
|
716
|
-
lines.length ? lines.map((line, i) => /* @__PURE__ */ jsx(Text, { style: line.heading ? docPaperStyles.heading : docPaperStyles.line, numberOfLines: 2, children: line.text }, i)) : (
|
|
717
|
-
// A new doc has no words yet; ruled lines say "page" without inventing text.
|
|
718
|
-
[92, 100, 84, 96, 70].map((w, i) => /* @__PURE__ */ jsx(View, { style: [docPaperStyles.rule, {
|
|
719
|
-
width: `${w}%`
|
|
720
|
-
}] }, i))
|
|
721
|
-
)
|
|
722
|
-
] });
|
|
723
|
-
}
|
|
724
|
-
const docPaperStyles = StyleSheet.create({
|
|
725
|
-
page: {
|
|
726
|
-
backgroundColor: "#ffffff",
|
|
727
|
-
borderRadius: 3,
|
|
728
|
-
padding: 10,
|
|
729
|
-
gap: 5,
|
|
730
|
-
overflow: "hidden",
|
|
731
|
-
shadowColor: "#000",
|
|
732
|
-
shadowOpacity: 0.12,
|
|
733
|
-
shadowRadius: 4,
|
|
734
|
-
shadowOffset: {
|
|
735
|
-
width: 0,
|
|
736
|
-
height: 1
|
|
737
|
-
},
|
|
738
|
-
elevation: 2
|
|
739
|
-
},
|
|
740
|
-
title: {
|
|
741
|
-
fontSize: 10,
|
|
742
|
-
lineHeight: 13,
|
|
743
|
-
fontWeight: "700",
|
|
744
|
-
color: "#171717"
|
|
745
|
-
},
|
|
746
|
-
heading: {
|
|
747
|
-
fontSize: 8,
|
|
748
|
-
lineHeight: 11,
|
|
749
|
-
fontWeight: "600",
|
|
750
|
-
color: "#262626"
|
|
751
|
-
},
|
|
752
|
-
line: {
|
|
753
|
-
fontSize: 8,
|
|
754
|
-
lineHeight: 11,
|
|
755
|
-
color: "#525252"
|
|
756
|
-
},
|
|
757
|
-
rule: {
|
|
758
|
-
height: 4,
|
|
759
|
-
borderRadius: 2,
|
|
760
|
-
backgroundColor: "#e5e5e5",
|
|
761
|
-
marginTop: 4
|
|
762
|
-
}
|
|
763
|
-
});
|
|
764
355
|
const makeStyles = themedStyles((theme) => StyleSheet.create({
|
|
765
356
|
plane: {
|
|
766
357
|
flex: 1,
|
|
@@ -841,114 +432,49 @@ const makeStyles = themedStyles((theme) => StyleSheet.create({
|
|
|
841
432
|
paddingHorizontal: GUTTER,
|
|
842
433
|
gap: SPACE.sm
|
|
843
434
|
},
|
|
844
|
-
|
|
435
|
+
groupTitle: __spreadProps(__spreadValues({}, TYPE.title), {
|
|
436
|
+
fontSize: 18,
|
|
437
|
+
lineHeight: 24,
|
|
438
|
+
marginBottom: SPACE.md,
|
|
439
|
+
paddingBottom: SPACE.sm,
|
|
440
|
+
borderBottomWidth: StyleSheet.hairlineWidth
|
|
441
|
+
}),
|
|
442
|
+
createRows: {
|
|
845
443
|
flexDirection: "row",
|
|
846
444
|
flexWrap: "wrap",
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
lane: {
|
|
850
|
-
height: 92,
|
|
851
|
-
borderRadius: RADIUS.lg,
|
|
852
|
-
padding: SPACE.md,
|
|
853
|
-
justifyContent: "space-between"
|
|
854
|
-
},
|
|
855
|
-
laneLabel: __spreadProps(__spreadValues({}, TYPE.label), {
|
|
856
|
-
lineHeight: 17
|
|
857
|
-
}),
|
|
858
|
-
format: {
|
|
859
|
-
width: 84,
|
|
860
|
-
alignItems: "center",
|
|
861
|
-
gap: SPACE.sm
|
|
445
|
+
columnGap: CREATE_COLUMN_GAP,
|
|
446
|
+
rowGap: SPACE.xs
|
|
862
447
|
},
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
448
|
+
createRow: {
|
|
449
|
+
flexDirection: "row",
|
|
450
|
+
alignItems: "flex-start",
|
|
451
|
+
gap: SPACE.sm + 2,
|
|
452
|
+
minHeight: 48,
|
|
453
|
+
paddingVertical: SPACE.sm
|
|
454
|
+
},
|
|
455
|
+
createIcon: {
|
|
456
|
+
width: 36,
|
|
457
|
+
height: 36,
|
|
458
|
+
flexShrink: 0,
|
|
872
459
|
alignItems: "center",
|
|
873
460
|
justifyContent: "center",
|
|
874
|
-
borderRadius:
|
|
875
|
-
backgroundColor: theme.isDark ? theme.secondary : theme.surface,
|
|
876
|
-
borderWidth: StyleSheet.hairlineWidth,
|
|
877
|
-
borderColor: theme.borderStrong
|
|
878
|
-
},
|
|
879
|
-
formatPageBack: {
|
|
880
|
-
position: "absolute",
|
|
881
|
-
transform: [{
|
|
882
|
-
translateX: 6
|
|
883
|
-
}, {
|
|
884
|
-
translateY: -6
|
|
885
|
-
}],
|
|
886
|
-
opacity: 0.6
|
|
461
|
+
borderRadius: RADIUS.md
|
|
887
462
|
},
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
tool: {
|
|
892
|
-
flexDirection: "row",
|
|
893
|
-
alignItems: "center",
|
|
894
|
-
gap: SPACE.sm,
|
|
895
|
-
minHeight: 44,
|
|
896
|
-
paddingHorizontal: SPACE.lg - 2,
|
|
897
|
-
borderRadius: RADIUS.pill,
|
|
898
|
-
backgroundColor: theme.card
|
|
463
|
+
createText: {
|
|
464
|
+
flex: 1,
|
|
465
|
+
minWidth: 0
|
|
899
466
|
},
|
|
900
|
-
|
|
467
|
+
createLabel: __spreadProps(__spreadValues({}, TYPE.label), {
|
|
468
|
+
fontSize: 14,
|
|
469
|
+
lineHeight: 20,
|
|
901
470
|
color: theme.foreground
|
|
902
471
|
}),
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
overflow: "hidden",
|
|
908
|
-
backgroundColor: theme.card
|
|
909
|
-
},
|
|
910
|
-
lookCaption: {
|
|
911
|
-
position: "absolute",
|
|
912
|
-
left: 0,
|
|
913
|
-
right: 0,
|
|
914
|
-
bottom: 0,
|
|
915
|
-
paddingHorizontal: SPACE.md - 2,
|
|
916
|
-
paddingVertical: SPACE.sm + 2,
|
|
917
|
-
backgroundColor: "rgba(10,10,10,0.55)"
|
|
918
|
-
},
|
|
919
|
-
lookName: __spreadProps(__spreadValues({}, TYPE.label), {
|
|
920
|
-
color: "#fafafa"
|
|
921
|
-
}),
|
|
922
|
-
templateRowGap: {
|
|
923
|
-
marginBottom: SPACE.md
|
|
924
|
-
},
|
|
925
|
-
templateCover: {
|
|
926
|
-
borderRadius: RADIUS.md,
|
|
927
|
-
overflow: "hidden",
|
|
928
|
-
backgroundColor: theme.card,
|
|
929
|
-
borderWidth: StyleSheet.hairlineWidth,
|
|
930
|
-
borderColor: theme.border
|
|
931
|
-
},
|
|
932
|
-
railError: {
|
|
933
|
-
flexDirection: "row",
|
|
934
|
-
alignItems: "center",
|
|
935
|
-
flexWrap: "wrap",
|
|
936
|
-
gap: SPACE.md,
|
|
937
|
-
marginBottom: SPACE.md
|
|
938
|
-
},
|
|
939
|
-
railErrorText: __spreadProps(__spreadValues({}, TYPE.body), {
|
|
940
|
-
fontSize: 14,
|
|
472
|
+
createHint: __spreadProps(__spreadValues({}, TYPE.caption), {
|
|
473
|
+
fontWeight: "400",
|
|
474
|
+
marginTop: 2,
|
|
475
|
+
lineHeight: 16,
|
|
941
476
|
color: theme.mutedForeground
|
|
942
477
|
}),
|
|
943
|
-
retry: {
|
|
944
|
-
flexDirection: "row",
|
|
945
|
-
alignItems: "center",
|
|
946
|
-
gap: SPACE.xs + 2,
|
|
947
|
-
minHeight: 36,
|
|
948
|
-
paddingHorizontal: SPACE.md,
|
|
949
|
-
borderRadius: RADIUS.pill,
|
|
950
|
-
backgroundColor: theme.card
|
|
951
|
-
},
|
|
952
478
|
retryLabel: __spreadProps(__spreadValues({}, TYPE.label), {
|
|
953
479
|
color: theme.foreground
|
|
954
480
|
}),
|
|
@@ -989,13 +515,60 @@ const makeStyles = themedStyles((theme) => StyleSheet.create({
|
|
|
989
515
|
usePromptLabel: __spreadProps(__spreadValues({}, TYPE.label), {
|
|
990
516
|
color: theme.foreground
|
|
991
517
|
}),
|
|
518
|
+
showcaseSection: {
|
|
519
|
+
marginBottom: SPACE.xl
|
|
520
|
+
},
|
|
521
|
+
showcaseSub: __spreadProps(__spreadValues({}, TYPE.caption), {
|
|
522
|
+
fontWeight: "400",
|
|
523
|
+
marginBottom: SPACE.md,
|
|
524
|
+
color: theme.mutedForeground
|
|
525
|
+
}),
|
|
526
|
+
// Wraps as web's does: heading, then the buttons on the right, then the search on a row of its own.
|
|
992
527
|
workHead: {
|
|
993
|
-
|
|
528
|
+
flexDirection: "row",
|
|
529
|
+
flexWrap: "wrap",
|
|
530
|
+
alignItems: "center",
|
|
531
|
+
columnGap: SPACE.lg,
|
|
532
|
+
rowGap: SPACE.md,
|
|
994
533
|
marginBottom: SPACE.lg
|
|
995
534
|
},
|
|
996
|
-
|
|
535
|
+
workActions: {
|
|
536
|
+
flexDirection: "row",
|
|
537
|
+
alignItems: "center",
|
|
538
|
+
gap: SPACE.sm,
|
|
539
|
+
marginLeft: "auto"
|
|
540
|
+
},
|
|
541
|
+
blank: {
|
|
542
|
+
flexDirection: "row",
|
|
543
|
+
alignItems: "center",
|
|
544
|
+
gap: SPACE.xs + 2,
|
|
545
|
+
minHeight: 36,
|
|
546
|
+
paddingHorizontal: SPACE.md + 2,
|
|
547
|
+
borderRadius: RADIUS.md,
|
|
548
|
+
borderWidth: StyleSheet.hairlineWidth,
|
|
549
|
+
borderColor: theme.borderStrong
|
|
550
|
+
},
|
|
551
|
+
search: {
|
|
552
|
+
flexDirection: "row",
|
|
997
553
|
alignItems: "center",
|
|
998
554
|
gap: SPACE.sm,
|
|
555
|
+
width: "100%",
|
|
556
|
+
minHeight: 40,
|
|
557
|
+
paddingHorizontal: SPACE.md,
|
|
558
|
+
borderRadius: RADIUS.md,
|
|
559
|
+
borderWidth: StyleSheet.hairlineWidth,
|
|
560
|
+
borderColor: theme.borderStrong,
|
|
561
|
+
backgroundColor: theme.background
|
|
562
|
+
},
|
|
563
|
+
searchInput: __spreadProps(__spreadValues({}, TYPE.body), {
|
|
564
|
+
fontSize: 14,
|
|
565
|
+
flex: 1,
|
|
566
|
+
minWidth: 0,
|
|
567
|
+
paddingVertical: 0,
|
|
568
|
+
color: theme.foreground
|
|
569
|
+
}),
|
|
570
|
+
workFooter: {
|
|
571
|
+
alignItems: "center",
|
|
999
572
|
marginTop: SPACE.xs
|
|
1000
573
|
},
|
|
1001
574
|
showAll: {
|
|
@@ -1006,135 +579,37 @@ const makeStyles = themedStyles((theme) => StyleSheet.create({
|
|
|
1006
579
|
borderWidth: StyleSheet.hairlineWidth,
|
|
1007
580
|
borderColor: theme.borderStrong
|
|
1008
581
|
},
|
|
1009
|
-
workNote: __spreadProps(__spreadValues({}, TYPE.caption), {
|
|
1010
|
-
color: theme.mutedForeground,
|
|
1011
|
-
textAlign: "center"
|
|
1012
|
-
}),
|
|
1013
|
-
noMargin: {
|
|
1014
|
-
marginBottom: 0
|
|
1015
|
-
},
|
|
1016
|
-
segmented: {
|
|
1017
|
-
flexGrow: 0,
|
|
1018
|
-
alignSelf: "flex-start"
|
|
1019
|
-
},
|
|
1020
582
|
row: {
|
|
1021
583
|
flexDirection: "row",
|
|
1022
|
-
gap:
|
|
584
|
+
gap: TILE_GAP,
|
|
1023
585
|
marginBottom: SPACE.xl - 4
|
|
1024
586
|
},
|
|
1025
|
-
cover: {
|
|
1026
|
-
aspectRatio: 1,
|
|
1027
|
-
borderRadius: RADIUS.lg,
|
|
1028
|
-
overflow: "hidden",
|
|
1029
|
-
backgroundColor: theme.card,
|
|
1030
|
-
marginBottom: SPACE.sm
|
|
1031
|
-
},
|
|
1032
587
|
coverNew: {
|
|
1033
588
|
alignItems: "center",
|
|
1034
589
|
justifyContent: "center",
|
|
1035
|
-
|
|
590
|
+
marginBottom: SPACE.sm,
|
|
591
|
+
borderRadius: RADIUS.md,
|
|
592
|
+
borderWidth: 1,
|
|
1036
593
|
borderStyle: "dashed",
|
|
1037
|
-
borderColor: theme.borderStrong
|
|
1038
|
-
backgroundColor: "transparent"
|
|
1039
|
-
},
|
|
1040
|
-
newPlus: {
|
|
1041
|
-
width: 48,
|
|
1042
|
-
height: 48,
|
|
1043
|
-
borderRadius: 24,
|
|
1044
|
-
alignItems: "center",
|
|
1045
|
-
justifyContent: "center",
|
|
1046
|
-
backgroundColor: theme.primary
|
|
1047
|
-
},
|
|
1048
|
-
centered: {
|
|
1049
|
-
alignItems: "center",
|
|
1050
|
-
justifyContent: "center"
|
|
594
|
+
borderColor: theme.borderStrong
|
|
1051
595
|
},
|
|
1052
|
-
fill: __spreadValues({}, StyleSheet.absoluteFillObject),
|
|
1053
596
|
workTitle: __spreadProps(__spreadValues({}, TYPE.label), {
|
|
1054
597
|
fontSize: 14,
|
|
1055
598
|
color: theme.foreground
|
|
1056
599
|
}),
|
|
1057
|
-
|
|
1058
|
-
marginTop: 1,
|
|
1059
|
-
color: theme.mutedForeground
|
|
1060
|
-
}),
|
|
1061
|
-
countBadge: {
|
|
600
|
+
tileMenu: {
|
|
1062
601
|
position: "absolute",
|
|
1063
602
|
top: SPACE.sm,
|
|
1064
|
-
right: SPACE.sm
|
|
1065
|
-
minWidth: 24,
|
|
1066
|
-
height: 24,
|
|
1067
|
-
paddingHorizontal: 7,
|
|
1068
|
-
borderRadius: 12,
|
|
1069
|
-
alignItems: "center",
|
|
1070
|
-
justifyContent: "center",
|
|
1071
|
-
backgroundColor: "rgba(10,10,10,0.55)"
|
|
1072
|
-
},
|
|
1073
|
-
countBadgeText: {
|
|
1074
|
-
fontSize: 12,
|
|
1075
|
-
fontWeight: "600",
|
|
1076
|
-
color: "#fafafa"
|
|
1077
|
-
},
|
|
1078
|
-
playBadge: {
|
|
1079
|
-
position: "absolute",
|
|
1080
|
-
left: SPACE.sm,
|
|
1081
|
-
bottom: SPACE.sm,
|
|
1082
|
-
width: 28,
|
|
1083
|
-
height: 28,
|
|
1084
|
-
borderRadius: 14,
|
|
1085
|
-
alignItems: "center",
|
|
1086
|
-
justifyContent: "center",
|
|
1087
|
-
backgroundColor: "rgba(10,10,10,0.55)"
|
|
1088
|
-
},
|
|
1089
|
-
designPage: {
|
|
1090
|
-
overflow: "hidden",
|
|
1091
|
-
borderRadius: 3,
|
|
1092
|
-
shadowColor: "#000",
|
|
1093
|
-
shadowOpacity: theme.isDark ? 0 : 0.1,
|
|
1094
|
-
shadowRadius: 6,
|
|
1095
|
-
shadowOffset: {
|
|
1096
|
-
width: 0,
|
|
1097
|
-
height: 2
|
|
1098
|
-
},
|
|
1099
|
-
elevation: 2
|
|
1100
|
-
},
|
|
1101
|
-
// The sketch sits on the design's own (usually white) page, so its ink is fixed, not themed.
|
|
1102
|
-
sketch: __spreadProps(__spreadValues({}, StyleSheet.absoluteFillObject), {
|
|
1103
|
-
padding: "10%",
|
|
1104
|
-
gap: 6
|
|
1105
|
-
}),
|
|
1106
|
-
sketchBar: {
|
|
1107
|
-
borderRadius: 3,
|
|
1108
|
-
backgroundColor: "#ececef"
|
|
1109
|
-
},
|
|
1110
|
-
sketchBlock: {
|
|
1111
|
-
flex: 1,
|
|
1112
|
-
width: "100%",
|
|
1113
|
-
marginTop: 4,
|
|
1114
|
-
alignItems: "center",
|
|
1115
|
-
justifyContent: "center"
|
|
1116
|
-
},
|
|
1117
|
-
blankPage: {
|
|
1118
|
-
fontSize: 10,
|
|
1119
|
-
fontWeight: "600",
|
|
1120
|
-
color: "#a1a1aa",
|
|
1121
|
-
textAlign: "center"
|
|
603
|
+
right: SPACE.sm
|
|
1122
604
|
},
|
|
1123
605
|
empty: {
|
|
1124
606
|
alignItems: "center",
|
|
1125
607
|
paddingVertical: SPACE.xxl,
|
|
1126
608
|
paddingHorizontal: SPACE.xl,
|
|
1127
|
-
borderRadius: RADIUS.
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
width: 52,
|
|
1132
|
-
height: 52,
|
|
1133
|
-
borderRadius: 26,
|
|
1134
|
-
alignItems: "center",
|
|
1135
|
-
justifyContent: "center",
|
|
1136
|
-
backgroundColor: theme.background,
|
|
1137
|
-
marginBottom: SPACE.md
|
|
609
|
+
borderRadius: RADIUS.lg,
|
|
610
|
+
borderWidth: 1,
|
|
611
|
+
borderStyle: "dashed",
|
|
612
|
+
borderColor: theme.borderStrong
|
|
1138
613
|
},
|
|
1139
614
|
emptyTitle: __spreadProps(__spreadValues({}, TYPE.title), {
|
|
1140
615
|
color: theme.foreground,
|
|
@@ -1146,19 +621,5 @@ const makeStyles = themedStyles((theme) => StyleSheet.create({
|
|
|
1146
621
|
color: theme.mutedForeground,
|
|
1147
622
|
textAlign: "center",
|
|
1148
623
|
maxWidth: 300
|
|
1149
|
-
}),
|
|
1150
|
-
emptyCta: {
|
|
1151
|
-
marginTop: SPACE.lg + 2,
|
|
1152
|
-
flexDirection: "row",
|
|
1153
|
-
alignItems: "center",
|
|
1154
|
-
gap: SPACE.sm,
|
|
1155
|
-
minHeight: 44,
|
|
1156
|
-
paddingHorizontal: SPACE.xl - 4,
|
|
1157
|
-
borderRadius: RADIUS.pill,
|
|
1158
|
-
backgroundColor: theme.primary
|
|
1159
|
-
},
|
|
1160
|
-
emptyCtaLabel: __spreadProps(__spreadValues({}, TYPE.label), {
|
|
1161
|
-
fontSize: 15,
|
|
1162
|
-
color: theme.primaryForeground
|
|
1163
624
|
})
|
|
1164
625
|
}));export{CanvasBoardsGrid};//# sourceMappingURL=CanvasBoardsGrid.js.map
|