@stisocial/ui 0.2.0 → 0.3.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/CHANGELOG.md +82 -0
- package/dist/agency/AnnotationLayer/AnnotationLayer.css +209 -0
- package/dist/agency/AnnotationLayer/AnnotationLayer.d.ts +35 -0
- package/dist/agency/AnnotationLayer/AnnotationLayer.js +226 -0
- package/dist/agency/AnnotationLayer/AnnotationLayer.module.js +23 -0
- package/dist/agency/ApprovalActions/ApprovalActions.css +16 -0
- package/dist/agency/ApprovalActions/ApprovalActions.d.ts +22 -0
- package/dist/agency/ApprovalActions/ApprovalActions.js +104 -0
- package/dist/agency/ApprovalActions/ApprovalActions.module.js +7 -0
- package/dist/agency/ApprovalFlow/ApprovalFlow.css +159 -0
- package/dist/agency/ApprovalFlow/ApprovalFlow.d.ts +34 -0
- package/dist/agency/ApprovalFlow/ApprovalFlow.js +115 -0
- package/dist/agency/ApprovalFlow/ApprovalFlow.module.js +19 -0
- package/dist/agency/ApprovalFlow/index.d.ts +2 -0
- package/dist/agency/AssetCard/AssetCard.css +194 -0
- package/dist/agency/AssetCard/AssetCard.d.ts +47 -0
- package/dist/agency/AssetCard/AssetCard.js +137 -0
- package/dist/agency/AssetCard/AssetCard.module.js +19 -0
- package/dist/agency/AssetCard/index.d.ts +2 -0
- package/dist/agency/AssetLibrary/AssetLibrary.css +60 -0
- package/dist/agency/AssetLibrary/AssetLibrary.d.ts +36 -0
- package/dist/agency/AssetLibrary/AssetLibrary.js +174 -0
- package/dist/agency/AssetLibrary/AssetLibrary.module.js +13 -0
- package/dist/agency/AssetLibrary/index.d.ts +2 -0
- package/dist/agency/AssetPicker/AssetPicker.d.ts +23 -0
- package/dist/agency/AssetPicker/AssetPicker.js +50 -0
- package/dist/agency/AssetPicker/index.d.ts +2 -0
- package/dist/agency/BrandKitViewer/BrandKitViewer.css +184 -0
- package/dist/agency/BrandKitViewer/BrandKitViewer.d.ts +46 -0
- package/dist/agency/BrandKitViewer/BrandKitViewer.js +168 -0
- package/dist/agency/BrandKitViewer/BrandKitViewer.module.js +25 -0
- package/dist/agency/BriefForm/BriefForm.css +25 -0
- package/dist/agency/BriefForm/BriefForm.d.ts +39 -0
- package/dist/agency/BriefForm/BriefForm.js +247 -0
- package/dist/agency/BriefForm/BriefForm.module.js +8 -0
- package/dist/agency/BriefForm/index.d.ts +2 -0
- package/dist/agency/BudgetTracker/BudgetTracker.css +159 -0
- package/dist/agency/BudgetTracker/BudgetTracker.d.ts +29 -0
- package/dist/agency/BudgetTracker/BudgetTracker.js +147 -0
- package/dist/agency/BudgetTracker/BudgetTracker.module.js +20 -0
- package/dist/agency/BudgetTracker/budgetPace.d.ts +21 -0
- package/dist/agency/BudgetTracker/budgetPace.js +30 -0
- package/dist/agency/CampaignCard/CampaignCard.css +229 -0
- package/dist/agency/CampaignCard/CampaignCard.d.ts +42 -0
- package/dist/agency/CampaignCard/CampaignCard.js +143 -0
- package/dist/agency/CampaignCard/CampaignCard.module.js +27 -0
- package/dist/agency/CampaignCard/index.d.ts +2 -0
- package/dist/agency/ChannelPerformanceTable/ChannelPerformanceTable.css +113 -0
- package/dist/agency/ChannelPerformanceTable/ChannelPerformanceTable.d.ts +41 -0
- package/dist/agency/ChannelPerformanceTable/ChannelPerformanceTable.js +156 -0
- package/dist/agency/ChannelPerformanceTable/ChannelPerformanceTable.module.js +15 -0
- package/dist/agency/ColorPaletteDisplay/ColorPaletteDisplay.css +117 -0
- package/dist/agency/ColorPaletteDisplay/ColorPaletteDisplay.d.ts +31 -0
- package/dist/agency/ColorPaletteDisplay/ColorPaletteDisplay.js +143 -0
- package/dist/agency/ColorPaletteDisplay/ColorPaletteDisplay.module.js +17 -0
- package/dist/agency/ContentCalendar/ContentCalendar.css +58 -0
- package/dist/agency/ContentCalendar/ContentCalendar.d.ts +33 -0
- package/dist/agency/ContentCalendar/ContentCalendar.js +98 -0
- package/dist/agency/ContentCalendar/ContentCalendar.module.js +9 -0
- package/dist/agency/GoogleDisplayAdPreview/GoogleDisplayAdPreview.css +182 -0
- package/dist/agency/GoogleDisplayAdPreview/GoogleDisplayAdPreview.d.ts +23 -0
- package/dist/agency/GoogleDisplayAdPreview/GoogleDisplayAdPreview.js +94 -0
- package/dist/agency/GoogleDisplayAdPreview/GoogleDisplayAdPreview.module.js +17 -0
- package/dist/agency/GoogleDisplayAdPreview/index.d.ts +2 -0
- package/dist/agency/GoogleSearchAdPreview/GoogleSearchAdPreview.css +119 -0
- package/dist/agency/GoogleSearchAdPreview/GoogleSearchAdPreview.d.ts +32 -0
- package/dist/agency/GoogleSearchAdPreview/GoogleSearchAdPreview.js +83 -0
- package/dist/agency/GoogleSearchAdPreview/GoogleSearchAdPreview.module.js +16 -0
- package/dist/agency/GoogleSearchAdPreview/index.d.ts +2 -0
- package/dist/agency/HashtagInput/HashtagInput.css +37 -0
- package/dist/agency/HashtagInput/HashtagInput.d.ts +32 -0
- package/dist/agency/HashtagInput/HashtagInput.js +96 -0
- package/dist/agency/HashtagInput/HashtagInput.module.js +10 -0
- package/dist/agency/HashtagInput/index.d.ts +2 -0
- package/dist/agency/InstagramReelPreview/InstagramReelPreview.js +1 -1
- package/dist/agency/LinkPreview/LinkPreview.css +176 -0
- package/dist/agency/LinkPreview/LinkPreview.d.ts +26 -0
- package/dist/agency/LinkPreview/LinkPreview.js +136 -0
- package/dist/agency/LinkPreview/LinkPreview.module.js +27 -0
- package/dist/agency/LinkPreview/index.d.ts +2 -0
- package/dist/agency/MetaAdPreview/MetaAdPreview.css +112 -0
- package/dist/agency/MetaAdPreview/MetaAdPreview.d.ts +30 -0
- package/dist/agency/MetaAdPreview/MetaAdPreview.js +109 -0
- package/dist/agency/MetaAdPreview/MetaAdPreview.module.js +20 -0
- package/dist/agency/MetaAdPreview/index.d.ts +2 -0
- package/dist/agency/PlatformCharacterLimit/PlatformCharacterLimit.css +99 -0
- package/dist/agency/PlatformCharacterLimit/PlatformCharacterLimit.d.ts +31 -0
- package/dist/agency/PlatformCharacterLimit/PlatformCharacterLimit.js +107 -0
- package/dist/agency/PlatformCharacterLimit/PlatformCharacterLimit.module.js +14 -0
- package/dist/agency/PostComposer/PostComposer.css +109 -0
- package/dist/agency/PostComposer/PostComposer.d.ts +36 -0
- package/dist/agency/PostComposer/PostComposer.js +288 -0
- package/dist/agency/PostComposer/PostComposer.module.js +18 -0
- package/dist/agency/PostComposer/index.d.ts +2 -0
- package/dist/agency/PublishScheduler/PublishScheduler.css +69 -0
- package/dist/agency/PublishScheduler/PublishScheduler.d.ts +34 -0
- package/dist/agency/PublishScheduler/PublishScheduler.js +152 -0
- package/dist/agency/PublishScheduler/PublishScheduler.module.js +14 -0
- package/dist/agency/RevisionHistory/RevisionHistory.css +157 -0
- package/dist/agency/RevisionHistory/RevisionHistory.d.ts +39 -0
- package/dist/agency/RevisionHistory/RevisionHistory.js +141 -0
- package/dist/agency/RevisionHistory/RevisionHistory.module.js +21 -0
- package/dist/agency/SafeZoneOverlay/SafeZoneOverlay.css +139 -0
- package/dist/agency/SafeZoneOverlay/SafeZoneOverlay.d.ts +27 -0
- package/dist/agency/SafeZoneOverlay/SafeZoneOverlay.js +108 -0
- package/dist/agency/SafeZoneOverlay/SafeZoneOverlay.module.js +14 -0
- package/dist/agency/SafeZoneOverlay/index.d.ts +2 -0
- package/dist/agency/SerpPreview/SerpPreview.css +131 -0
- package/dist/agency/SerpPreview/SerpPreview.d.ts +35 -0
- package/dist/agency/SerpPreview/SerpPreview.js +130 -0
- package/dist/agency/SerpPreview/SerpPreview.module.js +20 -0
- package/dist/agency/SerpPreview/index.d.ts +2 -0
- package/dist/agency/TikTokPreview/TikTokPreview.js +1 -1
- package/dist/agency/TimeTracker/TimeTracker.css +128 -0
- package/dist/agency/TimeTracker/TimeTracker.d.ts +29 -0
- package/dist/agency/TimeTracker/TimeTracker.js +183 -0
- package/dist/agency/TimeTracker/TimeTracker.module.js +21 -0
- package/dist/agency/UtmBuilder/UtmBuilder.css +66 -0
- package/dist/agency/UtmBuilder/UtmBuilder.d.ts +33 -0
- package/dist/agency/UtmBuilder/UtmBuilder.js +201 -0
- package/dist/agency/UtmBuilder/UtmBuilder.module.js +14 -0
- package/dist/agency/_shared/platforms.d.ts +3 -1
- package/dist/agency/_shared/platforms.js +9 -1
- package/dist/agency/index.d.ts +43 -2
- package/dist/agency/index.js +29 -2
- package/dist/ai/AttachmentChip/AttachmentChip.js +5 -3
- package/dist/ai/ChatThread/ChatThread.css +10 -8
- package/dist/ai/ChatThread/ChatThread.module.js +5 -5
- package/dist/ai/ConversationList/ConversationList.js +2 -2
- package/dist/ai/MessageActions/MessageActions.js +1 -1
- package/dist/ai/ModelSelect/ModelSelect.d.ts +5 -1
- package/dist/ai/ModelSelect/ModelSelect.js +2 -1
- package/dist/ai/PromptInput/PromptInput.js +1 -1
- package/dist/ai/ToolCallCard/ToolCallCard.css +40 -39
- package/dist/ai/ToolCallCard/ToolCallCard.js +1 -1
- package/dist/ai/ToolCallCard/ToolCallCard.module.js +17 -17
- package/dist/charts/BulletChart/BulletChart.css +107 -0
- package/dist/charts/BulletChart/BulletChart.d.ts +35 -0
- package/dist/charts/BulletChart/BulletChart.js +120 -0
- package/dist/charts/BulletChart/BulletChart.module.js +18 -0
- package/dist/charts/BulletChart/index.d.ts +2 -0
- package/dist/charts/CalendarHeatmap/CalendarHeatmap.css +39 -0
- package/dist/charts/CalendarHeatmap/CalendarHeatmap.d.ts +30 -0
- package/dist/charts/CalendarHeatmap/CalendarHeatmap.js +256 -0
- package/dist/charts/CalendarHeatmap/CalendarHeatmap.module.js +9 -0
- package/dist/charts/CalendarHeatmap/index.d.ts +2 -0
- package/dist/charts/DonutChart/DonutChart.css +24 -0
- package/dist/charts/DonutChart/DonutChart.d.ts +30 -0
- package/dist/charts/DonutChart/DonutChart.js +157 -0
- package/dist/charts/DonutChart/DonutChart.module.js +8 -0
- package/dist/charts/DonutChart/index.d.ts +2 -0
- package/dist/charts/FunnelChart/FunnelChart.css +47 -0
- package/dist/charts/FunnelChart/FunnelChart.d.ts +22 -0
- package/dist/charts/FunnelChart/FunnelChart.js +179 -0
- package/dist/charts/FunnelChart/FunnelChart.module.js +11 -0
- package/dist/charts/FunnelChart/index.d.ts +2 -0
- package/dist/charts/Gauge/Gauge.css +122 -0
- package/dist/charts/Gauge/Gauge.d.ts +35 -0
- package/dist/charts/Gauge/Gauge.js +132 -0
- package/dist/charts/Gauge/Gauge.module.js +16 -0
- package/dist/charts/Gauge/index.d.ts +2 -0
- package/dist/charts/GeoChart/GeoChart.css +208 -0
- package/dist/charts/GeoChart/GeoChart.d.ts +25 -0
- package/dist/charts/GeoChart/GeoChart.js +120 -0
- package/dist/charts/GeoChart/GeoChart.module.js +21 -0
- package/dist/charts/GeoChart/index.d.ts +2 -0
- package/dist/charts/Heatmap/Heatmap.css +61 -0
- package/dist/charts/Heatmap/Heatmap.d.ts +27 -0
- package/dist/charts/Heatmap/Heatmap.js +138 -0
- package/dist/charts/Heatmap/Heatmap.module.js +10 -0
- package/dist/charts/Heatmap/index.d.ts +2 -0
- package/dist/charts/RadarChart/RadarChart.css +39 -0
- package/dist/charts/RadarChart/RadarChart.d.ts +27 -0
- package/dist/charts/RadarChart/RadarChart.js +146 -0
- package/dist/charts/RadarChart/RadarChart.module.js +8 -0
- package/dist/charts/RadarChart/index.d.ts +2 -0
- package/dist/charts/SankeyChart/SankeyChart.css +45 -0
- package/dist/charts/SankeyChart/SankeyChart.d.ts +34 -0
- package/dist/charts/SankeyChart/SankeyChart.js +152 -0
- package/dist/charts/SankeyChart/SankeyChart.module.js +9 -0
- package/dist/charts/SankeyChart/index.d.ts +3 -0
- package/dist/charts/SankeyChart/sankeyLayout.d.ts +43 -0
- package/dist/charts/SankeyChart/sankeyLayout.js +106 -0
- package/dist/charts/ScatterChart/ScatterChart.css +20 -0
- package/dist/charts/ScatterChart/ScatterChart.d.ts +46 -0
- package/dist/charts/ScatterChart/ScatterChart.js +223 -0
- package/dist/charts/ScatterChart/ScatterChart.module.js +8 -0
- package/dist/charts/ScatterChart/index.d.ts +2 -0
- package/dist/charts/Sparkline/Sparkline.css +27 -0
- package/dist/charts/Sparkline/Sparkline.d.ts +24 -0
- package/dist/charts/Sparkline/Sparkline.js +71 -0
- package/dist/charts/Sparkline/Sparkline.module.js +7 -0
- package/dist/charts/Sparkline/index.d.ts +2 -0
- package/dist/charts/Treemap/Treemap.css +30 -0
- package/dist/charts/Treemap/Treemap.d.ts +23 -0
- package/dist/charts/Treemap/Treemap.js +134 -0
- package/dist/charts/Treemap/Treemap.module.js +8 -0
- package/dist/charts/Treemap/index.d.ts +3 -0
- package/dist/charts/Treemap/squarify.d.ts +11 -0
- package/dist/charts/Treemap/squarify.js +78 -0
- package/dist/charts/WaterfallChart/WaterfallChart.css +20 -0
- package/dist/charts/WaterfallChart/WaterfallChart.d.ts +33 -0
- package/dist/charts/WaterfallChart/WaterfallChart.js +188 -0
- package/dist/charts/WaterfallChart/WaterfallChart.module.js +8 -0
- package/dist/charts/WaterfallChart/index.d.ts +2 -0
- package/dist/charts/_internal/ScaleLegend.css +52 -0
- package/dist/charts/_internal/ScaleLegend.js +36 -0
- package/dist/charts/_internal/ScaleLegend.module.js +9 -0
- package/dist/charts/_internal/frame/ChartFrame.js +1 -1
- package/dist/charts/_internal/items.d.ts +10 -0
- package/dist/charts/_internal/items.js +71 -0
- package/dist/charts/_internal/marks/marks.js +10 -1
- package/dist/charts/_internal/shapes.js +26 -1
- package/dist/charts/index.d.ts +30 -1
- package/dist/charts/index.js +16 -1
- package/dist/commerce/AddToCartButton/AddToCartButton.js +2 -2
- package/dist/commerce/BillingTypeToggle/BillingTypeToggle.css +22 -0
- package/dist/commerce/BillingTypeToggle/BillingTypeToggle.d.ts +30 -0
- package/dist/commerce/BillingTypeToggle/BillingTypeToggle.js +118 -0
- package/dist/commerce/BillingTypeToggle/BillingTypeToggle.module.js +8 -0
- package/dist/commerce/CartDrawer/CartDrawer.css +22 -0
- package/dist/commerce/CartDrawer/CartDrawer.d.ts +27 -0
- package/dist/commerce/CartDrawer/CartDrawer.js +74 -0
- package/dist/commerce/CartDrawer/CartDrawer.module.js +8 -0
- package/dist/commerce/CartDrawer/index.d.ts +2 -0
- package/dist/commerce/CartItem/CartItem.css +143 -0
- package/dist/commerce/CartItem/CartItem.d.ts +33 -0
- package/dist/commerce/CartItem/CartItem.js +101 -0
- package/dist/commerce/CartItem/CartItem.module.js +18 -0
- package/dist/commerce/CartSummary/CartSummary.css +84 -0
- package/dist/commerce/CartSummary/CartSummary.d.ts +32 -0
- package/dist/commerce/CartSummary/CartSummary.js +81 -0
- package/dist/commerce/CartSummary/CartSummary.module.js +12 -0
- package/dist/commerce/CartSummary/index.d.ts +2 -0
- package/dist/commerce/CheckoutSteps/CheckoutSteps.css +152 -0
- package/dist/commerce/CheckoutSteps/CheckoutSteps.d.ts +20 -0
- package/dist/commerce/CheckoutSteps/CheckoutSteps.js +96 -0
- package/dist/commerce/CheckoutSteps/CheckoutSteps.module.js +16 -0
- package/dist/commerce/CouponField/CouponField.css +76 -0
- package/dist/commerce/CouponField/CouponField.d.ts +23 -0
- package/dist/commerce/CouponField/CouponField.js +119 -0
- package/dist/commerce/CouponField/CouponField.module.js +12 -0
- package/dist/commerce/InstallmentTable/InstallmentTable.css +38 -0
- package/dist/commerce/InstallmentTable/InstallmentTable.d.ts +26 -0
- package/dist/commerce/InstallmentTable/InstallmentTable.js +97 -0
- package/dist/commerce/InstallmentTable/InstallmentTable.module.js +9 -0
- package/dist/commerce/OrderSummary/OrderSummary.css +73 -0
- package/dist/commerce/OrderSummary/OrderSummary.d.ts +34 -0
- package/dist/commerce/OrderSummary/OrderSummary.js +106 -0
- package/dist/commerce/OrderSummary/OrderSummary.module.js +14 -0
- package/dist/commerce/OrderSummary/index.d.ts +2 -0
- package/dist/commerce/OrderTracker/OrderTracker.css +184 -0
- package/dist/commerce/OrderTracker/OrderTracker.d.ts +31 -0
- package/dist/commerce/OrderTracker/OrderTracker.js +147 -0
- package/dist/commerce/OrderTracker/OrderTracker.module.js +21 -0
- package/dist/commerce/PaymentMethodSelect/PaymentMethodSelect.css +21 -0
- package/dist/commerce/PaymentMethodSelect/PaymentMethodSelect.d.ts +33 -0
- package/dist/commerce/PaymentMethodSelect/PaymentMethodSelect.js +44 -0
- package/dist/commerce/PaymentMethodSelect/PaymentMethodSelect.module.js +7 -0
- package/dist/commerce/PaymentMethodSelect/index.d.ts +2 -0
- package/dist/commerce/ProductCard/ProductCard.css +133 -0
- package/dist/commerce/ProductCard/ProductCard.d.ts +39 -0
- package/dist/commerce/ProductCard/ProductCard.js +105 -0
- package/dist/commerce/ProductCard/ProductCard.module.js +18 -0
- package/dist/commerce/ProductCard/index.d.ts +2 -0
- package/dist/commerce/ProductGallery/ProductGallery.css +135 -0
- package/dist/commerce/ProductGallery/ProductGallery.d.ts +17 -0
- package/dist/commerce/ProductGallery/ProductGallery.js +102 -0
- package/dist/commerce/ProductGallery/ProductGallery.module.js +12 -0
- package/dist/commerce/ProductGallery/index.d.ts +2 -0
- package/dist/commerce/ProductReviews/ProductReviews.css +227 -0
- package/dist/commerce/ProductReviews/ProductReviews.d.ts +39 -0
- package/dist/commerce/ProductReviews/ProductReviews.js +187 -0
- package/dist/commerce/ProductReviews/ProductReviews.module.js +29 -0
- package/dist/commerce/ShippingOptions/ShippingOptions.d.ts +29 -0
- package/dist/commerce/ShippingOptions/ShippingOptions.js +34 -0
- package/dist/commerce/ShippingOptions/index.d.ts +2 -0
- package/dist/commerce/SizeGuide/RulerGlyph.js +16 -0
- package/dist/commerce/SizeGuide/SizeGuide.css +34 -0
- package/dist/commerce/SizeGuide/SizeGuide.d.ts +28 -0
- package/dist/commerce/SizeGuide/SizeGuide.js +90 -0
- package/dist/commerce/SizeGuide/SizeGuide.module.js +9 -0
- package/dist/commerce/SizeGuide/index.d.ts +2 -0
- package/dist/commerce/VariantSelector/VariantSelector.js +1 -1
- package/dist/commerce/index.d.ts +25 -2
- package/dist/commerce/index.js +16 -1
- package/dist/components/ActivityFeed/ActivityFeed.css +185 -0
- package/dist/components/ActivityFeed/ActivityFeed.d.ts +54 -0
- package/dist/components/ActivityFeed/ActivityFeed.js +134 -0
- package/dist/components/ActivityFeed/ActivityFeed.module.js +23 -0
- package/dist/components/ActivityFeed/index.d.ts +2 -0
- package/dist/components/AlertDialog/AlertDialog.js +1 -1
- package/dist/components/AppHeader/AppHeader.css +18 -18
- package/dist/components/AppHeader/AppHeader.d.ts +1 -1
- package/dist/components/AppHeader/AppHeader.module.js +8 -8
- package/dist/components/AppShell/AppShell.css +19 -19
- package/dist/components/AppShell/AppShell.d.ts +1 -1
- package/dist/components/AppShell/AppShell.module.js +7 -7
- package/dist/components/AuditLogList/AuditLogList.css +245 -0
- package/dist/components/AuditLogList/AuditLogList.d.ts +70 -0
- package/dist/components/AuditLogList/AuditLogList.js +200 -0
- package/dist/components/AuditLogList/AuditLogList.module.js +28 -0
- package/dist/components/AuditLogList/index.d.ts +2 -0
- package/dist/components/Avatar/Avatar.js +1 -1
- package/dist/components/AvatarGroup/AvatarGroup.js +1 -1
- package/dist/components/BulkActionBar/BulkActionBar.css +111 -0
- package/dist/components/BulkActionBar/BulkActionBar.d.ts +24 -0
- package/dist/components/BulkActionBar/BulkActionBar.js +82 -0
- package/dist/components/BulkActionBar/BulkActionBar.module.js +12 -0
- package/dist/components/BulkActionBar/index.d.ts +2 -0
- package/dist/components/CalendarView/CalendarView.css +525 -0
- package/dist/components/CalendarView/CalendarView.d.ts +43 -0
- package/dist/components/CalendarView/CalendarView.js +378 -0
- package/dist/components/CalendarView/CalendarView.module.js +40 -0
- package/dist/components/CalendarView/calendarMath.d.ts +36 -0
- package/dist/components/CalendarView/calendarMath.js +97 -0
- package/dist/components/Carousel/Carousel.css +146 -0
- package/dist/components/Carousel/Carousel.d.ts +25 -0
- package/dist/components/Carousel/Carousel.js +178 -0
- package/dist/components/Carousel/Carousel.module.js +12 -0
- package/dist/components/Carousel/index.d.ts +2 -0
- package/dist/components/ChatMessage/ChatMessage.js +3 -3
- package/dist/components/Checkbox/Checkbox.js +2 -2
- package/dist/components/CheckboxGroup/CheckboxGroup.js +1 -1
- package/dist/components/CodeBlock/CodeBlock.css +203 -0
- package/dist/components/CodeBlock/CodeBlock.d.ts +35 -0
- package/dist/components/CodeBlock/CodeBlock.js +160 -0
- package/dist/components/CodeBlock/CodeBlock.module.js +25 -0
- package/dist/components/CodeBlock/index.d.ts +2 -0
- package/dist/components/Combobox/Combobox.css +9 -8
- package/dist/components/Combobox/Combobox.d.ts +1 -1
- package/dist/components/Combobox/Combobox.js +1 -1
- package/dist/components/Combobox/Combobox.module.js +4 -4
- package/dist/components/CommentThread/CommentThread.js +2 -2
- package/dist/components/Comparison/Comparison.css +215 -0
- package/dist/components/Comparison/Comparison.d.ts +19 -0
- package/dist/components/Comparison/Comparison.js +122 -0
- package/dist/components/Comparison/Comparison.module.js +24 -0
- package/dist/components/Comparison/compareRows.d.ts +26 -0
- package/dist/components/Comparison/compareRows.js +16 -0
- package/dist/components/Comparison/index.d.ts +3 -0
- package/dist/components/ContractTemplate/ContractTemplate.css +81 -0
- package/dist/components/ContractTemplate/ContractTemplate.d.ts +40 -0
- package/dist/components/ContractTemplate/ContractTemplate.js +70 -0
- package/dist/components/ContractTemplate/ContractTemplate.module.js +14 -0
- package/dist/components/ContractTemplate/index.d.ts +2 -0
- package/dist/components/CoverPage/CoverPage.css +137 -0
- package/dist/components/CoverPage/CoverPage.d.ts +29 -0
- package/dist/components/CoverPage/CoverPage.js +81 -0
- package/dist/components/CoverPage/CoverPage.module.js +15 -0
- package/dist/components/CoverPage/index.d.ts +2 -0
- package/dist/components/DataGrid/DataGrid.css +170 -0
- package/dist/components/DataGrid/DataGrid.d.ts +46 -0
- package/dist/components/DataGrid/DataGrid.js +311 -0
- package/dist/components/DataGrid/DataGrid.module.js +14 -0
- package/dist/components/DataGrid/index.d.ts +2 -0
- package/dist/components/DataTable/DataTable.css +357 -0
- package/dist/components/DataTable/DataTable.d.ts +91 -0
- package/dist/components/DataTable/DataTable.js +337 -0
- package/dist/components/DataTable/DataTable.module.js +29 -0
- package/dist/components/DataTable/index.d.ts +3 -0
- package/dist/components/DataTable/tableData.d.ts +34 -0
- package/dist/components/DataTable/tableData.js +75 -0
- package/dist/components/DateField/DateField.js +1 -0
- package/dist/components/DatePicker/DatePicker.js +2 -0
- package/dist/components/DateRangePicker/DateRangePicker.d.ts +1 -1
- package/dist/components/DateRangePicker/DateRangePicker.js +1 -0
- package/dist/components/DateTime/DateTime.d.ts +1 -1
- package/dist/components/DateTime/DateTime.js +1 -1
- package/dist/components/DiffViewer/DiffViewer.css +219 -0
- package/dist/components/DiffViewer/DiffViewer.d.ts +28 -0
- package/dist/components/DiffViewer/DiffViewer.js +217 -0
- package/dist/components/DiffViewer/DiffViewer.module.js +25 -0
- package/dist/components/DiffViewer/diff.d.ts +16 -0
- package/dist/components/DiffViewer/diff.js +139 -0
- package/dist/components/DiffViewer/index.d.ts +3 -0
- package/dist/components/DocumentToc/DocumentToc.css +86 -0
- package/dist/components/DocumentToc/DocumentToc.d.ts +30 -0
- package/dist/components/DocumentToc/DocumentToc.js +72 -0
- package/dist/components/DocumentToc/DocumentToc.module.js +15 -0
- package/dist/components/EmailField/EmailField.js +1 -1
- package/dist/components/ErrorPage/ErrorPage.js +2 -2
- package/dist/components/ErrorState/ErrorState.js +1 -1
- package/dist/components/FeedbackWidget/FeedbackWidget.js +2 -2
- package/dist/components/Field/Field.css +27 -26
- package/dist/components/Field/Field.module.js +7 -7
- package/dist/components/FilePreview/FilePreview.css +213 -0
- package/dist/components/FilePreview/FilePreview.d.ts +29 -0
- package/dist/components/FilePreview/FilePreview.js +237 -0
- package/dist/components/FilePreview/FilePreview.module.js +25 -0
- package/dist/components/FilePreview/index.d.ts +3 -0
- package/dist/components/FilePreview/previewKind.d.ts +15 -0
- package/dist/components/FilePreview/previewKind.js +103 -0
- package/dist/components/FileUpload/FileUpload.css +38 -26
- package/dist/components/FileUpload/FileUpload.js +1 -1
- package/dist/components/FileUpload/FileUpload.module.js +15 -15
- package/dist/components/FilterBar/FilterBar.css +58 -0
- package/dist/components/FilterBar/FilterBar.d.ts +44 -0
- package/dist/components/FilterBar/FilterBar.js +101 -0
- package/dist/components/FilterBar/FilterBar.module.js +11 -0
- package/dist/components/FilterBar/index.d.ts +2 -0
- package/dist/components/Gantt/Gantt.css +317 -0
- package/dist/components/Gantt/Gantt.d.ts +38 -0
- package/dist/components/Gantt/Gantt.js +324 -0
- package/dist/components/Gantt/Gantt.module.js +30 -0
- package/dist/components/Gantt/ganttMath.d.ts +29 -0
- package/dist/components/Gantt/ganttMath.js +71 -0
- package/dist/components/Image/Image.css +141 -0
- package/dist/components/Image/Image.d.ts +32 -0
- package/dist/components/Image/Image.js +76 -0
- package/dist/components/Image/Image.module.js +11 -0
- package/dist/components/ImageUpload/ImageUpload.js +1 -1
- package/dist/components/InfiniteList/InfiniteList.js +1 -1
- package/dist/components/InlineEdit/InlineEdit.js +1 -1
- package/dist/components/InviteMembers/InviteMembers.d.ts +3 -1
- package/dist/components/InviteMembers/InviteMembers.js +3 -3
- package/dist/components/InvoiceTemplate/InvoiceTemplate.css +81 -0
- package/dist/components/InvoiceTemplate/InvoiceTemplate.d.ts +38 -0
- package/dist/components/InvoiceTemplate/InvoiceTemplate.js +107 -0
- package/dist/components/InvoiceTemplate/InvoiceTemplate.module.js +14 -0
- package/dist/components/InvoiceTemplate/index.d.ts +2 -0
- package/dist/components/JsonViewer/JsonViewer.css +248 -0
- package/dist/components/JsonViewer/JsonViewer.d.ts +22 -0
- package/dist/components/JsonViewer/JsonViewer.js +109 -0
- package/dist/components/JsonViewer/JsonViewer.module.js +21 -0
- package/dist/components/JsonViewer/index.d.ts +3 -0
- package/dist/components/JsonViewer/jsonTree.d.ts +18 -0
- package/dist/components/JsonViewer/jsonTree.js +76 -0
- package/dist/components/Kanban/Kanban.css +225 -0
- package/dist/components/Kanban/Kanban.d.ts +41 -0
- package/dist/components/Kanban/Kanban.js +156 -0
- package/dist/components/Kanban/Kanban.module.js +20 -0
- package/dist/components/Kanban/index.d.ts +3 -0
- package/dist/components/Kanban/moveCards.d.ts +13 -0
- package/dist/components/Kanban/moveCards.js +33 -0
- package/dist/components/LanguageSwitch/LanguageSwitch.js +1 -1
- package/dist/components/Lightbox/Lightbox.js +2 -2
- package/dist/components/ListView/ListView.css +337 -0
- package/dist/components/ListView/ListView.d.ts +44 -0
- package/dist/components/ListView/ListView.js +95 -0
- package/dist/components/ListView/ListView.module.js +19 -0
- package/dist/components/ListView/index.d.ts +3 -0
- package/dist/components/ListView/reorder.d.ts +5 -0
- package/dist/components/ListView/reorder.js +20 -0
- package/dist/components/Markdown/Markdown.js +1 -1
- package/dist/components/Mentions/Mentions.js +1 -1
- package/dist/components/NewPasswordField/NewPasswordField.js +1 -1
- package/dist/components/NotificationBell/NotificationBell.js +2 -2
- package/dist/components/NotificationCenter/NotificationCenter.js +2 -2
- package/dist/components/NumberedClauses/NumberedClauses.css +79 -0
- package/dist/components/NumberedClauses/NumberedClauses.d.ts +31 -0
- package/dist/components/NumberedClauses/NumberedClauses.js +71 -0
- package/dist/components/NumberedClauses/NumberedClauses.module.js +14 -0
- package/dist/components/NumberedClauses/index.d.ts +2 -0
- package/dist/components/OnboardingChecklist/OnboardingChecklist.js +1 -1
- package/dist/components/PasswordField/PasswordField.js +1 -1
- package/dist/components/PersonItem/PersonItem.js +1 -1
- package/dist/components/PivotTable/PivotTable.css +183 -0
- package/dist/components/PivotTable/PivotTable.d.ts +39 -0
- package/dist/components/PivotTable/PivotTable.js +171 -0
- package/dist/components/PivotTable/PivotTable.module.js +16 -0
- package/dist/components/PivotTable/index.d.ts +3 -0
- package/dist/components/PivotTable/pivot.d.ts +38 -0
- package/dist/components/PivotTable/pivot.js +122 -0
- package/dist/components/PricingTable/PricingTable.js +2 -2
- package/dist/components/PromptDialog/PromptDialog.js +1 -1
- package/dist/components/QrCode/QrCode.css +50 -0
- package/dist/components/QrCode/QrCode.d.ts +21 -0
- package/dist/components/QrCode/QrCode.js +55 -0
- package/dist/components/QrCode/QrCode.module.js +9 -0
- package/dist/components/QrCode/qr.d.ts +22 -0
- package/dist/components/QrCode/qr.js +669 -0
- package/dist/components/QuoteTemplate/QuoteTemplate.css +81 -0
- package/dist/components/QuoteTemplate/QuoteTemplate.d.ts +37 -0
- package/dist/components/QuoteTemplate/QuoteTemplate.js +120 -0
- package/dist/components/QuoteTemplate/QuoteTemplate.module.js +14 -0
- package/dist/components/QuoteTemplate/index.d.ts +2 -0
- package/dist/components/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/Rating/Rating.js +1 -1
- package/dist/components/ReportTemplate/ReportTemplate.css +81 -0
- package/dist/components/ReportTemplate/ReportTemplate.d.ts +41 -0
- package/dist/components/ReportTemplate/ReportTemplate.js +79 -0
- package/dist/components/ReportTemplate/ReportTemplate.module.js +14 -0
- package/dist/components/ReportTemplate/index.d.ts +2 -0
- package/dist/components/RoleMatrix/RoleMatrix.js +1 -1
- package/dist/components/SearchField/SearchField.js +1 -1
- package/dist/components/SearchResults/SearchResults.js +1 -1
- package/dist/components/SideNav/SideNav.css +99 -41
- package/dist/components/SideNav/SideNav.js +4 -2
- package/dist/components/SideNav/SideNav.module.js +12 -12
- package/dist/components/SignatureBlock/SignatureBlock.css +109 -0
- package/dist/components/SignatureBlock/SignatureBlock.d.ts +35 -0
- package/dist/components/SignatureBlock/SignatureBlock.js +80 -0
- package/dist/components/SignatureBlock/SignatureBlock.module.js +20 -0
- package/dist/components/SignaturePad/SignaturePad.js +1 -1
- package/dist/components/SortMenu/SortMenu.css +6 -0
- package/dist/components/SortMenu/SortMenu.d.ts +31 -0
- package/dist/components/SortMenu/SortMenu.js +74 -0
- package/dist/components/SortMenu/SortMenu.module.js +4 -0
- package/dist/components/SplitButton/SplitButton.js +1 -1
- package/dist/components/Stat/Stat.js +1 -1
- package/dist/components/Steps/Steps.js +1 -1
- package/dist/components/TextArea/TextArea.js +1 -1
- package/dist/components/ThemeSwitch/ThemeSwitch.js +1 -1
- package/dist/components/TimeField/TimeField.js +1 -0
- 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/Timeline/Timeline.css +187 -0
- package/dist/components/Timeline/Timeline.d.ts +48 -0
- package/dist/components/Timeline/Timeline.js +72 -0
- package/dist/components/Timeline/Timeline.module.js +17 -0
- package/dist/components/Timeline/index.d.ts +2 -0
- package/dist/components/ToastQueue/ToastQueue.js +2 -2
- package/dist/components/Tour/Tour.css +26 -0
- package/dist/components/Tour/Tour.js +9 -0
- package/dist/components/Tour/Tour.module.js +4 -0
- package/dist/components/TransferList/TransferList.css +13 -13
- package/dist/components/TransferList/TransferList.js +1 -1
- package/dist/components/TransferList/TransferList.module.js +7 -7
- package/dist/components/TrashView/TrashView.js +2 -2
- package/dist/components/TreeTable/TreeTable.css +122 -0
- package/dist/components/TreeTable/TreeTable.d.ts +38 -0
- package/dist/components/TreeTable/TreeTable.js +226 -0
- package/dist/components/TreeTable/TreeTable.module.js +12 -0
- package/dist/components/TreeTable/index.d.ts +2 -0
- package/dist/components/TreeView/TreeView.css +80 -28
- package/dist/components/TreeView/TreeView.js +19 -24
- package/dist/components/TreeView/TreeView.module.js +11 -11
- package/dist/components/TurnstileField/TurnstileField.js +1 -1
- package/dist/components/UpdatePrompt/UpdatePrompt.js +1 -1
- package/dist/components/UploadQueue/UploadQueue.js +2 -2
- package/dist/components/VirtualList/VirtualList.css +83 -0
- package/dist/components/VirtualList/VirtualList.d.ts +38 -0
- package/dist/components/VirtualList/VirtualList.js +166 -0
- package/dist/components/VirtualList/VirtualList.module.js +11 -0
- package/dist/components/VirtualList/index.d.ts +3 -0
- package/dist/components/VirtualList/offsets.d.ts +15 -0
- package/dist/components/VirtualList/offsets.js +39 -0
- package/dist/components/WhatsNew/WhatsNew.css +31 -27
- package/dist/components/WhatsNew/WhatsNew.js +2 -2
- package/dist/components/WhatsNew/WhatsNew.module.js +22 -22
- package/dist/components/Wizard/Wizard.js +1 -1
- package/dist/components/WorkingHoursEditor/WorkingHoursEditor.js +3 -2
- package/dist/components/_document/Parties.css +36 -0
- package/dist/components/_document/Parties.js +36 -0
- package/dist/components/_document/Parties.module.js +10 -0
- package/dist/components/_document/lineTable.css +8 -0
- package/dist/components/_document/lineTable.js +71 -0
- package/dist/components/_document/lineTable.module.js +4 -0
- package/dist/components/_internal/listbox/SelectShell.d.ts +3 -1
- package/dist/components/_internal/listbox/SelectShell.js +3 -2
- package/dist/components/_internal/nav/NavBadge.js +2 -1
- package/dist/components/_internal/nav/nav.css +19 -8
- package/dist/components/_internal/nav/nav.module.js +1 -1
- package/dist/components/_internal/overlay/OverlayFrame.js +1 -1
- package/dist/components/_internal/tree/openBranchKey.js +23 -0
- package/dist/csp/csp.d.ts +14 -2
- package/dist/csp/csp.js +17 -3
- package/dist/csp/index.d.ts +2 -2
- package/dist/csp/index.js +1 -1
- package/dist/document/index.d.ts +15 -1
- package/dist/document/index.js +10 -2
- package/dist/editor/CodeEditor/CodeEditor.js +2 -2
- package/dist/editor/CommentComposer/CommentComposer.css +82 -0
- package/dist/editor/CommentComposer/CommentComposer.d.ts +54 -0
- package/dist/editor/CommentComposer/CommentComposer.js +205 -0
- package/dist/editor/CommentComposer/CommentComposer.module.js +16 -0
- package/dist/editor/CommentComposer/index.d.ts +2 -0
- package/dist/editor/JsonEditor/JsonEditor.js +1 -1
- package/dist/editor/MarkdownEditor/MarkdownEditor.js +2 -2
- package/dist/editor/RichTextEditor/RichTextEditor.css +177 -0
- package/dist/editor/RichTextEditor/RichTextEditor.d.ts +31 -0
- package/dist/editor/RichTextEditor/RichTextEditor.js +361 -0
- package/dist/editor/RichTextEditor/RichTextEditor.module.js +10 -0
- package/dist/editor/RichTextEditor/index.d.ts +3 -0
- package/dist/editor/RichTextEditor/sanitizeRichText.d.ts +19 -0
- package/dist/editor/RichTextEditor/sanitizeRichText.js +183 -0
- package/dist/editor/_shared/FormatIcons.js +18 -1
- package/dist/editor/index.d.ts +6 -1
- package/dist/editor/index.js +4 -1
- package/dist/foundation.css +10 -0
- package/dist/icons/generated/index.js +11 -11
- package/dist/icons/index.js +11 -11
- package/dist/id/AccountAuditLog/AccountAuditLog.css +9 -0
- package/dist/id/AccountAuditLog/AccountAuditLog.d.ts +38 -0
- package/dist/id/AccountAuditLog/AccountAuditLog.js +156 -0
- package/dist/id/AccountAuditLog/AccountAuditLog.module.js +4 -0
- package/dist/id/AccountAuditLog/index.d.ts +2 -0
- package/dist/id/AccountMenu/AccountMenu.css +128 -44
- package/dist/id/AccountMenu/AccountMenu.d.ts +37 -9
- package/dist/id/AccountMenu/AccountMenu.js +139 -66
- package/dist/id/AccountMenu/AccountMenu.module.js +16 -9
- package/dist/id/AccountMenu/index.d.ts +2 -2
- package/dist/id/ApiKeyList/ApiKeyList.css +75 -0
- package/dist/id/ApiKeyList/ApiKeyList.d.ts +41 -0
- package/dist/id/ApiKeyList/ApiKeyList.js +131 -0
- package/dist/id/ApiKeyList/ApiKeyList.module.js +14 -0
- package/dist/id/ApiKeyList/index.d.ts +2 -0
- package/dist/id/AppSwitcher/AppSwitcher.css +153 -31
- package/dist/id/AppSwitcher/AppSwitcher.d.ts +31 -6
- package/dist/id/AppSwitcher/AppSwitcher.js +91 -38
- package/dist/id/AppSwitcher/AppSwitcher.module.js +12 -6
- package/dist/id/AppSwitcher/index.d.ts +2 -2
- package/dist/id/ConnectedApps/ConnectedApps.css +16 -0
- package/dist/id/ConnectedApps/ConnectedApps.d.ts +32 -0
- package/dist/id/ConnectedApps/ConnectedApps.js +80 -0
- package/dist/id/ConnectedApps/ConnectedApps.module.js +7 -0
- package/dist/id/ConnectedApps/index.d.ts +2 -0
- package/dist/id/ConsentScreen/ConsentScreen.css +196 -0
- package/dist/id/ConsentScreen/ConsentScreen.d.ts +43 -0
- package/dist/id/ConsentScreen/ConsentScreen.js +181 -0
- package/dist/id/ConsentScreen/ConsentScreen.module.js +26 -0
- package/dist/id/CookieConsent/CookieConsent.css +128 -0
- package/dist/id/CookieConsent/CookieConsent.d.ts +32 -0
- package/dist/id/CookieConsent/CookieConsent.js +120 -0
- package/dist/id/CookieConsent/CookieConsent.module.js +16 -0
- package/dist/id/DeviceList/DeviceList.d.ts +31 -0
- package/dist/id/DeviceList/DeviceList.js +81 -0
- package/dist/id/DeviceList/index.d.ts +2 -0
- package/dist/id/OrgInvitation/OrgInvitation.css +87 -0
- package/dist/id/OrgInvitation/OrgInvitation.d.ts +31 -0
- package/dist/id/OrgInvitation/OrgInvitation.js +130 -0
- package/dist/id/OrgInvitation/OrgInvitation.module.js +14 -0
- package/dist/id/OrgSwitcher/OrgSwitcher.css +129 -17
- package/dist/id/OrgSwitcher/OrgSwitcher.d.ts +30 -5
- package/dist/id/OrgSwitcher/OrgSwitcher.js +112 -76
- package/dist/id/OrgSwitcher/OrgSwitcher.module.js +11 -7
- package/dist/id/OrgSwitcher/index.d.ts +2 -2
- package/dist/id/PasskeyButton/PasskeyButton.css +34 -0
- package/dist/id/PasskeyButton/PasskeyButton.d.ts +25 -0
- package/dist/id/PasskeyButton/PasskeyButton.js +66 -0
- package/dist/id/PasskeyButton/PasskeyButton.module.js +7 -0
- package/dist/id/PermissionGate/PermissionGate.css +25 -14
- package/dist/id/PermissionGate/PermissionGate.d.ts +3 -1
- package/dist/id/PermissionGate/PermissionGate.js +15 -8
- package/dist/id/PermissionGate/PermissionGate.module.js +6 -5
- package/dist/id/ProfileCard/ProfileCard.css +119 -0
- package/dist/id/ProfileCard/ProfileCard.d.ts +27 -0
- package/dist/id/ProfileCard/ProfileCard.js +111 -0
- package/dist/id/ProfileCard/ProfileCard.module.js +19 -0
- package/dist/id/ProfileCard/index.d.ts +2 -0
- package/dist/id/ReauthDialog/ReauthDialog.css +41 -0
- package/dist/id/ReauthDialog/ReauthDialog.d.ts +34 -0
- package/dist/id/ReauthDialog/ReauthDialog.js +162 -0
- package/dist/id/ReauthDialog/ReauthDialog.module.js +10 -0
- package/dist/id/ReauthDialog/index.d.ts +2 -0
- package/dist/id/RecoveryCodes/RecoveryCodes.css +85 -0
- package/dist/id/RecoveryCodes/RecoveryCodes.d.ts +25 -0
- package/dist/id/RecoveryCodes/RecoveryCodes.js +107 -0
- package/dist/id/RecoveryCodes/RecoveryCodes.module.js +12 -0
- package/dist/id/SecurityCheckup/SecurityCheckup.css +155 -0
- package/dist/id/SecurityCheckup/SecurityCheckup.d.ts +28 -0
- package/dist/id/SecurityCheckup/SecurityCheckup.js +107 -0
- package/dist/id/SecurityCheckup/SecurityCheckup.module.js +19 -0
- package/dist/id/SecurityCheckup/index.d.ts +2 -0
- package/dist/id/SessionList/SessionList.d.ts +37 -0
- package/dist/id/SessionList/SessionList.js +81 -0
- package/dist/id/SessionList/index.d.ts +2 -0
- package/dist/id/SignInButton/SignInButton.css +179 -0
- package/dist/id/SignInButton/SignInButton.d.ts +12 -3
- package/dist/id/SignInButton/SignInButton.js +37 -18
- package/dist/id/SignInButton/SignInButton.module.js +10 -0
- package/dist/id/SignInMethods/SignInMethods.css +24 -0
- package/dist/id/SignInMethods/SignInMethods.d.ts +33 -0
- package/dist/id/SignInMethods/SignInMethods.js +80 -0
- package/dist/id/SignInMethods/SignInMethods.module.js +8 -0
- package/dist/id/SignInMethods/index.d.ts +2 -0
- package/dist/id/TwoFactorSetup/TwoFactorSetup.css +123 -0
- package/dist/id/TwoFactorSetup/TwoFactorSetup.d.ts +27 -0
- package/dist/id/TwoFactorSetup/TwoFactorSetup.js +162 -0
- package/dist/id/TwoFactorSetup/TwoFactorSetup.module.js +18 -0
- package/dist/id/TwoFactorSetup/index.d.ts +2 -0
- package/dist/id/VerifyEmailBanner/VerifyEmailBanner.css +14 -0
- package/dist/id/VerifyEmailBanner/VerifyEmailBanner.d.ts +22 -0
- package/dist/id/VerifyEmailBanner/VerifyEmailBanner.js +68 -0
- package/dist/id/VerifyEmailBanner/VerifyEmailBanner.module.js +7 -0
- package/dist/id/_internal/SecurityList/SecurityList.css +179 -0
- package/dist/id/_internal/SecurityList/SecurityList.js +92 -0
- package/dist/id/_internal/SecurityList/SecurityList.module.js +24 -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 +30 -4
- package/dist/id/index.js +20 -4
- package/dist/index.d.ts +68 -14
- package/dist/index.js +54 -18
- package/dist/maps/LocationPicker/LocationPicker.js +2 -2
- package/dist/maps/MapView/MapView.css +31 -31
- package/dist/maps/MapView/MapView.js +2 -2
- package/dist/maps/MapView/MapView.module.js +18 -18
- package/dist/maps/StoreLocator/StoreLocator.js +1 -1
- package/dist/maps/TurkeyMap/TurkeyMap.js +1 -1
- package/dist/maps/index.js +1 -1
- package/dist/media/AudioPlayer/AudioPlayer.css +21 -16
- package/dist/media/AudioPlayer/AudioPlayer.js +6 -6
- package/dist/media/AudioPlayer/AudioPlayer.module.js +11 -11
- package/dist/media/Embed/Embed.css +93 -0
- package/dist/media/Embed/Embed.d.ts +29 -0
- package/dist/media/Embed/Embed.js +93 -0
- package/dist/media/Embed/Embed.module.js +12 -0
- package/dist/media/Embed/embedUrl.d.ts +27 -0
- package/dist/media/Embed/embedUrl.js +96 -0
- package/dist/media/ImageCompare/ImageCompare.css +199 -0
- package/dist/media/ImageCompare/ImageCompare.d.ts +30 -0
- package/dist/media/ImageCompare/ImageCompare.js +106 -0
- package/dist/media/ImageCompare/ImageCompare.module.js +15 -0
- package/dist/media/ImageCropper/ImageCropper.css +139 -0
- package/dist/media/ImageCropper/ImageCropper.d.ts +27 -0
- package/dist/media/ImageCropper/ImageCropper.js +239 -0
- package/dist/media/ImageCropper/ImageCropper.module.js +14 -0
- package/dist/media/ImageCropper/cropGeometry.d.ts +41 -0
- package/dist/media/ImageCropper/cropGeometry.js +79 -0
- package/dist/media/MediaCard/MediaCard.js +2 -2
- package/dist/media/MockupFrame/MockupFrame.css +196 -0
- package/dist/media/MockupFrame/MockupFrame.d.ts +24 -0
- package/dist/media/MockupFrame/MockupFrame.js +62 -0
- package/dist/media/MockupFrame/MockupFrame.module.js +14 -0
- package/dist/media/MockupFrame/index.d.ts +2 -0
- package/dist/media/PdfViewer/PdfViewer.css +144 -0
- package/dist/media/PdfViewer/PdfViewer.d.ts +28 -0
- package/dist/media/PdfViewer/PdfViewer.js +122 -0
- package/dist/media/PdfViewer/PdfViewer.module.js +18 -0
- package/dist/media/VideoPlayer/VideoPlayer.js +1 -1
- package/dist/media/VideoThumbnail/VideoThumbnail.js +1 -1
- package/dist/media/ZoomableImage/ZoomableImage.css +122 -0
- package/dist/media/ZoomableImage/ZoomableImage.d.ts +32 -0
- package/dist/media/ZoomableImage/ZoomableImage.js +278 -0
- package/dist/media/ZoomableImage/ZoomableImage.module.js +12 -0
- package/dist/media/_internal/transport/MediaTransport.css +19 -13
- package/dist/media/_internal/transport/MediaTransport.js +5 -3
- package/dist/media/_internal/transport/MediaTransport.module.js +10 -9
- package/dist/media/_internal/url.js +4 -2
- package/dist/media/index.d.ts +10 -1
- package/dist/media/index.js +9 -1
- package/dist/messages/messages.d.ts +748 -0
- package/dist/messages/messages.js +1498 -2
- package/dist/provider/UIProvider.d.ts +1 -1
- package/dist/site/ArticleLayout/ArticleLayout.css +137 -0
- package/dist/site/ArticleLayout/ArticleLayout.d.ts +39 -0
- package/dist/site/ArticleLayout/ArticleLayout.js +92 -0
- package/dist/site/ArticleLayout/ArticleLayout.module.js +18 -0
- package/dist/site/ArticleLayout/index.d.ts +2 -0
- package/dist/site/AuroraMesh/AuroraMesh.css +97 -0
- package/dist/site/AuroraMesh/AuroraMesh.d.ts +17 -0
- package/dist/site/AuroraMesh/AuroraMesh.js +38 -0
- package/dist/site/AuroraMesh/AuroraMesh.module.js +11 -0
- package/dist/site/AuroraMesh/index.d.ts +2 -0
- package/dist/site/AuthorBox/AuthorBox.css +79 -0
- package/dist/site/AuthorBox/AuthorBox.d.ts +22 -0
- package/dist/site/AuthorBox/AuthorBox.js +56 -0
- package/dist/site/AuthorBox/AuthorBox.module.js +13 -0
- package/dist/site/AuthorBox/index.d.ts +2 -0
- package/dist/site/AwardsStrip/AwardsStrip.css +114 -0
- package/dist/site/AwardsStrip/AwardsStrip.d.ts +27 -0
- package/dist/site/AwardsStrip/AwardsStrip.js +62 -0
- package/dist/site/AwardsStrip/AwardsStrip.module.js +15 -0
- package/dist/site/AwardsStrip/index.d.ts +2 -0
- package/dist/site/BentoGrid/BentoGrid.css +187 -0
- package/dist/site/BentoGrid/BentoGrid.d.ts +34 -0
- package/dist/site/BentoGrid/BentoGrid.js +63 -0
- package/dist/site/BentoGrid/BentoGrid.module.js +15 -0
- package/dist/site/BentoGrid/index.d.ts +2 -0
- package/dist/site/BlogCard/BlogCard.css +136 -0
- package/dist/site/BlogCard/BlogCard.d.ts +24 -0
- package/dist/site/BlogCard/BlogCard.js +54 -0
- package/dist/site/BlogCard/BlogCard.module.js +14 -0
- package/dist/site/BlogCard/index.d.ts +2 -0
- package/dist/site/CareerList/CareerList.css +156 -0
- package/dist/site/CareerList/CareerList.d.ts +31 -0
- package/dist/site/CareerList/CareerList.js +96 -0
- package/dist/site/CareerList/CareerList.module.js +20 -0
- package/dist/site/CareerList/index.d.ts +2 -0
- package/dist/site/CaseStudyCard/CaseStudyCard.css +178 -0
- package/dist/site/CaseStudyCard/CaseStudyCard.d.ts +28 -0
- package/dist/site/CaseStudyCard/CaseStudyCard.js +71 -0
- package/dist/site/CaseStudyCard/CaseStudyCard.module.js +21 -0
- package/dist/site/CaseStudyCard/index.d.ts +2 -0
- package/dist/site/ComparisonTable/ComparisonTable.css +152 -0
- package/dist/site/ComparisonTable/ComparisonTable.d.ts +33 -0
- package/dist/site/ComparisonTable/ComparisonTable.js +83 -0
- package/dist/site/ComparisonTable/ComparisonTable.module.js +17 -0
- package/dist/site/ComparisonTable/index.d.ts +2 -0
- package/dist/site/ContactForm/ContactForm.css +87 -0
- package/dist/site/ContactForm/ContactForm.d.ts +32 -0
- package/dist/site/ContactForm/ContactForm.js +164 -0
- package/dist/site/ContactForm/ContactForm.module.js +17 -0
- package/dist/site/ContactForm/index.d.ts +2 -0
- package/dist/site/CountUp/CountUp.css +17 -0
- package/dist/site/CountUp/CountUp.d.ts +21 -0
- package/dist/site/CountUp/CountUp.js +65 -0
- package/dist/site/CountUp/CountUp.module.js +7 -0
- package/dist/site/CtaBand/CtaBand.css +108 -0
- package/dist/site/CtaBand/CtaBand.d.ts +26 -0
- package/dist/site/CtaBand/CtaBand.js +52 -0
- package/dist/site/CtaBand/CtaBand.module.js +13 -0
- package/dist/site/CtaBand/index.d.ts +2 -0
- package/dist/site/EventCard/EventCard.css +155 -0
- package/dist/site/EventCard/EventCard.d.ts +31 -0
- package/dist/site/EventCard/EventCard.js +106 -0
- package/dist/site/EventCard/EventCard.module.js +20 -0
- package/dist/site/EventCard/index.d.ts +2 -0
- package/dist/site/Faq/Faq.css +21 -0
- package/dist/site/Faq/Faq.d.ts +27 -0
- package/dist/site/Faq/Faq.js +45 -0
- package/dist/site/Faq/Faq.module.js +7 -0
- package/dist/site/Faq/index.d.ts +2 -0
- package/dist/site/FeatureGrid/FeatureGrid.css +125 -0
- package/dist/site/FeatureGrid/FeatureGrid.d.ts +28 -0
- package/dist/site/FeatureGrid/FeatureGrid.js +52 -0
- package/dist/site/FeatureGrid/FeatureGrid.module.js +12 -0
- package/dist/site/FeatureGrid/index.d.ts +2 -0
- package/dist/site/FeatureSplit/FeatureSplit.css +95 -0
- package/dist/site/FeatureSplit/FeatureSplit.d.ts +27 -0
- package/dist/site/FeatureSplit/FeatureSplit.js +67 -0
- package/dist/site/FeatureSplit/FeatureSplit.module.js +16 -0
- package/dist/site/FeatureSplit/index.d.ts +2 -0
- package/dist/site/Gallery/Gallery.css +80 -0
- package/dist/site/Gallery/Gallery.d.ts +16 -0
- package/dist/site/Gallery/Gallery.js +55 -0
- package/dist/site/Gallery/Gallery.module.js +10 -0
- package/dist/site/Gallery/index.d.ts +2 -0
- package/dist/site/Hero/Hero.css +147 -0
- package/dist/site/Hero/Hero.d.ts +38 -0
- package/dist/site/Hero/Hero.js +66 -0
- package/dist/site/Hero/Hero.module.js +15 -0
- package/dist/site/Hero/index.d.ts +2 -0
- package/dist/site/JsonLd/JsonLd.d.ts +24 -0
- package/dist/site/JsonLd/JsonLd.js +29 -0
- package/dist/site/LogoCloud/LogoCloud.css +74 -0
- package/dist/site/LogoCloud/LogoCloud.d.ts +24 -0
- package/dist/site/LogoCloud/LogoCloud.js +42 -0
- package/dist/site/LogoCloud/LogoCloud.module.js +10 -0
- package/dist/site/LogoCloud/index.d.ts +2 -0
- package/dist/site/Marquee/Marquee.css +101 -0
- package/dist/site/Marquee/Marquee.d.ts +22 -0
- package/dist/site/Marquee/Marquee.js +60 -0
- package/dist/site/Marquee/Marquee.module.js +12 -0
- package/dist/site/Marquee/index.d.ts +2 -0
- package/dist/site/NewsletterForm/NewsletterForm.css +76 -0
- package/dist/site/NewsletterForm/NewsletterForm.d.ts +24 -0
- package/dist/site/NewsletterForm/NewsletterForm.js +98 -0
- package/dist/site/NewsletterForm/NewsletterForm.module.js +15 -0
- package/dist/site/NewsletterForm/index.d.ts +2 -0
- package/dist/site/OgImage/OgImage.css +78 -0
- package/dist/site/OgImage/OgImage.d.ts +26 -0
- package/dist/site/OgImage/OgImage.js +110 -0
- package/dist/site/OgImage/OgImage.module.js +12 -0
- package/dist/site/OgImage/index.d.ts +2 -0
- package/dist/site/PortfolioGrid/PortfolioGrid.css +117 -0
- package/dist/site/PortfolioGrid/PortfolioGrid.d.ts +27 -0
- package/dist/site/PortfolioGrid/PortfolioGrid.js +90 -0
- package/dist/site/PortfolioGrid/PortfolioGrid.module.js +15 -0
- package/dist/site/PortfolioGrid/index.d.ts +2 -0
- package/dist/site/PressMentions/PressMentions.css +115 -0
- package/dist/site/PressMentions/PressMentions.d.ts +25 -0
- package/dist/site/PressMentions/PressMentions.js +67 -0
- package/dist/site/PressMentions/PressMentions.module.js +15 -0
- package/dist/site/PressMentions/index.d.ts +2 -0
- package/dist/site/PricingSection/PricingSection.css +64 -0
- package/dist/site/PricingSection/PricingSection.d.ts +24 -0
- package/dist/site/PricingSection/PricingSection.js +51 -0
- package/dist/site/PricingSection/PricingSection.module.js +10 -0
- package/dist/site/PricingSection/index.d.ts +2 -0
- package/dist/site/ProcessSteps/ProcessSteps.css +102 -0
- package/dist/site/ProcessSteps/ProcessSteps.d.ts +22 -0
- package/dist/site/ProcessSteps/ProcessSteps.js +49 -0
- package/dist/site/ProcessSteps/ProcessSteps.module.js +13 -0
- package/dist/site/ProcessSteps/index.d.ts +2 -0
- package/dist/site/RelatedPosts/RelatedPosts.css +15 -0
- package/dist/site/RelatedPosts/RelatedPosts.d.ts +14 -0
- package/dist/site/RelatedPosts/RelatedPosts.js +32 -0
- package/dist/site/RelatedPosts/RelatedPosts.module.js +7 -0
- package/dist/site/RelatedPosts/index.d.ts +2 -0
- package/dist/site/Reveal/Reveal.css +39 -0
- package/dist/site/Reveal/Reveal.d.ts +18 -0
- package/dist/site/Reveal/Reveal.js +42 -0
- package/dist/site/Reveal/Reveal.module.js +4 -0
- package/dist/site/Reveal/index.d.ts +2 -0
- package/dist/site/ScrollProgress/ScrollProgress.css +32 -0
- package/dist/site/ScrollProgress/ScrollProgress.d.ts +16 -0
- package/dist/site/ScrollProgress/ScrollProgress.js +54 -0
- package/dist/site/ScrollProgress/ScrollProgress.module.js +7 -0
- package/dist/site/ServiceCard/ServiceCard.css +125 -0
- package/dist/site/ServiceCard/ServiceCard.d.ts +25 -0
- package/dist/site/ServiceCard/ServiceCard.js +65 -0
- package/dist/site/ServiceCard/ServiceCard.module.js +16 -0
- package/dist/site/ServiceCard/index.d.ts +2 -0
- package/dist/site/ShareBar/ShareBar.css +97 -0
- package/dist/site/ShareBar/ShareBar.d.ts +26 -0
- package/dist/site/ShareBar/ShareBar.js +111 -0
- package/dist/site/ShareBar/ShareBar.module.js +11 -0
- package/dist/site/Showreel/Showreel.css +107 -0
- package/dist/site/Showreel/Showreel.d.ts +28 -0
- package/dist/site/Showreel/Showreel.js +108 -0
- package/dist/site/Showreel/Showreel.module.js +14 -0
- package/dist/site/Showreel/index.d.ts +2 -0
- package/dist/site/SocialLinks/SocialLinks.css +95 -0
- package/dist/site/SocialLinks/SocialLinks.d.ts +33 -0
- package/dist/site/SocialLinks/SocialLinks.js +97 -0
- package/dist/site/SocialLinks/SocialLinks.module.js +9 -0
- package/dist/site/SocialLinks/index.d.ts +2 -0
- package/dist/site/StatsBand/StatsBand.css +58 -0
- package/dist/site/StatsBand/StatsBand.d.ts +26 -0
- package/dist/site/StatsBand/StatsBand.js +44 -0
- package/dist/site/StatsBand/StatsBand.module.js +10 -0
- package/dist/site/StatsBand/index.d.ts +2 -0
- package/dist/site/StickyCta/StickyCta.js +1 -1
- package/dist/site/TeamGrid/TeamGrid.css +60 -0
- package/dist/site/TeamGrid/TeamGrid.d.ts +22 -0
- package/dist/site/TeamGrid/TeamGrid.js +65 -0
- package/dist/site/TeamGrid/TeamGrid.module.js +13 -0
- package/dist/site/TeamGrid/index.d.ts +2 -0
- package/dist/site/Testimonial/Testimonial.css +100 -0
- package/dist/site/Testimonial/Testimonial.d.ts +33 -0
- package/dist/site/Testimonial/Testimonial.js +61 -0
- package/dist/site/Testimonial/Testimonial.module.js +14 -0
- package/dist/site/Testimonial/index.d.ts +2 -0
- package/dist/site/_internal/Honeypot.css +10 -0
- package/dist/site/_internal/Honeypot.js +28 -0
- package/dist/site/_internal/Honeypot.module.js +4 -0
- package/dist/site/_internal/PostMeta.css +53 -0
- package/dist/site/_internal/PostMeta.d.ts +6 -0
- package/dist/site/_internal/PostMeta.js +42 -0
- package/dist/site/_internal/PostMeta.module.js +10 -0
- package/dist/site/_internal/SiteSection.css +116 -0
- package/dist/site/_internal/SiteSection.d.ts +15 -0
- package/dist/site/_internal/SiteSection.js +60 -0
- package/dist/site/_internal/SiteSection.module.js +13 -0
- package/dist/site/index.d.ts +71 -1
- package/dist/site/index.js +38 -1
- package/dist/styles.css +38210 -20635
- package/dist/text/text.d.ts +5 -1
- package/dist/text/text.js +8 -2
- package/package.json +2 -1
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
// src/editor/RichTextEditor/sanitizeRichText.ts
|
|
2
|
+
/**
|
|
3
|
+
* Zengin metin için izin listeli HTML temizleyici (DOM gerektirmez; sunucuda ve tarayıcıda aynı
|
|
4
|
+
* sonucu verir). Girdi hiçbir zaman olduğu gibi aktarılmaz: etiketler tek tek okunur, yalnız izinli
|
|
5
|
+
* olanlar yeniden yazılır, metin kaçışlanır, açık kalan etiketler kapatılır.
|
|
6
|
+
*
|
|
7
|
+
* İzinli: p, br, strong, em, u, s, code, h2, h3, ul, ol, li, blockquote, a[href]. Eş anlamlılar
|
|
8
|
+
* dönüştürülür (b → strong, i → em, strike/del → s, h1 → h2, h4–h6 → h3, div → p). Bağlantıda
|
|
9
|
+
* yalnız http, https, mailto, tel ve göreli adres; dış bağlantıya `rel="noopener noreferrer nofollow"`.
|
|
10
|
+
* script, style, iframe, object, template, svg, math ve benzerlerinin içeriği bütünüyle atılır.
|
|
11
|
+
*/
|
|
12
|
+
const ALLOWED = /* @__PURE__ */ new Set([
|
|
13
|
+
"p",
|
|
14
|
+
"br",
|
|
15
|
+
"strong",
|
|
16
|
+
"em",
|
|
17
|
+
"u",
|
|
18
|
+
"s",
|
|
19
|
+
"code",
|
|
20
|
+
"h2",
|
|
21
|
+
"h3",
|
|
22
|
+
"ul",
|
|
23
|
+
"ol",
|
|
24
|
+
"li",
|
|
25
|
+
"blockquote",
|
|
26
|
+
"a"
|
|
27
|
+
]);
|
|
28
|
+
const ALIAS = {
|
|
29
|
+
b: "strong",
|
|
30
|
+
i: "em",
|
|
31
|
+
strike: "s",
|
|
32
|
+
del: "s",
|
|
33
|
+
ins: "u",
|
|
34
|
+
h1: "h2",
|
|
35
|
+
h4: "h3",
|
|
36
|
+
h5: "h3",
|
|
37
|
+
h6: "h3",
|
|
38
|
+
div: "p"
|
|
39
|
+
};
|
|
40
|
+
/** İçeriğiyle birlikte atılan etiketler. */
|
|
41
|
+
const DROP_WITH_CONTENT = /* @__PURE__ */ new Set([
|
|
42
|
+
"script",
|
|
43
|
+
"style",
|
|
44
|
+
"iframe",
|
|
45
|
+
"object",
|
|
46
|
+
"embed",
|
|
47
|
+
"template",
|
|
48
|
+
"svg",
|
|
49
|
+
"math",
|
|
50
|
+
"noscript",
|
|
51
|
+
"textarea",
|
|
52
|
+
"select",
|
|
53
|
+
"title",
|
|
54
|
+
"head",
|
|
55
|
+
"xmp",
|
|
56
|
+
"noembed",
|
|
57
|
+
"noframes"
|
|
58
|
+
]);
|
|
59
|
+
const VOID = /* @__PURE__ */ new Set(["br"]);
|
|
60
|
+
const ESCAPES = {
|
|
61
|
+
"&": "&",
|
|
62
|
+
"<": "<",
|
|
63
|
+
">": ">",
|
|
64
|
+
"\"": """,
|
|
65
|
+
"'": "'"
|
|
66
|
+
};
|
|
67
|
+
function escapeHtml(text) {
|
|
68
|
+
return text.replace(/[&<>"']/g, (c) => ESCAPES[c] ?? c);
|
|
69
|
+
}
|
|
70
|
+
const NAMED = {
|
|
71
|
+
amp: "&",
|
|
72
|
+
lt: "<",
|
|
73
|
+
gt: ">",
|
|
74
|
+
quot: "\"",
|
|
75
|
+
apos: "'",
|
|
76
|
+
nbsp: "\xA0"
|
|
77
|
+
};
|
|
78
|
+
/** Karakter başvurularını çözer (metin önce çözülür, sonra yeniden kaçışlanır). */
|
|
79
|
+
function decodeEntities(text) {
|
|
80
|
+
return text.replace(/&(#x[\da-f]+|#\d+|[a-z]+);/gi, (m, body) => {
|
|
81
|
+
if (body[0] === "#") {
|
|
82
|
+
const code = body[1] === "x" || body[1] === "X" ? Number.parseInt(body.slice(2), 16) : Number.parseInt(body.slice(1), 10);
|
|
83
|
+
return Number.isFinite(code) && code > 0 && code <= 1114111 ? String.fromCodePoint(code) : "";
|
|
84
|
+
}
|
|
85
|
+
return NAMED[body.toLowerCase()] ?? m;
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
/** Denetim karakteri, boşluk ya da sıfır genişlikli karakter. */
|
|
89
|
+
function isInvisible(code) {
|
|
90
|
+
return code <= 32 || code >= 127 && code <= 159 || code >= 8203 && code <= 8205 || code === 65279;
|
|
91
|
+
}
|
|
92
|
+
/** Bağlantı adresi güvenliyse temizlenmiş hâli, değilse `null`. */
|
|
93
|
+
function safeHref(raw) {
|
|
94
|
+
const href = Array.from(decodeEntities(raw)).filter((ch) => !isInvisible(ch.codePointAt(0) ?? 0)).join("");
|
|
95
|
+
if (!href) return null;
|
|
96
|
+
const scheme = /^([a-z][a-z0-9+.-]*):/i.exec(href);
|
|
97
|
+
if (scheme) {
|
|
98
|
+
const s = (scheme[1] ?? "").toLowerCase();
|
|
99
|
+
return s === "http" || s === "https" || s === "mailto" || s === "tel" ? href : null;
|
|
100
|
+
}
|
|
101
|
+
if (href.startsWith("//")) return null;
|
|
102
|
+
return href;
|
|
103
|
+
}
|
|
104
|
+
const isExternal = (href) => /^https?:\/\//i.test(href);
|
|
105
|
+
/** Etiket içindeki `href` değerini okur (tırnaklı ya da tırnaksız). */
|
|
106
|
+
function readHref(attrs) {
|
|
107
|
+
const m = /(?:^|\s)href\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'=<>`]+))/i.exec(attrs);
|
|
108
|
+
return m ? m[1] ?? m[2] ?? m[3] ?? "" : null;
|
|
109
|
+
}
|
|
110
|
+
/** Zengin metin HTML'ini izin listesine göre yeniden yazar. */
|
|
111
|
+
function sanitizeRichText(html) {
|
|
112
|
+
let out = "";
|
|
113
|
+
const stack = [];
|
|
114
|
+
let dropping = null;
|
|
115
|
+
let i = 0;
|
|
116
|
+
const n = html.length;
|
|
117
|
+
while (i < n) {
|
|
118
|
+
const lt = html.indexOf("<", i);
|
|
119
|
+
const textEnd = lt === -1 ? n : lt;
|
|
120
|
+
if (textEnd > i) {
|
|
121
|
+
if (!dropping) out += escapeHtml(decodeEntities(html.slice(i, textEnd)));
|
|
122
|
+
i = textEnd;
|
|
123
|
+
if (lt === -1) break;
|
|
124
|
+
}
|
|
125
|
+
if (html.startsWith("<!--", i)) {
|
|
126
|
+
const end = html.indexOf("-->", i + 4);
|
|
127
|
+
i = end === -1 ? n : end + 3;
|
|
128
|
+
continue;
|
|
129
|
+
}
|
|
130
|
+
const m = /^<(\/?)([a-zA-Z][a-zA-Z0-9-]*)((?:[\s/][^>]*)?)>/.exec(html.slice(i));
|
|
131
|
+
if (!m) {
|
|
132
|
+
if (!dropping) out += "<";
|
|
133
|
+
i += 1;
|
|
134
|
+
continue;
|
|
135
|
+
}
|
|
136
|
+
i += m[0].length;
|
|
137
|
+
const closing = m[1] === "/";
|
|
138
|
+
const raw = (m[2] ?? "").toLowerCase();
|
|
139
|
+
const attrs = m[3] ?? "";
|
|
140
|
+
if (dropping) {
|
|
141
|
+
if (closing && raw === dropping) dropping = null;
|
|
142
|
+
continue;
|
|
143
|
+
}
|
|
144
|
+
if (DROP_WITH_CONTENT.has(raw)) {
|
|
145
|
+
if (!closing && !/\/\s*$/.test(attrs)) dropping = raw;
|
|
146
|
+
continue;
|
|
147
|
+
}
|
|
148
|
+
const tag = ALIAS[raw] ?? raw;
|
|
149
|
+
if (!ALLOWED.has(tag)) continue;
|
|
150
|
+
if (closing) {
|
|
151
|
+
const at = stack.lastIndexOf(tag);
|
|
152
|
+
if (at === -1) continue;
|
|
153
|
+
while (stack.length > at) out += `</${stack.pop()}>`;
|
|
154
|
+
continue;
|
|
155
|
+
}
|
|
156
|
+
if (VOID.has(tag)) {
|
|
157
|
+
out += "<br>";
|
|
158
|
+
continue;
|
|
159
|
+
}
|
|
160
|
+
if (tag === "a") {
|
|
161
|
+
const href = readHref(attrs);
|
|
162
|
+
const safe = href === null ? null : safeHref(href);
|
|
163
|
+
if (!safe) continue;
|
|
164
|
+
const rel = isExternal(safe) ? " rel=\"noopener noreferrer nofollow\"" : "";
|
|
165
|
+
out += `<a href="${escapeHtml(safe)}"${rel}>`;
|
|
166
|
+
stack.push("a");
|
|
167
|
+
continue;
|
|
168
|
+
}
|
|
169
|
+
if ((tag === "p" || tag === "h2" || tag === "h3") && stack.length) {
|
|
170
|
+
const top = stack[stack.length - 1];
|
|
171
|
+
if (top === "p" || top === "h2" || top === "h3") out += `</${stack.pop()}>`;
|
|
172
|
+
}
|
|
173
|
+
out += `<${tag}>`;
|
|
174
|
+
stack.push(tag);
|
|
175
|
+
}
|
|
176
|
+
while (stack.length) out += `</${stack.pop()}>`;
|
|
177
|
+
return out.replace(/<p><\/p>/g, "");
|
|
178
|
+
}
|
|
179
|
+
/** Görünen metin (karakter sayımı ve boşluk denetimi için). */
|
|
180
|
+
function richTextToPlain(html) {
|
|
181
|
+
return decodeEntities(html.replace(/<br\s*\/?>/gi, "\n").replace(/<\/(p|h2|h3|li|blockquote)>/gi, "\n").replace(/<[^>]*>/g, "")).replace(/\n{2,}/g, "\n").trim();
|
|
182
|
+
}
|
|
183
|
+
export { decodeEntities, escapeHtml, richTextToPlain, safeHref, sanitizeRichText };
|
|
@@ -135,4 +135,21 @@ function RuleIcon(props) {
|
|
|
135
135
|
]
|
|
136
136
|
});
|
|
137
137
|
}
|
|
138
|
-
|
|
138
|
+
function UnderlineIcon(props) {
|
|
139
|
+
return /* @__PURE__ */ jsxs(Icon, {
|
|
140
|
+
...props,
|
|
141
|
+
children: [/* @__PURE__ */ jsx("path", { d: "M7 4v7a5 5 0 0 0 10 0V4" }), /* @__PURE__ */ jsx("path", { d: "M5 20h14" })]
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
function ClearFormatIcon(props) {
|
|
145
|
+
return /* @__PURE__ */ jsxs(Icon, {
|
|
146
|
+
...props,
|
|
147
|
+
children: [
|
|
148
|
+
/* @__PURE__ */ jsx("path", { d: "M6 5h12" }),
|
|
149
|
+
/* @__PURE__ */ jsx("path", { d: "m12 5-3 14" }),
|
|
150
|
+
/* @__PURE__ */ jsx("path", { d: "m15 15 5 5" }),
|
|
151
|
+
/* @__PURE__ */ jsx("path", { d: "m20 15-5 5" })
|
|
152
|
+
]
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
export { BoldIcon, BulletListIcon, ClearFormatIcon, CodeBlockIcon, HeadingThreeIcon, HeadingTwoIcon, ItalicIcon, NumberedListIcon, QuoteIcon, RuleIcon, StrikethroughIcon, TaskListIcon, UnderlineIcon };
|
package/dist/editor/index.d.ts
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import { CodeLanguage } from "./CodeEditor/codeEdits.js";
|
|
2
2
|
import { CodeEditor, CodeEditorProps, CodeMarker } from "./CodeEditor/CodeEditor.js";
|
|
3
3
|
import "./CodeEditor/index.js";
|
|
4
|
+
import { CommentComposer, CommentComposerProps, CommentDraft } from "./CommentComposer/CommentComposer.js";
|
|
5
|
+
import "./CommentComposer/index.js";
|
|
4
6
|
import { JsonError, JsonErrorCode, checkJson, formatJson, parseJson } from "./JsonEditor/json.js";
|
|
5
7
|
import { JsonEditor, JsonEditorProps, JsonInfo } from "./JsonEditor/JsonEditor.js";
|
|
6
8
|
import "./JsonEditor/index.js";
|
|
7
9
|
import { MarkdownEditor, MarkdownEditorProps, MarkdownEditorView } from "./MarkdownEditor/MarkdownEditor.js";
|
|
8
10
|
import "./MarkdownEditor/index.js";
|
|
9
|
-
|
|
11
|
+
import { RichTextEditor, RichTextEditorProps } from "./RichTextEditor/RichTextEditor.js";
|
|
12
|
+
import { decodeEntities, escapeHtml, richTextToPlain, safeHref, sanitizeRichText } from "./RichTextEditor/sanitizeRichText.js";
|
|
13
|
+
import "./RichTextEditor/index.js";
|
|
14
|
+
export { CodeEditor, CodeEditorProps, type CodeLanguage, CodeMarker, CommentComposer, CommentComposerProps, CommentDraft, JsonEditor, JsonEditorProps, type JsonError, type JsonErrorCode, JsonInfo, MarkdownEditor, MarkdownEditorProps, MarkdownEditorView, RichTextEditor, RichTextEditorProps, checkJson, decodeEntities, escapeHtml, formatJson, parseJson, richTextToPlain, safeHref, sanitizeRichText };
|
package/dist/editor/index.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { CodeEditor } from "./CodeEditor/CodeEditor.js";
|
|
2
|
+
import { CommentComposer } from "./CommentComposer/CommentComposer.js";
|
|
2
3
|
import { checkJson, formatJson, parseJson } from "./JsonEditor/json.js";
|
|
3
4
|
import { JsonEditor } from "./JsonEditor/JsonEditor.js";
|
|
4
5
|
import { MarkdownEditor } from "./MarkdownEditor/MarkdownEditor.js";
|
|
5
|
-
|
|
6
|
+
import { decodeEntities, escapeHtml, richTextToPlain, safeHref, sanitizeRichText } from "./RichTextEditor/sanitizeRichText.js";
|
|
7
|
+
import { RichTextEditor } from "./RichTextEditor/RichTextEditor.js";
|
|
8
|
+
export { CodeEditor, CommentComposer, JsonEditor, MarkdownEditor, RichTextEditor, checkJson, decodeEntities, escapeHtml, formatJson, parseJson, richTextToPlain, safeHref, sanitizeRichText };
|
package/dist/foundation.css
CHANGED
|
@@ -1372,6 +1372,16 @@
|
|
|
1372
1372
|
}
|
|
1373
1373
|
}
|
|
1374
1374
|
|
|
1375
|
+
/*
|
|
1376
|
+
* Sürükle-bırak tutamacı (ListView, Kanban): fareyle satır sürüklenir, tutamaç yalnız klavye ve
|
|
1377
|
+
* yardımcı teknoloji içindir; sıkı CSP satır içi stili engellese de fare olayı almaz.
|
|
1378
|
+
*/
|
|
1379
|
+
@layer sti.base {
|
|
1380
|
+
:where(button[slot="drag"][style]) {
|
|
1381
|
+
pointer-events: none;
|
|
1382
|
+
}
|
|
1383
|
+
}
|
|
1384
|
+
|
|
1375
1385
|
/* Dosya seçicinin (FileUpload) React Aria dosya alanı: sıkı CSP satır içi stili engellese de gizli. */
|
|
1376
1386
|
@layer sti.base {
|
|
1377
1387
|
:where(input[type="file"][data-rac][style]) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { __exportAll } from "../../_virtual/_rolldown/runtime.js";
|
|
2
2
|
import { ChevronDownIcon } from "./ChevronDownIcon.js";
|
|
3
|
+
import { UserIcon } from "./UserIcon.js";
|
|
3
4
|
import { CheckIcon } from "./CheckIcon.js";
|
|
4
5
|
import { AlertCircleIcon } from "./AlertCircleIcon.js";
|
|
5
6
|
import { CloseIcon } from "./CloseIcon.js";
|
|
@@ -11,20 +12,26 @@ import { MenuIcon } from "./MenuIcon.js";
|
|
|
11
12
|
import { ArrowRightIcon } from "./ArrowRightIcon.js";
|
|
12
13
|
import { ArrowUpRightIcon } from "./ArrowUpRightIcon.js";
|
|
13
14
|
import { ExternalLinkIcon } from "./ExternalLinkIcon.js";
|
|
14
|
-
import {
|
|
15
|
+
import { ShieldIcon } from "./ShieldIcon.js";
|
|
15
16
|
import { ArrowLeftIcon } from "./ArrowLeftIcon.js";
|
|
16
17
|
import { ChevronRightIcon } from "./ChevronRightIcon.js";
|
|
17
18
|
import { MoreHorizontalIcon } from "./MoreHorizontalIcon.js";
|
|
18
19
|
import { ChevronLeftIcon } from "./ChevronLeftIcon.js";
|
|
19
20
|
import { FileTextIcon } from "./FileTextIcon.js";
|
|
21
|
+
import { PauseIcon } from "./PauseIcon.js";
|
|
22
|
+
import { PlayIcon } from "./PlayIcon.js";
|
|
20
23
|
import { ClockIcon } from "./ClockIcon.js";
|
|
21
24
|
import { MinusIcon } from "./MinusIcon.js";
|
|
25
|
+
import { CopyIcon } from "./CopyIcon.js";
|
|
22
26
|
import { SearchIcon } from "./SearchIcon.js";
|
|
23
27
|
import { HelpCircleIcon } from "./HelpCircleIcon.js";
|
|
24
|
-
import { CopyIcon } from "./CopyIcon.js";
|
|
25
28
|
import { PlusIcon } from "./PlusIcon.js";
|
|
26
|
-
import {
|
|
29
|
+
import { ArrowDownIcon } from "./ArrowDownIcon.js";
|
|
30
|
+
import { ArrowUpIcon } from "./ArrowUpIcon.js";
|
|
31
|
+
import { ChevronsUpDownIcon } from "./ChevronsUpDownIcon.js";
|
|
32
|
+
import { ColumnsIcon } from "./ColumnsIcon.js";
|
|
27
33
|
import { DownloadIcon } from "./DownloadIcon.js";
|
|
34
|
+
import { CalendarIcon } from "./CalendarIcon.js";
|
|
28
35
|
import { MailIcon } from "./MailIcon.js";
|
|
29
36
|
import { SmileIcon } from "./SmileIcon.js";
|
|
30
37
|
import { RefreshIcon } from "./RefreshIcon.js";
|
|
@@ -40,13 +47,12 @@ import { FileIcon } from "./FileIcon.js";
|
|
|
40
47
|
import { ImageIcon } from "./ImageIcon.js";
|
|
41
48
|
import { TableIcon } from "./TableIcon.js";
|
|
42
49
|
import { VideoIcon } from "./VideoIcon.js";
|
|
50
|
+
import { CodeIcon } from "./CodeIcon.js";
|
|
43
51
|
import { UploadIcon } from "./UploadIcon.js";
|
|
44
|
-
import { ArrowUpIcon } from "./ArrowUpIcon.js";
|
|
45
52
|
import { BuildingIcon } from "./BuildingIcon.js";
|
|
46
53
|
import { AddSquareIcon } from "./AddSquareIcon.js";
|
|
47
54
|
import { AlertIcon } from "./AlertIcon.js";
|
|
48
55
|
import { AppsIcon } from "./AppsIcon.js";
|
|
49
|
-
import { ArrowDownIcon } from "./ArrowDownIcon.js";
|
|
50
56
|
import { AtSignIcon } from "./AtSignIcon.js";
|
|
51
57
|
import { BarChartIcon } from "./BarChartIcon.js";
|
|
52
58
|
import { BellIcon } from "./BellIcon.js";
|
|
@@ -57,10 +63,7 @@ import { CalendarRangeIcon } from "./CalendarRangeIcon.js";
|
|
|
57
63
|
import { CameraIcon } from "./CameraIcon.js";
|
|
58
64
|
import { ChartIcon } from "./ChartIcon.js";
|
|
59
65
|
import { ChevronUpIcon } from "./ChevronUpIcon.js";
|
|
60
|
-
import { ChevronsUpDownIcon } from "./ChevronsUpDownIcon.js";
|
|
61
66
|
import { ClipboardIcon } from "./ClipboardIcon.js";
|
|
62
|
-
import { CodeIcon } from "./CodeIcon.js";
|
|
63
|
-
import { ColumnsIcon } from "./ColumnsIcon.js";
|
|
64
67
|
import { CompassIcon } from "./CompassIcon.js";
|
|
65
68
|
import { ContrastIcon } from "./ContrastIcon.js";
|
|
66
69
|
import { CreditCardIcon } from "./CreditCardIcon.js";
|
|
@@ -104,11 +107,9 @@ import { MoreVerticalIcon } from "./MoreVerticalIcon.js";
|
|
|
104
107
|
import { PaletteIcon } from "./PaletteIcon.js";
|
|
105
108
|
import { PaperclipIcon } from "./PaperclipIcon.js";
|
|
106
109
|
import { PasskeyIcon } from "./PasskeyIcon.js";
|
|
107
|
-
import { PauseIcon } from "./PauseIcon.js";
|
|
108
110
|
import { PercentIcon } from "./PercentIcon.js";
|
|
109
111
|
import { PhoneIcon } from "./PhoneIcon.js";
|
|
110
112
|
import { PieChartIcon } from "./PieChartIcon.js";
|
|
111
|
-
import { PlayIcon } from "./PlayIcon.js";
|
|
112
113
|
import { PlusCircleIcon } from "./PlusCircleIcon.js";
|
|
113
114
|
import { PrinterIcon } from "./PrinterIcon.js";
|
|
114
115
|
import { PulseIcon } from "./PulseIcon.js";
|
|
@@ -119,7 +120,6 @@ import { RotateIcon } from "./RotateIcon.js";
|
|
|
119
120
|
import { ScaleIcon } from "./ScaleIcon.js";
|
|
120
121
|
import { SendIcon } from "./SendIcon.js";
|
|
121
122
|
import { ShareIcon } from "./ShareIcon.js";
|
|
122
|
-
import { ShieldIcon } from "./ShieldIcon.js";
|
|
123
123
|
import { ShieldCheckIcon } from "./ShieldCheckIcon.js";
|
|
124
124
|
import { ShoppingBagIcon } from "./ShoppingBagIcon.js";
|
|
125
125
|
import { SidebarIcon } from "./SidebarIcon.js";
|
package/dist/icons/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Icon } from "./Icon.js";
|
|
2
2
|
import { ChevronDownIcon } from "./generated/ChevronDownIcon.js";
|
|
3
|
+
import { UserIcon } from "./generated/UserIcon.js";
|
|
3
4
|
import { CheckIcon } from "./generated/CheckIcon.js";
|
|
4
5
|
import { AlertCircleIcon } from "./generated/AlertCircleIcon.js";
|
|
5
6
|
import { CloseIcon } from "./generated/CloseIcon.js";
|
|
@@ -11,20 +12,26 @@ import { MenuIcon } from "./generated/MenuIcon.js";
|
|
|
11
12
|
import { ArrowRightIcon } from "./generated/ArrowRightIcon.js";
|
|
12
13
|
import { ArrowUpRightIcon } from "./generated/ArrowUpRightIcon.js";
|
|
13
14
|
import { ExternalLinkIcon } from "./generated/ExternalLinkIcon.js";
|
|
14
|
-
import {
|
|
15
|
+
import { ShieldIcon } from "./generated/ShieldIcon.js";
|
|
15
16
|
import { ArrowLeftIcon } from "./generated/ArrowLeftIcon.js";
|
|
16
17
|
import { ChevronRightIcon } from "./generated/ChevronRightIcon.js";
|
|
17
18
|
import { MoreHorizontalIcon } from "./generated/MoreHorizontalIcon.js";
|
|
18
19
|
import { ChevronLeftIcon } from "./generated/ChevronLeftIcon.js";
|
|
19
20
|
import { FileTextIcon } from "./generated/FileTextIcon.js";
|
|
21
|
+
import { PauseIcon } from "./generated/PauseIcon.js";
|
|
22
|
+
import { PlayIcon } from "./generated/PlayIcon.js";
|
|
20
23
|
import { ClockIcon } from "./generated/ClockIcon.js";
|
|
21
24
|
import { MinusIcon } from "./generated/MinusIcon.js";
|
|
25
|
+
import { CopyIcon } from "./generated/CopyIcon.js";
|
|
22
26
|
import { SearchIcon } from "./generated/SearchIcon.js";
|
|
23
27
|
import { HelpCircleIcon } from "./generated/HelpCircleIcon.js";
|
|
24
|
-
import { CopyIcon } from "./generated/CopyIcon.js";
|
|
25
28
|
import { PlusIcon } from "./generated/PlusIcon.js";
|
|
26
|
-
import {
|
|
29
|
+
import { ArrowDownIcon } from "./generated/ArrowDownIcon.js";
|
|
30
|
+
import { ArrowUpIcon } from "./generated/ArrowUpIcon.js";
|
|
31
|
+
import { ChevronsUpDownIcon } from "./generated/ChevronsUpDownIcon.js";
|
|
32
|
+
import { ColumnsIcon } from "./generated/ColumnsIcon.js";
|
|
27
33
|
import { DownloadIcon } from "./generated/DownloadIcon.js";
|
|
34
|
+
import { CalendarIcon } from "./generated/CalendarIcon.js";
|
|
28
35
|
import { MailIcon } from "./generated/MailIcon.js";
|
|
29
36
|
import { SmileIcon } from "./generated/SmileIcon.js";
|
|
30
37
|
import { RefreshIcon } from "./generated/RefreshIcon.js";
|
|
@@ -40,14 +47,13 @@ import { FileIcon } from "./generated/FileIcon.js";
|
|
|
40
47
|
import { ImageIcon } from "./generated/ImageIcon.js";
|
|
41
48
|
import { TableIcon } from "./generated/TableIcon.js";
|
|
42
49
|
import { VideoIcon } from "./generated/VideoIcon.js";
|
|
50
|
+
import { CodeIcon } from "./generated/CodeIcon.js";
|
|
43
51
|
import { UploadIcon } from "./generated/UploadIcon.js";
|
|
44
|
-
import { ArrowUpIcon } from "./generated/ArrowUpIcon.js";
|
|
45
52
|
import { BuildingIcon } from "./generated/BuildingIcon.js";
|
|
46
53
|
import { iconCatalog } from "./generated/catalog.js";
|
|
47
54
|
import { AddSquareIcon } from "./generated/AddSquareIcon.js";
|
|
48
55
|
import { AlertIcon } from "./generated/AlertIcon.js";
|
|
49
56
|
import { AppsIcon } from "./generated/AppsIcon.js";
|
|
50
|
-
import { ArrowDownIcon } from "./generated/ArrowDownIcon.js";
|
|
51
57
|
import { AtSignIcon } from "./generated/AtSignIcon.js";
|
|
52
58
|
import { BarChartIcon } from "./generated/BarChartIcon.js";
|
|
53
59
|
import { BellIcon } from "./generated/BellIcon.js";
|
|
@@ -58,10 +64,7 @@ import { CalendarRangeIcon } from "./generated/CalendarRangeIcon.js";
|
|
|
58
64
|
import { CameraIcon } from "./generated/CameraIcon.js";
|
|
59
65
|
import { ChartIcon } from "./generated/ChartIcon.js";
|
|
60
66
|
import { ChevronUpIcon } from "./generated/ChevronUpIcon.js";
|
|
61
|
-
import { ChevronsUpDownIcon } from "./generated/ChevronsUpDownIcon.js";
|
|
62
67
|
import { ClipboardIcon } from "./generated/ClipboardIcon.js";
|
|
63
|
-
import { CodeIcon } from "./generated/CodeIcon.js";
|
|
64
|
-
import { ColumnsIcon } from "./generated/ColumnsIcon.js";
|
|
65
68
|
import { CompassIcon } from "./generated/CompassIcon.js";
|
|
66
69
|
import { ContrastIcon } from "./generated/ContrastIcon.js";
|
|
67
70
|
import { CreditCardIcon } from "./generated/CreditCardIcon.js";
|
|
@@ -105,11 +108,9 @@ import { MoreVerticalIcon } from "./generated/MoreVerticalIcon.js";
|
|
|
105
108
|
import { PaletteIcon } from "./generated/PaletteIcon.js";
|
|
106
109
|
import { PaperclipIcon } from "./generated/PaperclipIcon.js";
|
|
107
110
|
import { PasskeyIcon } from "./generated/PasskeyIcon.js";
|
|
108
|
-
import { PauseIcon } from "./generated/PauseIcon.js";
|
|
109
111
|
import { PercentIcon } from "./generated/PercentIcon.js";
|
|
110
112
|
import { PhoneIcon } from "./generated/PhoneIcon.js";
|
|
111
113
|
import { PieChartIcon } from "./generated/PieChartIcon.js";
|
|
112
|
-
import { PlayIcon } from "./generated/PlayIcon.js";
|
|
113
114
|
import { PlusCircleIcon } from "./generated/PlusCircleIcon.js";
|
|
114
115
|
import { PrinterIcon } from "./generated/PrinterIcon.js";
|
|
115
116
|
import { PulseIcon } from "./generated/PulseIcon.js";
|
|
@@ -120,7 +121,6 @@ import { RotateIcon } from "./generated/RotateIcon.js";
|
|
|
120
121
|
import { ScaleIcon } from "./generated/ScaleIcon.js";
|
|
121
122
|
import { SendIcon } from "./generated/SendIcon.js";
|
|
122
123
|
import { ShareIcon } from "./generated/ShareIcon.js";
|
|
123
|
-
import { ShieldIcon } from "./generated/ShieldIcon.js";
|
|
124
124
|
import { ShieldCheckIcon } from "./generated/ShieldCheckIcon.js";
|
|
125
125
|
import { ShoppingBagIcon } from "./generated/ShoppingBagIcon.js";
|
|
126
126
|
import { SidebarIcon } from "./generated/SidebarIcon.js";
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { DateValue } from "../../components/DateTime/instant.js";
|
|
2
|
+
import { AuditLogEntry } from "../../components/AuditLogList/AuditLogList.js";
|
|
3
|
+
import { ReactNode } from "react";
|
|
4
|
+
/** STI ID hesap olayları (sunucunun olay türleriyle aynı adlar). */
|
|
5
|
+
export type AccountEventType = "sign_in" | "sign_in_failed" | "sign_out" | "password_changed" | "email_changed" | "two_factor_enabled" | "two_factor_disabled" | "passkey_added" | "passkey_removed" | "recovery_codes_regenerated" | "session_revoked" | "device_removed" | "app_authorized" | "app_revoked" | "api_key_created" | "api_key_revoked" | "profile_updated";
|
|
6
|
+
export interface AccountEvent {
|
|
7
|
+
id: string;
|
|
8
|
+
type: AccountEventType;
|
|
9
|
+
time: DateValue;
|
|
10
|
+
ip?: string;
|
|
11
|
+
location?: string;
|
|
12
|
+
device?: string;
|
|
13
|
+
/** Olayın hedefi ("iPhone 15", "Atlas Paneli", "CI anahtarı"). */
|
|
14
|
+
target?: string;
|
|
15
|
+
/** Sunucunun şüpheli olarak işaretlediği olay (yeni ülke, art arda hatalı deneme). */
|
|
16
|
+
suspicious?: boolean;
|
|
17
|
+
details?: AuditLogEntry["details"];
|
|
18
|
+
}
|
|
19
|
+
export interface AccountAuditLogProps {
|
|
20
|
+
events: readonly AccountEvent[];
|
|
21
|
+
/** IP adresinin son kısmı gizlenir (varsayılan `true`; kişinin kendi kaydında da). */
|
|
22
|
+
maskIp?: boolean;
|
|
23
|
+
/** Şüpheli olay varken uyarıdaki "Güvenliği gözden geçirin" eylemi. */
|
|
24
|
+
onReviewSecurity?: () => void;
|
|
25
|
+
hasMore?: boolean;
|
|
26
|
+
onLoadMore?: () => void;
|
|
27
|
+
isLoadingMore?: boolean;
|
|
28
|
+
emptyState?: ReactNode;
|
|
29
|
+
className?: string;
|
|
30
|
+
id?: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* STI ID hesap etkinliği: hesap olaylarını (oturum açma, parola, iki adımlı doğrulama, geçiş
|
|
34
|
+
* anahtarı, bağlı uygulama, API anahtarı) kurumsal Türkçe işlem adı, ikon ve sonuçla AuditLogList
|
|
35
|
+
* olarak gösterir. Şüpheli olay varsa listenin üstünde uyarı ve "Güvenliği gözden geçirin"; şüpheli
|
|
36
|
+
* olay "Şüpheli" sonucuyla işaretlenir. IP adresi varsayılan olarak maskelenir.
|
|
37
|
+
*/
|
|
38
|
+
export declare function AccountAuditLog({ events, maskIp, onReviewSecurity, hasMore, onLoadMore, isLoadingMore, emptyState, className, id }: AccountAuditLogProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useMessages } from "../../provider/UIProvider.js";
|
|
3
|
+
import { UserIcon } from "../../icons/generated/UserIcon.js";
|
|
4
|
+
import { Button } from "../../components/Button/Button.js";
|
|
5
|
+
import { Alert } from "../../components/Alert/Alert.js";
|
|
6
|
+
import { AuditLogList } from "../../components/AuditLogList/AuditLogList.js";
|
|
7
|
+
import { MailIcon } from "../../icons/generated/MailIcon.js";
|
|
8
|
+
import { LockIcon } from "../../icons/generated/LockIcon.js";
|
|
9
|
+
import { KeyIcon } from "../../icons/generated/KeyIcon.js";
|
|
10
|
+
import { LogInIcon } from "../../icons/generated/LogInIcon.js";
|
|
11
|
+
import { LogOutIcon } from "../../icons/generated/LogOutIcon.js";
|
|
12
|
+
import { PasskeyIcon } from "../../icons/generated/PasskeyIcon.js";
|
|
13
|
+
import { ShieldCheckIcon } from "../../icons/generated/ShieldCheckIcon.js";
|
|
14
|
+
import { SmartphoneIcon } from "../../icons/generated/SmartphoneIcon.js";
|
|
15
|
+
import { TrashIcon } from "../../icons/generated/TrashIcon.js";
|
|
16
|
+
import AccountAuditLog_module_default from "./AccountAuditLog.module.js";
|
|
17
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
18
|
+
// src/id/AccountAuditLog/AccountAuditLog.tsx
|
|
19
|
+
const MAP = {
|
|
20
|
+
sign_in: {
|
|
21
|
+
text: "idAuditSignIn",
|
|
22
|
+
icon: /* @__PURE__ */ jsx(LogInIcon, {}),
|
|
23
|
+
result: "success"
|
|
24
|
+
},
|
|
25
|
+
sign_in_failed: {
|
|
26
|
+
text: "idAuditSignInFailed",
|
|
27
|
+
icon: /* @__PURE__ */ jsx(LogInIcon, {}),
|
|
28
|
+
result: "failure"
|
|
29
|
+
},
|
|
30
|
+
sign_out: {
|
|
31
|
+
text: "idAuditSignOut",
|
|
32
|
+
icon: /* @__PURE__ */ jsx(LogOutIcon, {}),
|
|
33
|
+
result: "success"
|
|
34
|
+
},
|
|
35
|
+
password_changed: {
|
|
36
|
+
text: "idAuditPassword",
|
|
37
|
+
icon: /* @__PURE__ */ jsx(LockIcon, {}),
|
|
38
|
+
result: "success"
|
|
39
|
+
},
|
|
40
|
+
email_changed: {
|
|
41
|
+
text: "idAuditEmail",
|
|
42
|
+
icon: /* @__PURE__ */ jsx(MailIcon, {}),
|
|
43
|
+
result: "success"
|
|
44
|
+
},
|
|
45
|
+
two_factor_enabled: {
|
|
46
|
+
text: "idAuditTwoFactorOn",
|
|
47
|
+
icon: /* @__PURE__ */ jsx(ShieldCheckIcon, {}),
|
|
48
|
+
result: "success"
|
|
49
|
+
},
|
|
50
|
+
two_factor_disabled: {
|
|
51
|
+
text: "idAuditTwoFactorOff",
|
|
52
|
+
icon: /* @__PURE__ */ jsx(ShieldCheckIcon, {}),
|
|
53
|
+
result: "warning"
|
|
54
|
+
},
|
|
55
|
+
passkey_added: {
|
|
56
|
+
text: "idAuditPasskeyAdded",
|
|
57
|
+
icon: /* @__PURE__ */ jsx(PasskeyIcon, {}),
|
|
58
|
+
result: "success"
|
|
59
|
+
},
|
|
60
|
+
passkey_removed: {
|
|
61
|
+
text: "idAuditPasskeyRemoved",
|
|
62
|
+
icon: /* @__PURE__ */ jsx(PasskeyIcon, {}),
|
|
63
|
+
result: "warning"
|
|
64
|
+
},
|
|
65
|
+
recovery_codes_regenerated: {
|
|
66
|
+
text: "idAuditRecovery",
|
|
67
|
+
icon: /* @__PURE__ */ jsx(KeyIcon, {}),
|
|
68
|
+
result: "success"
|
|
69
|
+
},
|
|
70
|
+
session_revoked: {
|
|
71
|
+
text: "idAuditSessionRevoked",
|
|
72
|
+
icon: /* @__PURE__ */ jsx(LogOutIcon, {}),
|
|
73
|
+
result: "success"
|
|
74
|
+
},
|
|
75
|
+
device_removed: {
|
|
76
|
+
text: "idAuditDeviceRemoved",
|
|
77
|
+
icon: /* @__PURE__ */ jsx(SmartphoneIcon, {}),
|
|
78
|
+
result: "success"
|
|
79
|
+
},
|
|
80
|
+
app_authorized: {
|
|
81
|
+
text: "idAuditAppAuthorized",
|
|
82
|
+
icon: /* @__PURE__ */ jsx(ShieldCheckIcon, {}),
|
|
83
|
+
result: "success"
|
|
84
|
+
},
|
|
85
|
+
app_revoked: {
|
|
86
|
+
text: "idAuditAppRevoked",
|
|
87
|
+
icon: /* @__PURE__ */ jsx(TrashIcon, {}),
|
|
88
|
+
result: "success"
|
|
89
|
+
},
|
|
90
|
+
api_key_created: {
|
|
91
|
+
text: "idAuditApiKeyCreated",
|
|
92
|
+
icon: /* @__PURE__ */ jsx(KeyIcon, {}),
|
|
93
|
+
result: "success"
|
|
94
|
+
},
|
|
95
|
+
api_key_revoked: {
|
|
96
|
+
text: "idAuditApiKeyRevoked",
|
|
97
|
+
icon: /* @__PURE__ */ jsx(TrashIcon, {}),
|
|
98
|
+
result: "success"
|
|
99
|
+
},
|
|
100
|
+
profile_updated: {
|
|
101
|
+
text: "idAuditProfile",
|
|
102
|
+
icon: /* @__PURE__ */ jsx(UserIcon, {}),
|
|
103
|
+
result: "success"
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
/**
|
|
107
|
+
* STI ID hesap etkinliği: hesap olaylarını (oturum açma, parola, iki adımlı doğrulama, geçiş
|
|
108
|
+
* anahtarı, bağlı uygulama, API anahtarı) kurumsal Türkçe işlem adı, ikon ve sonuçla AuditLogList
|
|
109
|
+
* olarak gösterir. Şüpheli olay varsa listenin üstünde uyarı ve "Güvenliği gözden geçirin"; şüpheli
|
|
110
|
+
* olay "Şüpheli" sonucuyla işaretlenir. IP adresi varsayılan olarak maskelenir.
|
|
111
|
+
*/
|
|
112
|
+
function AccountAuditLog({ events, maskIp = true, onReviewSecurity, hasMore, onLoadMore, isLoadingMore, emptyState, className, id }) {
|
|
113
|
+
const t = useMessages();
|
|
114
|
+
const suspicious = events.filter((e) => e.suspicious).length;
|
|
115
|
+
const entries = events.map((e) => {
|
|
116
|
+
const m = MAP[e.type];
|
|
117
|
+
return {
|
|
118
|
+
id: e.id,
|
|
119
|
+
action: t[m.text],
|
|
120
|
+
icon: m.icon,
|
|
121
|
+
result: e.suspicious ? "warning" : m.result,
|
|
122
|
+
resultLabel: e.suspicious ? t.idAuditSuspicious : void 0,
|
|
123
|
+
target: e.target,
|
|
124
|
+
time: e.time,
|
|
125
|
+
ip: e.ip,
|
|
126
|
+
location: e.location,
|
|
127
|
+
device: e.device,
|
|
128
|
+
details: e.details
|
|
129
|
+
};
|
|
130
|
+
});
|
|
131
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
132
|
+
id,
|
|
133
|
+
className: [AccountAuditLog_module_default.root, className].filter(Boolean).join(" "),
|
|
134
|
+
children: [suspicious > 0 ? /* @__PURE__ */ jsx(Alert, {
|
|
135
|
+
tone: "warning",
|
|
136
|
+
title: t.idAuditSuspiciousTitle,
|
|
137
|
+
actions: onReviewSecurity ? /* @__PURE__ */ jsx(Button, {
|
|
138
|
+
variant: "secondary",
|
|
139
|
+
size: "sm",
|
|
140
|
+
onPress: onReviewSecurity,
|
|
141
|
+
children: t.idAuditReview
|
|
142
|
+
}) : void 0,
|
|
143
|
+
children: t.idAuditSuspiciousBody
|
|
144
|
+
}) : null, /* @__PURE__ */ jsx(AuditLogList, {
|
|
145
|
+
label: t.idAuditLabel,
|
|
146
|
+
entries,
|
|
147
|
+
maskIp,
|
|
148
|
+
hideActor: true,
|
|
149
|
+
hasMore,
|
|
150
|
+
onLoadMore,
|
|
151
|
+
isLoadingMore,
|
|
152
|
+
emptyState
|
|
153
|
+
})]
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
export { AccountAuditLog };
|