@stisocial/ui 0.1.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +32 -0
- package/README.md +25 -0
- package/dist/agency/FacebookPostPreview/FacebookPostPreview.css +73 -0
- package/dist/agency/FacebookPostPreview/FacebookPostPreview.d.ts +27 -0
- package/dist/agency/FacebookPostPreview/FacebookPostPreview.js +80 -0
- package/dist/agency/FacebookPostPreview/FacebookPostPreview.module.js +15 -0
- package/dist/agency/FacebookPostPreview/index.d.ts +2 -0
- package/dist/agency/InstagramPostPreview/InstagramPostPreview.css +84 -0
- package/dist/agency/InstagramPostPreview/InstagramPostPreview.d.ts +23 -0
- package/dist/agency/InstagramPostPreview/InstagramPostPreview.js +80 -0
- package/dist/agency/InstagramPostPreview/InstagramPostPreview.module.js +17 -0
- package/dist/agency/InstagramPostPreview/index.d.ts +2 -0
- package/dist/agency/InstagramReelPreview/InstagramReelPreview.css +84 -0
- package/dist/agency/InstagramReelPreview/InstagramReelPreview.d.ts +24 -0
- package/dist/agency/InstagramReelPreview/InstagramReelPreview.js +88 -0
- package/dist/agency/InstagramReelPreview/InstagramReelPreview.module.js +13 -0
- package/dist/agency/InstagramReelPreview/index.d.ts +2 -0
- package/dist/agency/InstagramStoryPreview/InstagramStoryPreview.css +105 -0
- package/dist/agency/InstagramStoryPreview/InstagramStoryPreview.d.ts +23 -0
- package/dist/agency/InstagramStoryPreview/InstagramStoryPreview.js +59 -0
- package/dist/agency/InstagramStoryPreview/InstagramStoryPreview.module.js +14 -0
- package/dist/agency/InstagramStoryPreview/index.d.ts +2 -0
- package/dist/agency/LinkedInPostPreview/LinkedInPostPreview.css +83 -0
- package/dist/agency/LinkedInPostPreview/LinkedInPostPreview.d.ts +30 -0
- package/dist/agency/LinkedInPostPreview/LinkedInPostPreview.js +99 -0
- package/dist/agency/LinkedInPostPreview/LinkedInPostPreview.module.js +16 -0
- package/dist/agency/LinkedInPostPreview/index.d.ts +2 -0
- package/dist/agency/PinterestPinPreview/PinterestPinPreview.css +96 -0
- package/dist/agency/PinterestPinPreview/PinterestPinPreview.d.ts +23 -0
- package/dist/agency/PinterestPinPreview/PinterestPinPreview.js +57 -0
- package/dist/agency/PinterestPinPreview/PinterestPinPreview.module.js +15 -0
- package/dist/agency/PinterestPinPreview/index.d.ts +2 -0
- package/dist/agency/ThreadsPostPreview/ThreadsPostPreview.css +101 -0
- package/dist/agency/ThreadsPostPreview/ThreadsPostPreview.d.ts +19 -0
- package/dist/agency/ThreadsPostPreview/ThreadsPostPreview.js +82 -0
- package/dist/agency/ThreadsPostPreview/ThreadsPostPreview.module.js +17 -0
- package/dist/agency/ThreadsPostPreview/index.d.ts +2 -0
- package/dist/agency/TikTokPreview/TikTokPreview.css +84 -0
- package/dist/agency/TikTokPreview/TikTokPreview.d.ts +25 -0
- package/dist/agency/TikTokPreview/TikTokPreview.js +95 -0
- package/dist/agency/TikTokPreview/TikTokPreview.module.js +13 -0
- package/dist/agency/TikTokPreview/index.d.ts +2 -0
- package/dist/agency/XPostPreview/XPostPreview.css +89 -0
- package/dist/agency/XPostPreview/XPostPreview.d.ts +20 -0
- package/dist/agency/XPostPreview/XPostPreview.js +91 -0
- package/dist/agency/XPostPreview/XPostPreview.module.js +16 -0
- package/dist/agency/XPostPreview/index.d.ts +2 -0
- package/dist/agency/YouTubeThumbnailPreview/YouTubeThumbnailPreview.css +55 -0
- package/dist/agency/YouTubeThumbnailPreview/YouTubeThumbnailPreview.d.ts +20 -0
- package/dist/agency/YouTubeThumbnailPreview/YouTubeThumbnailPreview.js +49 -0
- package/dist/agency/YouTubeThumbnailPreview/YouTubeThumbnailPreview.module.js +13 -0
- package/dist/agency/YouTubeThumbnailPreview/index.d.ts +2 -0
- package/dist/agency/_shared/Preview.css +226 -0
- package/dist/agency/_shared/Preview.d.ts +27 -0
- package/dist/agency/_shared/Preview.js +117 -0
- package/dist/agency/_shared/Preview.module.js +21 -0
- package/dist/agency/_shared/platforms.d.ts +24 -0
- package/dist/agency/_shared/platforms.js +109 -0
- package/dist/agency/index.d.ts +23 -0
- package/dist/agency/index.js +12 -0
- package/dist/ai/AiDisclosure/AiDisclosure.css +99 -0
- package/dist/ai/AiDisclosure/AiDisclosure.d.ts +28 -0
- package/dist/ai/AiDisclosure/AiDisclosure.js +52 -0
- package/dist/ai/AiDisclosure/AiDisclosure.module.js +10 -0
- package/dist/ai/AiDisclosure/index.d.ts +2 -0
- package/dist/ai/AttachmentChip/AttachmentChip.css +144 -0
- package/dist/ai/AttachmentChip/AttachmentChip.d.ts +40 -0
- package/dist/ai/AttachmentChip/AttachmentChip.js +140 -0
- package/dist/ai/AttachmentChip/AttachmentChip.module.js +13 -0
- package/dist/ai/AttachmentChip/index.d.ts +2 -0
- package/dist/ai/ChatThread/ChatThread.css +66 -0
- package/dist/ai/ChatThread/ChatThread.d.ts +20 -0
- package/dist/ai/ChatThread/ChatThread.js +87 -0
- package/dist/ai/ChatThread/ChatThread.module.js +10 -0
- package/dist/ai/ChatThread/ChatThreadMessage.css +80 -0
- package/dist/ai/ChatThread/ChatThreadMessage.d.ts +23 -0
- package/dist/ai/ChatThread/ChatThreadMessage.js +41 -0
- package/dist/ai/ChatThread/ChatThreadMessage.module.js +10 -0
- package/dist/ai/ChatThread/index.d.ts +3 -0
- package/dist/ai/ConversationList/ConversationList.css +175 -0
- package/dist/ai/ConversationList/ConversationList.d.ts +33 -0
- package/dist/ai/ConversationList/ConversationList.js +133 -0
- package/dist/ai/ConversationList/ConversationList.module.js +18 -0
- package/dist/ai/ConversationList/groups.d.ts +23 -0
- package/dist/ai/ConversationList/groups.js +47 -0
- package/dist/ai/MessageActions/MessageActions.css +9 -0
- package/dist/ai/MessageActions/MessageActions.d.ts +33 -0
- package/dist/ai/MessageActions/MessageActions.js +89 -0
- package/dist/ai/MessageActions/MessageActions.module.js +4 -0
- package/dist/ai/MessageActions/index.d.ts +2 -0
- package/dist/ai/ModelSelect/ModelSelect.css +7 -0
- package/dist/ai/ModelSelect/ModelSelect.d.ts +38 -0
- package/dist/ai/ModelSelect/ModelSelect.js +41 -0
- package/dist/ai/ModelSelect/ModelSelect.module.js +4 -0
- package/dist/ai/ModelSelect/index.d.ts +2 -0
- package/dist/ai/PromptInput/PromptInput.css +176 -0
- package/dist/ai/PromptInput/PromptInput.d.ts +54 -0
- package/dist/ai/PromptInput/PromptInput.js +199 -0
- package/dist/ai/PromptInput/PromptInput.module.js +15 -0
- package/dist/ai/PromptInput/index.d.ts +2 -0
- package/dist/ai/SourceList/SourceList.css +226 -0
- package/dist/ai/SourceList/SourceList.d.ts +36 -0
- package/dist/ai/SourceList/SourceList.js +102 -0
- package/dist/ai/SourceList/SourceList.module.js +17 -0
- package/dist/ai/StreamingText/StreamingText.css +69 -0
- package/dist/ai/StreamingText/StreamingText.d.ts +33 -0
- package/dist/ai/StreamingText/StreamingText.js +98 -0
- package/dist/ai/StreamingText/StreamingText.module.js +9 -0
- package/dist/ai/SuggestedPrompts/SuggestedPrompts.css +198 -0
- package/dist/ai/SuggestedPrompts/SuggestedPrompts.d.ts +35 -0
- package/dist/ai/SuggestedPrompts/SuggestedPrompts.js +54 -0
- package/dist/ai/SuggestedPrompts/SuggestedPrompts.module.js +14 -0
- package/dist/ai/SuggestedPrompts/index.d.ts +2 -0
- package/dist/ai/ThinkingIndicator/ThinkingIndicator.css +83 -0
- package/dist/ai/ThinkingIndicator/ThinkingIndicator.d.ts +16 -0
- package/dist/ai/ThinkingIndicator/ThinkingIndicator.js +47 -0
- package/dist/ai/ThinkingIndicator/ThinkingIndicator.module.js +10 -0
- package/dist/ai/ToolCallCard/ToolCallCard.css +249 -0
- package/dist/ai/ToolCallCard/ToolCallCard.d.ts +39 -0
- package/dist/ai/ToolCallCard/ToolCallCard.js +157 -0
- package/dist/ai/ToolCallCard/ToolCallCard.module.js +22 -0
- package/dist/ai/ToolCallCard/index.d.ts +2 -0
- package/dist/ai/_internal/glyphs.js +45 -0
- package/dist/ai/index.d.ts +23 -0
- package/dist/ai/index.js +15 -0
- package/dist/charts/AreaChart/AreaChart.css +9 -0
- package/dist/charts/AreaChart/AreaChart.d.ts +13 -0
- package/dist/charts/AreaChart/AreaChart.js +19 -0
- package/dist/charts/AreaChart/AreaChart.module.js +4 -0
- package/dist/charts/AreaChart/index.d.ts +2 -0
- package/dist/charts/BarChart/BarChart.css +9 -0
- package/dist/charts/BarChart/BarChart.d.ts +17 -0
- package/dist/charts/BarChart/BarChart.js +21 -0
- package/dist/charts/BarChart/BarChart.module.js +4 -0
- package/dist/charts/BarChart/index.d.ts +2 -0
- package/dist/charts/ChartLegend/ChartLegend.css +110 -0
- package/dist/charts/ChartLegend/ChartLegend.d.ts +36 -0
- package/dist/charts/ChartLegend/ChartLegend.js +55 -0
- package/dist/charts/ChartLegend/ChartLegend.module.js +11 -0
- package/dist/charts/ChartLegend/index.d.ts +2 -0
- package/dist/charts/ChartTable/ChartTable.css +109 -0
- package/dist/charts/ChartTable/ChartTable.d.ts +43 -0
- package/dist/charts/ChartTable/ChartTable.js +60 -0
- package/dist/charts/ChartTable/ChartTable.module.js +12 -0
- package/dist/charts/ChartTable/index.d.ts +2 -0
- package/dist/charts/ChartTooltip/ChartTooltip.css +77 -0
- package/dist/charts/ChartTooltip/ChartTooltip.d.ts +29 -0
- package/dist/charts/ChartTooltip/ChartTooltip.js +48 -0
- package/dist/charts/ChartTooltip/ChartTooltip.module.js +12 -0
- package/dist/charts/ChartTooltip/index.d.ts +2 -0
- package/dist/charts/ComboChart/ComboChart.css +9 -0
- package/dist/charts/ComboChart/ComboChart.d.ts +21 -0
- package/dist/charts/ComboChart/ComboChart.js +19 -0
- package/dist/charts/ComboChart/ComboChart.module.js +4 -0
- package/dist/charts/ComboChart/index.d.ts +3 -0
- package/dist/charts/LineChart/LineChart.css +9 -0
- package/dist/charts/LineChart/LineChart.d.ts +13 -0
- package/dist/charts/LineChart/LineChart.js +19 -0
- package/dist/charts/LineChart/LineChart.module.js +4 -0
- package/dist/charts/LineChart/index.d.ts +2 -0
- package/dist/charts/StackedBarChart/StackedBarChart.css +9 -0
- package/dist/charts/StackedBarChart/StackedBarChart.d.ts +17 -0
- package/dist/charts/StackedBarChart/StackedBarChart.js +21 -0
- package/dist/charts/StackedBarChart/StackedBarChart.module.js +4 -0
- package/dist/charts/StackedBarChart/index.d.ts +2 -0
- package/dist/charts/_internal/Bars.d.ts +31 -0
- package/dist/charts/_internal/Bars.js +295 -0
- package/dist/charts/_internal/LineArea.d.ts +32 -0
- package/dist/charts/_internal/LineArea.js +150 -0
- package/dist/charts/_internal/category.d.ts +19 -0
- package/dist/charts/_internal/category.js +139 -0
- package/dist/charts/_internal/format.d.ts +14 -0
- package/dist/charts/_internal/format.js +41 -0
- package/dist/charts/_internal/frame/ChartFrame.css +113 -0
- package/dist/charts/_internal/frame/ChartFrame.d.ts +3 -0
- package/dist/charts/_internal/frame/ChartFrame.js +217 -0
- package/dist/charts/_internal/frame/ChartFrame.module.js +17 -0
- package/dist/charts/_internal/marks/marks.css +195 -0
- package/dist/charts/_internal/marks/marks.js +192 -0
- package/dist/charts/_internal/marks/marks.module.js +12 -0
- package/dist/charts/_internal/math.js +107 -0
- package/dist/charts/_internal/shapes.d.ts +1 -0
- package/dist/charts/_internal/shapes.js +127 -0
- package/dist/charts/index.d.ts +20 -0
- package/dist/charts/index.js +9 -0
- package/dist/commerce/AddToCartButton/AddToCartButton.css +54 -0
- package/dist/commerce/AddToCartButton/AddToCartButton.d.ts +42 -0
- package/dist/commerce/AddToCartButton/AddToCartButton.js +94 -0
- package/dist/commerce/AddToCartButton/AddToCartButton.module.js +10 -0
- package/dist/commerce/AddToCartButton/index.d.ts +2 -0
- package/dist/commerce/PriceDisplay/PriceDisplay.css +77 -0
- package/dist/commerce/PriceDisplay/PriceDisplay.d.ts +35 -0
- package/dist/commerce/PriceDisplay/PriceDisplay.js +60 -0
- package/dist/commerce/PriceDisplay/PriceDisplay.module.js +10 -0
- package/dist/commerce/QuantityStepper/QuantityStepper.css +108 -0
- package/dist/commerce/QuantityStepper/QuantityStepper.d.ts +32 -0
- package/dist/commerce/QuantityStepper/QuantityStepper.js +86 -0
- package/dist/commerce/QuantityStepper/QuantityStepper.module.js +9 -0
- package/dist/commerce/QuantityStepper/index.d.ts +2 -0
- package/dist/commerce/StockBadge/StockBadge.d.ts +31 -0
- package/dist/commerce/StockBadge/StockBadge.js +47 -0
- package/dist/commerce/StockBadge/index.d.ts +2 -0
- package/dist/commerce/VariantSelector/VariantSelector.css +202 -0
- package/dist/commerce/VariantSelector/VariantSelector.d.ts +44 -0
- package/dist/commerce/VariantSelector/VariantSelector.js +77 -0
- package/dist/commerce/VariantSelector/VariantSelector.module.js +13 -0
- package/dist/commerce/VariantSelector/index.d.ts +2 -0
- package/dist/commerce/index.d.ts +10 -0
- package/dist/commerce/index.js +6 -0
- package/dist/components/Accordion/Accordion.css +176 -0
- package/dist/components/Accordion/Accordion.d.ts +40 -0
- package/dist/components/Accordion/Accordion.js +90 -0
- package/dist/components/Accordion/Accordion.module.js +17 -0
- package/dist/components/Accordion/index.d.ts +2 -0
- package/dist/components/ColorPicker/ColorPicker.js +1 -1
- package/dist/components/Combobox/Combobox.js +1 -1
- package/dist/components/Disclosure/Disclosure.css +162 -0
- package/dist/components/Disclosure/Disclosure.d.ts +32 -0
- package/dist/components/Disclosure/Disclosure.js +60 -0
- package/dist/components/Disclosure/Disclosure.module.js +15 -0
- package/dist/components/Disclosure/index.d.ts +2 -0
- package/dist/components/DocumentLayout/DocumentLayout.css +202 -0
- package/dist/components/DocumentLayout/DocumentLayout.d.ts +33 -0
- package/dist/components/DocumentLayout/DocumentLayout.js +69 -0
- package/dist/components/DocumentLayout/DocumentLayout.module.js +20 -0
- package/dist/components/DocumentLayout/index.d.ts +2 -0
- package/dist/components/DocumentTable/DocumentTable.css +149 -0
- package/dist/components/DocumentTable/DocumentTable.d.ts +40 -0
- package/dist/components/DocumentTable/DocumentTable.js +67 -0
- package/dist/components/DocumentTable/DocumentTable.module.js +12 -0
- package/dist/components/DocumentTable/index.d.ts +2 -0
- package/dist/components/ErrorPage/ErrorPage.css +181 -0
- package/dist/components/ErrorPage/ErrorPage.d.ts +44 -0
- package/dist/components/ErrorPage/ErrorPage.js +145 -0
- package/dist/components/ErrorPage/ErrorPage.module.js +17 -0
- package/dist/components/ErrorPage/index.d.ts +2 -0
- package/dist/components/FeedbackWidget/FeedbackWidget.css +59 -0
- package/dist/components/FeedbackWidget/FeedbackWidget.d.ts +47 -0
- package/dist/components/FeedbackWidget/FeedbackWidget.js +198 -0
- package/dist/components/FeedbackWidget/FeedbackWidget.module.js +11 -0
- package/dist/components/FeedbackWidget/index.d.ts +2 -0
- package/dist/components/Figure/Figure.css +64 -0
- package/dist/components/Figure/Figure.d.ts +24 -0
- package/dist/components/Figure/Figure.js +38 -0
- package/dist/components/Figure/Figure.module.js +10 -0
- package/dist/components/Figure/index.d.ts +2 -0
- package/dist/components/FileList/FileList.css +160 -0
- package/dist/components/FileList/FileList.d.ts +45 -0
- package/dist/components/FileList/FileList.js +146 -0
- package/dist/components/FileList/FileList.module.js +15 -0
- package/dist/components/FileList/index.d.ts +2 -0
- package/dist/components/FilterPanel/FilterPanel.js +1 -1
- package/dist/components/IconPicker/IconPicker.js +1 -1
- package/dist/components/LinkRows/LinkRows.css +135 -0
- package/dist/components/LinkRows/LinkRows.d.ts +32 -0
- package/dist/components/LinkRows/LinkRows.js +62 -0
- package/dist/components/LinkRows/LinkRows.module.js +15 -0
- package/dist/components/LinkRows/index.d.ts +2 -0
- package/dist/components/NotificationCenter/NotificationCenter.js +1 -1
- package/dist/components/OnboardingChecklist/OnboardingChecklist.js +1 -1
- package/dist/components/PageNumber/PageNumber.css +21 -0
- package/dist/components/PageNumber/PageNumber.d.ts +23 -0
- package/dist/components/PageNumber/PageNumber.js +33 -0
- package/dist/components/PageNumber/PageNumber.module.js +4 -0
- package/dist/components/PaymentInfo/PaymentInfo.css +116 -0
- package/dist/components/PaymentInfo/PaymentInfo.d.ts +41 -0
- package/dist/components/PaymentInfo/PaymentInfo.js +115 -0
- package/dist/components/PaymentInfo/PaymentInfo.module.js +15 -0
- package/dist/components/PaymentInfo/index.d.ts +2 -0
- package/dist/components/PersonItem/PersonItem.css +112 -0
- package/dist/components/PersonItem/PersonItem.d.ts +31 -0
- package/dist/components/PersonItem/PersonItem.js +54 -0
- package/dist/components/PersonItem/PersonItem.module.js +11 -0
- package/dist/components/PersonItem/index.d.ts +2 -0
- package/dist/components/PhoneField/PhoneField.js +1 -1
- package/dist/components/ReadMore/ReadMore.js +1 -1
- package/dist/components/SideNav/SideNav.js +1 -1
- package/dist/components/SignaturePad/SignaturePad.js +1 -1
- package/dist/components/SplitButton/SplitButton.js +1 -1
- package/dist/components/Table/Table.css +150 -0
- package/dist/components/Table/Table.d.ts +54 -0
- package/dist/components/Table/Table.js +75 -0
- package/dist/components/Table/Table.module.js +14 -0
- package/dist/components/Table/index.d.ts +2 -0
- package/dist/components/ThemeSwitch/ThemeSwitch.js +1 -1
- package/dist/components/TimeSlotPicker/TimeSlotPicker.d.ts +1 -11
- package/dist/components/TimeSlotPicker/TimeSlotPicker.js +2 -24
- package/dist/components/TimeSlotPicker/index.d.ts +3 -2
- package/dist/components/TimeSlotPicker/timeSlots.d.ts +12 -0
- package/dist/components/TimeSlotPicker/timeSlots.js +25 -0
- package/dist/components/TotalsBlock/TotalsBlock.css +86 -0
- package/dist/components/TotalsBlock/TotalsBlock.d.ts +32 -0
- package/dist/components/TotalsBlock/TotalsBlock.js +88 -0
- package/dist/components/TotalsBlock/TotalsBlock.module.js +10 -0
- package/dist/components/TotalsBlock/index.d.ts +3 -0
- package/dist/components/TotalsBlock/totals.d.ts +28 -0
- package/dist/components/TotalsBlock/totals.js +38 -0
- package/dist/components/TrashView/TrashView.css +166 -0
- package/dist/components/TrashView/TrashView.d.ts +49 -0
- package/dist/components/TrashView/TrashView.js +244 -0
- package/dist/components/TrashView/TrashView.module.js +22 -0
- package/dist/components/TrashView/index.d.ts +2 -0
- package/dist/components/TreeSelect/TreeSelect.js +1 -1
- package/dist/components/UploadQueue/UploadQueue.js +1 -1
- package/dist/components/Watermark/Watermark.css +51 -0
- package/dist/components/Watermark/Watermark.d.ts +23 -0
- package/dist/components/Watermark/Watermark.js +54 -0
- package/dist/components/Watermark/Watermark.module.js +8 -0
- package/dist/components/WhatsNew/WhatsNew.css +196 -0
- package/dist/components/WhatsNew/WhatsNew.d.ts +57 -0
- package/dist/components/WhatsNew/WhatsNew.js +191 -0
- package/dist/components/WhatsNew/WhatsNew.module.js +27 -0
- package/dist/components/WhatsNew/index.d.ts +2 -0
- package/dist/components/_document/text.js +14 -0
- package/dist/components/_document/types.d.ts +36 -0
- package/dist/components/_document/types.js +8 -0
- package/dist/components/_internal/listbox/SelectShell.js +1 -1
- package/dist/document/index.d.ts +13 -0
- package/dist/document/index.js +9 -0
- package/dist/editor/CodeEditor/CodeEditor.css +312 -0
- package/dist/editor/CodeEditor/CodeEditor.d.ts +66 -0
- package/dist/editor/CodeEditor/CodeEditor.js +256 -0
- package/dist/editor/CodeEditor/CodeEditor.module.js +32 -0
- package/dist/editor/CodeEditor/codeEdits.d.ts +1 -0
- package/dist/editor/CodeEditor/codeEdits.js +284 -0
- package/dist/editor/CodeEditor/highlight.js +195 -0
- package/dist/editor/CodeEditor/index.d.ts +3 -0
- package/dist/editor/JsonEditor/JsonEditor.css +10 -0
- package/dist/editor/JsonEditor/JsonEditor.d.ts +43 -0
- package/dist/editor/JsonEditor/JsonEditor.js +133 -0
- package/dist/editor/JsonEditor/JsonEditor.module.js +4 -0
- package/dist/editor/JsonEditor/index.d.ts +3 -0
- package/dist/editor/JsonEditor/json.d.ts +44 -0
- package/dist/editor/JsonEditor/json.js +246 -0
- package/dist/editor/MarkdownEditor/MarkdownEditor.css +173 -0
- package/dist/editor/MarkdownEditor/MarkdownEditor.d.ts +47 -0
- package/dist/editor/MarkdownEditor/MarkdownEditor.js +371 -0
- package/dist/editor/MarkdownEditor/MarkdownEditor.module.js +18 -0
- package/dist/editor/MarkdownEditor/commands.js +198 -0
- package/dist/editor/MarkdownEditor/index.d.ts +2 -0
- package/dist/editor/_shared/FormatIcons.js +138 -0
- package/dist/editor/_shared/textEdit.js +76 -0
- package/dist/editor/index.d.ts +9 -0
- package/dist/editor/index.js +5 -0
- package/dist/email/EmailButton/EmailButton.d.ts +22 -0
- package/dist/email/EmailButton/EmailButton.js +102 -0
- package/dist/email/EmailButton/index.d.ts +2 -0
- package/dist/email/EmailCallout/EmailCallout.d.ts +14 -0
- package/dist/email/EmailCallout/EmailCallout.js +42 -0
- package/dist/email/EmailCallout/index.d.ts +2 -0
- package/dist/email/EmailCode/EmailCode.d.ts +15 -0
- package/dist/email/EmailCode/EmailCode.js +58 -0
- package/dist/email/EmailCode/index.d.ts +2 -0
- package/dist/email/EmailColumns/EmailColumns.d.ts +18 -0
- package/dist/email/EmailColumns/EmailColumns.js +49 -0
- package/dist/email/EmailColumns/index.d.ts +2 -0
- package/dist/email/EmailDivider/EmailDivider.d.ts +7 -0
- package/dist/email/EmailDivider/EmailDivider.js +24 -0
- package/dist/email/EmailDivider/index.d.ts +2 -0
- package/dist/email/EmailFooter/EmailFooter.d.ts +30 -0
- package/dist/email/EmailFooter/EmailFooter.js +64 -0
- package/dist/email/EmailFooter/index.d.ts +2 -0
- package/dist/email/EmailHeader/EmailHeader.d.ts +23 -0
- package/dist/email/EmailHeader/EmailHeader.js +75 -0
- package/dist/email/EmailHeader/index.d.ts +2 -0
- package/dist/email/EmailHeading/EmailHeading.d.ts +11 -0
- package/dist/email/EmailHeading/EmailHeading.js +43 -0
- package/dist/email/EmailHeading/index.d.ts +2 -0
- package/dist/email/EmailImage/EmailImage.d.ts +25 -0
- package/dist/email/EmailImage/EmailImage.js +53 -0
- package/dist/email/EmailImage/index.d.ts +2 -0
- package/dist/email/EmailLayout/EmailLayout.d.ts +30 -0
- package/dist/email/EmailLayout/EmailLayout.js +79 -0
- package/dist/email/EmailLayout/emailDocument.d.ts +16 -0
- package/dist/email/EmailLayout/emailDocument.js +36 -0
- package/dist/email/EmailLayout/index.d.ts +3 -0
- package/dist/email/EmailList/EmailList.d.ts +10 -0
- package/dist/email/EmailList/EmailList.js +28 -0
- package/dist/email/EmailList/index.d.ts +2 -0
- package/dist/email/EmailPreheader/EmailPreheader.d.ts +14 -0
- package/dist/email/EmailPreheader/EmailPreheader.js +30 -0
- package/dist/email/EmailPreheader/index.d.ts +2 -0
- package/dist/email/EmailProductRow/EmailProductRow.d.ts +23 -0
- package/dist/email/EmailProductRow/EmailProductRow.js +112 -0
- package/dist/email/EmailProductRow/index.d.ts +2 -0
- package/dist/email/EmailSocialLinks/EmailSocialLinks.d.ts +19 -0
- package/dist/email/EmailSocialLinks/EmailSocialLinks.js +53 -0
- package/dist/email/EmailSocialLinks/index.d.ts +2 -0
- package/dist/email/EmailStats/EmailStats.d.ts +23 -0
- package/dist/email/EmailStats/EmailStats.js +86 -0
- package/dist/email/EmailStats/index.d.ts +2 -0
- package/dist/email/EmailTable/EmailTable.d.ts +24 -0
- package/dist/email/EmailTable/EmailTable.js +90 -0
- package/dist/email/EmailTable/index.d.ts +2 -0
- package/dist/email/EmailText/EmailText.d.ts +13 -0
- package/dist/email/EmailText/EmailText.js +35 -0
- package/dist/email/EmailText/index.d.ts +2 -0
- package/dist/email/_shared/theme.d.ts +8 -0
- package/dist/email/_shared/theme.js +90 -0
- package/dist/email/index.d.ts +36 -0
- package/dist/email/index.js +19 -0
- package/dist/icons/generated/index.js +8 -8
- package/dist/icons/index.js +8 -8
- package/dist/id/AccountMenu/AccountMenu.css +194 -0
- package/dist/id/AccountMenu/AccountMenu.d.ts +73 -0
- package/dist/id/AccountMenu/AccountMenu.js +171 -0
- package/dist/id/AccountMenu/AccountMenu.module.js +21 -0
- package/dist/id/AccountMenu/index.d.ts +2 -0
- package/dist/id/AppSwitcher/AppSwitcher.css +231 -0
- package/dist/id/AppSwitcher/AppSwitcher.d.ts +56 -0
- package/dist/id/AppSwitcher/AppSwitcher.js +141 -0
- package/dist/id/AppSwitcher/AppSwitcher.module.js +17 -0
- package/dist/id/AppSwitcher/index.d.ts +2 -0
- package/dist/id/OrgSwitcher/OrgSwitcher.css +222 -0
- package/dist/id/OrgSwitcher/OrgSwitcher.d.ts +62 -0
- package/dist/id/OrgSwitcher/OrgSwitcher.js +189 -0
- package/dist/id/OrgSwitcher/OrgSwitcher.module.js +16 -0
- package/dist/id/OrgSwitcher/index.d.ts +2 -0
- package/dist/id/PermissionGate/PermissionGate.css +68 -0
- package/dist/id/PermissionGate/PermissionGate.d.ts +32 -0
- package/dist/id/PermissionGate/PermissionGate.js +58 -0
- package/dist/id/PermissionGate/PermissionGate.module.js +11 -0
- package/dist/id/PermissionGate/index.d.ts +2 -0
- package/dist/id/SignInButton/SignInButton.css +179 -0
- package/dist/id/SignInButton/SignInButton.d.ts +29 -0
- package/dist/id/SignInButton/SignInButton.js +53 -0
- package/dist/id/SignInButton/SignInButton.module.js +10 -0
- package/dist/id/_internal/ActionItem/ActionItem.css +143 -0
- package/dist/id/_internal/ActionItem/ActionItem.js +68 -0
- package/dist/id/_internal/ActionItem/ActionItem.module.js +11 -0
- package/dist/id/_internal/StiMark/StiMark.css +28 -0
- package/dist/id/_internal/StiMark/StiMark.js +37 -0
- package/dist/id/_internal/StiMark/StiMark.module.js +8 -0
- package/dist/id/index.d.ts +10 -0
- package/dist/id/index.js +6 -0
- package/dist/index.d.ts +28 -5
- package/dist/index.js +16 -4
- package/dist/maps/DirectionsLink/DirectionsLink.css +10 -0
- package/dist/maps/DirectionsLink/DirectionsLink.d.ts +35 -0
- package/dist/maps/DirectionsLink/DirectionsLink.js +84 -0
- package/dist/maps/DirectionsLink/DirectionsLink.module.js +4 -0
- package/dist/maps/DirectionsLink/index.d.ts +2 -0
- package/dist/maps/LocationPicker/LocationPicker.css +60 -0
- package/dist/maps/LocationPicker/LocationPicker.d.ts +37 -0
- package/dist/maps/LocationPicker/LocationPicker.js +278 -0
- package/dist/maps/LocationPicker/LocationPicker.module.js +12 -0
- package/dist/maps/LocationPicker/index.d.ts +2 -0
- package/dist/maps/MapMarker/MapMarker.css +318 -0
- package/dist/maps/MapMarker/MapMarker.d.ts +35 -0
- package/dist/maps/MapMarker/MapMarker.js +142 -0
- package/dist/maps/MapMarker/MapMarker.module.js +20 -0
- package/dist/maps/MapMarker/index.d.ts +2 -0
- package/dist/maps/MapView/MapView.css +268 -0
- package/dist/maps/MapView/MapView.d.ts +71 -0
- package/dist/maps/MapView/MapView.js +495 -0
- package/dist/maps/MapView/MapView.module.js +23 -0
- package/dist/maps/MapView/index.d.ts +2 -0
- package/dist/maps/StoreLocator/StoreLocator.css +201 -0
- package/dist/maps/StoreLocator/StoreLocator.d.ts +43 -0
- package/dist/maps/StoreLocator/StoreLocator.js +225 -0
- package/dist/maps/StoreLocator/StoreLocator.module.js +21 -0
- package/dist/maps/StoreLocator/index.d.ts +2 -0
- package/dist/maps/TurkeyMap/TurkeyMap.css +229 -0
- package/dist/maps/TurkeyMap/TurkeyMap.d.ts +45 -0
- package/dist/maps/TurkeyMap/TurkeyMap.js +280 -0
- package/dist/maps/TurkeyMap/TurkeyMap.module.js +17 -0
- package/dist/maps/TurkeyMap/tileGrid.js +85 -0
- package/dist/maps/_internal/geo.d.ts +8 -0
- package/dist/maps/_internal/geo.js +116 -0
- package/dist/maps/_internal/mapContext.js +8 -0
- package/dist/maps/_internal/useControllable.js +24 -0
- package/dist/maps/index.d.ts +12 -0
- package/dist/maps/index.js +7 -0
- package/dist/media/AudioPlayer/AudioPlayer.css +106 -0
- package/dist/media/AudioPlayer/AudioPlayer.d.ts +38 -0
- package/dist/media/AudioPlayer/AudioPlayer.js +134 -0
- package/dist/media/AudioPlayer/AudioPlayer.module.js +16 -0
- package/dist/media/AudioPlayer/index.d.ts +2 -0
- package/dist/media/AudioWaveform/AudioWaveform.css +43 -0
- package/dist/media/AudioWaveform/AudioWaveform.d.ts +25 -0
- package/dist/media/AudioWaveform/AudioWaveform.js +101 -0
- package/dist/media/AudioWaveform/AudioWaveform.module.js +9 -0
- package/dist/media/AudioWaveform/peaks.d.ts +14 -0
- package/dist/media/AudioWaveform/peaks.js +54 -0
- package/dist/media/MediaCard/MediaCard.css +229 -0
- package/dist/media/MediaCard/MediaCard.d.ts +38 -0
- package/dist/media/MediaCard/MediaCard.js +120 -0
- package/dist/media/MediaCard/MediaCard.module.js +18 -0
- package/dist/media/MediaCard/index.d.ts +2 -0
- package/dist/media/VideoPlayer/VideoPlayer.css +125 -0
- package/dist/media/VideoPlayer/VideoPlayer.d.ts +54 -0
- package/dist/media/VideoPlayer/VideoPlayer.js +193 -0
- package/dist/media/VideoPlayer/VideoPlayer.module.js +12 -0
- package/dist/media/VideoThumbnail/VideoThumbnail.css +139 -0
- package/dist/media/VideoThumbnail/VideoThumbnail.d.ts +34 -0
- package/dist/media/VideoThumbnail/VideoThumbnail.js +63 -0
- package/dist/media/VideoThumbnail/VideoThumbnail.module.js +10 -0
- package/dist/media/VideoThumbnail/VideoThumbnailLink.js +18 -0
- package/dist/media/_internal/clock.js +17 -0
- package/dist/media/_internal/consent/ConsentNotice.css +55 -0
- package/dist/media/_internal/consent/ConsentNotice.js +40 -0
- package/dist/media/_internal/consent/ConsentNotice.module.js +10 -0
- package/dist/media/_internal/icons.js +77 -0
- package/dist/media/_internal/range/Range.css +187 -0
- package/dist/media/_internal/range/Range.js +130 -0
- package/dist/media/_internal/range/Range.module.js +10 -0
- package/dist/media/_internal/transport/MediaTransport.css +90 -0
- package/dist/media/_internal/transport/MediaTransport.js +172 -0
- package/dist/media/_internal/transport/MediaTransport.module.js +14 -0
- package/dist/media/_internal/url.js +31 -0
- package/dist/media/_internal/useConsent.js +28 -0
- package/dist/media/_internal/useMedia.js +146 -0
- package/dist/media/index.d.ts +9 -0
- package/dist/media/index.js +7 -0
- package/dist/messages/messages.d.ts +488 -0
- package/dist/messages/messages.js +978 -2
- package/dist/site/AnnouncementBar/AnnouncementBar.css +132 -0
- package/dist/site/AnnouncementBar/AnnouncementBar.d.ts +28 -0
- package/dist/site/AnnouncementBar/AnnouncementBar.js +64 -0
- package/dist/site/AnnouncementBar/AnnouncementBar.module.js +11 -0
- package/dist/site/AnnouncementBar/index.d.ts +2 -0
- package/dist/site/MegaMenu/MegaMenu.css +324 -0
- package/dist/site/MegaMenu/MegaMenu.d.ts +51 -0
- package/dist/site/MegaMenu/MegaMenu.js +170 -0
- package/dist/site/MegaMenu/MegaMenu.module.js +28 -0
- package/dist/site/MegaMenu/index.d.ts +2 -0
- package/dist/site/SiteFooter/SiteFooter.css +129 -0
- package/dist/site/SiteFooter/SiteFooter.d.ts +38 -0
- package/dist/site/SiteFooter/SiteFooter.js +79 -0
- package/dist/site/SiteFooter/SiteFooter.module.js +20 -0
- package/dist/site/SiteFooter/index.d.ts +2 -0
- package/dist/site/SiteHeader/SiteHeader.css +213 -0
- package/dist/site/SiteHeader/SiteHeader.d.ts +40 -0
- package/dist/site/SiteHeader/SiteHeader.js +115 -0
- package/dist/site/SiteHeader/SiteHeader.module.js +18 -0
- package/dist/site/SiteHeader/index.d.ts +2 -0
- package/dist/site/StickyCta/StickyCta.css +112 -0
- package/dist/site/StickyCta/StickyCta.d.ts +27 -0
- package/dist/site/StickyCta/StickyCta.js +69 -0
- package/dist/site/StickyCta/StickyCta.module.js +10 -0
- package/dist/site/StickyCta/index.d.ts +2 -0
- package/dist/site/index.d.ts +11 -0
- package/dist/site/index.js +6 -0
- package/dist/styles.css +24991 -14440
- package/dist/text/text.d.ts +5 -1
- package/dist/text/text.js +8 -2
- package/package.json +45 -1
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { RefreshIcon } from "../../icons/generated/RefreshIcon.js";
|
|
2
|
+
import { HeartIcon } from "../../icons/generated/HeartIcon.js";
|
|
3
|
+
import { MessageIcon } from "../../icons/generated/MessageIcon.js";
|
|
4
|
+
import { BarChartIcon } from "../../icons/generated/BarChartIcon.js";
|
|
5
|
+
import { ShareIcon } from "../../icons/generated/ShareIcon.js";
|
|
6
|
+
import { PLATFORM_LIMITS, graphemes } from "../_shared/platforms.js";
|
|
7
|
+
import { PreviewAvatar, PreviewMedia, PreviewName, PreviewShell, PreviewText } from "../_shared/Preview.js";
|
|
8
|
+
import XPostPreview_module_default from "./XPostPreview.module.js";
|
|
9
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
// src/agency/XPostPreview/XPostPreview.tsx
|
|
11
|
+
/**
|
|
12
|
+
* X gönderisi önizlemesi: solda profil görseli, sağda ad, kullanıcı adı, metin (280 karakter),
|
|
13
|
+
* görsel ve sayaç şeridi. 280 karakteri aşan metin kesilmez; aşan kısım işaretlenir, çünkü
|
|
14
|
+
* önizleme sınırı aşan gönderinin yayımlanamayacağını göstermelidir. Sunucu bileşenidir.
|
|
15
|
+
*/
|
|
16
|
+
function XPostPreview({ label, account, text, media, timeLabel, replies, reposts, likes, views, className, id }) {
|
|
17
|
+
const max = PLATFORM_LIMITS.x.max;
|
|
18
|
+
const chars = graphemes(text);
|
|
19
|
+
const over = chars.length > max;
|
|
20
|
+
const head = over ? chars.slice(0, max).join("") : text;
|
|
21
|
+
const tail = over ? chars.slice(max).join("") : "";
|
|
22
|
+
const counters = [
|
|
23
|
+
{
|
|
24
|
+
key: "replies",
|
|
25
|
+
icon: /* @__PURE__ */ jsx(MessageIcon, {}),
|
|
26
|
+
value: replies
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
key: "reposts",
|
|
30
|
+
icon: /* @__PURE__ */ jsx(RefreshIcon, {}),
|
|
31
|
+
value: reposts
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
key: "likes",
|
|
35
|
+
icon: /* @__PURE__ */ jsx(HeartIcon, {}),
|
|
36
|
+
value: likes
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
key: "views",
|
|
40
|
+
icon: /* @__PURE__ */ jsx(BarChartIcon, {}),
|
|
41
|
+
value: views
|
|
42
|
+
}
|
|
43
|
+
];
|
|
44
|
+
return /* @__PURE__ */ jsx(PreviewShell, {
|
|
45
|
+
label,
|
|
46
|
+
id,
|
|
47
|
+
platform: "x",
|
|
48
|
+
className: [XPostPreview_module_default.root, className].filter(Boolean).join(" "),
|
|
49
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
50
|
+
className: XPostPreview_module_default.layout,
|
|
51
|
+
children: [/* @__PURE__ */ jsx(PreviewAvatar, { account }), /* @__PURE__ */ jsxs("div", {
|
|
52
|
+
className: XPostPreview_module_default.main,
|
|
53
|
+
children: [
|
|
54
|
+
/* @__PURE__ */ jsxs("div", {
|
|
55
|
+
className: XPostPreview_module_default.head,
|
|
56
|
+
children: [/* @__PURE__ */ jsx(PreviewName, {
|
|
57
|
+
account,
|
|
58
|
+
showHandle: true
|
|
59
|
+
}), timeLabel ? /* @__PURE__ */ jsxs("span", {
|
|
60
|
+
className: XPostPreview_module_default.time,
|
|
61
|
+
children: ["· ", timeLabel]
|
|
62
|
+
}) : null]
|
|
63
|
+
}),
|
|
64
|
+
/* @__PURE__ */ jsx(PreviewText, { text: head }),
|
|
65
|
+
tail ? /* @__PURE__ */ jsx("p", {
|
|
66
|
+
className: XPostPreview_module_default.over,
|
|
67
|
+
"data-over": "",
|
|
68
|
+
children: tail
|
|
69
|
+
}) : null,
|
|
70
|
+
media ? /* @__PURE__ */ jsx(PreviewMedia, {
|
|
71
|
+
media,
|
|
72
|
+
ratio: "16:9",
|
|
73
|
+
className: XPostPreview_module_default.media
|
|
74
|
+
}) : null,
|
|
75
|
+
/* @__PURE__ */ jsxs("div", {
|
|
76
|
+
className: XPostPreview_module_default.counters,
|
|
77
|
+
"aria-hidden": "true",
|
|
78
|
+
children: [counters.map((c) => /* @__PURE__ */ jsxs("span", {
|
|
79
|
+
className: XPostPreview_module_default.counter,
|
|
80
|
+
children: [c.icon, c.value ? /* @__PURE__ */ jsx("span", {
|
|
81
|
+
className: XPostPreview_module_default.count,
|
|
82
|
+
children: c.value
|
|
83
|
+
}) : null]
|
|
84
|
+
}, c.key)), /* @__PURE__ */ jsx(ShareIcon, { className: XPostPreview_module_default.share })]
|
|
85
|
+
})
|
|
86
|
+
]
|
|
87
|
+
})]
|
|
88
|
+
})
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
export { XPostPreview };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import './XPostPreview.css';
|
|
2
|
+
// src/agency/XPostPreview/XPostPreview.module.css
|
|
3
|
+
var XPostPreview_module_default = {
|
|
4
|
+
"root": "sti-XPostPreview-root-38842",
|
|
5
|
+
"layout": "sti-XPostPreview-layout-e9e34",
|
|
6
|
+
"main": "sti-XPostPreview-main-aad24",
|
|
7
|
+
"head": "sti-XPostPreview-head-4990f",
|
|
8
|
+
"time": "sti-XPostPreview-time-5cd4e",
|
|
9
|
+
"over": "sti-XPostPreview-over-51a4a",
|
|
10
|
+
"media": "sti-XPostPreview-media-fd961",
|
|
11
|
+
"counters": "sti-XPostPreview-counters-43ba5",
|
|
12
|
+
"counter": "sti-XPostPreview-counter-c507b",
|
|
13
|
+
"count": "sti-XPostPreview-count-6cab0",
|
|
14
|
+
"share": "sti-XPostPreview-share-70703"
|
|
15
|
+
};
|
|
16
|
+
export { XPostPreview_module_default as default };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
@layer sti.reset, sti.tokens, sti.base, sti.components, sti.variants, sti.utilities;
|
|
2
|
+
@layer sti.components {
|
|
3
|
+
.sti-YouTubeThumbnailPreview-root-97743 {
|
|
4
|
+
--sti-preview-max: 24rem;
|
|
5
|
+
--sti-preview-pad: 0;
|
|
6
|
+
--sti-preview-gap: var(--sti-space-3);
|
|
7
|
+
--sti-preview-radius: var(--sti-radius-md);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.sti-YouTubeThumbnailPreview-media-b7106 {
|
|
11
|
+
--sti-media-radius: 0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.sti-YouTubeThumbnailPreview-duration-9d6da {
|
|
15
|
+
position: absolute;
|
|
16
|
+
inset-block-end: var(--sti-space-2);
|
|
17
|
+
inset-inline-end: var(--sti-space-2);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.sti-YouTubeThumbnailPreview-body-3cf28 {
|
|
21
|
+
align-items: flex-start;
|
|
22
|
+
gap: var(--sti-space-3);
|
|
23
|
+
padding: 0 var(--sti-space-3) var(--sti-space-3);
|
|
24
|
+
display: flex;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.sti-YouTubeThumbnailPreview-info-5909b {
|
|
28
|
+
gap: var(--sti-space-0-5);
|
|
29
|
+
flex: 1;
|
|
30
|
+
min-width: 0;
|
|
31
|
+
display: grid;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.sti-YouTubeThumbnailPreview-title-977bb {
|
|
35
|
+
font-size: var(--sti-font-size-md);
|
|
36
|
+
font-weight: var(--sti-font-weight-semibold);
|
|
37
|
+
line-height: var(--sti-line-height-md);
|
|
38
|
+
overflow-wrap: anywhere;
|
|
39
|
+
-webkit-line-clamp: 2;
|
|
40
|
+
line-clamp: 2;
|
|
41
|
+
-webkit-box-orient: vertical;
|
|
42
|
+
margin: 0;
|
|
43
|
+
display: -webkit-box;
|
|
44
|
+
overflow: hidden;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.sti-YouTubeThumbnailPreview-channel-cef44, .sti-YouTubeThumbnailPreview-meta-1b982 {
|
|
48
|
+
color: var(--sti-fg-muted);
|
|
49
|
+
font-size: var(--sti-font-size-xs);
|
|
50
|
+
line-height: var(--sti-line-height-xs);
|
|
51
|
+
text-overflow: ellipsis;
|
|
52
|
+
white-space: nowrap;
|
|
53
|
+
overflow: hidden;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { PreviewAccount, PreviewBaseProps, PreviewMediaItem } from "../_shared/Preview.js";
|
|
2
|
+
/** YouTube başlığının en çok uzunluğu (karakter). */
|
|
3
|
+
export declare const YOUTUBE_TITLE_MAX = 100;
|
|
4
|
+
export interface YouTubeThumbnailPreviewProps extends PreviewBaseProps {
|
|
5
|
+
/** Kanal. */
|
|
6
|
+
account: PreviewAccount;
|
|
7
|
+
/** Video başlığı; en çok 100 karakter, aşan kısım kesilir ve akışta iki satırda gösterilir. */
|
|
8
|
+
title: string;
|
|
9
|
+
/** Küçük resim (16:9; önerilen 1280×720). */
|
|
10
|
+
media?: PreviewMediaItem;
|
|
11
|
+
/** Süre ("12:48"). */
|
|
12
|
+
duration?: string;
|
|
13
|
+
/** Görüntülenme ve zaman ("24 B görüntüleme · 2 gün önce"). */
|
|
14
|
+
meta?: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* YouTube küçük resim önizlemesi: 16:9 görsel, süre etiketi, başlık (iki satır), kanal ve
|
|
18
|
+
* görüntülenme satırı. Sunucu bileşenidir.
|
|
19
|
+
*/
|
|
20
|
+
export declare function YouTubeThumbnailPreview({ label, account, title, media, duration, meta, className, id }: YouTubeThumbnailPreviewProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { truncateText } from "../_shared/platforms.js";
|
|
2
|
+
import { PreviewAvatar, PreviewChip, PreviewMedia, PreviewShell } from "../_shared/Preview.js";
|
|
3
|
+
import YouTubeThumbnailPreview_module_default from "./YouTubeThumbnailPreview.module.js";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
// src/agency/YouTubeThumbnailPreview/YouTubeThumbnailPreview.tsx
|
|
6
|
+
/** YouTube başlığının en çok uzunluğu (karakter). */
|
|
7
|
+
const YOUTUBE_TITLE_MAX = 100;
|
|
8
|
+
/**
|
|
9
|
+
* YouTube küçük resim önizlemesi: 16:9 görsel, süre etiketi, başlık (iki satır), kanal ve
|
|
10
|
+
* görüntülenme satırı. Sunucu bileşenidir.
|
|
11
|
+
*/
|
|
12
|
+
function YouTubeThumbnailPreview({ label, account, title, media, duration, meta, className, id }) {
|
|
13
|
+
const shown = truncateText(title, 100);
|
|
14
|
+
return /* @__PURE__ */ jsxs(PreviewShell, {
|
|
15
|
+
label,
|
|
16
|
+
id,
|
|
17
|
+
platform: "youtube",
|
|
18
|
+
className: [YouTubeThumbnailPreview_module_default.root, className].filter(Boolean).join(" "),
|
|
19
|
+
children: [/* @__PURE__ */ jsx(PreviewMedia, {
|
|
20
|
+
media,
|
|
21
|
+
ratio: "16:9",
|
|
22
|
+
className: YouTubeThumbnailPreview_module_default.media,
|
|
23
|
+
children: duration ? /* @__PURE__ */ jsx("span", {
|
|
24
|
+
className: YouTubeThumbnailPreview_module_default.duration,
|
|
25
|
+
children: /* @__PURE__ */ jsx(PreviewChip, { children: duration })
|
|
26
|
+
}) : null
|
|
27
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
28
|
+
className: YouTubeThumbnailPreview_module_default.body,
|
|
29
|
+
children: [/* @__PURE__ */ jsx(PreviewAvatar, { account }), /* @__PURE__ */ jsxs("div", {
|
|
30
|
+
className: YouTubeThumbnailPreview_module_default.info,
|
|
31
|
+
children: [
|
|
32
|
+
/* @__PURE__ */ jsxs("h3", {
|
|
33
|
+
className: YouTubeThumbnailPreview_module_default.title,
|
|
34
|
+
children: [shown.text, shown.cut ? "…" : ""]
|
|
35
|
+
}),
|
|
36
|
+
/* @__PURE__ */ jsx("span", {
|
|
37
|
+
className: YouTubeThumbnailPreview_module_default.channel,
|
|
38
|
+
children: account.name
|
|
39
|
+
}),
|
|
40
|
+
meta ? /* @__PURE__ */ jsx("span", {
|
|
41
|
+
className: YouTubeThumbnailPreview_module_default.meta,
|
|
42
|
+
children: meta
|
|
43
|
+
}) : null
|
|
44
|
+
]
|
|
45
|
+
})]
|
|
46
|
+
})]
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
export { YOUTUBE_TITLE_MAX, YouTubeThumbnailPreview };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import './YouTubeThumbnailPreview.css';
|
|
2
|
+
// src/agency/YouTubeThumbnailPreview/YouTubeThumbnailPreview.module.css
|
|
3
|
+
var YouTubeThumbnailPreview_module_default = {
|
|
4
|
+
"root": "sti-YouTubeThumbnailPreview-root-97743",
|
|
5
|
+
"media": "sti-YouTubeThumbnailPreview-media-b7106",
|
|
6
|
+
"duration": "sti-YouTubeThumbnailPreview-duration-9d6da",
|
|
7
|
+
"body": "sti-YouTubeThumbnailPreview-body-3cf28",
|
|
8
|
+
"info": "sti-YouTubeThumbnailPreview-info-5909b",
|
|
9
|
+
"title": "sti-YouTubeThumbnailPreview-title-977bb",
|
|
10
|
+
"channel": "sti-YouTubeThumbnailPreview-channel-cef44",
|
|
11
|
+
"meta": "sti-YouTubeThumbnailPreview-meta-1b982"
|
|
12
|
+
};
|
|
13
|
+
export { YouTubeThumbnailPreview_module_default as default };
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
@layer sti.reset, sti.tokens, sti.base, sti.components, sti.variants, sti.utilities;
|
|
2
|
+
@layer sti.components {
|
|
3
|
+
.sti-Preview-shell-7404e {
|
|
4
|
+
gap: var(--sti-preview-gap, var(--sti-space-3));
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
width: 100%;
|
|
7
|
+
min-width: 0;
|
|
8
|
+
max-width: var(--sti-preview-max, 30rem);
|
|
9
|
+
padding-block: var(--sti-preview-pad, var(--sti-space-3));
|
|
10
|
+
border: var(--sti-border-width) solid var(--sti-border-subtle);
|
|
11
|
+
border-radius: var(--sti-preview-radius, var(--sti-radius-md));
|
|
12
|
+
background: var(--sti-bg-surface);
|
|
13
|
+
color: var(--sti-fg);
|
|
14
|
+
font-family: var(--sti-font-text);
|
|
15
|
+
font-size: var(--sti-font-size-sm);
|
|
16
|
+
line-height: var(--sti-line-height-sm);
|
|
17
|
+
flex-direction: column;
|
|
18
|
+
margin: 0;
|
|
19
|
+
display: flex;
|
|
20
|
+
overflow: hidden;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.sti-Preview-avatar-ee0d8 {
|
|
24
|
+
box-sizing: border-box;
|
|
25
|
+
inline-size: var(--sti-space-10);
|
|
26
|
+
block-size: var(--sti-space-10);
|
|
27
|
+
border-radius: var(--sti-radius-pill);
|
|
28
|
+
background: var(--sti-bg-accent-subtle);
|
|
29
|
+
color: var(--sti-fg-accent-strong);
|
|
30
|
+
font-size: var(--sti-font-size-sm);
|
|
31
|
+
font-weight: var(--sti-font-weight-semibold);
|
|
32
|
+
object-fit: cover;
|
|
33
|
+
flex: none;
|
|
34
|
+
justify-content: center;
|
|
35
|
+
align-items: center;
|
|
36
|
+
display: inline-flex;
|
|
37
|
+
overflow: hidden;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.sti-Preview-avatar-ee0d8[data-size="sm"] {
|
|
41
|
+
inline-size: var(--sti-space-6);
|
|
42
|
+
block-size: var(--sti-space-6);
|
|
43
|
+
font-size: var(--sti-font-size-xs);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.sti-Preview-avatar-ee0d8[data-size="lg"] {
|
|
47
|
+
inline-size: var(--sti-space-12);
|
|
48
|
+
block-size: var(--sti-space-12);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.sti-Preview-name-1a280 {
|
|
52
|
+
align-items: center;
|
|
53
|
+
gap: var(--sti-space-1);
|
|
54
|
+
min-width: 0;
|
|
55
|
+
font-weight: var(--sti-font-weight-semibold);
|
|
56
|
+
display: inline-flex;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.sti-Preview-nameText-02c6d {
|
|
60
|
+
text-overflow: ellipsis;
|
|
61
|
+
white-space: nowrap;
|
|
62
|
+
min-width: 0;
|
|
63
|
+
overflow: hidden;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.sti-Preview-verified-4d7c3 {
|
|
67
|
+
inline-size: var(--sti-icon-sm);
|
|
68
|
+
block-size: var(--sti-icon-sm);
|
|
69
|
+
color: var(--sti-fg-info);
|
|
70
|
+
flex: none;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.sti-Preview-handle-94ef3 {
|
|
74
|
+
min-width: 0;
|
|
75
|
+
color: var(--sti-fg-muted);
|
|
76
|
+
font-weight: var(--sti-font-weight-regular);
|
|
77
|
+
text-overflow: ellipsis;
|
|
78
|
+
white-space: nowrap;
|
|
79
|
+
overflow: hidden;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.sti-Preview-text-86980 {
|
|
83
|
+
overflow-wrap: anywhere;
|
|
84
|
+
white-space: pre-wrap;
|
|
85
|
+
margin: 0;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.sti-Preview-lead-f2f2d {
|
|
89
|
+
font-weight: var(--sti-font-weight-semibold);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.sti-Preview-token-63de6 {
|
|
93
|
+
color: var(--sti-fg-link);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.sti-Preview-token-63de6[data-plain] {
|
|
97
|
+
color: inherit;
|
|
98
|
+
font-weight: var(--sti-font-weight-semibold);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.sti-Preview-more-83a3f {
|
|
102
|
+
color: var(--sti-fg-muted);
|
|
103
|
+
font-weight: var(--sti-font-weight-medium);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.sti-Preview-more-83a3f[data-plain] {
|
|
107
|
+
color: inherit;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.sti-Preview-media-ebce0 {
|
|
111
|
+
box-sizing: border-box;
|
|
112
|
+
inline-size: var(--sti-media-inline-size, 100%);
|
|
113
|
+
min-width: 0;
|
|
114
|
+
margin-inline: var(--sti-media-margin-inline, 0);
|
|
115
|
+
border: var(--sti-media-border, 0);
|
|
116
|
+
border-radius: var(--sti-media-radius, 0);
|
|
117
|
+
background: var(--sti-bg-subtle);
|
|
118
|
+
color: var(--sti-fg-muted);
|
|
119
|
+
justify-content: center;
|
|
120
|
+
align-items: center;
|
|
121
|
+
display: flex;
|
|
122
|
+
position: relative;
|
|
123
|
+
overflow: hidden;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.sti-Preview-media-ebce0[data-ratio="1:1"] {
|
|
127
|
+
aspect-ratio: 1;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.sti-Preview-media-ebce0[data-ratio="4:5"] {
|
|
131
|
+
aspect-ratio: 4 / 5;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.sti-Preview-media-ebce0[data-ratio="9:16"] {
|
|
135
|
+
aspect-ratio: 9 / 16;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.sti-Preview-media-ebce0[data-ratio="16:9"] {
|
|
139
|
+
aspect-ratio: 16 / 9;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.sti-Preview-media-ebce0[data-ratio="1.91:1"] {
|
|
143
|
+
aspect-ratio: 1.91;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.sti-Preview-media-ebce0[data-ratio="2:3"] {
|
|
147
|
+
aspect-ratio: 2 / 3;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.sti-Preview-image-8f35c {
|
|
151
|
+
object-fit: cover;
|
|
152
|
+
block-size: 100%;
|
|
153
|
+
inline-size: 100%;
|
|
154
|
+
display: block;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.sti-Preview-layer-0d71d {
|
|
158
|
+
flex-direction: column;
|
|
159
|
+
justify-content: space-between;
|
|
160
|
+
min-width: 0;
|
|
161
|
+
display: flex;
|
|
162
|
+
position: absolute;
|
|
163
|
+
inset: 0;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.sti-Preview-placeholder-d97a1 {
|
|
167
|
+
flex: none;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.sti-Preview-actions-efb31 {
|
|
171
|
+
align-items: center;
|
|
172
|
+
gap: var(--sti-space-4);
|
|
173
|
+
color: var(--sti-fg);
|
|
174
|
+
font-size: var(--sti-icon-md);
|
|
175
|
+
display: flex;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.sti-Preview-chip-57111 {
|
|
179
|
+
align-items: center;
|
|
180
|
+
gap: var(--sti-space-2);
|
|
181
|
+
box-sizing: border-box;
|
|
182
|
+
max-inline-size: 100%;
|
|
183
|
+
min-width: 0;
|
|
184
|
+
padding-block: var(--sti-space-0-5);
|
|
185
|
+
padding-inline: var(--sti-space-3);
|
|
186
|
+
border-radius: var(--sti-radius-pill);
|
|
187
|
+
background: var(--sti-bg-inverse);
|
|
188
|
+
color: var(--sti-fg-inverse);
|
|
189
|
+
font-size: var(--sti-font-size-xs);
|
|
190
|
+
font-weight: var(--sti-font-weight-semibold);
|
|
191
|
+
line-height: var(--sti-line-height-xs);
|
|
192
|
+
display: inline-flex;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.sti-Preview-chip-57111[data-block] {
|
|
196
|
+
border-radius: var(--sti-radius-sm);
|
|
197
|
+
padding-block: var(--sti-space-1);
|
|
198
|
+
text-align: start;
|
|
199
|
+
overflow-wrap: anywhere;
|
|
200
|
+
display: block;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
@media (forced-colors: active) {
|
|
204
|
+
.sti-Preview-chip-57111 {
|
|
205
|
+
border: var(--sti-border-width) solid CanvasText;
|
|
206
|
+
color: canvastext;
|
|
207
|
+
background: canvas;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.sti-Preview-shell-7404e {
|
|
211
|
+
border-color: canvastext;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.sti-Preview-avatar-ee0d8 {
|
|
215
|
+
border: var(--sti-border-width) solid CanvasText;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.sti-Preview-token-63de6 {
|
|
219
|
+
color: linktext;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.sti-Preview-token-63de6[data-plain] {
|
|
223
|
+
color: canvastext;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
/** Önizlemelerin ortak hesap bilgisi. Gerçek logo ve arayüz kopyalanmaz; çizim bizimdir. */
|
|
3
|
+
export interface PreviewAccount {
|
|
4
|
+
/** Görünen ad. */
|
|
5
|
+
name: string;
|
|
6
|
+
/** Kullanıcı adı ("@" olmadan). */
|
|
7
|
+
handle?: string;
|
|
8
|
+
/** Profil fotoğrafı; verilmezse baş harfler çizilir. */
|
|
9
|
+
avatarSrc?: string;
|
|
10
|
+
/** Doğrulanmış hesap işareti. */
|
|
11
|
+
verified?: boolean;
|
|
12
|
+
/** Ad altı bilgi ("Sponsorlu", "2 sa"). */
|
|
13
|
+
subtitle?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface PreviewMediaItem {
|
|
16
|
+
src: string;
|
|
17
|
+
/** Alt metin (zorunlu): görsel anlam taşıyorsa anlatır, süsse boş bırakılır. */
|
|
18
|
+
alt: string;
|
|
19
|
+
}
|
|
20
|
+
export type PreviewRatio = "1:1" | "4:5" | "9:16" | "16:9" | "1.91:1" | "2:3";
|
|
21
|
+
/** Her önizlemenin ortak özellikleri. */
|
|
22
|
+
export interface PreviewBaseProps {
|
|
23
|
+
/** Önizlemenin erişilebilir adı (zorunlu): "Instagram gönderi önizlemesi". */
|
|
24
|
+
label: string;
|
|
25
|
+
className?: string;
|
|
26
|
+
id?: string;
|
|
27
|
+
}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { initials } from "../../text/text.js";
|
|
2
|
+
import { CheckCircleIcon } from "../../icons/generated/CheckCircleIcon.js";
|
|
3
|
+
import { ImageIcon } from "../../icons/generated/ImageIcon.js";
|
|
4
|
+
import { tokenizeText, truncateText } from "./platforms.js";
|
|
5
|
+
import Preview_module_default from "./Preview.module.js";
|
|
6
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
// src/agency/_shared/Preview.tsx
|
|
8
|
+
function cx(...parts) {
|
|
9
|
+
return parts.filter(Boolean).join(" ");
|
|
10
|
+
}
|
|
11
|
+
/** Önizleme kabı: `figure`; çizilen sahte arayüz ekran okuyucudan gizlenir, metin okunur. */
|
|
12
|
+
function PreviewShell({ label, platform, className, id, children }) {
|
|
13
|
+
return /* @__PURE__ */ jsx("figure", {
|
|
14
|
+
id,
|
|
15
|
+
className: cx(Preview_module_default.shell, className),
|
|
16
|
+
"data-sti-preview": platform,
|
|
17
|
+
"aria-label": label,
|
|
18
|
+
children
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
function PreviewAvatar({ account, size = "md" }) {
|
|
22
|
+
return account.avatarSrc ? /* @__PURE__ */ jsx("img", {
|
|
23
|
+
className: Preview_module_default.avatar,
|
|
24
|
+
"data-size": size,
|
|
25
|
+
src: account.avatarSrc,
|
|
26
|
+
alt: ""
|
|
27
|
+
}) : /* @__PURE__ */ jsx("span", {
|
|
28
|
+
className: Preview_module_default.avatar,
|
|
29
|
+
"data-size": size,
|
|
30
|
+
"aria-hidden": "true",
|
|
31
|
+
children: initials(account.name)
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
/** Ad satırı: ad, doğrulama işareti ve isteğe bağlı kullanıcı adı. */
|
|
35
|
+
function PreviewName({ account, showHandle = false }) {
|
|
36
|
+
return /* @__PURE__ */ jsxs("span", {
|
|
37
|
+
className: Preview_module_default.name,
|
|
38
|
+
children: [
|
|
39
|
+
/* @__PURE__ */ jsx("span", {
|
|
40
|
+
className: Preview_module_default.nameText,
|
|
41
|
+
children: account.name
|
|
42
|
+
}),
|
|
43
|
+
account.verified ? /* @__PURE__ */ jsx(CheckCircleIcon, { className: Preview_module_default.verified }) : null,
|
|
44
|
+
showHandle && account.handle ? /* @__PURE__ */ jsxs("span", {
|
|
45
|
+
className: Preview_module_default.handle,
|
|
46
|
+
children: ["@", account.handle]
|
|
47
|
+
}) : null
|
|
48
|
+
]
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
/** Metin: etiket, anma ve bağlantı vurgulanır; sınırı aşan metin kesilir ve "devamı" eklenir. */
|
|
52
|
+
function PreviewText({ text, limit, moreLabel, lead, plain = false, className }) {
|
|
53
|
+
const shown = limit ? truncateText(text, limit) : {
|
|
54
|
+
text,
|
|
55
|
+
cut: false
|
|
56
|
+
};
|
|
57
|
+
const tokens = tokenizeText(shown.text);
|
|
58
|
+
return /* @__PURE__ */ jsxs("p", {
|
|
59
|
+
className: cx(Preview_module_default.text, className),
|
|
60
|
+
children: [
|
|
61
|
+
lead ? /* @__PURE__ */ jsxs("span", {
|
|
62
|
+
className: Preview_module_default.lead,
|
|
63
|
+
children: [lead, " "]
|
|
64
|
+
}) : null,
|
|
65
|
+
tokens.map((t) => t.kind === "text" ? /* @__PURE__ */ jsx("span", { children: t.value }, t.at) : /* @__PURE__ */ jsx("span", {
|
|
66
|
+
className: Preview_module_default.token,
|
|
67
|
+
"data-kind": t.kind,
|
|
68
|
+
"data-plain": plain ? "" : void 0,
|
|
69
|
+
children: t.value
|
|
70
|
+
}, t.at)),
|
|
71
|
+
shown.cut ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("span", { children: "… " }), moreLabel ? /* @__PURE__ */ jsx("span", {
|
|
72
|
+
className: Preview_module_default.more,
|
|
73
|
+
"data-plain": plain ? "" : void 0,
|
|
74
|
+
children: moreLabel
|
|
75
|
+
}) : null] }) : null
|
|
76
|
+
]
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
/** Görsel alanı: görsel varsa `img`, yoksa nötr yer tutucu; oran `data-ratio` ile verilir. */
|
|
80
|
+
function PreviewMedia({ media, ratio, className, children }) {
|
|
81
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
82
|
+
className: cx(Preview_module_default.media, className),
|
|
83
|
+
"data-ratio": ratio,
|
|
84
|
+
"data-empty": media ? void 0 : "",
|
|
85
|
+
children: [media ? /* @__PURE__ */ jsx("img", {
|
|
86
|
+
className: Preview_module_default.image,
|
|
87
|
+
src: media.src,
|
|
88
|
+
alt: media.alt
|
|
89
|
+
}) : /* @__PURE__ */ jsx(ImageIcon, {
|
|
90
|
+
className: Preview_module_default.placeholder,
|
|
91
|
+
size: "lg"
|
|
92
|
+
}), children ? /* @__PURE__ */ jsx("div", {
|
|
93
|
+
className: Preview_module_default.layer,
|
|
94
|
+
children
|
|
95
|
+
}) : null]
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
/** Eylem şeridi (beğen, yorum, paylaş…): sahte arayüzdür, ekran okuyucudan gizlenir. */
|
|
99
|
+
function PreviewActions({ children, className }) {
|
|
100
|
+
return /* @__PURE__ */ jsx("div", {
|
|
101
|
+
className: cx(Preview_module_default.actions, className),
|
|
102
|
+
"aria-hidden": "true",
|
|
103
|
+
children
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Görselin üstüne konan okunur etiket (ad, süre, ses): görselin rengi ne olursa olsun yazı, ters
|
|
108
|
+
* zemin ve ters yazı çiftiyle okunur kalır.
|
|
109
|
+
*/
|
|
110
|
+
function PreviewChip({ children, className, block = false }) {
|
|
111
|
+
return /* @__PURE__ */ jsx(block ? "div" : "span", {
|
|
112
|
+
className: cx(Preview_module_default.chip, className),
|
|
113
|
+
"data-block": block ? "" : void 0,
|
|
114
|
+
children
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
export { PreviewActions, PreviewAvatar, PreviewChip, PreviewMedia, PreviewName, PreviewShell, PreviewText, cx };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import './Preview.css';
|
|
2
|
+
// src/agency/_shared/Preview.module.css
|
|
3
|
+
var Preview_module_default = {
|
|
4
|
+
"shell": "sti-Preview-shell-7404e",
|
|
5
|
+
"avatar": "sti-Preview-avatar-ee0d8",
|
|
6
|
+
"name": "sti-Preview-name-1a280",
|
|
7
|
+
"nameText": "sti-Preview-nameText-02c6d",
|
|
8
|
+
"verified": "sti-Preview-verified-4d7c3",
|
|
9
|
+
"handle": "sti-Preview-handle-94ef3",
|
|
10
|
+
"text": "sti-Preview-text-86980",
|
|
11
|
+
"lead": "sti-Preview-lead-f2f2d",
|
|
12
|
+
"token": "sti-Preview-token-63de6",
|
|
13
|
+
"more": "sti-Preview-more-83a3f",
|
|
14
|
+
"media": "sti-Preview-media-ebce0",
|
|
15
|
+
"image": "sti-Preview-image-8f35c",
|
|
16
|
+
"layer": "sti-Preview-layer-0d71d",
|
|
17
|
+
"placeholder": "sti-Preview-placeholder-d97a1",
|
|
18
|
+
"actions": "sti-Preview-actions-efb31",
|
|
19
|
+
"chip": "sti-Preview-chip-57111"
|
|
20
|
+
};
|
|
21
|
+
export { Preview_module_default as default };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Platform sınırları (karakter, etiket, görünür ilk bölüm) ve metin yardımcıları. Sınırlar
|
|
3
|
+
* platformların yayımladığı değerlerdir; platform değiştirirse buradan güncellenir. Saf işlevlerdir:
|
|
4
|
+
* sunucuda ve istemcide çalışır.
|
|
5
|
+
*/
|
|
6
|
+
export type Platform = "instagram" | "tiktok" | "facebook" | "linkedin" | "x" | "threads" | "pinterest" | "youtube";
|
|
7
|
+
export interface PlatformLimit {
|
|
8
|
+
/** Gönderi metninin en çok karakteri. */
|
|
9
|
+
max: number;
|
|
10
|
+
/** Akışta "devamı" düğmesinden önce görünen karakter sayısı (yaklaşık). */
|
|
11
|
+
visible: number;
|
|
12
|
+
/** En çok etiket (#); sınırsızsa `null`. */
|
|
13
|
+
hashtags: number | null;
|
|
14
|
+
}
|
|
15
|
+
export declare const PLATFORM_LIMITS: Record<Platform, PlatformLimit>;
|
|
16
|
+
export declare const PLATFORMS: Platform[];
|
|
17
|
+
export declare function countChars(text: string): number;
|
|
18
|
+
/** Metni en çok `limit` karaktere keser; kesildiyse `cut: true` döner. Sözcük ortasında kesmez. */
|
|
19
|
+
export declare function truncateText(text: string, limit: number): {
|
|
20
|
+
text: string;
|
|
21
|
+
cut: boolean;
|
|
22
|
+
};
|
|
23
|
+
/** Metindeki etiketler (# olmadan; yinelenenler ve büyük-küçük harf farkı atılır). */
|
|
24
|
+
export declare function extractHashtags(text: string): string[];
|