@krizaka/ui 3.63.0 → 3.64.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/dist/account-menu.d.ts +1 -1
- package/dist/account-menu.js +1 -1
- package/dist/account-settings.d.ts +61 -4
- package/dist/account-settings.js +207 -45
- package/dist/account-settings.js.map +1 -1
- package/dist/action-bar.js +4 -4
- package/dist/analysis-report.d.ts +274 -0
- package/dist/analysis-report.js +207 -0
- package/dist/analysis-report.js.map +1 -0
- package/dist/app-header.d.ts +3 -3
- package/dist/argument-card.d.ts +1 -1
- package/dist/argument-card.js +5 -5
- package/dist/avatar/defaults.d.ts +16 -5
- package/dist/avatar/defaults.js +15 -1
- package/dist/avatar/defaults.js.map +1 -1
- package/dist/{avatar-BL2iG_Js.d.ts → avatar-BdZcfkWR.d.ts} +11 -4
- package/dist/avatar.d.ts +16 -5
- package/dist/avatar.js +15 -1
- package/dist/avatar.js.map +1 -1
- package/dist/badge.js +4 -34
- package/dist/badge.js.map +1 -1
- package/dist/blocks.css +99 -8
- package/dist/button.js +1 -1
- package/dist/captcha.js +1 -1
- package/dist/chat.js +1 -1
- package/dist/chunk-5PFCELGW.js +41 -0
- package/dist/chunk-5PFCELGW.js.map +1 -0
- package/dist/chunk-5RWHDX5J.js +37 -0
- package/dist/chunk-5RWHDX5J.js.map +1 -0
- package/dist/{chunk-5LANVCK7.js → chunk-BG5APGX6.js} +2 -2
- package/dist/{chunk-WOZP3JLW.js → chunk-DJ5ZPPWL.js} +1 -1
- package/dist/chunk-DJ5ZPPWL.js.map +1 -0
- package/dist/{chunk-UV4HBVH7.js → chunk-EB45EVPJ.js} +2 -2
- package/dist/{chunk-SJS6RJIT.js.map → chunk-EB45EVPJ.js.map} +1 -1
- package/dist/chunk-EUJ7337V.js +137 -0
- package/dist/chunk-EUJ7337V.js.map +1 -0
- package/dist/{chunk-6EAHUURY.js → chunk-GHAN7OOE.js} +2 -2
- package/dist/chunk-HK525THY.js +139 -0
- package/dist/chunk-HK525THY.js.map +1 -0
- package/dist/chunk-JT7ZKZT5.js +1 -0
- package/dist/chunk-JT7ZKZT5.js.map +1 -0
- package/dist/{chunk-3DHNN5V7.js → chunk-M3GEYLMR.js} +2 -2
- package/dist/{chunk-3DHNN5V7.js.map → chunk-M3GEYLMR.js.map} +1 -1
- package/dist/{chunk-7J2L4HOD.js → chunk-MTVX4RRF.js} +2 -2
- package/dist/{chunk-7J2L4HOD.js.map → chunk-MTVX4RRF.js.map} +1 -1
- package/dist/{chunk-YKEIOYJ5.js → chunk-NPMGYLJV.js} +1 -1
- package/dist/chunk-NPMGYLJV.js.map +1 -0
- package/dist/{chunk-HEKDKM5Y.js → chunk-QVHSV6RA.js} +1 -1
- package/dist/{chunk-7JG3VR4C.js → chunk-RCKXJEDQ.js} +5 -5
- package/dist/{chunk-3D2YI63L.js → chunk-SHBYNQFS.js} +7 -2
- package/dist/{chunk-3D2YI63L.js.map → chunk-SHBYNQFS.js.map} +1 -1
- package/dist/chunk-U4XTZMB7.js +103 -0
- package/dist/chunk-U4XTZMB7.js.map +1 -0
- package/dist/{chunk-SJS6RJIT.js → chunk-V7W4RLRW.js} +2 -2
- package/dist/{chunk-UV4HBVH7.js.map → chunk-V7W4RLRW.js.map} +1 -1
- package/dist/command.js +2 -2
- package/dist/confirm-button.js +1 -1
- package/dist/continue-prompt.js +1 -1
- package/dist/continue-prompt.js.map +1 -1
- package/dist/cover-hero.js +1 -1
- package/dist/dashboard-layout.js +2 -1
- package/dist/dashboard-layout.js.map +1 -1
- package/dist/data-table.js +2 -2
- package/dist/date-picker.d.ts +15 -15
- package/dist/dialog.js +2 -2
- package/dist/docs-layout.js +1 -1
- package/dist/embed-facade.d.ts +37 -0
- package/dist/embed-facade.js +96 -0
- package/dist/embed-facade.js.map +1 -0
- package/dist/file-upload.d.ts +2 -2
- package/dist/force-update-screen.js +1 -1
- package/dist/genui.js +2 -2
- package/dist/kind-config-editor.js +1 -1
- package/dist/link-card.js +2 -2
- package/dist/maintenance-screen.js +1 -1
- package/dist/map.js +6 -0
- package/dist/map.js.map +1 -1
- package/dist/margin-layout.d.ts +71 -0
- package/dist/margin-layout.js +29 -0
- package/dist/margin-layout.js.map +1 -0
- package/dist/match-dialog.js +2 -2
- package/dist/media-grid.d.ts +8 -3
- package/dist/media-grid.js +2 -2
- package/dist/meter.js +2 -1
- package/dist/native/map.js +6 -0
- package/dist/native/map.js.map +1 -1
- package/dist/native.d.ts +96 -5
- package/dist/native.js +1718 -1529
- package/dist/native.js.map +1 -1
- package/dist/nav-bar.js +1 -1
- package/dist/page-DPHDmDAQ.d.ts +131 -0
- package/dist/page-hero.js +4 -4
- package/dist/page.d.ts +7 -125
- package/dist/page.js +13 -1
- package/dist/page.js.map +1 -1
- package/dist/quota-meter.js +2 -1
- package/dist/quota-meter.js.map +1 -1
- package/dist/retro-tv.d.ts +6 -3
- package/dist/retro-tv.js +6 -5
- package/dist/retro-tv.js.map +1 -1
- package/dist/reviews.d.ts +49 -0
- package/dist/reviews.js +66 -0
- package/dist/reviews.js.map +1 -0
- package/dist/separator.d.ts +26 -3
- package/dist/separator.js +19 -1
- package/dist/separator.js.map +1 -1
- package/dist/service-card.d.ts +56 -63
- package/dist/service-card.js +49 -10
- package/dist/service-card.js.map +1 -1
- package/dist/settings-layout.js +1 -1
- package/dist/site-cahier.js +1 -1
- package/dist/specimen-tag.d.ts +15 -3
- package/dist/specimen-tag.js +4 -27
- package/dist/specimen-tag.js.map +1 -1
- package/dist/stat.d.ts +87 -5
- package/dist/stat.js +9 -53
- package/dist/stat.js.map +1 -1
- package/dist/sticky-action.d.ts +7 -2
- package/dist/sticky-action.js +24 -3
- package/dist/sticky-action.js.map +1 -1
- package/dist/theme.js +1 -1
- package/dist/update-prompt.js +1 -1
- package/dist/usage.d.ts +229 -0
- package/dist/usage.js +189 -0
- package/dist/usage.js.map +1 -0
- package/dist/vertical-video.js +2 -2
- package/dist/wall.d.ts +24 -12
- package/dist/wall.js +106 -43
- package/dist/wall.js.map +1 -1
- package/package.json +92 -13
- package/registry/account-menu.json +1 -1
- package/registry/account-settings.json +67 -6
- package/registry/achievement.json +1 -1
- package/registry/action-bar.json +1 -1
- package/registry/activity-feed.json +1 -1
- package/registry/agenda.json +1 -1
- package/registry/alert.json +1 -1
- package/registry/analysis-report.json +445 -0
- package/registry/anatomy-plate.json +1 -1
- package/registry/app-header.json +1 -1
- package/registry/app-shell.json +1 -1
- package/registry/argument-card.json +3 -3
- package/registry/audio-player.json +1 -1
- package/registry/auth-layout.json +1 -1
- package/registry/avatar.json +6 -5
- package/registry/badge.json +1 -1
- package/registry/bird-plate.json +1 -1
- package/registry/button.json +2 -2
- package/registry/captcha.json +1 -1
- package/registry/card-grid.json +1 -1
- package/registry/card.json +1 -1
- package/registry/catalogue-page.json +1 -1
- package/registry/changelog-page.json +1 -1
- package/registry/chapter.json +1 -1
- package/registry/chat.json +1 -1
- package/registry/checkbox.json +1 -1
- package/registry/chip-link.json +1 -1
- package/registry/chip-row.json +1 -1
- package/registry/chip.json +1 -1
- package/registry/choice-grid.json +1 -1
- package/registry/code-block.json +1 -1
- package/registry/combobox.json +1 -1
- package/registry/command.json +1 -1
- package/registry/comparison-table.json +1 -1
- package/registry/component-page.json +1 -1
- package/registry/confirm-button.json +1 -1
- package/registry/contact-page.json +1 -1
- package/registry/continue-prompt.json +1 -1
- package/registry/countdown.json +1 -1
- package/registry/cover-hero.json +1 -1
- package/registry/cta-panel.json +1 -1
- package/registry/dashboard-layout.json +2 -2
- package/registry/data-table.json +1 -1
- package/registry/date-picker.json +1 -1
- package/registry/decision-list.json +1 -1
- package/registry/description-list.json +1 -1
- package/registry/detail-layout.json +1 -1
- package/registry/dialog.json +1 -1
- package/registry/docs-article-page.json +1 -1
- package/registry/docs-hub-page.json +1 -1
- package/registry/docs-layout.json +1 -1
- package/registry/docs-nav.json +1 -1
- package/registry/document-viewer.json +1 -1
- package/registry/doodle.json +1 -1
- package/registry/drop-overlay.json +1 -1
- package/registry/dropdown-menu.json +1 -1
- package/registry/elephant.json +2 -2
- package/registry/embed-facade.json +243 -0
- package/registry/empty-state.json +1 -1
- package/registry/engine-flow.json +1 -1
- package/registry/environment-notice.json +1 -1
- package/registry/error-page.json +1 -1
- package/registry/examples/account-settings/avatar-picker-folder.d.ts +4 -0
- package/registry/examples/account-settings/avatar-picker-folder.js +27 -0
- package/registry/examples/account-settings/avatar-picker-folder.tsx +23 -0
- package/registry/examples/analysis-report/document-validation.d.ts +4 -0
- package/registry/examples/analysis-report/document-validation.js +47 -0
- package/registry/examples/analysis-report/document-validation.tsx +29 -0
- package/registry/examples/analysis-report/native/document-validation.d.ts +4 -0
- package/registry/examples/analysis-report/native/document-validation.dark.png +0 -0
- package/registry/examples/analysis-report/native/document-validation.js +48 -0
- package/registry/examples/analysis-report/native/document-validation.light.png +0 -0
- package/registry/examples/analysis-report/native/document-validation.tsx +32 -0
- package/registry/examples/analysis-report/streaming.d.ts +4 -0
- package/registry/examples/analysis-report/streaming.js +42 -0
- package/registry/examples/analysis-report/streaming.tsx +23 -0
- package/registry/examples/embed-facade/tiktok.d.ts +4 -0
- package/registry/examples/embed-facade/tiktok.js +20 -0
- package/registry/examples/embed-facade/tiktok.tsx +16 -0
- package/registry/examples/embed-facade/youtube.d.ts +4 -0
- package/registry/examples/embed-facade/youtube.js +22 -0
- package/registry/examples/embed-facade/youtube.tsx +20 -0
- package/registry/examples/margin-layout/findings.d.ts +4 -0
- package/registry/examples/margin-layout/findings.js +15 -0
- package/registry/examples/margin-layout/findings.tsx +18 -0
- package/registry/examples/margin-layout/steps.d.ts +4 -0
- package/registry/examples/margin-layout/steps.js +15 -0
- package/registry/examples/margin-layout/steps.tsx +16 -0
- package/registry/examples/page/kraft.d.ts +4 -0
- package/registry/examples/page/kraft.js +14 -0
- package/registry/examples/page/kraft.tsx +12 -0
- package/registry/examples/page/papers.d.ts +4 -0
- package/registry/examples/page/papers.js +14 -0
- package/registry/examples/page/papers.tsx +13 -0
- package/registry/examples/retro-tv/facade.d.ts +4 -0
- package/registry/examples/retro-tv/facade.js +12 -0
- package/registry/examples/retro-tv/facade.tsx +13 -0
- package/registry/examples/reviews/card.d.ts +4 -0
- package/registry/examples/reviews/card.js +23 -0
- package/registry/examples/reviews/card.tsx +19 -0
- package/registry/examples/reviews/summary.d.ts +4 -0
- package/registry/examples/reviews/summary.js +23 -0
- package/registry/examples/reviews/summary.tsx +17 -0
- package/registry/examples/separator/hand.d.ts +4 -0
- package/registry/examples/separator/hand.js +19 -0
- package/registry/examples/separator/hand.tsx +16 -0
- package/registry/examples/service-card/index-card.d.ts +4 -0
- package/registry/examples/service-card/index-card.js +15 -0
- package/registry/examples/service-card/index-card.tsx +12 -0
- package/registry/examples/service-card/index-list.d.ts +4 -0
- package/registry/examples/service-card/index-list.js +14 -0
- package/registry/examples/service-card/index-list.tsx +11 -0
- package/registry/examples/specimen-tag/facts.d.ts +4 -0
- package/registry/examples/specimen-tag/facts.js +23 -0
- package/registry/examples/specimen-tag/facts.tsx +18 -0
- package/registry/examples/stat/strip.d.ts +4 -0
- package/registry/examples/stat/strip.js +25 -0
- package/registry/examples/stat/strip.tsx +25 -0
- package/registry/examples/sticky-action/hide-while-visible.d.ts +4 -0
- package/registry/examples/sticky-action/hide-while-visible.js +16 -0
- package/registry/examples/sticky-action/hide-while-visible.tsx +17 -0
- package/registry/examples/usage/credits-page.d.ts +4 -0
- package/registry/examples/usage/credits-page.js +45 -0
- package/registry/examples/usage/credits-page.tsx +40 -0
- package/registry/examples/usage/empty.d.ts +4 -0
- package/registry/examples/usage/empty.js +15 -0
- package/registry/examples/usage/empty.tsx +12 -0
- package/registry/examples/wall/brick.js +1 -1
- package/registry/examples/wall/brick.tsx +1 -1
- package/registry/examples/wall/composition-fr.js +1 -1
- package/registry/examples/wall/composition-fr.tsx +1 -1
- package/registry/examples/wall/composition.js +1 -1
- package/registry/examples/wall/composition.tsx +1 -1
- package/registry/examples/wall/pinned-note.js +2 -2
- package/registry/examples/wall/pinned-note.tsx +3 -2
- package/registry/examples/wall/plaster.js +1 -1
- package/registry/examples/wall/plaster.tsx +1 -1
- package/registry/examples/wall/ridge.js +1 -1
- package/registry/examples/wall/ridge.tsx +1 -1
- package/registry/examples/wall/shop-sign.js +5 -4
- package/registry/examples/wall/shop-sign.tsx +7 -4
- package/registry/examples/wall/zellige.js +1 -1
- package/registry/examples/wall/zellige.tsx +1 -1
- package/registry/field.json +1 -1
- package/registry/file-upload.json +1 -1
- package/registry/filter-bar.json +1 -1
- package/registry/flock.json +1 -1
- package/registry/footnote.json +1 -1
- package/registry/force-update-screen.json +1 -1
- package/registry/form.json +1 -1
- package/registry/gallery-page.json +1 -1
- package/registry/genui.json +1 -1
- package/registry/glossary-term.json +1 -1
- package/registry/glossary.json +1 -1
- package/registry/glow-card.json +1 -1
- package/registry/goal-gauge.json +1 -1
- package/registry/grade-stamp.json +1 -1
- package/registry/how-it-works-page.json +1 -1
- package/registry/image-cropper.json +1 -1
- package/registry/index.json +186 -18
- package/registry/iso.json +1 -1
- package/registry/kanban.json +1 -1
- package/registry/kbd.json +1 -1
- package/registry/kind-config-editor.json +1 -1
- package/registry/kpi-explained.json +1 -1
- package/registry/landing-page.json +1 -1
- package/registry/landscape.json +1 -1
- package/registry/language-switch.json +1 -1
- package/registry/legal-page.json +1 -1
- package/registry/link-card.json +1 -1
- package/registry/list.json +1 -1
- package/registry/loader.json +1 -1
- package/registry/longform-page.json +1 -1
- package/registry/maintenance-screen.json +1 -1
- package/registry/map.json +2 -2
- package/registry/margin-layout.json +200 -0
- package/registry/markdown.json +1 -1
- package/registry/marketing-layout.json +1 -1
- package/registry/marquee.json +1 -1
- package/registry/mascot-quote.json +1 -1
- package/registry/mascot-state.json +1 -1
- package/registry/mascots.json +1 -1
- package/registry/match-dialog.json +1 -1
- package/registry/media-capture.json +1 -1
- package/registry/media-gallery.json +1 -1
- package/registry/media-grid.json +1 -1
- package/registry/meta-row.json +1 -1
- package/registry/meter.json +1 -1
- package/registry/nav-bar.json +2 -2
- package/registry/next-actions.json +1 -1
- package/registry/notification-preferences.json +1 -1
- package/registry/number-ticker.json +1 -1
- package/registry/opening-hours.json +1 -1
- package/registry/page-header.json +1 -1
- package/registry/page-hero.json +1 -1
- package/registry/page-index.json +1 -1
- package/registry/page.json +53 -11
- package/registry/pagination.json +1 -1
- package/registry/photo-grid.json +1 -1
- package/registry/pointer-light.json +1 -1
- package/registry/popover.json +1 -1
- package/registry/pricing-page.json +1 -1
- package/registry/product-page.json +1 -1
- package/registry/profile-card.json +1 -1
- package/registry/progress.json +1 -1
- package/registry/promise-card.json +1 -1
- package/registry/quota-meter.json +1 -1
- package/registry/radio-group.json +1 -1
- package/registry/rail-nav.json +2 -2
- package/registry/recipes.json +1 -1
- package/registry/retro-tv.json +45 -29
- package/registry/reviews.json +361 -0
- package/registry/router.json +1 -1
- package/registry/scroll-stage.json +1 -1
- package/registry/search-field.json +1 -1
- package/registry/section-backdrop.json +1 -1
- package/registry/separator.json +71 -6
- package/registry/service-card.json +55 -6
- package/registry/settings-layout.json +1 -1
- package/registry/showcase.json +1 -1
- package/registry/signature.json +1 -1
- package/registry/site-cahier.json +1 -1
- package/registry/site-footer.json +2 -2
- package/registry/sites.json +1 -1
- package/registry/skeleton.json +1 -1
- package/registry/skip-link.json +1 -1
- package/registry/slider.json +1 -1
- package/registry/slot-picker.json +1 -1
- package/registry/slot.json +1 -1
- package/registry/specimen-tag.json +57 -5
- package/registry/speed-lines.json +1 -1
- package/registry/spinner.json +1 -1
- package/registry/split-view.json +1 -1
- package/registry/stage-banner.json +1 -1
- package/registry/stat.json +61 -9
- package/registry/status-chip.json +1 -1
- package/registry/status-page.json +1 -1
- package/registry/step-progress.json +1 -1
- package/registry/step-showcase.json +1 -1
- package/registry/stepper.json +1 -1
- package/registry/sticky-action.json +27 -4
- package/registry/stuck.json +1 -1
- package/registry/swipe-deck.json +1 -1
- package/registry/switch.json +1 -1
- package/registry/tabs.json +1 -1
- package/registry/tag-input.json +1 -1
- package/registry/tag-selector.json +1 -1
- package/registry/taped-photo.json +1 -1
- package/registry/terminal-replay.json +1 -1
- package/registry/text-style.json +1 -1
- package/registry/theme.json +1 -1
- package/registry/toast.json +1 -1
- package/registry/toc.json +1 -1
- package/registry/tooltip.json +1 -1
- package/registry/tree-view.json +1 -1
- package/registry/update-prompt.json +1 -1
- package/registry/upload-queue.json +1 -1
- package/registry/usage.json +542 -0
- package/registry/verified-badge.json +1 -1
- package/registry/versus-card.json +1 -1
- package/registry/vertical-video.json +1 -1
- package/registry/video-player.json +1 -1
- package/registry/video-trimmer.json +3 -3
- package/registry/virtual.json +1 -1
- package/registry/wall.json +128 -40
- package/registry/waveform.json +1 -1
- package/dist/chunk-7AZ23BUX.js +0 -88
- package/dist/chunk-7AZ23BUX.js.map +0 -1
- package/dist/chunk-PW2FVPTV.js +0 -85
- package/dist/chunk-PW2FVPTV.js.map +0 -1
- package/dist/chunk-WOZP3JLW.js.map +0 -1
- package/dist/chunk-YKEIOYJ5.js.map +0 -1
- /package/dist/{chunk-5LANVCK7.js.map → chunk-BG5APGX6.js.map} +0 -0
- /package/dist/{chunk-6EAHUURY.js.map → chunk-GHAN7OOE.js.map} +0 -0
- /package/dist/{chunk-HEKDKM5Y.js.map → chunk-QVHSV6RA.js.map} +0 -0
- /package/dist/{chunk-7JG3VR4C.js.map → chunk-RCKXJEDQ.js.map} +0 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
/** The platforms a facade can load after a click. */
|
|
4
|
+
type EmbedPlatform = "tiktok" | "youtube-shorts" | "instagram";
|
|
5
|
+
/** The platforms' names, as proper nouns (they are not translated). */
|
|
6
|
+
declare const EMBED_PLATFORMS: Readonly<Record<EmbedPlatform, string>>;
|
|
7
|
+
/**
|
|
8
|
+
* The address of the platform's frame for a public post, or `null` for anything else: another host, `http:`, a short
|
|
9
|
+
* link we cannot resolve without asking the platform, a profile page. Exact hosts, exact paths.
|
|
10
|
+
*/
|
|
11
|
+
declare function embedUrl(platform: EmbedPlatform, url: string): string | null;
|
|
12
|
+
/** Whether a poster may be drawn before the click: a path of the host's own origin, or an https picture that is not on a platform's domain (the host copies it to its own storage). */
|
|
13
|
+
declare function isOwnPoster(poster: string): boolean;
|
|
14
|
+
|
|
15
|
+
interface EmbedFacadeProps extends Omit<React.ComponentProps<"div">, "title" | "children" | "onLoad"> {
|
|
16
|
+
/** Which platform's frame to load. */
|
|
17
|
+
platform: EmbedPlatform;
|
|
18
|
+
/** The public address of the post (`embedUrl` validates it; anything else renders nothing). */
|
|
19
|
+
url: string;
|
|
20
|
+
/** The accessible name of the video ("Latest reel"), passed translated: it names the frame once loaded. */
|
|
21
|
+
title: string;
|
|
22
|
+
/** The button: what it does and which platform it loads ("Load TikTok and play"), passed translated. */
|
|
23
|
+
playLabel: string;
|
|
24
|
+
/** The host's own copy of the picture (never an address on the platform: those are refused, they would be a request). */
|
|
25
|
+
poster?: string;
|
|
26
|
+
/** A line under the button, for what the platform will receive on the click (translated). */
|
|
27
|
+
notice?: React.ReactNode;
|
|
28
|
+
/** The ratio of the box when it stands alone; inside a television's screen it fills its parent. @default "9 / 16" */
|
|
29
|
+
aspectRatio?: string;
|
|
30
|
+
/** Called once, when the visitor has asked and the frame is added. */
|
|
31
|
+
onLoad?: () => void;
|
|
32
|
+
}
|
|
33
|
+
/** A short video from a platform, behind a button: the frame exists only after the click. */
|
|
34
|
+
declare function EmbedFacade({ platform, url, title, playLabel, poster, notice, aspectRatio, onLoad, className, style, ...props }: EmbedFacadeProps): React.JSX.Element | null;
|
|
35
|
+
|
|
36
|
+
export { EMBED_PLATFORMS, EmbedFacade, embedUrl, isOwnPoster };
|
|
37
|
+
export type { EmbedFacadeProps, EmbedPlatform };
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
cn
|
|
4
|
+
} from "./chunk-NSLXEDIS.js";
|
|
5
|
+
|
|
6
|
+
// src/embed-facade/embed-facade.tsx
|
|
7
|
+
import * as React from "react";
|
|
8
|
+
|
|
9
|
+
// src/embed-facade/embed-url.ts
|
|
10
|
+
var EMBED_PLATFORMS = Object.freeze({ tiktok: "TikTok", "youtube-shorts": "YouTube Shorts", instagram: "Instagram" });
|
|
11
|
+
var TIKTOK_HOSTS = /* @__PURE__ */ new Set(["tiktok.com", "www.tiktok.com"]);
|
|
12
|
+
var YOUTUBE_HOSTS = /* @__PURE__ */ new Set(["youtube.com", "www.youtube.com", "m.youtube.com"]);
|
|
13
|
+
var INSTAGRAM_HOSTS = /* @__PURE__ */ new Set(["instagram.com", "www.instagram.com"]);
|
|
14
|
+
var PLATFORM_DOMAINS = ["tiktok.com", "tiktokcdn.com", "tiktokcdn-us.com", "youtube.com", "youtu.be", "youtube-nocookie.com", "ytimg.com", "googlevideo.com", "instagram.com", "cdninstagram.com", "fbcdn.net", "facebook.com"];
|
|
15
|
+
function parse(url) {
|
|
16
|
+
try {
|
|
17
|
+
const u = new URL(url);
|
|
18
|
+
if (u.protocol !== "https:" || u.username || u.password || u.port) return null;
|
|
19
|
+
return u;
|
|
20
|
+
} catch {
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
var tiktok = (host, path) => {
|
|
25
|
+
const id = TIKTOK_HOSTS.has(host) ? /^\/@[\w.-]{1,64}\/video\/(\d{8,25})\/?$/.exec(path)?.[1] : void 0;
|
|
26
|
+
return id ? `https://www.tiktok.com/embed/v2/${id}` : null;
|
|
27
|
+
};
|
|
28
|
+
var youtube = (host, path) => {
|
|
29
|
+
let id;
|
|
30
|
+
if (YOUTUBE_HOSTS.has(host)) id = /^\/shorts\/([\w-]{11})\/?$/.exec(path)?.[1];
|
|
31
|
+
else if (host === "youtu.be") id = /^\/([\w-]{11})\/?$/.exec(path)?.[1];
|
|
32
|
+
return id ? `https://www.youtube-nocookie.com/embed/${id}` : null;
|
|
33
|
+
};
|
|
34
|
+
var instagram = (host, path) => {
|
|
35
|
+
const match = INSTAGRAM_HOSTS.has(host) ? /^\/(?:[\w.]{1,30}\/)?(p|reel|reels|tv)\/([\w-]{5,40})\/?$/.exec(path) : null;
|
|
36
|
+
return match ? `https://www.instagram.com/${match[1] === "reels" ? "reel" : match[1]}/${match[2]}/embed` : null;
|
|
37
|
+
};
|
|
38
|
+
var PARSERS = { tiktok, "youtube-shorts": youtube, instagram };
|
|
39
|
+
function embedUrl(platform, url) {
|
|
40
|
+
const u = parse(url);
|
|
41
|
+
return u ? PARSERS[platform](u.hostname.toLowerCase(), u.pathname) : null;
|
|
42
|
+
}
|
|
43
|
+
function isOwnPoster(poster) {
|
|
44
|
+
if (poster.startsWith("/") && !poster.startsWith("//")) return true;
|
|
45
|
+
if (/^data:image\/(?:png|jpeg|webp|gif|svg\+xml)[;,]/i.test(poster)) return true;
|
|
46
|
+
const u = parse(poster);
|
|
47
|
+
if (!u) return false;
|
|
48
|
+
const host = u.hostname.toLowerCase();
|
|
49
|
+
return !PLATFORM_DOMAINS.some((domain) => host === domain || host.endsWith(`.${domain}`));
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// src/embed-facade/embed-facade.tsx
|
|
53
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
54
|
+
var SANDBOX = "allow-scripts allow-same-origin allow-presentation allow-popups allow-popups-to-escape-sandbox";
|
|
55
|
+
function EmbedFacade({ platform, url, title, playLabel, poster, notice, aspectRatio = "9 / 16", onLoad, className, style, ...props }) {
|
|
56
|
+
const frame = embedUrl(platform, url);
|
|
57
|
+
const [loaded, setLoaded] = React.useState(false);
|
|
58
|
+
const ref = React.useRef(null);
|
|
59
|
+
React.useEffect(() => {
|
|
60
|
+
if (loaded) ref.current?.focus();
|
|
61
|
+
}, [loaded]);
|
|
62
|
+
if (!frame) return null;
|
|
63
|
+
const load = () => {
|
|
64
|
+
setLoaded(true);
|
|
65
|
+
onLoad?.();
|
|
66
|
+
};
|
|
67
|
+
return /* @__PURE__ */ jsx(
|
|
68
|
+
"div",
|
|
69
|
+
{
|
|
70
|
+
role: "group",
|
|
71
|
+
"aria-label": title,
|
|
72
|
+
className: cn("kz-embed", className),
|
|
73
|
+
"data-platform": platform,
|
|
74
|
+
"data-loaded": loaded ? "" : void 0,
|
|
75
|
+
style: { ...style, ["--kz-embed-ratio"]: aspectRatio },
|
|
76
|
+
...props,
|
|
77
|
+
children: loaded ? /* @__PURE__ */ jsx("iframe", { ref, src: frame, title, sandbox: SANDBOX, allow: "fullscreen; encrypted-media", allowFullScreen: true, referrerPolicy: "strict-origin-when-cross-origin", className: "kz-embed-frame" }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
78
|
+
poster && isOwnPoster(poster) && /* @__PURE__ */ jsx("img", { src: poster, alt: "", loading: "lazy", decoding: "async", referrerPolicy: "no-referrer", className: "kz-embed-poster" }),
|
|
79
|
+
/* @__PURE__ */ jsxs("div", { className: "kz-embed-gate", children: [
|
|
80
|
+
/* @__PURE__ */ jsxs("button", { type: "button", onClick: load, className: "kz-embed-play", "data-platform-name": EMBED_PLATFORMS[platform], children: [
|
|
81
|
+
/* @__PURE__ */ jsx("svg", { "aria-hidden": "true", focusable: "false", viewBox: "0 0 16 16", width: "16", height: "16", children: /* @__PURE__ */ jsx("path", { d: "M4 2.5v11l9-5.5Z", fill: "currentColor" }) }),
|
|
82
|
+
/* @__PURE__ */ jsx("span", { children: playLabel })
|
|
83
|
+
] }),
|
|
84
|
+
notice && /* @__PURE__ */ jsx("p", { className: "kz-embed-notice", children: notice })
|
|
85
|
+
] })
|
|
86
|
+
] })
|
|
87
|
+
}
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
export {
|
|
91
|
+
EMBED_PLATFORMS,
|
|
92
|
+
EmbedFacade,
|
|
93
|
+
embedUrl,
|
|
94
|
+
isOwnPoster
|
|
95
|
+
};
|
|
96
|
+
//# sourceMappingURL=embed-facade.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/embed-facade/embed-facade.tsx","../src/embed-facade/embed-url.ts"],"sourcesContent":["\"use client\";\n\n// A click-to-load facade for a platform's short video (krizaka-ui#605, the lite-youtube-embed pattern). Until the visitor\n// asks, nothing is requested from TikTok, YouTube or Instagram: no frame, no script, no platform picture. The poster is the\n// host's own copy. After the click: one frame, a minimal sandbox and permissions. Loi 25: no third-party tracker without consent.\nimport * as React from \"react\";\n\nimport { cn } from \"../cn\";\nimport { EMBED_PLATFORMS, type EmbedPlatform, embedUrl, isOwnPoster } from \"./embed-url\";\n\nexport interface EmbedFacadeProps extends Omit<React.ComponentProps<\"div\">, \"title\" | \"children\" | \"onLoad\"> {\n /** Which platform's frame to load. */\n platform: EmbedPlatform;\n /** The public address of the post (`embedUrl` validates it; anything else renders nothing). */\n url: string;\n /** The accessible name of the video (\"Latest reel\"), passed translated: it names the frame once loaded. */\n title: string;\n /** The button: what it does and which platform it loads (\"Load TikTok and play\"), passed translated. */\n playLabel: string;\n /** The host's own copy of the picture (never an address on the platform: those are refused, they would be a request). */\n poster?: string;\n /** A line under the button, for what the platform will receive on the click (translated). */\n notice?: React.ReactNode;\n /** The ratio of the box when it stands alone; inside a television's screen it fills its parent. @default \"9 / 16\" */\n aspectRatio?: string;\n /** Called once, when the visitor has asked and the frame is added. */\n onLoad?: () => void;\n}\n\nconst SANDBOX = \"allow-scripts allow-same-origin allow-presentation allow-popups allow-popups-to-escape-sandbox\";\n\n/** A short video from a platform, behind a button: the frame exists only after the click. */\nexport function EmbedFacade({ platform, url, title, playLabel, poster, notice, aspectRatio = \"9 / 16\", onLoad, className, style, ...props }: EmbedFacadeProps) {\n const frame = embedUrl(platform, url);\n const [loaded, setLoaded] = React.useState(false);\n const ref = React.useRef<HTMLIFrameElement>(null);\n React.useEffect(() => {\n if (loaded) ref.current?.focus();\n }, [loaded]);\n if (!frame) return null;\n const load = () => {\n setLoaded(true);\n onLoad?.();\n };\n return (\n <div\n role=\"group\"\n aria-label={title}\n className={cn(\"kz-embed\", className)}\n data-platform={platform}\n data-loaded={loaded ? \"\" : undefined}\n style={{ ...style, [\"--kz-embed-ratio\" as string]: aspectRatio }}\n {...props}\n >\n {loaded ? (\n <iframe ref={ref} src={frame} title={title} sandbox={SANDBOX} allow=\"fullscreen; encrypted-media\" allowFullScreen referrerPolicy=\"strict-origin-when-cross-origin\" className=\"kz-embed-frame\" />\n ) : (\n <>\n {poster && isOwnPoster(poster) && <img src={poster} alt=\"\" loading=\"lazy\" decoding=\"async\" referrerPolicy=\"no-referrer\" className=\"kz-embed-poster\" />}\n <div className=\"kz-embed-gate\">\n <button type=\"button\" onClick={load} className=\"kz-embed-play\" data-platform-name={EMBED_PLATFORMS[platform]}>\n <svg aria-hidden=\"true\" focusable=\"false\" viewBox=\"0 0 16 16\" width=\"16\" height=\"16\"><path d=\"M4 2.5v11l9-5.5Z\" fill=\"currentColor\" /></svg>\n <span>{playLabel}</span>\n </button>\n {notice && <p className=\"kz-embed-notice\">{notice}</p>}\n </div>\n </>\n )}\n </div>\n );\n}\n","// The pure part of the facade (krizaka-ui#605): which addresses may ever be embedded, and what the frame's address is.\n// Nothing here touches the network or the DOM, so a server (the shop's editor) can validate with the same function the page uses.\n\n/** The platforms a facade can load after a click. */\nexport type EmbedPlatform = \"tiktok\" | \"youtube-shorts\" | \"instagram\";\n\n/** The platforms' names, as proper nouns (they are not translated). */\nexport const EMBED_PLATFORMS: Readonly<Record<EmbedPlatform, string>> = Object.freeze({ tiktok: \"TikTok\", \"youtube-shorts\": \"YouTube Shorts\", instagram: \"Instagram\" });\n\nconst TIKTOK_HOSTS = new Set([\"tiktok.com\", \"www.tiktok.com\"]);\nconst YOUTUBE_HOSTS = new Set([\"youtube.com\", \"www.youtube.com\", \"m.youtube.com\"]);\nconst INSTAGRAM_HOSTS = new Set([\"instagram.com\", \"www.instagram.com\"]);\n\n/** Every host a platform's frame or picture lives on: a poster served from one of them would be a request before the click. */\nconst PLATFORM_DOMAINS = [\"tiktok.com\", \"tiktokcdn.com\", \"tiktokcdn-us.com\", \"youtube.com\", \"youtu.be\", \"youtube-nocookie.com\", \"ytimg.com\", \"googlevideo.com\", \"instagram.com\", \"cdninstagram.com\", \"fbcdn.net\", \"facebook.com\"];\n\nfunction parse(url: string): URL | null {\n try {\n const u = new URL(url);\n // https only, no credentials, no port: the address is a public post, nothing else.\n if (u.protocol !== \"https:\" || u.username || u.password || u.port) return null;\n return u;\n } catch {\n return null;\n }\n}\n\nconst tiktok = (host: string, path: string): string | null => {\n const id = TIKTOK_HOSTS.has(host) ? /^\\/@[\\w.-]{1,64}\\/video\\/(\\d{8,25})\\/?$/.exec(path)?.[1] : undefined;\n return id ? `https://www.tiktok.com/embed/v2/${id}` : null;\n};\n\nconst youtube = (host: string, path: string): string | null => {\n let id: string | undefined;\n if (YOUTUBE_HOSTS.has(host)) id = /^\\/shorts\\/([\\w-]{11})\\/?$/.exec(path)?.[1];\n else if (host === \"youtu.be\") id = /^\\/([\\w-]{11})\\/?$/.exec(path)?.[1];\n return id ? `https://www.youtube-nocookie.com/embed/${id}` : null;\n};\n\nconst instagram = (host: string, path: string): string | null => {\n const match = INSTAGRAM_HOSTS.has(host) ? /^\\/(?:[\\w.]{1,30}\\/)?(p|reel|reels|tv)\\/([\\w-]{5,40})\\/?$/.exec(path) : null;\n return match ? `https://www.instagram.com/${match[1] === \"reels\" ? \"reel\" : match[1]}/${match[2]}/embed` : null;\n};\n\nconst PARSERS: Readonly<Record<EmbedPlatform, (host: string, path: string) => string | null>> = { tiktok, \"youtube-shorts\": youtube, instagram };\n\n/**\n * The address of the platform's frame for a public post, or `null` for anything else: another host, `http:`, a short\n * link we cannot resolve without asking the platform, a profile page. Exact hosts, exact paths.\n */\nexport function embedUrl(platform: EmbedPlatform, url: string): string | null {\n const u = parse(url);\n return u ? PARSERS[platform](u.hostname.toLowerCase(), u.pathname) : null;\n}\n\n/** Whether a poster may be drawn before the click: a path of the host's own origin, or an https picture that is not on a platform's domain (the host copies it to its own storage). */\nexport function isOwnPoster(poster: string): boolean {\n if (poster.startsWith(\"/\") && !poster.startsWith(\"//\")) return true;\n // An inline picture is no request at all.\n if (/^data:image\\/(?:png|jpeg|webp|gif|svg\\+xml)[;,]/i.test(poster)) return true;\n const u = parse(poster);\n if (!u) return false;\n const host = u.hostname.toLowerCase();\n return !PLATFORM_DOMAINS.some((domain) => host === domain || host.endsWith(`.${domain}`));\n}\n"],"mappings":"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","names":[]}
|
package/dist/file-upload.d.ts
CHANGED
|
@@ -240,8 +240,8 @@ declare function useUploadQueue(options: UploadQueueOptions): {
|
|
|
240
240
|
items: UploadItem[];
|
|
241
241
|
add: (files: readonly File[]) => void;
|
|
242
242
|
pause: (id: string) => void;
|
|
243
|
-
resume:
|
|
244
|
-
retry:
|
|
243
|
+
resume: (id: string) => void;
|
|
244
|
+
retry: (id: string) => void;
|
|
245
245
|
cancel: (id: string) => void;
|
|
246
246
|
remove: (id: string) => void;
|
|
247
247
|
};
|
package/dist/genui.js
CHANGED
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
} from "./chunk-YKOLME7R.js";
|
|
8
8
|
import {
|
|
9
9
|
DataTable
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-BG5APGX6.js";
|
|
11
11
|
import "./chunk-3X3OF4TI.js";
|
|
12
12
|
import "./chunk-JXLDUDTD.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-M3GEYLMR.js";
|
|
14
14
|
import "./chunk-KVDB4GXV.js";
|
|
15
15
|
import "./chunk-F6JTHPHE.js";
|
|
16
16
|
import "./chunk-UYGUSYIC.js";
|
package/dist/link-card.js
CHANGED
package/dist/map.js
CHANGED
|
@@ -194,6 +194,9 @@ var themes = /* @__PURE__ */ Object.freeze({ dark: /* @__PURE__ */ Object.freeze
|
|
|
194
194
|
"paperTag": "#2d3932",
|
|
195
195
|
"paperTagEdge": "#586a5f",
|
|
196
196
|
"paperTagInk": "#e9eee7",
|
|
197
|
+
"paperDot": "rgba(217,232,222,0.16)",
|
|
198
|
+
"paperKraft": "#41392f",
|
|
199
|
+
"paperKraftInk": "#f3efe7",
|
|
197
200
|
"surfaceSheen": "rgba(255,255,255,0)",
|
|
198
201
|
"fillShade": "rgba(0,0,0,0.12)",
|
|
199
202
|
"edgeLight": "rgba(255,255,255,0)",
|
|
@@ -259,6 +262,9 @@ var themes = /* @__PURE__ */ Object.freeze({ dark: /* @__PURE__ */ Object.freeze
|
|
|
259
262
|
"paperTag": "#eadfc2",
|
|
260
263
|
"paperTagEdge": "#b4a274",
|
|
261
264
|
"paperTagInk": "#282620",
|
|
265
|
+
"paperDot": "rgba(69,109,161,0.3)",
|
|
266
|
+
"paperKraft": "#d6be9a",
|
|
267
|
+
"paperKraftInk": "#221911",
|
|
262
268
|
"surfaceSheen": "rgba(255,255,255,0)",
|
|
263
269
|
"fillShade": "rgba(0,0,0,0.12)",
|
|
264
270
|
"edgeLight": "rgba(255,255,255,0)",
|