@flamingo-stack/openframe-frontend-core 0.0.802 → 0.0.804
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/dist/build/export-map.json +1 -1
- package/dist/{case-study-card-K6HYMHL6.cjs → case-study-card-MEWJNF4N.cjs} +5 -5
- package/dist/{chunk-DSIIRR3G.cjs → chunk-2NVIGBJC.cjs} +80 -80
- package/dist/{chunk-HRMLGU6A.cjs → chunk-3EPG56RK.cjs} +8 -8
- package/dist/{chunk-UYGXJ5SQ.cjs → chunk-3WNCFZGN.cjs} +2 -2
- package/dist/{chunk-2JCY5KQL.cjs → chunk-4W77VLQV.cjs} +4 -4
- package/dist/{chunk-M7E7ILE5.cjs → chunk-55TGW6BF.cjs} +6 -6
- package/dist/{chunk-E56LN23H.cjs → chunk-66ZQ7LDR.cjs} +73 -48
- package/dist/{chunk-VMQAJIQC.cjs → chunk-6JRQ57DU.cjs} +884 -895
- package/dist/{chunk-A7NRENMU.cjs → chunk-6UGNFMZB.cjs} +36 -36
- package/dist/{chunk-Y5XHMEBB.cjs → chunk-76NE67PK.cjs} +5 -5
- package/dist/{chunk-NCQJIYDN.cjs → chunk-AC5EBHAX.cjs} +28 -28
- package/dist/{chunk-OG4XH6C5.cjs → chunk-AZJYMTBS.cjs} +33 -33
- package/dist/{chunk-D3IQHAGL.cjs → chunk-BVSZTKI3.cjs} +34 -21
- package/dist/{chunk-7E4BC3AF.cjs → chunk-F2VN3UUB.cjs} +485 -513
- package/dist/{chunk-DTBIIFZG.cjs → chunk-FLW2VL5W.cjs} +21 -21
- package/dist/{chunk-FS4TVAE7.cjs → chunk-FQ4LYYBI.cjs} +52 -52
- package/dist/{chunk-VVLL37EM.cjs → chunk-GAHXURKJ.cjs} +6 -6
- package/dist/{chunk-7MV23NNT.cjs → chunk-JLKGLPDC.cjs} +109 -21
- package/dist/{chunk-3NGJ7NPT.cjs → chunk-KVJKKVB3.cjs} +7 -7
- package/dist/{chunk-52NI57KM.cjs → chunk-LZIQXGAW.cjs} +91 -88
- package/dist/{chunk-DYDS2P5G.cjs → chunk-MEDSJCEX.cjs} +4 -4
- package/dist/{chunk-FFRFKWTZ.cjs → chunk-MHH7CHNI.cjs} +17 -14
- package/dist/{chunk-CRVXQYUZ.cjs → chunk-NBLQFJ4I.cjs} +100 -99
- package/dist/{chunk-YD344MMX.cjs → chunk-NXJ3O4WO.cjs} +15 -15
- package/dist/{chunk-YBTORXFY.cjs → chunk-PRCGRDHV.cjs} +40 -25
- package/dist/{chunk-75BFVMNA.cjs → chunk-QPBP7FKI.cjs} +52 -52
- package/dist/{chunk-ZPVFFPQM.cjs → chunk-RIRIA3FO.cjs} +4 -4
- package/dist/{chunk-XR323UBY.cjs → chunk-STLJCAIZ.cjs} +6 -3
- package/dist/{chunk-6UKH22NQ.cjs → chunk-TGOJHOQR.cjs} +2 -1
- package/dist/{chunk-FAUVDMH4.cjs → chunk-THY2XVGY.cjs} +198 -164
- package/dist/{chunk-6GCXQIUU.cjs → chunk-TT64NRFU.cjs} +4 -4
- package/dist/{chunk-3W2PBWD5.cjs → chunk-TTERV57X.cjs} +4 -4
- package/dist/{chunk-A7IT7MZO.cjs → chunk-UCBR27JM.cjs} +13 -13
- package/dist/{chunk-KVGWOJCX.cjs → chunk-V3T5MDJV.cjs} +2 -2
- package/dist/{chunk-5RGGUQ4Y.cjs → chunk-VXXOUM2K.cjs} +67 -1
- package/dist/{chunk-EJVJDLYC.cjs → chunk-WSKMV2QS.cjs} +3 -3
- package/dist/{chunk-2BUSXRZ7.cjs → chunk-XXARXK62.cjs} +26 -26
- package/dist/{chunk-HATRCNXJ.cjs → chunk-XYZBN6D7.cjs} +2 -2
- package/dist/{chunk-YMPCACQX.cjs → chunk-Z6Y5X5SF.cjs} +41 -41
- package/dist/{cloud-tenants-3SWYRUXB.cjs → cloud-tenants-LRXMISV4.cjs} +19 -19
- package/dist/components/agent-mark.d.ts.map +1 -1
- package/dist/components/agent-mark.js +2 -2
- package/dist/components/case-studies/index.cjs +35 -35
- package/dist/components/chat/approval-batch-message.d.ts +3 -1
- package/dist/components/chat/approval-batch-message.d.ts.map +1 -1
- package/dist/components/chat/approval-batch-message.js +88 -0
- package/dist/components/chat/chat-composer.d.ts +3 -1
- package/dist/components/chat/chat-composer.d.ts.map +1 -1
- package/dist/components/chat/chat-composer.js +2 -0
- package/dist/components/chat/chat-context-memory-bar.d.ts +7 -1
- package/dist/components/chat/chat-context-memory-bar.d.ts.map +1 -1
- package/dist/components/chat/chat-context-memory-bar.js +11 -5
- package/dist/components/chat/chat-message-row.d.ts.map +1 -1
- package/dist/components/chat/chat-message-row.js +3 -2
- package/dist/components/chat/embeddable-chat.d.ts +3 -0
- package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
- package/dist/components/chat/embeddable-chat.js +1 -0
- package/dist/components/chat/entity-cards/admin-content-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/admin-content-card.js +2 -1
- package/dist/components/chat/entity-cards/blog-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/blog-card.js +6 -6
- package/dist/components/chat/entity-cards/blog-image-placeholder.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/blog-image-placeholder.js +2 -1
- package/dist/components/chat/entity-cards/case-study-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/case-study-card.js +10 -9
- package/dist/components/chat/entity-cards/customer-interview-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/customer-interview-card.js +8 -7
- package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/dispatch.js +12 -1
- package/dist/components/chat/entity-cards/employee-entry-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/employee-entry-card.js +3 -2
- package/dist/components/chat/entity-cards/entity-portrait-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/entity-portrait-card.js +7 -5
- package/dist/components/chat/entity-cards/investor-update-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/investor-update-card.js +2 -1
- package/dist/components/chat/entity-cards/onboarding-guide-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/onboarding-guide-card.js +13 -2
- package/dist/components/chat/entity-cards/program-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/program-card.js +17 -5
- package/dist/components/chat/entity-cards/roadmap-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/roadmap-card.js +5 -4
- package/dist/components/chat/index.cjs +15 -15
- package/dist/components/chat/mingo-info-card.d.ts.map +1 -1
- package/dist/components/chat/mingo-info-card.js +3 -2
- package/dist/components/contact/index.cjs +20 -20
- package/dist/components/docs/index.cjs +23 -23
- package/dist/components/embeds/index.cjs +20 -20
- package/dist/components/embeds/markdown-image.d.ts.map +1 -1
- package/dist/components/embeds/markdown-image.js +2 -1
- package/dist/components/embeds/og-link-preview.d.ts.map +1 -1
- package/dist/components/embeds/og-link-preview.js +17 -6
- package/dist/components/embeds/twitter-embed-client.d.ts.map +1 -1
- package/dist/components/embeds/twitter-embed-client.js +3 -2
- package/dist/components/faq/index.cjs +21 -21
- package/dist/components/features/board/ticket-card.js +5 -5
- package/dist/components/features/index.cjs +19 -19
- package/dist/components/features/media-gallery-manager.d.ts.map +1 -1
- package/dist/components/features/media-gallery-manager.js +2 -1
- package/dist/components/features/notifications/notification-tile.d.ts.map +1 -1
- package/dist/components/features/notifications/notification-tile.js +3 -2
- package/dist/components/features/parallax-image-showcase.d.ts.map +1 -1
- package/dist/components/features/parallax-image-showcase.js +9 -35
- package/dist/components/features/select-button.d.ts.map +1 -1
- package/dist/components/features/select-button.js +3 -2
- package/dist/components/features/video-hover-preview.d.ts +1 -1
- package/dist/components/features/video-hover-preview.d.ts.map +1 -1
- package/dist/components/features/video-hover-preview.js +2 -1
- package/dist/components/features/video.d.ts.map +1 -1
- package/dist/components/features/video.js +13 -1
- package/dist/components/features/walkthrough-video.d.ts.map +1 -1
- package/dist/components/features/walkthrough-video.js +3 -3
- package/dist/components/help-center-pages/index.cjs +121 -121
- package/dist/components/hero-image-uploader.d.ts.map +1 -1
- package/dist/components/hero-image-uploader.js +12 -1
- package/dist/components/icon-display.d.ts.map +1 -1
- package/dist/components/icon-display.js +2 -1
- package/dist/components/index.cjs +137 -91
- package/dist/components/layout/page-layout.d.ts +1 -1
- package/dist/components/layout/page-layout.d.ts.map +1 -1
- package/dist/components/layout/title-block.d.ts +4 -2
- package/dist/components/layout/title-block.d.ts.map +1 -1
- package/dist/components/layout/title-block.js +21 -2
- package/dist/components/media-carousel.d.ts.map +1 -1
- package/dist/components/media-carousel.js +2 -1
- package/dist/components/meeting-scheduler/index.cjs +85 -85
- package/dist/components/navigation/index.cjs +22 -22
- package/dist/components/onboarding-guides/index.cjs +22 -22
- package/dist/components/platform/ScriptInfoSection.d.ts.map +1 -1
- package/dist/components/platform/ScriptInfoSection.js +12 -1
- package/dist/components/product-demo/index.cjs +30 -30
- package/dist/components/related-content/index.cjs +11 -11
- package/dist/components/shared/media-gallery-strip.d.ts.map +1 -1
- package/dist/components/shared/media-gallery-strip.js +3 -2
- package/dist/components/shared/product-release/product-release-card.d.ts.map +1 -1
- package/dist/components/shared/product-release/product-release-card.js +13 -2
- package/dist/components/tickets/index.cjs +26 -26
- package/dist/components/ui/avatar-stack.d.ts.map +1 -1
- package/dist/components/ui/avatar-stack.js +4 -4
- package/dist/components/ui/data-table/data-table-body.d.ts +6 -1
- package/dist/components/ui/data-table/data-table-body.d.ts.map +1 -1
- package/dist/components/ui/data-table/data-table-body.js +3 -1
- package/dist/components/ui/device-card.d.ts +6 -1
- package/dist/components/ui/device-card.d.ts.map +1 -1
- package/dist/components/ui/device-card.js +2 -1
- package/dist/components/ui/entity-image.d.ts.map +1 -1
- package/dist/components/ui/entity-image.js +3 -2
- package/dist/components/ui/image-gallery-modal.d.ts.map +1 -1
- package/dist/components/ui/image-gallery-modal.js +2 -1
- package/dist/components/ui/image-uploader.d.ts.map +1 -1
- package/dist/components/ui/image-uploader.js +2 -1
- package/dist/components/ui/index.cjs +37 -19
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +1 -0
- package/dist/components/ui/markdown/base-components.d.ts.map +1 -1
- package/dist/components/ui/markdown/base-components.js +2 -1
- package/dist/components/ui/page-actions.d.ts.map +1 -1
- package/dist/components/ui/page-actions.js +15 -12
- package/dist/components/ui/photo-wall.d.ts +7 -3
- package/dist/components/ui/photo-wall.d.ts.map +1 -1
- package/dist/components/ui/photo-wall.js +3 -4
- package/dist/components/ui/square-avatar.d.ts +4 -1
- package/dist/components/ui/square-avatar.d.ts.map +1 -1
- package/dist/components/ui/square-avatar.js +2 -1
- package/dist/components/user-summary-stub.d.ts +1 -1
- package/dist/components/user-summary-stub.d.ts.map +1 -1
- package/dist/components/user-summary-stub.js +16 -6
- package/dist/components/vendor-display-button.d.ts.map +1 -1
- package/dist/components/vendor-display-button.js +13 -3
- package/dist/components/vendor-icon.d.ts +7 -4
- package/dist/components/vendor-icon.d.ts.map +1 -1
- package/dist/components/vendor-icon.js +22 -71
- package/dist/{devices-MQILRW53.cjs → devices-CETR72XY.cjs} +20 -20
- package/dist/{embeddable-chat-XZDZOHFY.cjs → embeddable-chat-GHBCX2BY.cjs} +85 -84
- package/dist/hooks/index.cjs +6 -6
- package/dist/hooks/ui/use-image-edge-color.d.ts.map +1 -1
- package/dist/hooks/ui/use-image-edge-color.js +4 -3
- package/dist/image-sizes.cjs +68 -0
- package/dist/index.cjs +43 -25
- package/dist/{knowledge-WQ3ABXZC.cjs → knowledge-A2MWEF23.cjs} +20 -20
- package/dist/{logs-XRSJGB3I.cjs → logs-47JODA6C.cjs} +27 -27
- package/dist/{policies-Q67ZXAGY.cjs → policies-OPIDR6XF.cjs} +23 -23
- package/dist/{remote-session-4LYKEZSY.cjs → remote-session-IQTPEG63.cjs} +8 -8
- package/dist/{scripts-YX324R4S.cjs → scripts-4MQGJWFP.cjs} +26 -26
- package/dist/{software-update-PHMXJVAC.cjs → software-update-MQIGPBZ6.cjs} +23 -23
- package/dist/styles/image-sizes.d.ts +110 -0
- package/dist/styles/image-sizes.d.ts.map +1 -0
- package/dist/styles/image-sizes.js +66 -0
- package/dist/{tickets-board-3FBVYSXR.cjs → tickets-board-QF5JNSH2.cjs} +11 -11
- package/eslint-config/base.js +12 -0
- package/eslint-config/image-sizes.js +51 -0
- package/package.json +8 -1
- package/src/components/agent-mark.tsx +3 -4
- package/src/components/chat/approval-batch-message.tsx +109 -1
- package/src/components/chat/chat-composer.tsx +4 -0
- package/src/components/chat/chat-context-memory-bar.tsx +28 -5
- package/src/components/chat/chat-message-row.tsx +3 -2
- package/src/components/chat/embeddable-chat.tsx +4 -0
- package/src/components/chat/entity-cards/admin-content-card.tsx +2 -1
- package/src/components/chat/entity-cards/blog-card.tsx +6 -6
- package/src/components/chat/entity-cards/blog-image-placeholder.tsx +2 -1
- package/src/components/chat/entity-cards/case-study-card.tsx +10 -9
- package/src/components/chat/entity-cards/customer-interview-card.tsx +8 -7
- package/src/components/chat/entity-cards/dispatch.tsx +9 -1
- package/src/components/chat/entity-cards/employee-entry-card.tsx +3 -2
- package/src/components/chat/entity-cards/entity-portrait-card.tsx +7 -5
- package/src/components/chat/entity-cards/investor-update-card.tsx +2 -1
- package/src/components/chat/entity-cards/onboarding-guide-card.tsx +10 -2
- package/src/components/chat/entity-cards/program-card.tsx +14 -5
- package/src/components/chat/entity-cards/roadmap-card.tsx +5 -4
- package/src/components/chat/mingo-info-card.tsx +3 -2
- package/src/components/embeds/markdown-image.tsx +2 -1
- package/src/components/embeds/og-link-preview.tsx +14 -6
- package/src/components/embeds/twitter-embed-client.tsx +3 -2
- package/src/components/features/board/ticket-card.tsx +7 -6
- package/src/components/features/media-gallery-manager.tsx +2 -2
- package/src/components/features/notifications/notification-tile.tsx +3 -2
- package/src/components/features/parallax-image-showcase.tsx +9 -26
- package/src/components/features/select-button.tsx +3 -2
- package/src/components/features/video-hover-preview.tsx +3 -2
- package/src/components/features/video.tsx +10 -1
- package/src/components/features/walkthrough-video.tsx +7 -10
- package/src/components/hero-image-uploader.tsx +9 -1
- package/src/components/icon-display.tsx +2 -1
- package/src/components/layout/page-layout.tsx +1 -1
- package/src/components/layout/title-block.tsx +22 -3
- package/src/components/media-carousel.tsx +2 -1
- package/src/components/platform/ScriptInfoSection.tsx +9 -1
- package/src/components/shared/media-gallery-strip.tsx +4 -2
- package/src/components/shared/product-release/product-release-card.tsx +10 -2
- package/src/components/ui/avatar-stack.tsx +6 -6
- package/src/components/ui/data-table/data-table-body.tsx +9 -0
- package/src/components/ui/device-card.tsx +7 -1
- package/src/components/ui/entity-image.tsx +3 -2
- package/src/components/ui/image-gallery-modal.tsx +2 -1
- package/src/components/ui/image-uploader.tsx +2 -1
- package/src/components/ui/index.ts +1 -0
- package/src/components/ui/markdown/base-components.tsx +2 -1
- package/src/components/ui/page-actions.tsx +28 -14
- package/src/components/ui/photo-wall.tsx +10 -14
- package/src/components/ui/square-avatar.tsx +6 -3
- package/src/components/user-summary-stub.tsx +14 -7
- package/src/components/vendor-display-button.tsx +10 -3
- package/src/components/vendor-icon.tsx +31 -97
- package/src/hooks/ui/use-image-edge-color.ts +8 -4
- package/src/styles/image-sizes.ts +114 -0
package/dist/hooks/index.cjs
CHANGED
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
|
|
62
62
|
|
|
63
63
|
|
|
64
|
-
var
|
|
64
|
+
var _chunkAZJYMTBScjs = require('../chunk-AZJYMTBS.cjs');
|
|
65
65
|
|
|
66
66
|
|
|
67
67
|
|
|
@@ -78,7 +78,7 @@ var _chunkA6P6DHEZcjs = require('../chunk-A6P6DHEZ.cjs');
|
|
|
78
78
|
require('../chunk-MZ4KBSH7.cjs');
|
|
79
79
|
|
|
80
80
|
|
|
81
|
-
var
|
|
81
|
+
var _chunkTT64NRFUcjs = require('../chunk-TT64NRFU.cjs');
|
|
82
82
|
|
|
83
83
|
|
|
84
84
|
|
|
@@ -90,7 +90,7 @@ var _chunk6GCXQIUUcjs = require('../chunk-6GCXQIUU.cjs');
|
|
|
90
90
|
|
|
91
91
|
|
|
92
92
|
var _chunkOJZBZH56cjs = require('../chunk-OJZBZH56.cjs');
|
|
93
|
-
require('../chunk-
|
|
93
|
+
require('../chunk-XYZBN6D7.cjs');
|
|
94
94
|
require('../chunk-JKX2C3I2.cjs');
|
|
95
95
|
require('../chunk-7DNL734S.cjs');
|
|
96
96
|
require('../chunk-WWUSFOJ7.cjs');
|
|
@@ -102,7 +102,7 @@ var _chunkBLH2SFOOcjs = require('../chunk-BLH2SFOO.cjs');
|
|
|
102
102
|
|
|
103
103
|
|
|
104
104
|
|
|
105
|
-
var
|
|
105
|
+
var _chunkSTLJCAIZcjs = require('../chunk-STLJCAIZ.cjs');
|
|
106
106
|
|
|
107
107
|
|
|
108
108
|
|
|
@@ -135,7 +135,7 @@ var _chunkV4FXUIMHcjs = require('../chunk-V4FXUIMH.cjs');
|
|
|
135
135
|
|
|
136
136
|
|
|
137
137
|
var _chunkSZHDXXMKcjs = require('../chunk-SZHDXXMK.cjs');
|
|
138
|
-
require('../chunk-
|
|
138
|
+
require('../chunk-VXXOUM2K.cjs');
|
|
139
139
|
require('../chunk-5GJM7VRR.cjs');
|
|
140
140
|
require('../chunk-KUXHXLJQ.cjs');
|
|
141
141
|
require('../chunk-UJ7AXHRZ.cjs');
|
|
@@ -249,4 +249,4 @@ require('../chunk-KHKPLOU4.cjs');
|
|
|
249
249
|
|
|
250
250
|
|
|
251
251
|
|
|
252
|
-
exports.AGENT_IDENTITIES_API_PATH = _chunk7PNRXJX2cjs.AGENT_IDENTITIES_API_PATH; exports.CONTENT_BREAKPOINTS = _chunkAQXKXZWBcjs.CONTENT_BREAKPOINTS; exports.ContentAreaWidthContext = _chunkAQXKXZWBcjs.ContentAreaWidthContext; exports.DRAG_AND_DROP_MEDIA_QUERY = _chunkVXAKQRV7cjs.DRAG_AND_DROP_MEDIA_QUERY; exports.GraphQLIntrospector =
|
|
252
|
+
exports.AGENT_IDENTITIES_API_PATH = _chunk7PNRXJX2cjs.AGENT_IDENTITIES_API_PATH; exports.CONTENT_BREAKPOINTS = _chunkAQXKXZWBcjs.CONTENT_BREAKPOINTS; exports.ContentAreaWidthContext = _chunkAQXKXZWBcjs.ContentAreaWidthContext; exports.DRAG_AND_DROP_MEDIA_QUERY = _chunkVXAKQRV7cjs.DRAG_AND_DROP_MEDIA_QUERY; exports.GraphQLIntrospector = _chunkAZJYMTBScjs.GraphQLIntrospector; exports.NEAR_VIEWPORT_ROOT_MARGIN = _chunkNTPX5GXIcjs.NEAR_VIEWPORT_ROOT_MARGIN; exports.PREFERS_REDUCED_MOTION_QUERY = _chunkOJZBZH56cjs.PREFERS_REDUCED_MOTION_QUERY; exports.ViewportBreakpoints = _chunkAQXKXZWBcjs.ViewportBreakpoints; exports.batchFetchAuthenticatedImages = _chunkAZJYMTBScjs.batchFetchAuthenticatedImages; exports.breakpoints = _chunkV4FXUIMHcjs.breakpoints; exports.clearAuthedAssetCache = _chunkSZHDXXMKcjs.clearAuthedAssetCache; exports.clearAuthedImageCache = _chunkV4FXUIMHcjs.clearAuthedImageCache; exports.clearVariablesParams = _chunkAZJYMTBScjs.clearParams; exports.coerceValue = _chunkAZJYMTBScjs.coerceValue; exports.completeFormRescue = _chunkAZJYMTBScjs.completeFormRescue; exports.configureAuthenticatedImage = _chunkAZJYMTBScjs.configureAuthenticatedImage; exports.configureBatchImageFetch = _chunkAZJYMTBScjs.configureBatchImageFetch; exports.contentBreakpointFor = _chunkAQXKXZWBcjs.contentBreakpointFor; exports.createSearchParams = _chunkBLH2SFOOcjs.createSearchParams; exports.extractVariablesFromQuery = _chunkAZJYMTBScjs.extractVariablesFromQuery; exports.flattenQueryVariables = _chunkAZJYMTBScjs.flattenQueryVariables; exports.getArrayParams = _chunkAZJYMTBScjs.getArrayParams; exports.getNestedValue = _chunkAZJYMTBScjs.getNestedValue; exports.getRequiredParams = _chunkAZJYMTBScjs.getRequiredParams; exports.introspector = _chunkAZJYMTBScjs.introspector; exports.isInputObjectType = _chunkAZJYMTBScjs.isInputObjectType; exports.isScalarType = _chunkAZJYMTBScjs.isScalarType; exports.mergeDefaults = _chunkAZJYMTBScjs.mergeDefaults; exports.mergeVariables = _chunkAZJYMTBScjs.mergeVariables; exports.resetDownloadsStore = _chunkAZJYMTBScjs.resetDownloadsStore; exports.resolveActiveSection = _chunkAZJYMTBScjs.resolveActiveSection; exports.setNestedValue = _chunkAZJYMTBScjs.setNestedValue; exports.shouldIncludeInUrl = _chunkBLH2SFOOcjs.shouldIncludeInUrl; exports.toast = _chunkAZJYMTBScjs.toast; exports.urlParamsToVariables = _chunkAZJYMTBScjs.urlParamsToVariables; exports.useAccessCodeIntegration = _chunkAZJYMTBScjs.useAccessCodeIntegration; exports.useActiveSection = _chunkAZJYMTBScjs.useActiveSection; exports.useAgentIdentities = _chunk7PNRXJX2cjs.useAgentIdentities; exports.useApiParams = _chunkAZJYMTBScjs.useApiParams; exports.useAuthedAssetSrc = _chunkSZHDXXMKcjs.useAuthedAssetSrc; exports.useAuthedImageSrc = _chunkV4FXUIMHcjs.useAuthedImageSrc; exports.useAuthenticatedImage = _chunkAZJYMTBScjs.useAuthenticatedImage; exports.useAutoLimitTags = _chunkA6P6DHEZcjs.useAutoLimitTags; exports.useAutoplay = _chunkOJZBZH56cjs.useAutoplay; exports.useBatchImages = _chunkAZJYMTBScjs.useBatchImages; exports.useClaudeMirrorSrc = _chunkAZJYMTBScjs.useClaudeMirrorSrc; exports.useContactSubmission = _chunkAZJYMTBScjs.useContactSubmission; exports.useContentBreakpoint = _chunkAQXKXZWBcjs.useContentBreakpoint; exports.useContentLgUp = _chunkAQXKXZWBcjs.useContentLgUp; exports.useContentMdUp = _chunkAQXKXZWBcjs.useContentMdUp; exports.useCopyToClipboard = _chunkAZJYMTBScjs.useCopyToClipboard; exports.useCursorPaginationState = _chunkAZJYMTBScjs.useCursorPaginationState; exports.useDebounce = _chunkOJZBZH56cjs.useDebounce; exports.useDeferredError = _chunkAZJYMTBScjs.useDeferredError; exports.useDownloads = _chunkAZJYMTBScjs.useDownloads; exports.useDragAndDropEnabled = _chunkVXAKQRV7cjs.useDragAndDropEnabled; exports.useFocusTrap = _chunkAZJYMTBScjs.useFocusTrap; exports.useFormRescue = _chunkAZJYMTBScjs.useFormRescue; exports.useHeaderHeight = _chunk24I6RFVUcjs.useHeaderHeight; exports.useHorizontalScrollbar = _chunkVXAKQRV7cjs.useHorizontalScrollbar; exports.useHumanitySignals = _chunkAZJYMTBScjs.useHumanitySignals; exports.useImageEdgeColor = _chunkSTLJCAIZcjs.useImageEdgeColor; exports.useInView = _chunkOJZBZH56cjs.useInView; exports.useIsTruncated = _chunkV4FXUIMHcjs.useIsTruncated; exports.useIsomorphicLayoutEffect = _chunkSZHDXXMKcjs.useIsomorphicLayoutEffect; exports.useKeyboardCollisionPadding = _chunkA6P6DHEZcjs.useKeyboardCollisionPadding; exports.useLgUp = _chunkV4FXUIMHcjs.useLgUp; exports.useLocalStorage = _chunkVXAKQRV7cjs.useLocalStorage; exports.useLocationHash = _chunkAZJYMTBScjs.useLocationHash; exports.useMarqueeEngine = _chunkOJZBZH56cjs.useMarqueeEngine; exports.useMdUp = _chunkV4FXUIMHcjs.useMdUp; exports.useMediaQuery = _chunkV4FXUIMHcjs.useMediaQuery; exports.useMemoizedCallback = _chunkAZJYMTBScjs.useMemoizedCallback; exports.useNatsClient = _chunkAZJYMTBScjs.useNatsClient; exports.useNavMenus = _chunkAZJYMTBScjs.useNavMenus; exports.useNearViewport = _chunkNTPX5GXIcjs.useNearViewport; exports.useNotificationPermission = _chunkAZJYMTBScjs.useNotificationPermission; exports.useOgPlaceholderUrl = _chunkSTLJCAIZcjs.useOgPlaceholderUrl; exports.useOnboardingState = _chunkAZJYMTBScjs.useOnboardingState; exports.usePlatformByValue = _chunkAZJYMTBScjs.usePlatformByValue; exports.usePlatformConfig = _chunkAZJYMTBScjs.usePlatformConfig; exports.usePrefersReducedMotion = _chunkOJZBZH56cjs.usePrefersReducedMotion; exports.usePrefersReducedMotionState = _chunkOJZBZH56cjs.usePrefersReducedMotionState; exports.usePreventScroll = _chunkAZJYMTBScjs.usePreventScroll; exports.useQueryParams = _chunkAZJYMTBScjs.useQueryParams; exports.useRescuedForm = _chunkAZJYMTBScjs.useRescuedForm; exports.useResetOnPageHidden = _chunkOJZBZH56cjs.useResetOnPageHidden; exports.useResumableTimeout = _chunkAZJYMTBScjs.useResumableTimeout; exports.useScenarioPlayer = _chunkAZJYMTBScjs.useScenarioPlayer; exports.useScrollToHash = _chunkAZJYMTBScjs.useScrollToHash; exports.useSearch = _chunkAZJYMTBScjs.useSearch; exports.useSmUp = _chunkV4FXUIMHcjs.useSmUp; exports.useStickyToolbar = _chunkAZJYMTBScjs.useStickyToolbar; exports.useSuppressCloneFocus = _chunkOJZBZH56cjs.useSuppressCloneFocus; exports.useTablePagination = _chunkAZJYMTBScjs.useTablePagination; exports.useThrottle = _chunkAZJYMTBScjs.useThrottle; exports.useToast = _chunkAZJYMTBScjs.useToast; exports.useValidatePlatform = _chunkAZJYMTBScjs.useValidatePlatform; exports.useVisitorDesktopDownload = _chunkAZJYMTBScjs.useVisitorDesktopDownload; exports.useVisitorOs = _chunkTT64NRFUcjs.useVisitorOs; exports.useWindowSize = _chunkAZJYMTBScjs.useWindowSize; exports.validateSchema = _chunkAZJYMTBScjs.validateSchema; exports.validateVariables = _chunkAZJYMTBScjs.validateVariables; exports.variablesToUrlParams = _chunkAZJYMTBScjs.variablesToUrlParams;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-image-edge-color.d.ts","sourceRoot":"","sources":["../../../src/hooks/ui/use-image-edge-color.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-image-edge-color.d.ts","sourceRoot":"","sources":["../../../src/hooks/ui/use-image-edge-color.ts"],"names":[],"mappings":"AA+FA;;;;;;;;;;;GAWG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,EAAE,QAAQ,SAAY,GAAG,MAAM,CAsDnG"}
|
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
import { useState, useEffect } from "react";
|
|
3
3
|
import { useLoadingScope } from "../../components/ui/loading-scope.js";
|
|
4
4
|
import { resizedImageUrl } from "../../embed-shims/next-image.js";
|
|
5
|
-
|
|
5
|
+
import { IMAGE_FIXED_WIDTHS } from "../../styles/image-sizes.js";
|
|
6
|
+
const EDGE_SAMPLE_WIDTH = IMAGE_FIXED_WIDTHS[2];
|
|
6
7
|
function extractEdgeColor(img) {
|
|
7
8
|
const canvas = document.createElement("canvas");
|
|
8
9
|
const ctx = canvas.getContext("2d");
|
|
9
10
|
if (!ctx) return "#000000";
|
|
10
|
-
const maxSize =
|
|
11
|
+
const maxSize = EDGE_SAMPLE_WIDTH;
|
|
11
12
|
const scale = Math.min(maxSize / img.naturalWidth, maxSize / img.naturalHeight);
|
|
12
13
|
const w = Math.round(img.naturalWidth * scale);
|
|
13
14
|
const h = Math.round(img.naturalHeight * scale);
|
|
@@ -78,7 +79,7 @@ function useImageEdgeColor(givenUrl, fallback = "#000000") {
|
|
|
78
79
|
setColor(fallback);
|
|
79
80
|
}
|
|
80
81
|
};
|
|
81
|
-
const sampleUrl = resizedImageUrl(imageUrl,
|
|
82
|
+
const sampleUrl = resizedImageUrl(imageUrl, EDGE_SAMPLE_WIDTH);
|
|
82
83
|
let triedOriginal = sampleUrl === imageUrl;
|
|
83
84
|
img.onerror = () => {
|
|
84
85
|
if (cancelled) return;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// src/styles/image-sizes.ts
|
|
4
|
+
var IMAGE_WIDTHS = [640, 828, 1200, 1920];
|
|
5
|
+
var IMAGE_FIXED_WIDTHS = [32, 64, 128, 256, 384];
|
|
6
|
+
var IMAGE_QUALITY = 75;
|
|
7
|
+
var IMAGE_MAX_WIDTH = IMAGE_WIDTHS[IMAGE_WIDTHS.length - 1];
|
|
8
|
+
var IMAGE_SLOT = {
|
|
9
|
+
/** The whole window (a background, a lightbox). */
|
|
10
|
+
full: "100vw",
|
|
11
|
+
/** An article's or a page's main picture, up to its 1200 px column. */
|
|
12
|
+
hero: "(max-width: 1200px) 100vw, 1200px",
|
|
13
|
+
/** Half the page from a laptop up, the whole width below (a split hero, a program cover). */
|
|
14
|
+
half: "(min-width: 1024px) 50vw, 100vw",
|
|
15
|
+
/** A card in a two- or three-column grid. */
|
|
16
|
+
card: "(max-width: 768px) 100vw, (max-width: 1519px) 50vw, 33vw",
|
|
17
|
+
/** A card in a three- or four-column grid. */
|
|
18
|
+
cardSmall: "(max-width: 768px) 50vw, (max-width: 1024px) 33vw, 25vw",
|
|
19
|
+
/** A column of a photo wall: a quarter of the page, half on a phone. */
|
|
20
|
+
wall: "(min-width: 1024px) 25vw, 50vw",
|
|
21
|
+
/** A fixed column up to 400 px (a side panel, a preview). */
|
|
22
|
+
panel: "(max-width: 768px) 100vw, 400px",
|
|
23
|
+
/** A picture in running text, up to 400 px (a markdown image), the whole width only on the narrowest phones. */
|
|
24
|
+
inline: "(max-width: 400px) 100vw, 400px",
|
|
25
|
+
/** A cover beside text, up to 256 px (a release card's cover), the whole width on a phone. */
|
|
26
|
+
aside: "(max-width: 768px) 100vw, 256px",
|
|
27
|
+
/** A wide column up to 768 px (a modal's media, a reading column). */
|
|
28
|
+
column: "(max-width: 768px) 100vw, 768px"
|
|
29
|
+
};
|
|
30
|
+
var IMAGE_FIXED_PX = {
|
|
31
|
+
icon: 16,
|
|
32
|
+
glyph: 20,
|
|
33
|
+
logo: 32,
|
|
34
|
+
logoLg: 40,
|
|
35
|
+
tile: 56,
|
|
36
|
+
thumb: 64,
|
|
37
|
+
mark: 96,
|
|
38
|
+
feature: 128,
|
|
39
|
+
preview: 192,
|
|
40
|
+
cover: 240
|
|
41
|
+
};
|
|
42
|
+
function fixedImageSlot(size) {
|
|
43
|
+
return `${IMAGE_FIXED_PX[size]}px`;
|
|
44
|
+
}
|
|
45
|
+
var IMAGE_FRAME = {
|
|
46
|
+
/** The 1200×630 card every link preview (Open Graph, X, Slack, LinkedIn) is drawn at. */
|
|
47
|
+
social: { width: 1200, height: 630 },
|
|
48
|
+
/** An email's lead picture, at 2x its 560 px column. */
|
|
49
|
+
emailHero: { width: 1120, height: 630 },
|
|
50
|
+
/** An email's card picture, at 2x its 120 px box. */
|
|
51
|
+
emailCard: { width: 240, height: 160 },
|
|
52
|
+
/** A video's poster when the caller states no size. */
|
|
53
|
+
poster: { width: 560, height: 315 }
|
|
54
|
+
};
|
|
55
|
+
function imageWidthFor(drawnPx) {
|
|
56
|
+
for (const width of IMAGE_WIDTHS) if (width >= drawnPx) return width;
|
|
57
|
+
return IMAGE_MAX_WIDTH;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
exports.IMAGE_FIXED_PX = IMAGE_FIXED_PX;
|
|
61
|
+
exports.IMAGE_FIXED_WIDTHS = IMAGE_FIXED_WIDTHS;
|
|
62
|
+
exports.IMAGE_FRAME = IMAGE_FRAME;
|
|
63
|
+
exports.IMAGE_MAX_WIDTH = IMAGE_MAX_WIDTH;
|
|
64
|
+
exports.IMAGE_QUALITY = IMAGE_QUALITY;
|
|
65
|
+
exports.IMAGE_SLOT = IMAGE_SLOT;
|
|
66
|
+
exports.IMAGE_WIDTHS = IMAGE_WIDTHS;
|
|
67
|
+
exports.fixedImageSlot = fixedImageSlot;
|
|
68
|
+
exports.imageWidthFor = imageWidthFor;
|