@flamingo-stack/openframe-frontend-core 0.0.803 → 0.0.805
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-MII4RDO4.cjs → chunk-2NVIGBJC.cjs} +80 -80
- package/dist/{chunk-6JVNUGN3.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-HVWMPUXK.cjs → chunk-55TGW6BF.cjs} +6 -6
- package/dist/{chunk-IYWX4GOG.cjs → chunk-66ZQ7LDR.cjs} +38 -35
- package/dist/{chunk-H4T3YHYH.cjs → chunk-6JRQ57DU.cjs} +585 -599
- package/dist/{chunk-XOFGPSNP.cjs → chunk-6UGNFMZB.cjs} +36 -36
- package/dist/{chunk-Y5XHMEBB.cjs → chunk-76NE67PK.cjs} +5 -5
- package/dist/{chunk-VKSO3UYU.cjs → chunk-AC5EBHAX.cjs} +28 -28
- package/dist/{chunk-OG4XH6C5.cjs → chunk-AZJYMTBS.cjs} +33 -33
- package/dist/{chunk-HEMZOHNB.cjs → chunk-BVSZTKI3.cjs} +34 -21
- package/dist/{chunk-TVAU56UU.cjs → chunk-F2VN3UUB.cjs} +473 -508
- package/dist/{chunk-TELXF5WD.cjs → chunk-FLW2VL5W.cjs} +16 -16
- package/dist/{chunk-FS4TVAE7.cjs → chunk-FQ4LYYBI.cjs} +52 -52
- package/dist/{chunk-VVLL37EM.cjs → chunk-GAHXURKJ.cjs} +6 -6
- package/dist/{chunk-2X3N6MSR.cjs → chunk-JLKGLPDC.cjs} +21 -21
- package/dist/{chunk-3NGJ7NPT.cjs → chunk-KVJKKVB3.cjs} +7 -7
- package/dist/{chunk-YKQGYAG5.cjs → chunk-LZIQXGAW.cjs} +91 -88
- package/dist/{chunk-T7B3FJY6.cjs → chunk-MEDSJCEX.cjs} +4 -4
- package/dist/{chunk-FFRFKWTZ.cjs → chunk-MHH7CHNI.cjs} +17 -14
- package/dist/{chunk-IE3CPPHJ.cjs → chunk-NBLQFJ4I.cjs} +100 -99
- package/dist/{chunk-KVL3QRFX.cjs → chunk-NXJ3O4WO.cjs} +15 -15
- package/dist/{chunk-YBTORXFY.cjs → chunk-PRCGRDHV.cjs} +40 -25
- package/dist/{chunk-JTDOBGKE.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-CACULEQS.cjs → chunk-TTERV57X.cjs} +4 -4
- package/dist/{chunk-NNQXP2ZM.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-I4BODSPV.cjs → chunk-WSKMV2QS.cjs} +3 -3
- package/dist/{chunk-MBZIARIL.cjs → chunk-XXARXK62.cjs} +26 -26
- package/dist/{chunk-HATRCNXJ.cjs → chunk-XYZBN6D7.cjs} +2 -2
- package/dist/{chunk-QFBRQ22U.cjs → chunk-Z6Y5X5SF.cjs} +41 -41
- package/dist/{cloud-tenants-GKCZSLEV.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/chat-message-row.d.ts.map +1 -1
- package/dist/components/chat/chat-message-row.js +3 -2
- 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/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/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/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/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-XIXLFYRJ.cjs → devices-CETR72XY.cjs} +20 -20
- package/dist/{embeddable-chat-SVDMLAER.cjs → embeddable-chat-GHBCX2BY.cjs} +84 -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/index.cjs +43 -25
- package/dist/{knowledge-3DKG5QG2.cjs → knowledge-A2MWEF23.cjs} +20 -20
- package/dist/{logs-RIU2TTRZ.cjs → logs-47JODA6C.cjs} +27 -27
- package/dist/{policies-F2ZB2J4L.cjs → policies-OPIDR6XF.cjs} +23 -23
- package/dist/{remote-session-GBMM5UPQ.cjs → remote-session-IQTPEG63.cjs} +8 -8
- package/dist/{scripts-XX5LMCRA.cjs → scripts-4MQGJWFP.cjs} +26 -26
- package/dist/{software-update-VYBM7SC6.cjs → software-update-MQIGPBZ6.cjs} +23 -23
- package/dist/styles/image-sizes.cjs +68 -0
- 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-5QIIA24E.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 -2
- package/src/components/agent-mark.tsx +3 -4
- package/src/components/chat/chat-message-row.tsx +3 -2
- 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/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/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/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/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
|
@@ -15,25 +15,25 @@ var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
19
|
-
require('./chunk-
|
|
18
|
+
var _chunk6JRQ57DUcjs = require('./chunk-6JRQ57DU.cjs');
|
|
19
|
+
require('./chunk-FLW2VL5W.cjs');
|
|
20
20
|
require('./chunk-NG3RKTQU.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunk66ZQ7LDRcjs = require('./chunk-66ZQ7LDR.cjs');
|
|
24
24
|
require('./chunk-HQQE74RO.cjs');
|
|
25
25
|
require('./chunk-DEY6XXGO.cjs');
|
|
26
|
-
require('./chunk-
|
|
26
|
+
require('./chunk-AZJYMTBS.cjs');
|
|
27
27
|
require('./chunk-VXAKQRV7.cjs');
|
|
28
28
|
require('./chunk-24I6RFVU.cjs');
|
|
29
29
|
require('./chunk-A6P6DHEZ.cjs');
|
|
30
30
|
require('./chunk-MZ4KBSH7.cjs');
|
|
31
31
|
require('./chunk-YR74H7Z3.cjs');
|
|
32
|
-
require('./chunk-
|
|
33
|
-
require('./chunk-
|
|
34
|
-
require('./chunk-
|
|
32
|
+
require('./chunk-NBLQFJ4I.cjs');
|
|
33
|
+
require('./chunk-F2VN3UUB.cjs');
|
|
34
|
+
require('./chunk-JLKGLPDC.cjs');
|
|
35
35
|
require('./chunk-ZD6SZLO2.cjs');
|
|
36
|
-
require('./chunk-
|
|
36
|
+
require('./chunk-KVJKKVB3.cjs');
|
|
37
37
|
require('./chunk-JTIGKLKJ.cjs');
|
|
38
38
|
require('./chunk-ZOZR3QI2.cjs');
|
|
39
39
|
require('./chunk-OMV5S5PI.cjs');
|
|
@@ -1823,21 +1823,21 @@ require('./chunk-LMBYZITR.cjs');
|
|
|
1823
1823
|
require('./chunk-TMVC7S2R.cjs');
|
|
1824
1824
|
require('./chunk-IYHH5EIO.cjs');
|
|
1825
1825
|
require('./chunk-XIBCMGBW.cjs');
|
|
1826
|
-
require('./chunk-
|
|
1826
|
+
require('./chunk-TT64NRFU.cjs');
|
|
1827
1827
|
require('./chunk-OJZBZH56.cjs');
|
|
1828
|
-
require('./chunk-
|
|
1828
|
+
require('./chunk-XYZBN6D7.cjs');
|
|
1829
1829
|
require('./chunk-JKX2C3I2.cjs');
|
|
1830
1830
|
require('./chunk-7DNL734S.cjs');
|
|
1831
1831
|
require('./chunk-WWUSFOJ7.cjs');
|
|
1832
1832
|
require('./chunk-SKI6NKOE.cjs');
|
|
1833
1833
|
require('./chunk-EWPR7662.cjs');
|
|
1834
|
-
require('./chunk-
|
|
1835
|
-
require('./chunk-
|
|
1836
|
-
require('./chunk-
|
|
1837
|
-
require('./chunk-
|
|
1834
|
+
require('./chunk-MHH7CHNI.cjs');
|
|
1835
|
+
require('./chunk-THY2XVGY.cjs');
|
|
1836
|
+
require('./chunk-PRCGRDHV.cjs');
|
|
1837
|
+
require('./chunk-4W77VLQV.cjs');
|
|
1838
1838
|
require('./chunk-P4B6PVSG.cjs');
|
|
1839
|
-
require('./chunk-
|
|
1840
|
-
require('./chunk-
|
|
1839
|
+
require('./chunk-GAHXURKJ.cjs');
|
|
1840
|
+
require('./chunk-TGOJHOQR.cjs');
|
|
1841
1841
|
require('./chunk-S5C3OZCO.cjs');
|
|
1842
1842
|
require('./chunk-32ASZMTV.cjs');
|
|
1843
1843
|
require('./chunk-OOYBIS7D.cjs');
|
|
@@ -1846,13 +1846,13 @@ require('./chunk-6VOOPMP5.cjs');
|
|
|
1846
1846
|
require('./chunk-ORO54HDF.cjs');
|
|
1847
1847
|
require('./chunk-RUHKTWGB.cjs');
|
|
1848
1848
|
require('./chunk-BLH2SFOO.cjs');
|
|
1849
|
-
require('./chunk-
|
|
1849
|
+
require('./chunk-STLJCAIZ.cjs');
|
|
1850
1850
|
require('./chunk-7PNRXJX2.cjs');
|
|
1851
1851
|
require('./chunk-NTPX5GXI.cjs');
|
|
1852
1852
|
require('./chunk-AQXKXZWB.cjs');
|
|
1853
1853
|
require('./chunk-V4FXUIMH.cjs');
|
|
1854
1854
|
require('./chunk-SZHDXXMK.cjs');
|
|
1855
|
-
require('./chunk-
|
|
1855
|
+
require('./chunk-VXXOUM2K.cjs');
|
|
1856
1856
|
require('./chunk-5GJM7VRR.cjs');
|
|
1857
1857
|
require('./chunk-KUXHXLJQ.cjs');
|
|
1858
1858
|
require('./chunk-UJ7AXHRZ.cjs');
|
|
@@ -1920,14 +1920,14 @@ var noop = () => {
|
|
|
1920
1920
|
var HIDDEN_WHEN_COMPACT = ["organization"];
|
|
1921
1921
|
function StaticPackageField({ value }) {
|
|
1922
1922
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1923
|
-
|
|
1923
|
+
_chunk66ZQ7LDRcjs.Autocomplete,
|
|
1924
1924
|
{
|
|
1925
|
-
label:
|
|
1925
|
+
label: _chunk6JRQ57DUcjs.PACKAGE_SEARCH_LABEL,
|
|
1926
1926
|
labelVariant: "large",
|
|
1927
1927
|
options: value ? [{ value: value.id, label: value.name, description: _nullishCoalesce(value.description, () => ( void 0)) }] : [],
|
|
1928
1928
|
value: _nullishCoalesce(_optionalChain([value, 'optionalAccess', _ => _.id]), () => ( null)),
|
|
1929
1929
|
onChange: noop,
|
|
1930
|
-
placeholder:
|
|
1930
|
+
placeholder: _chunk6JRQ57DUcjs.PACKAGE_SEARCH_PLACEHOLDER
|
|
1931
1931
|
}
|
|
1932
1932
|
);
|
|
1933
1933
|
}
|
|
@@ -1941,7 +1941,7 @@ function SoftwareUpdateScreen({ compact = false }) {
|
|
|
1941
1941
|
[fixture.devices, fixture.selectedIds]
|
|
1942
1942
|
);
|
|
1943
1943
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full bg-ods-bg pt-[var(--spacing-system-l)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1944
|
-
|
|
1944
|
+
_chunk6JRQ57DUcjs.SoftwareActionForm,
|
|
1945
1945
|
{
|
|
1946
1946
|
action: fixture.action,
|
|
1947
1947
|
showHeader: false,
|
|
@@ -1953,7 +1953,7 @@ function SoftwareUpdateScreen({ compact = false }) {
|
|
|
1953
1953
|
initialValues: fixture.initialValues,
|
|
1954
1954
|
renderPackageSearch,
|
|
1955
1955
|
renderDevicePicker: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1956
|
-
|
|
1956
|
+
_chunk6JRQ57DUcjs.DeviceSelector,
|
|
1957
1957
|
{
|
|
1958
1958
|
devices: selected,
|
|
1959
1959
|
loading: false,
|
|
@@ -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;
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THE sizes every picture is fetched at: the one table, read by every component that draws a picture, by the host's
|
|
3
|
+
* image settings (a Next host's `images.deviceSizes`, `images.imageSizes` and `images.qualities` are derived from it,
|
|
4
|
+
* never typed) and by the code that makes pictures on the server (link-preview cards, emails, video posters).
|
|
5
|
+
*
|
|
6
|
+
* Why one table: a resized picture is cached by its exact address, so every width, quality and fit a component picks
|
|
7
|
+
* on its own is another copy the image host makes and caches separately. With eight widths per picture, three
|
|
8
|
+
* qualities and ad-hoc pixel sizes, a blog post's cover almost never had a cached copy when a reader arrived, and
|
|
9
|
+
* waited for a fresh resize (measured 2026-10-26: 19 of 20 blog covers, ~0.6 s each; Google's field data showed the
|
|
10
|
+
* cover's download time going from 0.47 s to 1.18 s). A short ladder of widths and one quality keep the copies few, so
|
|
11
|
+
* the ones that exist are reused.
|
|
12
|
+
*
|
|
13
|
+
* What a component chooses is the SLOT (how wide the picture is drawn), never a width or a quality: a responsive
|
|
14
|
+
* picture states `sizes={IMAGE_SLOT.card}`, a fixed-size one states its box from `IMAGE_FIXED_PX` (or the avatar
|
|
15
|
+
* scale). The browser then picks a width from the ladder. Import-free, so a host's config can read it.
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
18
|
+
* The widths a responsive picture is offered at (a `srcset`): every responsive picture, of every kind, picks from
|
|
19
|
+
* this ladder. Covers a phone (828, and 1200 at 3x), a desktop column (1200) and a retina desktop (1920).
|
|
20
|
+
*/
|
|
21
|
+
export declare const IMAGE_WIDTHS: readonly [640, 828, 1200, 1920];
|
|
22
|
+
/**
|
|
23
|
+
* The widths a fixed-size picture (an avatar, a logo, a thumbnail) is fetched at: its 1x and 2x, rounded up to this
|
|
24
|
+
* ladder. Any box up to 192 px lands on one of these four files.
|
|
25
|
+
*/
|
|
26
|
+
export declare const IMAGE_FIXED_WIDTHS: readonly [32, 64, 128, 256, 384];
|
|
27
|
+
/** The quality every resized picture is encoded at. One value: a second quality is a second copy of every picture. */
|
|
28
|
+
export declare const IMAGE_QUALITY = 75;
|
|
29
|
+
/** The widest a picture is ever stored or fetched: the top of {@link IMAGE_WIDTHS}. Uploads are capped to it. */
|
|
30
|
+
export declare const IMAGE_MAX_WIDTH: 640 | 828 | 1200 | 1920;
|
|
31
|
+
/**
|
|
32
|
+
* How wide a responsive picture is drawn, relative to the window: its `sizes`. One entry per kind of slot; a new
|
|
33
|
+
* layout picks the closest slot (a few pixels' difference picks the same file from the ladder anyway).
|
|
34
|
+
*/
|
|
35
|
+
export declare const IMAGE_SLOT: {
|
|
36
|
+
/** The whole window (a background, a lightbox). */
|
|
37
|
+
readonly full: "100vw";
|
|
38
|
+
/** An article's or a page's main picture, up to its 1200 px column. */
|
|
39
|
+
readonly hero: "(max-width: 1200px) 100vw, 1200px";
|
|
40
|
+
/** Half the page from a laptop up, the whole width below (a split hero, a program cover). */
|
|
41
|
+
readonly half: "(min-width: 1024px) 50vw, 100vw";
|
|
42
|
+
/** A card in a two- or three-column grid. */
|
|
43
|
+
readonly card: "(max-width: 768px) 100vw, (max-width: 1519px) 50vw, 33vw";
|
|
44
|
+
/** A card in a three- or four-column grid. */
|
|
45
|
+
readonly cardSmall: "(max-width: 768px) 50vw, (max-width: 1024px) 33vw, 25vw";
|
|
46
|
+
/** A column of a photo wall: a quarter of the page, half on a phone. */
|
|
47
|
+
readonly wall: "(min-width: 1024px) 25vw, 50vw";
|
|
48
|
+
/** A fixed column up to 400 px (a side panel, a preview). */
|
|
49
|
+
readonly panel: "(max-width: 768px) 100vw, 400px";
|
|
50
|
+
/** A picture in running text, up to 400 px (a markdown image), the whole width only on the narrowest phones. */
|
|
51
|
+
readonly inline: "(max-width: 400px) 100vw, 400px";
|
|
52
|
+
/** A cover beside text, up to 256 px (a release card's cover), the whole width on a phone. */
|
|
53
|
+
readonly aside: "(max-width: 768px) 100vw, 256px";
|
|
54
|
+
/** A wide column up to 768 px (a modal's media, a reading column). */
|
|
55
|
+
readonly column: "(max-width: 768px) 100vw, 768px";
|
|
56
|
+
};
|
|
57
|
+
export type ImageSlot = keyof typeof IMAGE_SLOT;
|
|
58
|
+
/**
|
|
59
|
+
* The boxes a fixed-size picture is drawn in, in CSS pixels: its `width`/`height` attributes. Avatars use the avatar
|
|
60
|
+
* scale (`AVATAR_SIZE_PX`); everything else fixed (a logo, a thumbnail, a tile's picture) uses one of these.
|
|
61
|
+
*/
|
|
62
|
+
export declare const IMAGE_FIXED_PX: {
|
|
63
|
+
readonly icon: 16;
|
|
64
|
+
readonly glyph: 20;
|
|
65
|
+
readonly logo: 32;
|
|
66
|
+
readonly logoLg: 40;
|
|
67
|
+
readonly tile: 56;
|
|
68
|
+
readonly thumb: 64;
|
|
69
|
+
readonly mark: 96;
|
|
70
|
+
readonly feature: 128;
|
|
71
|
+
readonly preview: 192;
|
|
72
|
+
readonly cover: 240;
|
|
73
|
+
};
|
|
74
|
+
export type ImageFixedSize = keyof typeof IMAGE_FIXED_PX;
|
|
75
|
+
/** The `sizes` of a `fill` picture drawn in a fixed box (`"56px"`), from {@link IMAGE_FIXED_PX}. */
|
|
76
|
+
export declare function fixedImageSlot(size: ImageFixedSize): `${number}px`;
|
|
77
|
+
/**
|
|
78
|
+
* Pictures made on the server, at one size each (they are files, not a `srcset`): the link-preview card, an email's
|
|
79
|
+
* pictures, a video's poster.
|
|
80
|
+
*/
|
|
81
|
+
export declare const IMAGE_FRAME: {
|
|
82
|
+
/** The 1200×630 card every link preview (Open Graph, X, Slack, LinkedIn) is drawn at. */
|
|
83
|
+
readonly social: {
|
|
84
|
+
readonly width: 1200;
|
|
85
|
+
readonly height: 630;
|
|
86
|
+
};
|
|
87
|
+
/** An email's lead picture, at 2x its 560 px column. */
|
|
88
|
+
readonly emailHero: {
|
|
89
|
+
readonly width: 1120;
|
|
90
|
+
readonly height: 630;
|
|
91
|
+
};
|
|
92
|
+
/** An email's card picture, at 2x its 120 px box. */
|
|
93
|
+
readonly emailCard: {
|
|
94
|
+
readonly width: 240;
|
|
95
|
+
readonly height: 160;
|
|
96
|
+
};
|
|
97
|
+
/** A video's poster when the caller states no size. */
|
|
98
|
+
readonly poster: {
|
|
99
|
+
readonly width: 560;
|
|
100
|
+
readonly height: 315;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
export type ImageFrame = keyof typeof IMAGE_FRAME;
|
|
104
|
+
/**
|
|
105
|
+
* The ladder width to fetch for a picture drawn `drawnPx` wide (already multiplied for the screen's density): the
|
|
106
|
+
* smallest width of {@link IMAGE_WIDTHS} that covers it, else the widest. For code that measures a slot itself (a
|
|
107
|
+
* photo wall's column) and asks for one URL, so it lands on a file the `srcset` pictures share.
|
|
108
|
+
*/
|
|
109
|
+
export declare function imageWidthFor(drawnPx: number): number;
|
|
110
|
+
//# sourceMappingURL=image-sizes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image-sizes.d.ts","sourceRoot":"","sources":["../../src/styles/image-sizes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH;;;GAGG;AACH,eAAO,MAAM,YAAY,iCAAkC,CAAC;AAE5D;;;GAGG;AACH,eAAO,MAAM,kBAAkB,kCAAmC,CAAC;AAEnE,sHAAsH;AACtH,eAAO,MAAM,aAAa,KAAK,CAAC;AAEhC,iHAAiH;AACjH,eAAO,MAAM,eAAe,yBAAwC,CAAC;AAErE;;;GAGG;AACH,eAAO,MAAM,UAAU;IACrB,mDAAmD;;IAEnD,uEAAuE;;IAEvE,6FAA6F;;IAE7F,6CAA6C;;IAE7C,8CAA8C;;IAE9C,wEAAwE;;IAExE,6DAA6D;;IAE7D,gHAAgH;;IAEhH,8FAA8F;;IAE9F,sEAAsE;;CAE9D,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,MAAM,OAAO,UAAU,CAAC;AAEhD;;;GAGG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;CAWjB,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,MAAM,OAAO,cAAc,CAAC;AAEzD,oGAAoG;AACpG,wBAAgB,cAAc,CAAC,IAAI,EAAE,cAAc,GAAG,GAAG,MAAM,IAAI,CAElE;AAED;;;GAGG;AACH,eAAO,MAAM,WAAW;IACtB,yFAAyF;;;;;IAEzF,wDAAwD;;;;;IAExD,qDAAqD;;;;;IAErD,uDAAuD;;;;;CAE/C,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,WAAW,CAAC;AAElD;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAGrD"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
const IMAGE_WIDTHS = [640, 828, 1200, 1920];
|
|
2
|
+
const IMAGE_FIXED_WIDTHS = [32, 64, 128, 256, 384];
|
|
3
|
+
const IMAGE_QUALITY = 75;
|
|
4
|
+
const IMAGE_MAX_WIDTH = IMAGE_WIDTHS[IMAGE_WIDTHS.length - 1];
|
|
5
|
+
const IMAGE_SLOT = {
|
|
6
|
+
/** The whole window (a background, a lightbox). */
|
|
7
|
+
full: "100vw",
|
|
8
|
+
/** An article's or a page's main picture, up to its 1200 px column. */
|
|
9
|
+
hero: "(max-width: 1200px) 100vw, 1200px",
|
|
10
|
+
/** Half the page from a laptop up, the whole width below (a split hero, a program cover). */
|
|
11
|
+
half: "(min-width: 1024px) 50vw, 100vw",
|
|
12
|
+
/** A card in a two- or three-column grid. */
|
|
13
|
+
card: "(max-width: 768px) 100vw, (max-width: 1519px) 50vw, 33vw",
|
|
14
|
+
/** A card in a three- or four-column grid. */
|
|
15
|
+
cardSmall: "(max-width: 768px) 50vw, (max-width: 1024px) 33vw, 25vw",
|
|
16
|
+
/** A column of a photo wall: a quarter of the page, half on a phone. */
|
|
17
|
+
wall: "(min-width: 1024px) 25vw, 50vw",
|
|
18
|
+
/** A fixed column up to 400 px (a side panel, a preview). */
|
|
19
|
+
panel: "(max-width: 768px) 100vw, 400px",
|
|
20
|
+
/** A picture in running text, up to 400 px (a markdown image), the whole width only on the narrowest phones. */
|
|
21
|
+
inline: "(max-width: 400px) 100vw, 400px",
|
|
22
|
+
/** A cover beside text, up to 256 px (a release card's cover), the whole width on a phone. */
|
|
23
|
+
aside: "(max-width: 768px) 100vw, 256px",
|
|
24
|
+
/** A wide column up to 768 px (a modal's media, a reading column). */
|
|
25
|
+
column: "(max-width: 768px) 100vw, 768px"
|
|
26
|
+
};
|
|
27
|
+
const IMAGE_FIXED_PX = {
|
|
28
|
+
icon: 16,
|
|
29
|
+
glyph: 20,
|
|
30
|
+
logo: 32,
|
|
31
|
+
logoLg: 40,
|
|
32
|
+
tile: 56,
|
|
33
|
+
thumb: 64,
|
|
34
|
+
mark: 96,
|
|
35
|
+
feature: 128,
|
|
36
|
+
preview: 192,
|
|
37
|
+
cover: 240
|
|
38
|
+
};
|
|
39
|
+
function fixedImageSlot(size) {
|
|
40
|
+
return `${IMAGE_FIXED_PX[size]}px`;
|
|
41
|
+
}
|
|
42
|
+
const IMAGE_FRAME = {
|
|
43
|
+
/** The 1200×630 card every link preview (Open Graph, X, Slack, LinkedIn) is drawn at. */
|
|
44
|
+
social: { width: 1200, height: 630 },
|
|
45
|
+
/** An email's lead picture, at 2x its 560 px column. */
|
|
46
|
+
emailHero: { width: 1120, height: 630 },
|
|
47
|
+
/** An email's card picture, at 2x its 120 px box. */
|
|
48
|
+
emailCard: { width: 240, height: 160 },
|
|
49
|
+
/** A video's poster when the caller states no size. */
|
|
50
|
+
poster: { width: 560, height: 315 }
|
|
51
|
+
};
|
|
52
|
+
function imageWidthFor(drawnPx) {
|
|
53
|
+
for (const width of IMAGE_WIDTHS) if (width >= drawnPx) return width;
|
|
54
|
+
return IMAGE_MAX_WIDTH;
|
|
55
|
+
}
|
|
56
|
+
export {
|
|
57
|
+
IMAGE_FIXED_PX,
|
|
58
|
+
IMAGE_FIXED_WIDTHS,
|
|
59
|
+
IMAGE_FRAME,
|
|
60
|
+
IMAGE_MAX_WIDTH,
|
|
61
|
+
IMAGE_QUALITY,
|
|
62
|
+
IMAGE_SLOT,
|
|
63
|
+
IMAGE_WIDTHS,
|
|
64
|
+
fixedImageSlot,
|
|
65
|
+
imageWidthFor
|
|
66
|
+
};
|
|
@@ -10,9 +10,9 @@ var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkFLW2VL5Wcjs = require('./chunk-FLW2VL5W.cjs');
|
|
14
14
|
require('./chunk-VXAKQRV7.cjs');
|
|
15
|
-
require('./chunk-
|
|
15
|
+
require('./chunk-JLKGLPDC.cjs');
|
|
16
16
|
require('./chunk-JTIGKLKJ.cjs');
|
|
17
17
|
require('./chunk-ZOZR3QI2.cjs');
|
|
18
18
|
require('./chunk-OMV5S5PI.cjs');
|
|
@@ -1802,11 +1802,11 @@ require('./chunk-LMBYZITR.cjs');
|
|
|
1802
1802
|
require('./chunk-TMVC7S2R.cjs');
|
|
1803
1803
|
require('./chunk-IYHH5EIO.cjs');
|
|
1804
1804
|
require('./chunk-XIBCMGBW.cjs');
|
|
1805
|
-
require('./chunk-
|
|
1805
|
+
require('./chunk-XYZBN6D7.cjs');
|
|
1806
1806
|
require('./chunk-WWUSFOJ7.cjs');
|
|
1807
1807
|
require('./chunk-SKI6NKOE.cjs');
|
|
1808
|
-
require('./chunk-
|
|
1809
|
-
require('./chunk-
|
|
1808
|
+
require('./chunk-4W77VLQV.cjs');
|
|
1809
|
+
require('./chunk-TGOJHOQR.cjs');
|
|
1810
1810
|
require('./chunk-S5C3OZCO.cjs');
|
|
1811
1811
|
require('./chunk-32ASZMTV.cjs');
|
|
1812
1812
|
require('./chunk-OOYBIS7D.cjs');
|
|
@@ -1817,7 +1817,7 @@ require('./chunk-RUHKTWGB.cjs');
|
|
|
1817
1817
|
require('./chunk-7PNRXJX2.cjs');
|
|
1818
1818
|
require('./chunk-V4FXUIMH.cjs');
|
|
1819
1819
|
require('./chunk-SZHDXXMK.cjs');
|
|
1820
|
-
require('./chunk-
|
|
1820
|
+
require('./chunk-VXXOUM2K.cjs');
|
|
1821
1821
|
require('./chunk-5GJM7VRR.cjs');
|
|
1822
1822
|
require('./chunk-KUXHXLJQ.cjs');
|
|
1823
1823
|
require('./chunk-NL3G642U.cjs');
|
|
@@ -1840,7 +1840,7 @@ function buildTicketsBoardFixture(cast) {
|
|
|
1840
1840
|
const dana = assignee(cast.person("dana"));
|
|
1841
1841
|
const alex = assignee(cast.person("alex"));
|
|
1842
1842
|
return [
|
|
1843
|
-
|
|
1843
|
+
_chunkFLW2VL5Wcjs.columnFromTicketStatus.call(void 0, "ACTIVE", [
|
|
1844
1844
|
ticket("tk-1051", "Printer offline at the front desk", "ACTIVE", {
|
|
1845
1845
|
ticketNumber: "1051",
|
|
1846
1846
|
agent: "fae",
|
|
@@ -1858,7 +1858,7 @@ function buildTicketsBoardFixture(cast) {
|
|
|
1858
1858
|
tags: ["onboarding"]
|
|
1859
1859
|
})
|
|
1860
1860
|
]),
|
|
1861
|
-
|
|
1861
|
+
_chunkFLW2VL5Wcjs.columnFromTicketStatus.call(void 0, "TECH_REQUIRED", [
|
|
1862
1862
|
ticket("tk-1049", "Acrobat Pro for Maya", "TECH_REQUIRED", {
|
|
1863
1863
|
ticketNumber: "1049",
|
|
1864
1864
|
agent: "fae",
|
|
@@ -1882,7 +1882,7 @@ function buildTicketsBoardFixture(cast) {
|
|
|
1882
1882
|
escalatedByUser: true
|
|
1883
1883
|
})
|
|
1884
1884
|
]),
|
|
1885
|
-
|
|
1885
|
+
_chunkFLW2VL5Wcjs.columnFromTicketStatus.call(void 0, "ON_HOLD", [
|
|
1886
1886
|
ticket("tk-1046", "Replace the conference room display", "ON_HOLD", {
|
|
1887
1887
|
ticketNumber: "1046",
|
|
1888
1888
|
organizationName: _chunkFDZOE5TLcjs.DEMO_ORGANIZATIONS.acme.name,
|
|
@@ -1891,7 +1891,7 @@ function buildTicketsBoardFixture(cast) {
|
|
|
1891
1891
|
activity: { kind: "waiting-external" }
|
|
1892
1892
|
})
|
|
1893
1893
|
]),
|
|
1894
|
-
|
|
1894
|
+
_chunkFLW2VL5Wcjs.columnFromTicketStatus.call(void 0,
|
|
1895
1895
|
"RESOLVED",
|
|
1896
1896
|
[
|
|
1897
1897
|
ticket("tk-1048", "Slow laptop", "RESOLVED", {
|
|
@@ -1927,7 +1927,7 @@ function TicketsBoardScreen({ compact = false }) {
|
|
|
1927
1927
|
const cast = _chunkLHV2R6QUcjs.useProductDemoCast.call(void 0, );
|
|
1928
1928
|
const board = _react.useMemo.call(void 0, () => buildTicketsBoardFixture(cast), [cast]);
|
|
1929
1929
|
const columns = compact ? board.filter((column) => column.id !== "ON_HOLD") : board;
|
|
1930
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full bg-ods-bg p-[var(--spacing-system-m)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1930
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full bg-ods-bg p-[var(--spacing-system-m)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFLW2VL5Wcjs.Board, { columns, onChange: noop, initialCollapsed: compact ? void 0 : FOLDED }) });
|
|
1931
1931
|
}
|
|
1932
1932
|
|
|
1933
1933
|
|
package/eslint-config/base.js
CHANGED
|
@@ -7,6 +7,7 @@ import tseslint from 'typescript-eslint';
|
|
|
7
7
|
|
|
8
8
|
import { boxedPrimitivesPlugin } from './boxed-primitives.js';
|
|
9
9
|
import { ignores } from './ignores.js';
|
|
10
|
+
import { imageSizesPlugin } from './image-sizes.js';
|
|
10
11
|
import { layoutVariantsPlugin } from './layout-variants.js';
|
|
11
12
|
import { popupPortalPlugin } from './popup-portal.js';
|
|
12
13
|
import { reExportsPlugin } from './re-exports.js';
|
|
@@ -18,6 +19,7 @@ export const flamingoPlugin = {
|
|
|
18
19
|
rules: {
|
|
19
20
|
...webviewPerformancePlugin.rules,
|
|
20
21
|
...layoutVariantsPlugin.rules,
|
|
22
|
+
...imageSizesPlugin.rules,
|
|
21
23
|
...boxedPrimitivesPlugin.rules,
|
|
22
24
|
...popupPortalPlugin.rules,
|
|
23
25
|
...reExportsPlugin.rules,
|
|
@@ -331,6 +333,16 @@ export const base = [
|
|
|
331
333
|
rules: { 'flamingo/no-mixed-layout-variants': 'error' },
|
|
332
334
|
},
|
|
333
335
|
|
|
336
|
+
// A picture's `sizes` and quality come from the lib's image-size table — see ./image-sizes.js. Tests and stories
|
|
337
|
+
// draw no picture a reader waits on.
|
|
338
|
+
{
|
|
339
|
+
name: 'flamingo/base/image-sizes',
|
|
340
|
+
files: ['**/*.{js,mjs,jsx,ts,mts,tsx}'],
|
|
341
|
+
ignores: ['**/*.{test,spec}.{js,mjs,jsx,ts,mts,tsx}', '**/__tests__/**', '**/*.stories.{js,jsx,ts,tsx,mdx}'],
|
|
342
|
+
plugins: { flamingo: flamingoPlugin },
|
|
343
|
+
rules: { 'flamingo/no-ad-hoc-image-size': 'error' },
|
|
344
|
+
},
|
|
345
|
+
|
|
334
346
|
// Type declaration files describe other people's shapes; most of the base
|
|
335
347
|
// rules are noise there.
|
|
336
348
|
{
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A picture's size comes from the image-size table (src/styles/image-sizes.ts), never from the component: every
|
|
3
|
+
* `sizes`, width ladder and quality a component picks on its own is another copy the image host makes and caches.
|
|
4
|
+
* The rule fails on a string-literal `sizes` and on any `quality` on an `<Image>`.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/** A string the attribute states outright: `"..."`, `{'...'}` or a template with no expressions. */
|
|
8
|
+
function isLiteralString(value) {
|
|
9
|
+
if (!value) return false;
|
|
10
|
+
if (value.type === 'Literal') return typeof value.value === 'string';
|
|
11
|
+
if (value.type !== 'JSXExpressionContainer') return false;
|
|
12
|
+
const { expression } = value;
|
|
13
|
+
if (expression.type === 'Literal') return typeof expression.value === 'string';
|
|
14
|
+
return expression.type === 'TemplateLiteral' && expression.expressions.length === 0;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/** @type {import('eslint').Rule.RuleModule} */
|
|
18
|
+
const noAdHocImageSize = {
|
|
19
|
+
meta: {
|
|
20
|
+
type: 'problem',
|
|
21
|
+
docs: { description: 'Disallow picture sizes and qualities that do not come from the image-size table' },
|
|
22
|
+
schema: [],
|
|
23
|
+
messages: {
|
|
24
|
+
sizes:
|
|
25
|
+
"`sizes` on an `<Image>` is a slot of the image-size table (`IMAGE_SLOT.card`, `fixedImageSlot('tile')`), " +
|
|
26
|
+
'never a string: every distinct value is another cached copy at the image host.',
|
|
27
|
+
quality:
|
|
28
|
+
'`quality` on an `<Image>`: one quality comes from the host (`IMAGE_QUALITY`). A second quality is a second ' +
|
|
29
|
+
'copy of every picture.',
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
create(context) {
|
|
33
|
+
return {
|
|
34
|
+
JSXOpeningElement(node) {
|
|
35
|
+
if (node.name.type !== 'JSXIdentifier' || node.name.name !== 'Image') return;
|
|
36
|
+
for (const attribute of node.attributes) {
|
|
37
|
+
if (attribute.type !== 'JSXAttribute' || attribute.name.type !== 'JSXIdentifier') continue;
|
|
38
|
+
const { name } = attribute.name;
|
|
39
|
+
if (name === 'quality') context.report({ node: attribute, messageId: 'quality' });
|
|
40
|
+
else if (name === 'sizes' && isLiteralString(attribute.value))
|
|
41
|
+
context.report({ node: attribute, messageId: 'sizes' });
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
},
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export const imageSizesPlugin = {
|
|
49
|
+
meta: { name: 'flamingo-image-sizes' },
|
|
50
|
+
rules: { 'no-ad-hoc-image-size': noAdHocImageSize },
|
|
51
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flamingo-stack/openframe-frontend-core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.805",
|
|
4
4
|
"description": "Shared design system and components for all Flamingo platforms",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -152,6 +152,12 @@
|
|
|
152
152
|
"require": "./dist/platform-domains.cjs",
|
|
153
153
|
"default": "./dist/platform-domains.js"
|
|
154
154
|
},
|
|
155
|
+
"./image-sizes": {
|
|
156
|
+
"types": "./dist/styles/image-sizes.d.ts",
|
|
157
|
+
"import": "./dist/styles/image-sizes.js",
|
|
158
|
+
"require": "./dist/styles/image-sizes.cjs",
|
|
159
|
+
"default": "./dist/styles/image-sizes.js"
|
|
160
|
+
},
|
|
155
161
|
"./chat-protocol": {
|
|
156
162
|
"types": "./dist/chat-protocol/index.d.ts",
|
|
157
163
|
"import": "./dist/chat-protocol/index.js",
|
|
@@ -346,7 +352,6 @@
|
|
|
346
352
|
"default": "./dist/assets/index.js"
|
|
347
353
|
},
|
|
348
354
|
"./tailwind.config.ts": {
|
|
349
|
-
"types": "./dist/tailwind.config.d.ts",
|
|
350
355
|
"default": "./tailwind.config.ts"
|
|
351
356
|
},
|
|
352
357
|
"./components/icons-v2": {
|
|
@@ -357,6 +362,7 @@
|
|
|
357
362
|
},
|
|
358
363
|
"./eslint-config": "./eslint-config/index.js",
|
|
359
364
|
"./eslint-config/base": "./eslint-config/base.js",
|
|
365
|
+
"./eslint-config/image-sizes": "./eslint-config/image-sizes.js",
|
|
360
366
|
"./eslint-config/next": "./eslint-config/next.js",
|
|
361
367
|
"./eslint-config/react": "./eslint-config/react.js",
|
|
362
368
|
"./eslint-config/relay": "./eslint-config/relay.js",
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import { createElement } from 'react';
|
|
4
4
|
|
|
5
5
|
import Image from '../embed-shims/next-image';
|
|
6
|
+
import { fixedImageSlot } from '../styles/image-sizes';
|
|
6
7
|
import { cn } from '../utils/cn';
|
|
7
8
|
import { AGENT_GLYPH_COLOR, AGENT_PICTURE_CLASS, useAgentIdentityIcon } from './agent-identity';
|
|
8
9
|
import { resolveIcon } from './chat/utils/icon-library';
|
|
@@ -25,9 +26,6 @@ export interface AgentMarkProps {
|
|
|
25
26
|
color?: string;
|
|
26
27
|
}
|
|
27
28
|
|
|
28
|
-
// A mark is at most 48px on screen; twice that covers dense screens.
|
|
29
|
-
const MARK_IMAGE_SIZES = '96px';
|
|
30
|
-
|
|
31
29
|
/**
|
|
32
30
|
* An AI agent's mark: the icon its IDENTITY holds, and nothing else.
|
|
33
31
|
*
|
|
@@ -44,7 +42,8 @@ export function AgentMark({ agent, className = '', color = AGENT_GLYPH_COLOR }:
|
|
|
44
42
|
if (identity?.url) {
|
|
45
43
|
return (
|
|
46
44
|
<span aria-hidden="true" className={cn('relative inline-block overflow-hidden rounded-full', className)}>
|
|
47
|
-
|
|
45
|
+
{/* A mark is at most 48px on screen; the image-size table's 96px box covers dense screens. */}
|
|
46
|
+
<Image src={identity.url} alt="" fill sizes={fixedImageSlot('mark')} className={AGENT_PICTURE_CLASS} />
|
|
48
47
|
</span>
|
|
49
48
|
);
|
|
50
49
|
}
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
|
|
22
22
|
import { useState, type ReactNode } from 'react';
|
|
23
23
|
import Image from '../../embed-shims/next-image';
|
|
24
|
+
import { AVATAR_SIZE_PX } from '../../styles/component-sizes';
|
|
24
25
|
import { cn } from '../../utils/cn';
|
|
25
26
|
import { personInitials } from '../../utils/format';
|
|
26
27
|
import { TextLineSkeleton, UnifiedSkeleton } from '../loading/unified-skeleton';
|
|
@@ -100,8 +101,8 @@ function ChatMessageRowLoaded(props: ChatMessageRowProps) {
|
|
|
100
101
|
src={src}
|
|
101
102
|
alt={displayName}
|
|
102
103
|
className={cn(AVATAR_BOX_CLASS, 'object-cover')}
|
|
103
|
-
width={
|
|
104
|
-
height={
|
|
104
|
+
width={AVATAR_SIZE_PX.md}
|
|
105
|
+
height={AVATAR_SIZE_PX.md}
|
|
105
106
|
onError={() => setFailedSrc(resolvedAvatar ?? null)}
|
|
106
107
|
/>
|
|
107
108
|
) : (
|
|
@@ -5,6 +5,7 @@ import { useState } from 'react';
|
|
|
5
5
|
import Image from '../../../embed-shims/next-image';
|
|
6
6
|
import { useImageEdgeColor } from '../../../hooks/ui/use-image-edge-color';
|
|
7
7
|
import { MEDIA_ASPECT } from '../../../styles/component-sizes';
|
|
8
|
+
import { IMAGE_SLOT } from '../../../styles/image-sizes';
|
|
8
9
|
import { cn } from '../../../utils/cn';
|
|
9
10
|
import { PlatformBadge } from '../../features/platform-badge';
|
|
10
11
|
import { InteractiveSkeleton, TextLineSkeleton, UnifiedSkeleton } from '../../loading/unified-skeleton';
|
|
@@ -114,7 +115,7 @@ export function AdminContentCard({
|
|
|
114
115
|
src={displayUrl}
|
|
115
116
|
alt={title}
|
|
116
117
|
fill
|
|
117
|
-
sizes=
|
|
118
|
+
sizes={IMAGE_SLOT.card}
|
|
118
119
|
className={cn(
|
|
119
120
|
'object-contain object-center',
|
|
120
121
|
'transition-transform duration-500 ease-out',
|