@tomako/tools-runtime 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -0
- package/package.json +629 -0
- package/src/assets/icons/brands/social/bluesky-icon.tsx +9 -0
- package/src/assets/icons/brands/social/facebook-icon.tsx +9 -0
- package/src/assets/icons/brands/social/index.ts +8 -0
- package/src/assets/icons/brands/social/instagram-icon.tsx +9 -0
- package/src/assets/icons/brands/social/linkedin-icon.tsx +9 -0
- package/src/assets/icons/brands/social/threads-icon.tsx +9 -0
- package/src/assets/icons/brands/social/tiktok-icon.tsx +10 -0
- package/src/assets/icons/brands/social/x-icon.tsx +9 -0
- package/src/assets/icons/brands/social/youtube-icon.tsx +9 -0
- package/src/assets/icons/social-profile/facebook-icon.tsx +12 -0
- package/src/assets/icons/social-profile/index.ts +29 -0
- package/src/assets/icons/social-profile/instagram-icon.tsx +18 -0
- package/src/assets/icons/social-profile/linkedin-icon.tsx +12 -0
- package/src/assets/icons/social-profile/tiktok-icon.tsx +12 -0
- package/src/assets/icons/social-profile/x-icon.tsx +13 -0
- package/src/assets/icons/social-profile/youtube-icon.tsx +12 -0
- package/src/components/tools/engine/form-builder.tsx +219 -0
- package/src/components/tools/engine/package-widget-loader.tsx +38 -0
- package/src/components/tools/engine/package-widget-runtime.tsx +409 -0
- package/src/components/tools/engine/package-widget.tsx +77 -0
- package/src/components/tools/engine/result-view.tsx +596 -0
- package/src/components/tools/engine/use-legacy-llm-task.ts +64 -0
- package/src/components/tools/engine/use-tool-task.ts +195 -0
- package/src/components/tools/market-forecast-report.tsx +1150 -0
- package/src/components/tools/registry.ts +13 -0
- package/src/components/tools/workspace/index.ts +39 -0
- package/src/components/tools/workspace/tool-action-bar.tsx +99 -0
- package/src/components/tools/workspace/tool-empty-panel.tsx +32 -0
- package/src/components/tools/workspace/tool-error-panel.tsx +40 -0
- package/src/components/tools/workspace/tool-field.tsx +124 -0
- package/src/components/tools/workspace/tool-file-upload.tsx +112 -0
- package/src/components/tools/workspace/tool-form-section.tsx +21 -0
- package/src/components/tools/workspace/tool-form-shell.tsx +36 -0
- package/src/components/tools/workspace/tool-loading-panel.tsx +269 -0
- package/src/components/tools/workspace/tool-option-row.tsx +97 -0
- package/src/components/tools/workspace/tool-preview-panel.tsx +31 -0
- package/src/components/tools/workspace/tool-result-actions.tsx +67 -0
- package/src/components/tools/workspace/tool-result-file-actions.ts +31 -0
- package/src/components/tools/workspace/tool-result-header.tsx +39 -0
- package/src/components/tools/workspace/tool-status.tsx +13 -0
- package/src/components/tools/workspace/tool-workspace-layout.tsx +226 -0
- package/src/constants/LKS.ts +29 -0
- package/src/constants/related-tools.ts +18 -0
- package/src/constants/social-profile-kit.ts +284 -0
- package/src/constants/tool-assets.ts +7 -0
- package/src/env.d.ts +3 -0
- package/src/features/tools/_templates/standard-tool.container.tsx +90 -0
- package/src/features/tools/app-icon-resizer/app-icon-resizer.container.tsx +11 -0
- package/src/features/tools/app-icon-resizer/app-icon-resizer.spec.ts +15 -0
- package/src/features/tools/app-icon-resizer/widget/app-icon-resizer.tsx +444 -0
- package/src/features/tools/app-icon-resizer/widget/constants.ts +19 -0
- package/src/features/tools/app-icon-resizer/widget/helpers.ts +314 -0
- package/src/features/tools/app-icon-resizer/widget/index.ts +7 -0
- package/src/features/tools/app-icon-resizer/widget/platform-icons.tsx +59 -0
- package/src/features/tools/app-icon-resizer/widget/preview-dialogs.tsx +139 -0
- package/src/features/tools/app-icon-resizer/widget/result-shell.tsx +165 -0
- package/src/features/tools/app-icon-resizer/widget/types.ts +36 -0
- package/src/features/tools/app-store-screenshot-generator/app-store-screenshot-generator.container.tsx +108 -0
- package/src/features/tools/app-store-screenshot-generator/app-store-screenshot-generator.spec.ts +14 -0
- package/src/features/tools/app-store-screenshot-generator/config.ts +3 -0
- package/src/features/tools/app-store-screenshot-generator/widget/app-store-screenshot-generator.tsx +1250 -0
- package/src/features/tools/app-store-screenshot-generator/widget/asset-slots.ts +76 -0
- package/src/features/tools/app-store-screenshot-generator/widget/constants.ts +43 -0
- package/src/features/tools/app-store-screenshot-generator/widget/form-controls.tsx +214 -0
- package/src/features/tools/app-store-screenshot-generator/widget/generation.ts +528 -0
- package/src/features/tools/app-store-screenshot-generator/widget/index.ts +7 -0
- package/src/features/tools/app-store-screenshot-generator/widget/input-media.ts +175 -0
- package/src/features/tools/app-store-screenshot-generator/widget/types.ts +60 -0
- package/src/features/tools/app-store-screenshot-generator/widget/zip.ts +119 -0
- package/src/features/tools/build-in-public-story-generator/build-in-public-story-generator.container.tsx +135 -0
- package/src/features/tools/build-in-public-story-generator/build-in-public-story-generator.spec.ts +15 -0
- package/src/features/tools/build-in-public-story-generator/widget/build-in-public-story-generator.tsx +314 -0
- package/src/features/tools/build-in-public-story-generator/widget/constants.ts +3 -0
- package/src/features/tools/build-in-public-story-generator/widget/helpers.ts +25 -0
- package/src/features/tools/build-in-public-story-generator/widget/index.ts +7 -0
- package/src/features/tools/build-in-public-story-generator/widget/preview-panels.tsx +58 -0
- package/src/features/tools/build-in-public-story-generator/widget/result-shell.tsx +164 -0
- package/src/features/tools/build-in-public-story-generator/widget/types.ts +6 -0
- package/src/features/tools/cold-start-channel-selector/cold-start-channel-selector.container.tsx +30 -0
- package/src/features/tools/cold-start-channel-selector/cold-start-channel-selector.spec.ts +15 -0
- package/src/features/tools/cold-start-channel-selector/widget/cold-start-channel-selector.tsx +417 -0
- package/src/features/tools/cold-start-channel-selector/widget/constants.ts +46 -0
- package/src/features/tools/cold-start-channel-selector/widget/form-controls.tsx +41 -0
- package/src/features/tools/cold-start-channel-selector/widget/helpers.ts +75 -0
- package/src/features/tools/cold-start-channel-selector/widget/index.ts +7 -0
- package/src/features/tools/cold-start-channel-selector/widget/preview-panels.tsx +250 -0
- package/src/features/tools/cold-start-channel-selector/widget/result-shell.tsx +199 -0
- package/src/features/tools/cold-start-channel-selector/widget/types.ts +21 -0
- package/src/features/tools/commercial-bp-generator/commercial-bp-generator.container.tsx +102 -0
- package/src/features/tools/commercial-bp-generator/commercial-bp-generator.spec.ts +14 -0
- package/src/features/tools/commercial-bp-generator/widget/commercial-bp-generator.tsx +676 -0
- package/src/features/tools/commercial-bp-generator/widget/constants.ts +32 -0
- package/src/features/tools/commercial-bp-generator/widget/helpers.ts +147 -0
- package/src/features/tools/commercial-bp-generator/widget/index.ts +7 -0
- package/src/features/tools/commercial-bp-generator/widget/result-shell.tsx +271 -0
- package/src/features/tools/commercial-bp-generator/widget/style-option.tsx +54 -0
- package/src/features/tools/commercial-bp-generator/widget/types.ts +33 -0
- package/src/features/tools/community-feedback-inbox/community-feedback-inbox.container.tsx +126 -0
- package/src/features/tools/community-feedback-inbox/community-feedback-inbox.spec.ts +15 -0
- package/src/features/tools/community-feedback-inbox/widget/community-feedback-inbox.tsx +271 -0
- package/src/features/tools/community-feedback-inbox/widget/constants.ts +3 -0
- package/src/features/tools/community-feedback-inbox/widget/helpers.ts +28 -0
- package/src/features/tools/community-feedback-inbox/widget/index.ts +7 -0
- package/src/features/tools/community-feedback-inbox/widget/preview-panels.tsx +92 -0
- package/src/features/tools/community-feedback-inbox/widget/result-shell.tsx +266 -0
- package/src/features/tools/community-feedback-inbox/widget/types.ts +6 -0
- package/src/features/tools/community-pain-point-extractor/community-pain-point-extractor.container.tsx +124 -0
- package/src/features/tools/community-pain-point-extractor/community-pain-point-extractor.spec.ts +15 -0
- package/src/features/tools/community-pain-point-extractor/widget/community-pain-point-extractor.tsx +404 -0
- package/src/features/tools/community-pain-point-extractor/widget/constants.ts +41 -0
- package/src/features/tools/community-pain-point-extractor/widget/helpers.ts +76 -0
- package/src/features/tools/community-pain-point-extractor/widget/index.ts +8 -0
- package/src/features/tools/community-pain-point-extractor/widget/progress-panels.tsx +251 -0
- package/src/features/tools/community-pain-point-extractor/widget/result-shell.tsx +478 -0
- package/src/features/tools/community-pain-point-extractor/widget/types.ts +33 -0
- package/src/features/tools/community-post-risk-checker/community-post-risk-checker.package.ts +792 -0
- package/src/features/tools/competitor-analysis/competitor-analysis.container.tsx +136 -0
- package/src/features/tools/competitor-analysis/competitor-analysis.spec.ts +15 -0
- package/src/features/tools/competitor-analysis/widget/competitor-analysis.tsx +241 -0
- package/src/features/tools/competitor-analysis/widget/constants.ts +9 -0
- package/src/features/tools/competitor-analysis/widget/index.ts +7 -0
- package/src/features/tools/competitor-analysis/widget/preview-panels.tsx +60 -0
- package/src/features/tools/competitor-analysis/widget/result-shell.tsx +418 -0
- package/src/features/tools/competitor-analysis/widget/types.ts +13 -0
- package/src/features/tools/disclaimer-generator/disclaimer-generator.package.ts +339 -0
- package/src/features/tools/email-template-generator/email-template-generator.container.tsx +224 -0
- package/src/features/tools/email-template-generator/email-template-generator.spec.ts +14 -0
- package/src/features/tools/email-template-generator/widget/email-template-generator.tsx +358 -0
- package/src/features/tools/email-template-generator/widget/helpers.ts +39 -0
- package/src/features/tools/email-template-generator/widget/index.ts +7 -0
- package/src/features/tools/email-template-generator/widget/preview-panel.tsx +311 -0
- package/src/features/tools/email-template-generator/widget/result-text-block.tsx +7 -0
- package/src/features/tools/email-template-generator/widget/types.ts +24 -0
- package/src/features/tools/gtm-readiness-checklist/gtm-readiness-checklist.container.tsx +75 -0
- package/src/features/tools/gtm-readiness-checklist/gtm-readiness-checklist.spec.ts +15 -0
- package/src/features/tools/gtm-readiness-checklist/widget/gtm-readiness-checklist.tsx +122 -0
- package/src/features/tools/gtm-readiness-checklist/widget/index.ts +7 -0
- package/src/features/tools/investor-matching-planner/investor-matching-planner.package.ts +869 -0
- package/src/features/tools/koko-codex-assistant/koko-codex-assistant.container.tsx +151 -0
- package/src/features/tools/koko-codex-assistant/koko-codex-assistant.spec.ts +14 -0
- package/src/features/tools/koko-codex-assistant/widget/index.ts +7 -0
- package/src/features/tools/koko-codex-assistant/widget/koko-codex-assistant-download.tsx +192 -0
- package/src/features/tools/logo-generator/logo-generator.container.tsx +112 -0
- package/src/features/tools/logo-generator/logo-generator.spec.ts +15 -0
- package/src/features/tools/logo-generator/widget/index.ts +7 -0
- package/src/features/tools/logo-generator/widget/logo-generator.tsx +1244 -0
- package/src/features/tools/market-forecast-report/market-forecast-report.container.tsx +73 -0
- package/src/features/tools/market-forecast-report/market-forecast-report.spec.ts +15 -0
- package/src/features/tools/million-user-growth-test/million-user-growth-test.container.tsx +123 -0
- package/src/features/tools/million-user-growth-test/million-user-growth-test.spec.ts +14 -0
- package/src/features/tools/million-user-growth-test/widget/index.ts +7 -0
- package/src/features/tools/million-user-growth-test/widget/million-user-growth-test.tsx +433 -0
- package/src/features/tools/module-loader.ts +107 -0
- package/src/features/tools/og-image-generator/og-image-generator.container.tsx +86 -0
- package/src/features/tools/og-image-generator/og-image-generator.spec.ts +14 -0
- package/src/features/tools/og-image-generator/widget/constants.ts +38 -0
- package/src/features/tools/og-image-generator/widget/form-fields.tsx +240 -0
- package/src/features/tools/og-image-generator/widget/index.ts +7 -0
- package/src/features/tools/og-image-generator/widget/og-image-generator.tsx +742 -0
- package/src/features/tools/og-image-generator/widget/preview-panel.tsx +305 -0
- package/src/features/tools/og-image-generator/widget/types.ts +1 -0
- package/src/features/tools/package/direct-models.ts +20 -0
- package/src/features/tools/package/form.ts +38 -0
- package/src/features/tools/package/l10n.ts +22 -0
- package/src/features/tools/package/package-container.tsx +285 -0
- package/src/features/tools/package/package-loaders.ts +22 -0
- package/src/features/tools/package/package-registry.ts +36 -0
- package/src/features/tools/package/result-markdown.ts +142 -0
- package/src/features/tools/package/schema.ts +379 -0
- package/src/features/tools/package/to-tool-module.ts +20 -0
- package/src/features/tools/package/to-tool-spec.ts +52 -0
- package/src/features/tools/package/types.ts +381 -0
- package/src/features/tools/pitch-deck-generator/pitch-deck-generator.container.tsx +175 -0
- package/src/features/tools/pitch-deck-generator/pitch-deck-generator.spec.ts +14 -0
- package/src/features/tools/pitch-deck-generator/pitch-deck-library-data.ts +476 -0
- package/src/features/tools/pitch-deck-generator/pitch-deck-library.tsx +159 -0
- package/src/features/tools/pitch-deck-generator/widget/ceremony-line.tsx +27 -0
- package/src/features/tools/pitch-deck-generator/widget/constants.ts +27 -0
- package/src/features/tools/pitch-deck-generator/widget/index.ts +7 -0
- package/src/features/tools/pitch-deck-generator/widget/pitch-deck-generator.tsx +763 -0
- package/src/features/tools/pitch-deck-generator/widget/result-helpers.ts +102 -0
- package/src/features/tools/pitch-deck-generator/widget/result-shell.tsx +263 -0
- package/src/features/tools/pitch-deck-generator/widget/slide-frame.tsx +106 -0
- package/src/features/tools/pitch-deck-generator/widget/slide-lightbox.tsx +149 -0
- package/src/features/tools/pitch-deck-generator/widget/style-option.tsx +54 -0
- package/src/features/tools/pitch-deck-generator/widget/types.ts +44 -0
- package/src/features/tools/product-agreement-generator/product-agreement-generator.container.tsx +137 -0
- package/src/features/tools/product-agreement-generator/product-agreement-generator.spec.ts +14 -0
- package/src/features/tools/product-agreement-generator/widget/constants.ts +27 -0
- package/src/features/tools/product-agreement-generator/widget/form-controls.tsx +218 -0
- package/src/features/tools/product-agreement-generator/widget/helpers.ts +68 -0
- package/src/features/tools/product-agreement-generator/widget/index.ts +7 -0
- package/src/features/tools/product-agreement-generator/widget/product-agreement-generator.tsx +671 -0
- package/src/features/tools/product-agreement-generator/widget/result-shell.tsx +473 -0
- package/src/features/tools/product-agreement-generator/widget/types.ts +89 -0
- package/src/features/tools/product-hunt-launch-planner/product-hunt-launch-planner.container.tsx +122 -0
- package/src/features/tools/product-hunt-launch-planner/product-hunt-launch-planner.spec.ts +15 -0
- package/src/features/tools/product-hunt-launch-planner/widget/constants.ts +5 -0
- package/src/features/tools/product-hunt-launch-planner/widget/helpers.ts +44 -0
- package/src/features/tools/product-hunt-launch-planner/widget/index.ts +7 -0
- package/src/features/tools/product-hunt-launch-planner/widget/preview-panel.tsx +143 -0
- package/src/features/tools/product-hunt-launch-planner/widget/product-hunt-launch-planner.tsx +504 -0
- package/src/features/tools/product-hunt-launch-planner/widget/result-shell.tsx +176 -0
- package/src/features/tools/product-hunt-launch-planner/widget/types.ts +20 -0
- package/src/features/tools/product-name-generator/product-name-generator.container.tsx +14 -0
- package/src/features/tools/product-name-generator/product-name-generator.spec.ts +15 -0
- package/src/features/tools/product-name-generator/widget/candidate-card.tsx +273 -0
- package/src/features/tools/product-name-generator/widget/constants.ts +21 -0
- package/src/features/tools/product-name-generator/widget/form-controls.tsx +136 -0
- package/src/features/tools/product-name-generator/widget/helpers.ts +41 -0
- package/src/features/tools/product-name-generator/widget/index.ts +7 -0
- package/src/features/tools/product-name-generator/widget/product-name-generator.tsx +776 -0
- package/src/features/tools/product-name-generator/widget/types.ts +36 -0
- package/src/features/tools/product-positioning-analyzer/product-positioning-analyzer.package.ts +801 -0
- package/src/features/tools/product-poster-generator/product-poster-generator.container.tsx +14 -0
- package/src/features/tools/product-poster-generator/product-poster-generator.spec.ts +15 -0
- package/src/features/tools/product-poster-generator/widget/constants.ts +125 -0
- package/src/features/tools/product-poster-generator/widget/form-controls.tsx +204 -0
- package/src/features/tools/product-poster-generator/widget/helpers.ts +155 -0
- package/src/features/tools/product-poster-generator/widget/index.ts +7 -0
- package/src/features/tools/product-poster-generator/widget/product-poster-generator.tsx +663 -0
- package/src/features/tools/product-poster-generator/widget/result-shell.tsx +12 -0
- package/src/features/tools/product-poster-generator/widget/types.ts +83 -0
- package/src/features/tools/product-ui-generator/product-ui-generator.container.tsx +116 -0
- package/src/features/tools/product-ui-generator/product-ui-generator.spec.ts +14 -0
- package/src/features/tools/product-ui-generator/widget/constants.ts +18 -0
- package/src/features/tools/product-ui-generator/widget/helpers.ts +11 -0
- package/src/features/tools/product-ui-generator/widget/index.ts +7 -0
- package/src/features/tools/product-ui-generator/widget/preview-panels.tsx +73 -0
- package/src/features/tools/product-ui-generator/widget/product-ui-generator.tsx +304 -0
- package/src/features/tools/product-ui-generator/widget/result-shell.tsx +118 -0
- package/src/features/tools/product-ui-generator/widget/types.ts +9 -0
- package/src/features/tools/reddit-pain-point-finder/reddit-pain-point-finder.container.tsx +113 -0
- package/src/features/tools/reddit-pain-point-finder/reddit-pain-point-finder.spec.ts +15 -0
- package/src/features/tools/reddit-pain-point-finder/widget/constants.ts +5 -0
- package/src/features/tools/reddit-pain-point-finder/widget/index.ts +7 -0
- package/src/features/tools/reddit-pain-point-finder/widget/preview-panels.tsx +73 -0
- package/src/features/tools/reddit-pain-point-finder/widget/reddit-pain-point-finder.tsx +281 -0
- package/src/features/tools/reddit-pain-point-finder/widget/result-shell.tsx +203 -0
- package/src/features/tools/reddit-pain-point-finder/widget/types.ts +15 -0
- package/src/features/tools/registry.ts +288 -0
- package/src/features/tools/runtime-registry.ts +186 -0
- package/src/features/tools/shared/create-guide-stack-container.tsx +176 -0
- package/src/features/tools/shared/create-standard-landing-container.tsx +163 -0
- package/src/features/tools/shared/tool-content-sections.tsx +659 -0
- package/src/features/tools/shared/tool-cta.tsx +66 -0
- package/src/features/tools/shared/tool-draft-view.tsx +53 -0
- package/src/features/tools/shared/tool-guide-section.tsx +191 -0
- package/src/features/tools/shared/tool-handoff.tsx +38 -0
- package/src/features/tools/shared/tool-mcp-badge.tsx +23 -0
- package/src/features/tools/shared/tool-message-translator.ts +37 -0
- package/src/features/tools/shared/tool-page-shell.tsx +348 -0
- package/src/features/tools/shared/tool-standard-generation-steps.tsx +52 -0
- package/src/features/tools/shared/tool-standard-landing-sections.tsx +447 -0
- package/src/features/tools/shared/tool-ui-registry.ts +237 -0
- package/src/features/tools/shared/tool-widget-slot.tsx +29 -0
- package/src/features/tools/slogan-generator/slogan-generator.package.ts +641 -0
- package/src/features/tools/social-listening-research-report/social-listening-research-report.container.tsx +124 -0
- package/src/features/tools/social-listening-research-report/social-listening-research-report.spec.ts +15 -0
- package/src/features/tools/social-listening-research-report/widget/constants.ts +4 -0
- package/src/features/tools/social-listening-research-report/widget/index.ts +7 -0
- package/src/features/tools/social-listening-research-report/widget/preview-panels.tsx +73 -0
- package/src/features/tools/social-listening-research-report/widget/result-shell.tsx +216 -0
- package/src/features/tools/social-listening-research-report/widget/social-listening-research-report.tsx +303 -0
- package/src/features/tools/social-listening-research-report/widget/types.ts +15 -0
- package/src/features/tools/social-platform-asset-adapter/social-platform-asset-adapter.container.tsx +123 -0
- package/src/features/tools/social-platform-asset-adapter/social-platform-asset-adapter.spec.ts +15 -0
- package/src/features/tools/social-platform-asset-adapter/widget/constants.ts +43 -0
- package/src/features/tools/social-platform-asset-adapter/widget/helpers.ts +249 -0
- package/src/features/tools/social-platform-asset-adapter/widget/index.ts +7 -0
- package/src/features/tools/social-platform-asset-adapter/widget/result-shell.tsx +350 -0
- package/src/features/tools/social-platform-asset-adapter/widget/section-heading.tsx +18 -0
- package/src/features/tools/social-platform-asset-adapter/widget/social-platform-asset-adapter.tsx +641 -0
- package/src/features/tools/social-platform-asset-adapter/widget/types.ts +40 -0
- package/src/features/tools/social-profile-kit/social-profile-kit.container.tsx +177 -0
- package/src/features/tools/social-profile-kit/social-profile-kit.spec.ts +15 -0
- package/src/features/tools/social-profile-kit/widget/context-editor.tsx +171 -0
- package/src/features/tools/social-profile-kit/widget/generation-runtime.ts +281 -0
- package/src/features/tools/social-profile-kit/widget/index.ts +7 -0
- package/src/features/tools/social-profile-kit/widget/input-panel.tsx +294 -0
- package/src/features/tools/social-profile-kit/widget/platform-dock.tsx +115 -0
- package/src/features/tools/social-profile-kit/widget/profile-canvas.tsx +318 -0
- package/src/features/tools/social-profile-kit/widget/profile-preview/bluesky-preview.tsx +188 -0
- package/src/features/tools/social-profile-kit/widget/profile-preview/facebook-preview.tsx +168 -0
- package/src/features/tools/social-profile-kit/widget/profile-preview/index.ts +1 -0
- package/src/features/tools/social-profile-kit/widget/profile-preview/instagram-preview.tsx +278 -0
- package/src/features/tools/social-profile-kit/widget/profile-preview/linkedin-preview.tsx +358 -0
- package/src/features/tools/social-profile-kit/widget/profile-preview/profile-preview.tsx +348 -0
- package/src/features/tools/social-profile-kit/widget/profile-preview/shared.tsx +391 -0
- package/src/features/tools/social-profile-kit/widget/profile-preview/threads-preview.tsx +148 -0
- package/src/features/tools/social-profile-kit/widget/profile-preview/tiktok-preview.tsx +319 -0
- package/src/features/tools/social-profile-kit/widget/profile-preview/x-preview.tsx +341 -0
- package/src/features/tools/social-profile-kit/widget/profile-preview/youtube-preview.tsx +297 -0
- package/src/features/tools/social-profile-kit/widget/social-profile-kit-generator.tsx +1059 -0
- package/src/features/tools/social-profile-kit/widget/types.ts +104 -0
- package/src/features/tools/spec-registry.ts +158 -0
- package/src/features/tools/startup-idea-research/startup-idea-research.container.tsx +111 -0
- package/src/features/tools/startup-idea-research/startup-idea-research.spec.ts +15 -0
- package/src/features/tools/startup-idea-research/widget/constants.ts +11 -0
- package/src/features/tools/startup-idea-research/widget/index.ts +7 -0
- package/src/features/tools/startup-idea-research/widget/preview-panels.tsx +67 -0
- package/src/features/tools/startup-idea-research/widget/result-shell.tsx +323 -0
- package/src/features/tools/startup-idea-research/widget/startup-idea-research.tsx +272 -0
- package/src/features/tools/startup-idea-research/widget/types.ts +21 -0
- package/src/features/tools/tarot-reading/tarot-reading.container.tsx +412 -0
- package/src/features/tools/tarot-reading/tarot-reading.spec.ts +15 -0
- package/src/features/tools/tarot-reading/widget/cards.tsx +152 -0
- package/src/features/tools/tarot-reading/widget/constants.ts +69 -0
- package/src/features/tools/tarot-reading/widget/deck-view.tsx +86 -0
- package/src/features/tools/tarot-reading/widget/deck.ts +86 -0
- package/src/features/tools/tarot-reading/widget/index.ts +7 -0
- package/src/features/tools/tarot-reading/widget/landing-view.tsx +209 -0
- package/src/features/tools/tarot-reading/widget/reading-copy.tsx +138 -0
- package/src/features/tools/tarot-reading/widget/reading-view.tsx +189 -0
- package/src/features/tools/tarot-reading/widget/reveal-view.tsx +50 -0
- package/src/features/tools/tarot-reading/widget/ritual-view.tsx +276 -0
- package/src/features/tools/tarot-reading/widget/tarot-reading.tsx +262 -0
- package/src/features/tools/tarot-reading/widget/types.ts +22 -0
- package/src/features/tools/twitter-gif-downloader/twitter-gif-downloader.container.tsx +114 -0
- package/src/features/tools/twitter-gif-downloader/twitter-gif-downloader.spec.ts +14 -0
- package/src/features/tools/twitter-gif-downloader/widget/index.ts +7 -0
- package/src/features/tools/twitter-gif-downloader/widget/twitter-gif-downloader.tsx +351 -0
- package/src/features/tools/types.ts +68 -0
- package/src/features/tools/user-interview-guide-generator/user-interview-guide-generator.package.ts +774 -0
- package/src/features/tools/user-interview-insight-report-generator/user-interview-insight-report-generator.container.tsx +23 -0
- package/src/features/tools/user-interview-insight-report-generator/user-interview-insight-report-generator.spec.ts +14 -0
- package/src/features/tools/user-interview-insight-report-generator/widget/constants.ts +8 -0
- package/src/features/tools/user-interview-insight-report-generator/widget/helpers.ts +4 -0
- package/src/features/tools/user-interview-insight-report-generator/widget/index.ts +7 -0
- package/src/features/tools/user-interview-insight-report-generator/widget/preview-panels.tsx +55 -0
- package/src/features/tools/user-interview-insight-report-generator/widget/result-shell.tsx +122 -0
- package/src/features/tools/user-interview-insight-report-generator/widget/types.ts +16 -0
- package/src/features/tools/user-interview-insight-report-generator/widget/user-interview-insight-report-generator.tsx +293 -0
- package/src/features/tools/user-interview-record-generator/user-interview-record-generator.container.tsx +18 -0
- package/src/features/tools/user-interview-record-generator/user-interview-record-generator.spec.ts +14 -0
- package/src/features/tools/user-interview-record-generator/widget/constants.ts +9 -0
- package/src/features/tools/user-interview-record-generator/widget/helpers.ts +4 -0
- package/src/features/tools/user-interview-record-generator/widget/index.ts +7 -0
- package/src/features/tools/user-interview-record-generator/widget/preview-panels.tsx +48 -0
- package/src/features/tools/user-interview-record-generator/widget/result-shell.tsx +128 -0
- package/src/features/tools/user-interview-record-generator/widget/types.ts +16 -0
- package/src/features/tools/user-interview-record-generator/widget/user-interview-record-generator.tsx +305 -0
- package/src/features/tools/utm-builder/utm-builder.package.ts +846 -0
- package/src/features/tools/widget-registry.ts +73 -0
- package/src/generated/mcp-tools-registry.json +17 -0
- package/src/host/client-proxy.test.ts +33 -0
- package/src/host/client.ts +678 -0
- package/src/host/server.ts +119 -0
- package/src/i18n/client.ts +11 -0
- package/src/i18n/locale-fallback.ts +38 -0
- package/src/i18n/locale.ts +18 -0
- package/src/i18n/messages/en/page/tools.ts +124 -0
- package/src/i18n/messages/en/tools/app-icon-resizer.ts +244 -0
- package/src/i18n/messages/en/tools/app-store-screenshot-generator.ts +145 -0
- package/src/i18n/messages/en/tools/build-in-public-story-generator.ts +229 -0
- package/src/i18n/messages/en/tools/cold-start-channel-selector.ts +423 -0
- package/src/i18n/messages/en/tools/commercial-bp-generator.ts +304 -0
- package/src/i18n/messages/en/tools/community-feedback-inbox.ts +218 -0
- package/src/i18n/messages/en/tools/community-pain-point-extractor.ts +230 -0
- package/src/i18n/messages/en/tools/community-post-risk-checker.ts +209 -0
- package/src/i18n/messages/en/tools/competitor-analysis.ts +197 -0
- package/src/i18n/messages/en/tools/email-template-generator.ts +302 -0
- package/src/i18n/messages/en/tools/engine.ts +69 -0
- package/src/i18n/messages/en/tools/gtm-readiness-checklist.ts +166 -0
- package/src/i18n/messages/en/tools/index.ts +73 -0
- package/src/i18n/messages/en/tools/koko-codex-assistant.ts +171 -0
- package/src/i18n/messages/en/tools/logo-generator.ts +173 -0
- package/src/i18n/messages/en/tools/market-forecast-report.ts +228 -0
- package/src/i18n/messages/en/tools/million-user-growth-test.ts +386 -0
- package/src/i18n/messages/en/tools/og-image-generator.ts +172 -0
- package/src/i18n/messages/en/tools/pitch-deck-generator.ts +358 -0
- package/src/i18n/messages/en/tools/product-agreement-generator.ts +411 -0
- package/src/i18n/messages/en/tools/product-hunt-launch-planner.ts +272 -0
- package/src/i18n/messages/en/tools/product-name-generator.ts +383 -0
- package/src/i18n/messages/en/tools/product-poster-generator.ts +294 -0
- package/src/i18n/messages/en/tools/product-ui-generator.ts +234 -0
- package/src/i18n/messages/en/tools/reddit-pain-point-finder.ts +163 -0
- package/src/i18n/messages/en/tools/shared.ts +24 -0
- package/src/i18n/messages/en/tools/social-listening-research-report.ts +185 -0
- package/src/i18n/messages/en/tools/social-media-profile-generator.ts +22 -0
- package/src/i18n/messages/en/tools/social-platform-asset-adapter.ts +287 -0
- package/src/i18n/messages/en/tools/social-profile-kit.ts +150 -0
- package/src/i18n/messages/en/tools/startup-idea-research.ts +170 -0
- package/src/i18n/messages/en/tools/tarot-reading.ts +230 -0
- package/src/i18n/messages/en/tools/twitter-gif-downloader.ts +145 -0
- package/src/i18n/messages/en/tools/user-interview-insight-report-generator.ts +242 -0
- package/src/i18n/messages/en/tools/user-interview-record-generator.ts +244 -0
- package/src/i18n/messages/en/tools-ui.ts +704 -0
- package/src/i18n/messages/zh/page/tools.ts +124 -0
- package/src/i18n/messages/zh/tools/app-icon-resizer.ts +242 -0
- package/src/i18n/messages/zh/tools/app-store-screenshot-generator.ts +145 -0
- package/src/i18n/messages/zh/tools/build-in-public-story-generator.ts +230 -0
- package/src/i18n/messages/zh/tools/cold-start-channel-selector.ts +422 -0
- package/src/i18n/messages/zh/tools/commercial-bp-generator.ts +302 -0
- package/src/i18n/messages/zh/tools/community-feedback-inbox.ts +217 -0
- package/src/i18n/messages/zh/tools/community-pain-point-extractor.ts +230 -0
- package/src/i18n/messages/zh/tools/community-post-risk-checker.ts +200 -0
- package/src/i18n/messages/zh/tools/competitor-analysis.ts +192 -0
- package/src/i18n/messages/zh/tools/email-template-generator.ts +302 -0
- package/src/i18n/messages/zh/tools/engine.ts +68 -0
- package/src/i18n/messages/zh/tools/gtm-readiness-checklist.ts +166 -0
- package/src/i18n/messages/zh/tools/index.ts +73 -0
- package/src/i18n/messages/zh/tools/koko-codex-assistant.ts +170 -0
- package/src/i18n/messages/zh/tools/logo-generator.ts +172 -0
- package/src/i18n/messages/zh/tools/market-forecast-report.ts +228 -0
- package/src/i18n/messages/zh/tools/million-user-growth-test.ts +385 -0
- package/src/i18n/messages/zh/tools/og-image-generator.ts +173 -0
- package/src/i18n/messages/zh/tools/pitch-deck-generator.ts +358 -0
- package/src/i18n/messages/zh/tools/product-agreement-generator.ts +401 -0
- package/src/i18n/messages/zh/tools/product-hunt-launch-planner.ts +267 -0
- package/src/i18n/messages/zh/tools/product-name-generator.ts +383 -0
- package/src/i18n/messages/zh/tools/product-poster-generator.ts +282 -0
- package/src/i18n/messages/zh/tools/product-ui-generator.ts +234 -0
- package/src/i18n/messages/zh/tools/reddit-pain-point-finder.ts +162 -0
- package/src/i18n/messages/zh/tools/shared.ts +24 -0
- package/src/i18n/messages/zh/tools/social-listening-research-report.ts +181 -0
- package/src/i18n/messages/zh/tools/social-media-profile-generator.ts +22 -0
- package/src/i18n/messages/zh/tools/social-platform-asset-adapter.ts +284 -0
- package/src/i18n/messages/zh/tools/social-profile-kit.ts +150 -0
- package/src/i18n/messages/zh/tools/startup-idea-research.ts +165 -0
- package/src/i18n/messages/zh/tools/tarot-reading.ts +228 -0
- package/src/i18n/messages/zh/tools/twitter-gif-downloader.ts +138 -0
- package/src/i18n/messages/zh/tools/user-interview-insight-report-generator.ts +224 -0
- package/src/i18n/messages/zh/tools/user-interview-record-generator.ts +226 -0
- package/src/i18n/messages/zh/tools-ui.ts +684 -0
- package/src/i18n/messages/zh-tw/page/tools.ts +115 -0
- package/src/i18n/messages/zh-tw/tools/app-icon-resizer.ts +242 -0
- package/src/i18n/messages/zh-tw/tools/app-store-screenshot-generator.ts +145 -0
- package/src/i18n/messages/zh-tw/tools/build-in-public-story-generator.ts +230 -0
- package/src/i18n/messages/zh-tw/tools/cold-start-channel-selector.ts +440 -0
- package/src/i18n/messages/zh-tw/tools/commercial-bp-generator.ts +302 -0
- package/src/i18n/messages/zh-tw/tools/community-feedback-inbox.ts +217 -0
- package/src/i18n/messages/zh-tw/tools/community-pain-point-extractor.ts +230 -0
- package/src/i18n/messages/zh-tw/tools/community-post-risk-checker.ts +200 -0
- package/src/i18n/messages/zh-tw/tools/competitor-analysis.ts +192 -0
- package/src/i18n/messages/zh-tw/tools/email-template-generator.ts +302 -0
- package/src/i18n/messages/zh-tw/tools/engine.ts +68 -0
- package/src/i18n/messages/zh-tw/tools/gtm-readiness-checklist.ts +166 -0
- package/src/i18n/messages/zh-tw/tools/index.ts +73 -0
- package/src/i18n/messages/zh-tw/tools/koko-codex-assistant.ts +170 -0
- package/src/i18n/messages/zh-tw/tools/logo-generator.ts +71 -0
- package/src/i18n/messages/zh-tw/tools/market-forecast-report.ts +228 -0
- package/src/i18n/messages/zh-tw/tools/million-user-growth-test.ts +385 -0
- package/src/i18n/messages/zh-tw/tools/og-image-generator.ts +173 -0
- package/src/i18n/messages/zh-tw/tools/pitch-deck-generator.ts +358 -0
- package/src/i18n/messages/zh-tw/tools/product-agreement-generator.ts +401 -0
- package/src/i18n/messages/zh-tw/tools/product-hunt-launch-planner.ts +267 -0
- package/src/i18n/messages/zh-tw/tools/product-name-generator.ts +383 -0
- package/src/i18n/messages/zh-tw/tools/product-poster-generator.ts +282 -0
- package/src/i18n/messages/zh-tw/tools/product-ui-generator.ts +234 -0
- package/src/i18n/messages/zh-tw/tools/reddit-pain-point-finder.ts +162 -0
- package/src/i18n/messages/zh-tw/tools/shared.ts +24 -0
- package/src/i18n/messages/zh-tw/tools/social-listening-research-report.ts +181 -0
- package/src/i18n/messages/zh-tw/tools/social-media-profile-generator.ts +22 -0
- package/src/i18n/messages/zh-tw/tools/social-platform-asset-adapter.ts +284 -0
- package/src/i18n/messages/zh-tw/tools/social-profile-kit.ts +150 -0
- package/src/i18n/messages/zh-tw/tools/startup-idea-research.ts +165 -0
- package/src/i18n/messages/zh-tw/tools/tarot-reading.ts +228 -0
- package/src/i18n/messages/zh-tw/tools/twitter-gif-downloader.ts +138 -0
- package/src/i18n/messages/zh-tw/tools/user-interview-insight-report-generator.ts +224 -0
- package/src/i18n/messages/zh-tw/tools/user-interview-record-generator.ts +226 -0
- package/src/i18n/messages/zh-tw/tools-ui.ts +525 -0
- package/src/index.ts +15 -0
- package/src/lib/activity-task-handoff.ts +404 -0
- package/src/lib/api/errors.ts +39 -0
- package/src/lib/app-origin.ts +30 -0
- package/src/lib/fact-claim-contract.ts +68 -0
- package/src/lib/fake-delay.ts +3 -0
- package/src/lib/file/download.ts +10 -0
- package/src/lib/routing/locale-paths.ts +27 -0
- package/src/lib/seo-meta.ts +3 -0
- package/src/lib/tools/app-icon-resizer-schema.ts +191 -0
- package/src/lib/tools/app-store-screenshot-generator-schema.ts +185 -0
- package/src/lib/tools/build-in-public-story-generator-schema.ts +67 -0
- package/src/lib/tools/build-in-public-story-generator.format.ts +507 -0
- package/src/lib/tools/cold-start-channel-selector-schema.ts +147 -0
- package/src/lib/tools/commercial-bp-generator-schema.ts +222 -0
- package/src/lib/tools/community-feedback-inbox-schema.ts +125 -0
- package/src/lib/tools/community-feedback-inbox.format.ts +764 -0
- package/src/lib/tools/community-pain-point-extractor-schema.ts +166 -0
- package/src/lib/tools/community-post-risk-checker-schema.ts +99 -0
- package/src/lib/tools/community-post-risk-checker.format.ts +557 -0
- package/src/lib/tools/competitor-analysis-schema.ts +144 -0
- package/src/lib/tools/draft-preview-access.ts +3 -0
- package/src/lib/tools/draft-store.ts +69 -0
- package/src/lib/tools/email-template-generator-schema.ts +124 -0
- package/src/lib/tools/gtm-checklist-copy.ts +57 -0
- package/src/lib/tools/gtm-checklist-structure.ts +37 -0
- package/src/lib/tools/image-download.ts +68 -0
- package/src/lib/tools/input-quality.ts +97 -0
- package/src/lib/tools/logo-generator-schema.ts +224 -0
- package/src/lib/tools/market-forecast-report-schema.ts +299 -0
- package/src/lib/tools/mcp-registry.ts +16 -0
- package/src/lib/tools/mcp-types.ts +18 -0
- package/src/lib/tools/million-user-growth-test-schema.ts +49 -0
- package/src/lib/tools/million-user-growth-test.ts +181 -0
- package/src/lib/tools/og-image-generator-render.ts +448 -0
- package/src/lib/tools/og-image-generator-schema.ts +140 -0
- package/src/lib/tools/ops-catalog.ts +102 -0
- package/src/lib/tools/pitch-deck-generator-schema.ts +182 -0
- package/src/lib/tools/pitch-deck-package.ts +0 -0
- package/src/lib/tools/product-agreement-generator-schema.ts +168 -0
- package/src/lib/tools/product-hunt-launch-planner-schema.ts +136 -0
- package/src/lib/tools/product-hunt-launch-planner.format.ts +72 -0
- package/src/lib/tools/product-name-generator-schema.ts +563 -0
- package/src/lib/tools/product-poster-generator-schema.ts +215 -0
- package/src/lib/tools/product-ui-generator-schema.ts +157 -0
- package/src/lib/tools/reddit-pain-point-finder-schema.ts +88 -0
- package/src/lib/tools/resolve-tool-locale-copy.ts +75 -0
- package/src/lib/tools/slug.ts +60 -0
- package/src/lib/tools/social-listening-research-report-schema.ts +105 -0
- package/src/lib/tools/social-platform-asset-adapter-schema.ts +152 -0
- package/src/lib/tools/social-profile-kit.constants.ts +12 -0
- package/src/lib/tools/social-profile-kit.generation.ts +257 -0
- package/src/lib/tools/social-profile-kit.input.ts +290 -0
- package/src/lib/tools/social-profile-kit.manual.ts +481 -0
- package/src/lib/tools/social-profile-kit.package.ts +220 -0
- package/src/lib/tools/social-profile-kit.schema.ts +328 -0
- package/src/lib/tools/startup-idea-research-schema.ts +107 -0
- package/src/lib/tools/tarot-imagery.ts +89 -0
- package/src/lib/tools/tarot-reading.ts +1044 -0
- package/src/lib/tools/tool-message-keys.ts +18 -0
- package/src/lib/tools/types.ts +32 -0
- package/src/lib/tools/user-interview.format.ts +147 -0
- package/src/lib/tools/user-interview.generation.ts +670 -0
- package/src/lib/tools/user-interview.schema.ts +192 -0
- package/src/lib/zip.ts +106 -0
- package/src/services/tools/handlers/gtm-readiness-checklist.ts +71 -0
- package/src/services/tools/handlers/types.ts +7 -0
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import type {
|
|
4
|
+
CSSProperties,
|
|
5
|
+
KeyboardEvent as ReactKeyboardEvent,
|
|
6
|
+
PointerEvent as ReactPointerEvent,
|
|
7
|
+
ReactNode,
|
|
8
|
+
} from "react";
|
|
9
|
+
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
10
|
+
|
|
11
|
+
import { cn } from "@tomako/ui/cn";
|
|
12
|
+
|
|
13
|
+
const DEFAULT_FORM_WIDTH = 440;
|
|
14
|
+
const DEFAULT_FORM_MIN_WIDTH = 340;
|
|
15
|
+
const DEFAULT_FORM_MAX_WIDTH = 620;
|
|
16
|
+
const DEFAULT_PREVIEW_MIN_WIDTH = 520;
|
|
17
|
+
const DEFAULT_FORM_MAX_RATIO = 0.48;
|
|
18
|
+
const HIDDEN_SCROLLBAR_CLASS =
|
|
19
|
+
"[scrollbar-width:none] [&::-webkit-scrollbar]:hidden";
|
|
20
|
+
|
|
21
|
+
export function ToolWorkspaceLayout({
|
|
22
|
+
form,
|
|
23
|
+
preview,
|
|
24
|
+
className,
|
|
25
|
+
contentClassName,
|
|
26
|
+
formClassName,
|
|
27
|
+
previewClassName,
|
|
28
|
+
defaultFormWidth = DEFAULT_FORM_WIDTH,
|
|
29
|
+
minFormWidth = DEFAULT_FORM_MIN_WIDTH,
|
|
30
|
+
maxFormWidth = DEFAULT_FORM_MAX_WIDTH,
|
|
31
|
+
}: {
|
|
32
|
+
form: ReactNode;
|
|
33
|
+
preview: ReactNode;
|
|
34
|
+
className?: string;
|
|
35
|
+
contentClassName?: string;
|
|
36
|
+
formClassName?: string;
|
|
37
|
+
previewClassName?: string;
|
|
38
|
+
defaultFormWidth?: number;
|
|
39
|
+
minFormWidth?: number;
|
|
40
|
+
maxFormWidth?: number;
|
|
41
|
+
}) {
|
|
42
|
+
const layoutRef = useRef<HTMLDivElement | null>(null);
|
|
43
|
+
const dragStateRef = useRef<{ startX: number; startWidth: number } | null>(null);
|
|
44
|
+
const resolvedMinWidth = Math.min(minFormWidth, maxFormWidth);
|
|
45
|
+
const resolvedMaxWidth = Math.max(maxFormWidth, resolvedMinWidth);
|
|
46
|
+
const [formWidth, setFormWidth] = useState(() =>
|
|
47
|
+
Math.min(Math.max(defaultFormWidth, resolvedMinWidth), resolvedMaxWidth),
|
|
48
|
+
);
|
|
49
|
+
const [responsiveMaxWidth, setResponsiveMaxWidth] = useState(resolvedMaxWidth);
|
|
50
|
+
const [isResizing, setIsResizing] = useState(false);
|
|
51
|
+
|
|
52
|
+
const calculateResponsiveMaxWidth = useCallback(() => {
|
|
53
|
+
const containerWidth = layoutRef.current?.getBoundingClientRect().width ?? 0;
|
|
54
|
+
const ratioMax = containerWidth
|
|
55
|
+
? Math.floor(containerWidth * DEFAULT_FORM_MAX_RATIO)
|
|
56
|
+
: resolvedMaxWidth;
|
|
57
|
+
const previewMax = containerWidth
|
|
58
|
+
? Math.floor(containerWidth - DEFAULT_PREVIEW_MIN_WIDTH)
|
|
59
|
+
: resolvedMaxWidth;
|
|
60
|
+
return Math.max(
|
|
61
|
+
resolvedMinWidth,
|
|
62
|
+
Math.min(resolvedMaxWidth, ratioMax, previewMax),
|
|
63
|
+
);
|
|
64
|
+
}, [resolvedMaxWidth, resolvedMinWidth]);
|
|
65
|
+
|
|
66
|
+
const clampFormWidth = useCallback((nextWidth: number) => {
|
|
67
|
+
return Math.min(Math.max(nextWidth, resolvedMinWidth), responsiveMaxWidth);
|
|
68
|
+
}, [responsiveMaxWidth, resolvedMinWidth]);
|
|
69
|
+
|
|
70
|
+
useEffect(() => {
|
|
71
|
+
// Re-clamp once layout width changes, for example when entering full screen.
|
|
72
|
+
const resizeObserver =
|
|
73
|
+
typeof ResizeObserver === "undefined" || !layoutRef.current
|
|
74
|
+
? null
|
|
75
|
+
: new ResizeObserver(() => {
|
|
76
|
+
const nextMaxWidth = calculateResponsiveMaxWidth();
|
|
77
|
+
setResponsiveMaxWidth(nextMaxWidth);
|
|
78
|
+
setFormWidth((current) =>
|
|
79
|
+
Math.min(Math.max(current, resolvedMinWidth), nextMaxWidth),
|
|
80
|
+
);
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
if (layoutRef.current) resizeObserver?.observe(layoutRef.current);
|
|
84
|
+
|
|
85
|
+
return () => resizeObserver?.disconnect();
|
|
86
|
+
}, [calculateResponsiveMaxWidth, resolvedMinWidth]);
|
|
87
|
+
|
|
88
|
+
useEffect(() => {
|
|
89
|
+
if (!isResizing) return undefined;
|
|
90
|
+
|
|
91
|
+
const previousCursor = document.body.style.cursor;
|
|
92
|
+
const previousUserSelect = document.body.style.userSelect;
|
|
93
|
+
document.body.style.cursor = "col-resize";
|
|
94
|
+
document.body.style.userSelect = "none";
|
|
95
|
+
|
|
96
|
+
function handlePointerMove(event: PointerEvent) {
|
|
97
|
+
if (!dragStateRef.current) return;
|
|
98
|
+
const nextWidth =
|
|
99
|
+
dragStateRef.current.startWidth + event.clientX - dragStateRef.current.startX;
|
|
100
|
+
setFormWidth(clampFormWidth(nextWidth));
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
function stopResizing() {
|
|
104
|
+
dragStateRef.current = null;
|
|
105
|
+
setIsResizing(false);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
window.addEventListener("pointermove", handlePointerMove);
|
|
109
|
+
window.addEventListener("pointerup", stopResizing, { once: true });
|
|
110
|
+
window.addEventListener("pointercancel", stopResizing, { once: true });
|
|
111
|
+
|
|
112
|
+
return () => {
|
|
113
|
+
document.body.style.cursor = previousCursor;
|
|
114
|
+
document.body.style.userSelect = previousUserSelect;
|
|
115
|
+
window.removeEventListener("pointermove", handlePointerMove);
|
|
116
|
+
window.removeEventListener("pointerup", stopResizing);
|
|
117
|
+
window.removeEventListener("pointercancel", stopResizing);
|
|
118
|
+
};
|
|
119
|
+
}, [clampFormWidth, isResizing]);
|
|
120
|
+
|
|
121
|
+
const layoutStyle = useMemo(
|
|
122
|
+
() =>
|
|
123
|
+
({
|
|
124
|
+
"--tool-workspace-form-min": `${resolvedMinWidth}px`,
|
|
125
|
+
"--tool-workspace-form-width": `${formWidth}px`,
|
|
126
|
+
}) as CSSProperties,
|
|
127
|
+
[formWidth, resolvedMinWidth],
|
|
128
|
+
);
|
|
129
|
+
|
|
130
|
+
function startResizing(event: ReactPointerEvent<HTMLButtonElement>) {
|
|
131
|
+
event.preventDefault();
|
|
132
|
+
dragStateRef.current = {
|
|
133
|
+
startX: event.clientX,
|
|
134
|
+
startWidth: formWidth,
|
|
135
|
+
};
|
|
136
|
+
setIsResizing(true);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
function handleResizeKeyDown(event: ReactKeyboardEvent<HTMLButtonElement>) {
|
|
140
|
+
const step = event.shiftKey ? 32 : 16;
|
|
141
|
+
if (event.key === "ArrowLeft") {
|
|
142
|
+
event.preventDefault();
|
|
143
|
+
setFormWidth((current) => clampFormWidth(current - step));
|
|
144
|
+
}
|
|
145
|
+
if (event.key === "ArrowRight") {
|
|
146
|
+
event.preventDefault();
|
|
147
|
+
setFormWidth((current) => clampFormWidth(current + step));
|
|
148
|
+
}
|
|
149
|
+
if (event.key === "Home") {
|
|
150
|
+
event.preventDefault();
|
|
151
|
+
setFormWidth(clampFormWidth(resolvedMinWidth));
|
|
152
|
+
}
|
|
153
|
+
if (event.key === "End") {
|
|
154
|
+
event.preventDefault();
|
|
155
|
+
setFormWidth(clampFormWidth(responsiveMaxWidth));
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
return (
|
|
160
|
+
<section
|
|
161
|
+
className={cn(
|
|
162
|
+
"max-w-full overflow-hidden rounded-lg border border-[#E4E9F1] bg-white shadow-[0_24px_70px_rgba(17,17,17,0.08)]",
|
|
163
|
+
className,
|
|
164
|
+
)}
|
|
165
|
+
>
|
|
166
|
+
<div
|
|
167
|
+
ref={layoutRef}
|
|
168
|
+
style={layoutStyle}
|
|
169
|
+
className={cn(
|
|
170
|
+
"tool-workspace-grid grid h-full max-w-full items-stretch",
|
|
171
|
+
contentClassName,
|
|
172
|
+
)}
|
|
173
|
+
>
|
|
174
|
+
<style>{`
|
|
175
|
+
.tool-workspace-grid {
|
|
176
|
+
grid-template-columns: 1fr;
|
|
177
|
+
}
|
|
178
|
+
@media (min-width: 1024px) {
|
|
179
|
+
.tool-workspace-grid {
|
|
180
|
+
grid-template-columns: minmax(
|
|
181
|
+
var(--tool-workspace-form-min),
|
|
182
|
+
var(--tool-workspace-form-width)
|
|
183
|
+
)
|
|
184
|
+
minmax(0, 1fr);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
`}</style>
|
|
188
|
+
<div
|
|
189
|
+
className={cn(
|
|
190
|
+
"relative min-w-0 max-w-full overflow-x-hidden border-b border-[#E4E9F1] bg-white p-5 md:p-6 lg:h-full lg:min-h-0 lg:overflow-y-auto lg:border-b-0 lg:border-r [&:has([data-tool-action-bar-attached])]:pb-0",
|
|
191
|
+
HIDDEN_SCROLLBAR_CLASS,
|
|
192
|
+
formClassName,
|
|
193
|
+
)}
|
|
194
|
+
>
|
|
195
|
+
{form}
|
|
196
|
+
<button
|
|
197
|
+
type="button"
|
|
198
|
+
aria-label="Resize configuration panel"
|
|
199
|
+
aria-orientation="vertical"
|
|
200
|
+
aria-valuemax={responsiveMaxWidth}
|
|
201
|
+
aria-valuemin={resolvedMinWidth}
|
|
202
|
+
aria-valuenow={Math.round(formWidth)}
|
|
203
|
+
className={cn(
|
|
204
|
+
"absolute -right-1.5 top-0 z-30 hidden h-full w-3 cursor-col-resize items-center justify-center outline-none lg:flex",
|
|
205
|
+
"before:block before:h-full before:w-px before:bg-[#E1E1E1] before:content-['']",
|
|
206
|
+
"hover:before:w-1 hover:before:rounded-full hover:before:bg-[#111111]",
|
|
207
|
+
"focus-visible:before:w-1 focus-visible:before:rounded-full focus-visible:before:bg-[#111111]",
|
|
208
|
+
isResizing && "before:w-1 before:rounded-full before:bg-[#111111]",
|
|
209
|
+
)}
|
|
210
|
+
role="separator"
|
|
211
|
+
onKeyDown={handleResizeKeyDown}
|
|
212
|
+
onPointerDown={startResizing}
|
|
213
|
+
/>
|
|
214
|
+
</div>
|
|
215
|
+
<div
|
|
216
|
+
className={cn(
|
|
217
|
+
"min-w-0 max-w-full overflow-hidden lg:h-full",
|
|
218
|
+
previewClassName,
|
|
219
|
+
)}
|
|
220
|
+
>
|
|
221
|
+
{preview}
|
|
222
|
+
</div>
|
|
223
|
+
</div>
|
|
224
|
+
</section>
|
|
225
|
+
);
|
|
226
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export const AUTH_KEY = 'tomako-auth';
|
|
2
|
+
export const PROJECT_WORKSPACE_MAP_KEY = 'tomako.growthWorkspaceByProject';
|
|
3
|
+
export const ACTIVE_ID_KEY = 'tomako.activeId';
|
|
4
|
+
export const ACTIVE_PROJECT = 'unfold.activeProject';
|
|
5
|
+
export const ONBOARDING_GOAL_DRAFT_KEY = "tomako.onboardingGoalDraft.v1";
|
|
6
|
+
export const LOCAL_PROJECTS_LS_KEY = 'unfold.localProjectShells'
|
|
7
|
+
export const TAROT_ANONYMOUS_ID_KEY = 'tomako:tarot-anonymous-id';
|
|
8
|
+
export const DRAFT_STORE_KEY = "unfold.toolDrafts.v1"
|
|
9
|
+
export const POST_LOGIN_REDIRECT_KEY = 'tomako.postLoginRedirect'
|
|
10
|
+
export const BLOG_DRAFT_STORE_KEY = 'unfold.blogDrafts.v1';
|
|
11
|
+
export const LKS = {
|
|
12
|
+
AUTH_KEY,
|
|
13
|
+
PROJECT_WORKSPACE_MAP_KEY,
|
|
14
|
+
ACTIVE_ID_KEY,
|
|
15
|
+
TAROT_ANONYMOUS_ID_KEY,
|
|
16
|
+
DRAFT_STORE_KEY,
|
|
17
|
+
BLOG_DRAFT_STORE_KEY,
|
|
18
|
+
ONBOARDING_GOAL_DRAFT_KEY,
|
|
19
|
+
} as const;
|
|
20
|
+
|
|
21
|
+
export const SKS = {
|
|
22
|
+
POST_LOGIN_REDIRECT_KEY,
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
export const CKS = {
|
|
27
|
+
ACTIVE_PROJECT,
|
|
28
|
+
LOCAL_PROJECTS_LS_KEY
|
|
29
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Editorially reviewed relationships only. The display component still filters
|
|
3
|
+
* these slugs against the current public tool catalogue before rendering.
|
|
4
|
+
*/
|
|
5
|
+
export const relatedToolSlugsByTool: Readonly<Record<string, readonly string[]>> = {
|
|
6
|
+
"cold-start-channel-selector": [
|
|
7
|
+
"gtm-readiness-checklist",
|
|
8
|
+
"community-post-risk-checker",
|
|
9
|
+
],
|
|
10
|
+
"gtm-readiness-checklist": [
|
|
11
|
+
"cold-start-channel-selector",
|
|
12
|
+
"community-post-risk-checker",
|
|
13
|
+
],
|
|
14
|
+
"community-post-risk-checker": [
|
|
15
|
+
"cold-start-channel-selector",
|
|
16
|
+
"gtm-readiness-checklist",
|
|
17
|
+
],
|
|
18
|
+
};
|
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
import type { SocialProfilePlatform } from "../lib/tools/social-profile-kit.schema";
|
|
2
|
+
|
|
3
|
+
export const SOCIAL_PROFILE_PLATFORMS = [
|
|
4
|
+
"x",
|
|
5
|
+
"bluesky",
|
|
6
|
+
"threads",
|
|
7
|
+
"linkedin",
|
|
8
|
+
"linkedin-company",
|
|
9
|
+
"instagram",
|
|
10
|
+
"tiktok",
|
|
11
|
+
"youtube",
|
|
12
|
+
"facebook",
|
|
13
|
+
] as const satisfies readonly SocialProfilePlatform[];
|
|
14
|
+
|
|
15
|
+
export const SOCIAL_PROFILE_V1_PLATFORMS = [
|
|
16
|
+
"x",
|
|
17
|
+
"bluesky",
|
|
18
|
+
"threads",
|
|
19
|
+
"linkedin",
|
|
20
|
+
"linkedin-company",
|
|
21
|
+
"instagram",
|
|
22
|
+
"tiktok",
|
|
23
|
+
"youtube",
|
|
24
|
+
"facebook",
|
|
25
|
+
] as const satisfies readonly SocialProfilePlatform[];
|
|
26
|
+
|
|
27
|
+
export const SOCIAL_PROFILE_AVATAR_POLICY = {
|
|
28
|
+
defaultSource: "uploaded-or-logo",
|
|
29
|
+
allowedSources: ["uploaded", "logoGenerator", "placeholder"],
|
|
30
|
+
placeholder: "neutral-monogram",
|
|
31
|
+
canGenerateHumanPortrait: false,
|
|
32
|
+
note:
|
|
33
|
+
"Profile avatars are identity assets. Prefer an uploaded logo or photo; use a neutral monogram placeholder only for preview.",
|
|
34
|
+
} as const;
|
|
35
|
+
|
|
36
|
+
export type SocialProfileSafeAreaBox = {
|
|
37
|
+
x: number;
|
|
38
|
+
y: number;
|
|
39
|
+
width: number;
|
|
40
|
+
height: number;
|
|
41
|
+
note: string;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export type SocialProfileImageSpec = {
|
|
45
|
+
label: string;
|
|
46
|
+
width: number;
|
|
47
|
+
height: number;
|
|
48
|
+
sourceNote: string;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export type SocialProfilePlatformSpec = {
|
|
52
|
+
label: string;
|
|
53
|
+
shortLabel: string;
|
|
54
|
+
iconLabel: string;
|
|
55
|
+
supportsBanner: boolean;
|
|
56
|
+
usernamePrefix: string;
|
|
57
|
+
avatar: SocialProfileImageSpec;
|
|
58
|
+
banner?: SocialProfileImageSpec & {
|
|
59
|
+
safeArea?: string;
|
|
60
|
+
safeAreaBox?: SocialProfileSafeAreaBox;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
const BRAND_BIRD =
|
|
65
|
+
"Source: https://www.brandbird.app/tools/social-media-sizes";
|
|
66
|
+
const BUFFER = "Source: https://buffer.com/resources/social-media-image-sizes/";
|
|
67
|
+
const HOOTSUITE =
|
|
68
|
+
"Source: https://blog.hootsuite.com/social-media-image-sizes-guide/";
|
|
69
|
+
const LINKEDIN_OFFICIAL =
|
|
70
|
+
"Source: https://www.linkedin.com/help/linkedin/answer/a563309";
|
|
71
|
+
|
|
72
|
+
export const SOCIAL_PROFILE_PLATFORM_SPECS: Record<
|
|
73
|
+
SocialProfilePlatform,
|
|
74
|
+
SocialProfilePlatformSpec
|
|
75
|
+
> = {
|
|
76
|
+
x: {
|
|
77
|
+
label: "X",
|
|
78
|
+
shortLabel: "X",
|
|
79
|
+
iconLabel: "X",
|
|
80
|
+
supportsBanner: true,
|
|
81
|
+
usernamePrefix: "@",
|
|
82
|
+
avatar: {
|
|
83
|
+
label: "Profile picture",
|
|
84
|
+
width: 400,
|
|
85
|
+
height: 400,
|
|
86
|
+
sourceNote: `${BRAND_BIRD}; ${BUFFER}`,
|
|
87
|
+
},
|
|
88
|
+
banner: {
|
|
89
|
+
label: "Header",
|
|
90
|
+
width: 1500,
|
|
91
|
+
height: 500,
|
|
92
|
+
safeArea: "Keep key text and faces near the center.",
|
|
93
|
+
safeAreaBox: {
|
|
94
|
+
x: 180,
|
|
95
|
+
y: 80,
|
|
96
|
+
width: 1140,
|
|
97
|
+
height: 340,
|
|
98
|
+
note: "Keep logos, text, and faces away from the top/bottom crop band and left avatar overlap.",
|
|
99
|
+
},
|
|
100
|
+
sourceNote: `${BRAND_BIRD}; ${BUFFER}`,
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
bluesky: {
|
|
104
|
+
label: "Bluesky",
|
|
105
|
+
shortLabel: "Bluesky",
|
|
106
|
+
iconLabel: "BS",
|
|
107
|
+
supportsBanner: true,
|
|
108
|
+
usernamePrefix: "@",
|
|
109
|
+
avatar: {
|
|
110
|
+
label: "Profile picture",
|
|
111
|
+
width: 400,
|
|
112
|
+
height: 400,
|
|
113
|
+
sourceNote: BRAND_BIRD,
|
|
114
|
+
},
|
|
115
|
+
banner: {
|
|
116
|
+
label: "Profile banner",
|
|
117
|
+
width: 1500,
|
|
118
|
+
height: 500,
|
|
119
|
+
safeArea: "Keep core identity centered for desktop and mobile crops.",
|
|
120
|
+
safeAreaBox: {
|
|
121
|
+
x: 180,
|
|
122
|
+
y: 80,
|
|
123
|
+
width: 1140,
|
|
124
|
+
height: 340,
|
|
125
|
+
note: "Keep the meaningful visual idea in the center band and leave the lower-left avatar overlap area quiet.",
|
|
126
|
+
},
|
|
127
|
+
sourceNote: "Source: https://www.brandbird.app/tools/bluesky-banner-generator",
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
threads: {
|
|
131
|
+
label: "Threads",
|
|
132
|
+
shortLabel: "Threads",
|
|
133
|
+
iconLabel: "@",
|
|
134
|
+
supportsBanner: false,
|
|
135
|
+
usernamePrefix: "@",
|
|
136
|
+
avatar: {
|
|
137
|
+
label: "Profile picture",
|
|
138
|
+
width: 320,
|
|
139
|
+
height: 320,
|
|
140
|
+
sourceNote: "Source: Threads and Instagram-style profile display references",
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
linkedin: {
|
|
144
|
+
label: "LinkedIn",
|
|
145
|
+
shortLabel: "LinkedIn",
|
|
146
|
+
iconLabel: "in",
|
|
147
|
+
supportsBanner: true,
|
|
148
|
+
usernamePrefix: "/in/",
|
|
149
|
+
avatar: {
|
|
150
|
+
label: "Profile photo",
|
|
151
|
+
width: 400,
|
|
152
|
+
height: 400,
|
|
153
|
+
sourceNote: `${BRAND_BIRD}; ${BUFFER}`,
|
|
154
|
+
},
|
|
155
|
+
banner: {
|
|
156
|
+
label: "Personal cover",
|
|
157
|
+
width: 1584,
|
|
158
|
+
height: 396,
|
|
159
|
+
safeArea: "Mobile and desktop crop differently; keep text centered.",
|
|
160
|
+
safeAreaBox: {
|
|
161
|
+
x: 360,
|
|
162
|
+
y: 72,
|
|
163
|
+
width: 1000,
|
|
164
|
+
height: 252,
|
|
165
|
+
note: "Avoid the lower-left avatar overlap and keep headline text in the middle band.",
|
|
166
|
+
},
|
|
167
|
+
sourceNote: `${BRAND_BIRD}; ${BUFFER}`,
|
|
168
|
+
},
|
|
169
|
+
},
|
|
170
|
+
"linkedin-company": {
|
|
171
|
+
label: "LinkedIn Company",
|
|
172
|
+
shortLabel: "LinkedIn Co.",
|
|
173
|
+
iconLabel: "in",
|
|
174
|
+
supportsBanner: true,
|
|
175
|
+
usernamePrefix: "/company/",
|
|
176
|
+
avatar: {
|
|
177
|
+
label: "Company logo",
|
|
178
|
+
width: 400,
|
|
179
|
+
height: 400,
|
|
180
|
+
sourceNote: LINKEDIN_OFFICIAL,
|
|
181
|
+
},
|
|
182
|
+
banner: {
|
|
183
|
+
label: "Page cover",
|
|
184
|
+
width: 4200,
|
|
185
|
+
height: 700,
|
|
186
|
+
safeArea: "Use a wide 6:1 composition and keep key brand elements centered.",
|
|
187
|
+
safeAreaBox: {
|
|
188
|
+
x: 840,
|
|
189
|
+
y: 105,
|
|
190
|
+
width: 2520,
|
|
191
|
+
height: 490,
|
|
192
|
+
note: "Use the middle 60% as the brand-safe composition; leave edge space for responsive crops.",
|
|
193
|
+
},
|
|
194
|
+
sourceNote: LINKEDIN_OFFICIAL,
|
|
195
|
+
},
|
|
196
|
+
},
|
|
197
|
+
instagram: {
|
|
198
|
+
label: "Instagram",
|
|
199
|
+
shortLabel: "Instagram",
|
|
200
|
+
iconLabel: "IG",
|
|
201
|
+
supportsBanner: false,
|
|
202
|
+
usernamePrefix: "@",
|
|
203
|
+
avatar: {
|
|
204
|
+
label: "Profile picture",
|
|
205
|
+
width: 320,
|
|
206
|
+
height: 320,
|
|
207
|
+
sourceNote: `${BRAND_BIRD}; ${BUFFER}`,
|
|
208
|
+
},
|
|
209
|
+
},
|
|
210
|
+
tiktok: {
|
|
211
|
+
label: "TikTok",
|
|
212
|
+
shortLabel: "TikTok",
|
|
213
|
+
iconLabel: "TT",
|
|
214
|
+
supportsBanner: false,
|
|
215
|
+
usernamePrefix: "@",
|
|
216
|
+
avatar: {
|
|
217
|
+
label: "Profile picture",
|
|
218
|
+
width: 400,
|
|
219
|
+
height: 400,
|
|
220
|
+
sourceNote: BRAND_BIRD,
|
|
221
|
+
},
|
|
222
|
+
},
|
|
223
|
+
youtube: {
|
|
224
|
+
label: "YouTube",
|
|
225
|
+
shortLabel: "YouTube",
|
|
226
|
+
iconLabel: "YT",
|
|
227
|
+
supportsBanner: true,
|
|
228
|
+
usernamePrefix: "@",
|
|
229
|
+
avatar: {
|
|
230
|
+
label: "Channel avatar",
|
|
231
|
+
width: 800,
|
|
232
|
+
height: 800,
|
|
233
|
+
sourceNote: BUFFER,
|
|
234
|
+
},
|
|
235
|
+
banner: {
|
|
236
|
+
label: "Channel banner",
|
|
237
|
+
width: 2560,
|
|
238
|
+
height: 1440,
|
|
239
|
+
safeArea: "Keep core identity inside the center safe area.",
|
|
240
|
+
safeAreaBox: {
|
|
241
|
+
x: 663,
|
|
242
|
+
y: 551,
|
|
243
|
+
width: 1235,
|
|
244
|
+
height: 338,
|
|
245
|
+
note: "Keep all text and logos in the center safe area so mobile, desktop, and TV crops remain usable.",
|
|
246
|
+
},
|
|
247
|
+
sourceNote: BUFFER,
|
|
248
|
+
},
|
|
249
|
+
},
|
|
250
|
+
facebook: {
|
|
251
|
+
label: "Facebook",
|
|
252
|
+
shortLabel: "Facebook",
|
|
253
|
+
iconLabel: "f",
|
|
254
|
+
supportsBanner: true,
|
|
255
|
+
usernamePrefix: "@",
|
|
256
|
+
avatar: {
|
|
257
|
+
label: "Profile picture",
|
|
258
|
+
width: 320,
|
|
259
|
+
height: 320,
|
|
260
|
+
sourceNote: `${HOOTSUITE}; ${BUFFER}`,
|
|
261
|
+
},
|
|
262
|
+
banner: {
|
|
263
|
+
label: "Cover photo",
|
|
264
|
+
width: 851,
|
|
265
|
+
height: 315,
|
|
266
|
+
safeArea: "Profile image overlaps the lower-left cover area.",
|
|
267
|
+
safeAreaBox: {
|
|
268
|
+
x: 170,
|
|
269
|
+
y: 42,
|
|
270
|
+
width: 596,
|
|
271
|
+
height: 210,
|
|
272
|
+
note: "Keep important details away from the lower-left profile image overlap and from the outer crop edges.",
|
|
273
|
+
},
|
|
274
|
+
sourceNote: `${HOOTSUITE}; ${BUFFER}`,
|
|
275
|
+
},
|
|
276
|
+
},
|
|
277
|
+
};
|
|
278
|
+
|
|
279
|
+
export const SOCIAL_PROFILE_DEFAULT_COLORS = [
|
|
280
|
+
"#1f2937",
|
|
281
|
+
"#5ba8a0",
|
|
282
|
+
"#f59e6b",
|
|
283
|
+
"#f7d38b",
|
|
284
|
+
] as const;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export const socialPlatformAssetAdapterImages = {
|
|
2
|
+
hero: "/tools/social-platform-asset-adapter-hero-generated.webp",
|
|
3
|
+
workspace: "/tools/social-platform-asset-adapter-workspace-generated.webp",
|
|
4
|
+
value: "/tools/social-platform-asset-adapter-value-generated.webp",
|
|
5
|
+
support: "/tools/social-platform-asset-adapter-support-generated.webp",
|
|
6
|
+
useCase: "/tools/social-platform-asset-adapter-use-case-generated.webp",
|
|
7
|
+
} as const;
|
package/src/env.d.ts
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Golden-sample container template — NOT registered in registry.ts.
|
|
3
|
+
*
|
|
4
|
+
* Prefer for standard SEO landing pages:
|
|
5
|
+
* createStandardLandingContainer({ guideNamespace, Widget, benefitIcons, generationImageSrc })
|
|
6
|
+
* from ../shared/create-standard-landing-container
|
|
7
|
+
*
|
|
8
|
+
* Copy this file only when the landing stack is NOT ToolLandingStandardSections
|
|
9
|
+
* (custom Guide / Divided / immersive layouts).
|
|
10
|
+
*
|
|
11
|
+
* Rules:
|
|
12
|
+
* - Import marketing sections from ../shared/tool-content-sections only.
|
|
13
|
+
* - Do NOT define local ValueGrid / TextRows / FaqSection / CardGrid helpers.
|
|
14
|
+
* - Keep this file ≤120 LOC: i18n fetch + shared component composition + CTA.
|
|
15
|
+
*/
|
|
16
|
+
import { createToolGuideTranslator } from "../shared/tool-message-translator";
|
|
17
|
+
|
|
18
|
+
// import { YourWidget } from "./widget";
|
|
19
|
+
|
|
20
|
+
import {
|
|
21
|
+
ToolCardGrid,
|
|
22
|
+
ToolDividedRows,
|
|
23
|
+
ToolFaqSection,
|
|
24
|
+
ToolTripleComparisonSection,
|
|
25
|
+
ToolUseCasesBandSection,
|
|
26
|
+
type ToolFaqItem,
|
|
27
|
+
type ToolTextCard,
|
|
28
|
+
type ToolTripleComparisonItem,
|
|
29
|
+
} from "../shared/tool-content-sections";
|
|
30
|
+
import { ToolCta } from "../shared/tool-cta";
|
|
31
|
+
import { ToolGuideSection, ToolImageVisual, ToolWorkspaceSection } from "../shared/tool-guide-section";
|
|
32
|
+
import { ToolPageShell } from "../shared/tool-page-shell";
|
|
33
|
+
import type { ToolPageProps } from "../types";
|
|
34
|
+
|
|
35
|
+
export async function ExampleToolContainer({ locale, spec }: ToolPageProps) {
|
|
36
|
+
const t = await createToolGuideTranslator(locale, "toolsPages.exampleTool.guide");
|
|
37
|
+
|
|
38
|
+
return (
|
|
39
|
+
<ToolPageShell locale={locale} spec={spec}>
|
|
40
|
+
<ToolWorkspaceSection
|
|
41
|
+
heading={t("workspaceHeading")}
|
|
42
|
+
hint={t("workspaceHint")}
|
|
43
|
+
badge={t("workspaceBadge")}
|
|
44
|
+
>
|
|
45
|
+
{/* Replace with: <YourWidget /> */}
|
|
46
|
+
<div aria-hidden className="hidden" />
|
|
47
|
+
</ToolWorkspaceSection>
|
|
48
|
+
|
|
49
|
+
<ToolGuideSection
|
|
50
|
+
heading={t("whatYouGetHeading")}
|
|
51
|
+
visual={<ToolImageVisual src="/tools/example-value.webp" alt={t("valueVisualAlt")} priority />}
|
|
52
|
+
>
|
|
53
|
+
<ToolCardGrid
|
|
54
|
+
items={t.raw("whatYouGetItems") as readonly ToolTextCard[]}
|
|
55
|
+
columns="two"
|
|
56
|
+
size="prominent"
|
|
57
|
+
/>
|
|
58
|
+
</ToolGuideSection>
|
|
59
|
+
|
|
60
|
+
<ToolGuideSection
|
|
61
|
+
heading={t("standardsHeading")}
|
|
62
|
+
reverse
|
|
63
|
+
visual={<ToolImageVisual src="/tools/example-support.webp" alt={t("supportVisualAlt")} />}
|
|
64
|
+
>
|
|
65
|
+
<ToolDividedRows items={t.raw("standardsBody") as readonly string[]} />
|
|
66
|
+
</ToolGuideSection>
|
|
67
|
+
|
|
68
|
+
<ToolTripleComparisonSection
|
|
69
|
+
heading={t("comparisonHeading")}
|
|
70
|
+
items={t.raw("comparisonItems") as readonly ToolTripleComparisonItem[]}
|
|
71
|
+
/>
|
|
72
|
+
|
|
73
|
+
<ToolUseCasesBandSection
|
|
74
|
+
heading={t("useCasesHeading")}
|
|
75
|
+
items={t.raw("useCaseItems") as readonly string[]}
|
|
76
|
+
/>
|
|
77
|
+
|
|
78
|
+
<ToolFaqSection
|
|
79
|
+
heading={t("faqHeading")}
|
|
80
|
+
items={t.raw("faqItems") as readonly ToolFaqItem[]}
|
|
81
|
+
/>
|
|
82
|
+
|
|
83
|
+
<ToolCta
|
|
84
|
+
hint={t("ctaHint")}
|
|
85
|
+
primary={{ href: "/tools", label: t("ctaPrimary") }}
|
|
86
|
+
secondary={{ href: "/tools", label: t("ctaSecondary") }}
|
|
87
|
+
/>
|
|
88
|
+
</ToolPageShell>
|
|
89
|
+
);
|
|
90
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Download, FileArchive, Upload } from "lucide-react";
|
|
2
|
+
|
|
3
|
+
import { createStandardLandingContainer } from "../../../features/tools/shared/create-standard-landing-container";
|
|
4
|
+
import { AppIconResizer } from "./widget";
|
|
5
|
+
|
|
6
|
+
export const AppIconResizerContainer = createStandardLandingContainer({
|
|
7
|
+
guideNamespace: "toolsPages.appIconResizer.guide",
|
|
8
|
+
Widget: AppIconResizer,
|
|
9
|
+
benefitIcons: [Upload, FileArchive, Download],
|
|
10
|
+
generationImageSrc: "/tools/app-icon-resizer-section-steps-8bit-v3.webp",
|
|
11
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ToolSpec } from "../types";
|
|
2
|
+
|
|
3
|
+
export const appIconResizerSpec: ToolSpec = {
|
|
4
|
+
slug: "app-icon-resizer",
|
|
5
|
+
toolType: "generator",
|
|
6
|
+
riskLevel: "low",
|
|
7
|
+
seo: {
|
|
8
|
+
"publishedAt": "2026-06-30",
|
|
9
|
+
"updatedAt": "2026-07-13",
|
|
10
|
+
"readingTime": "5 min",
|
|
11
|
+
"featured": false,
|
|
12
|
+
"ogImage": "/tools/app-icon-resizer-section-primary-8bit-v3.webp"
|
|
13
|
+
},
|
|
14
|
+
widget: {"id":"app-icon-resizer","mode":"custom"},
|
|
15
|
+
};
|