@higgsfield/video-editor-mcp 1.0.7 → 1.1.1-dev.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/THIRD_PARTY_NOTICES.md +24 -24
- package/dist/cli.mjs +134 -125
- package/dist/index.html +136 -133
- package/dist/launcher.mjs +90 -90
- package/dist/server.mjs +1553 -1389
- package/node_modules/@higgsfield/higgsedit/README.md +181 -1
- package/node_modules/@higgsfield/higgsedit/dist/capture-page.js +902 -314
- package/node_modules/@higgsfield/higgsedit/dist/chunk-2JYLVSVV.mjs +1594 -0
- package/node_modules/@higgsfield/higgsedit/dist/chunk-2WKNH7OL.mjs +16 -0
- package/node_modules/@higgsfield/higgsedit/dist/{chunk-OMKZ5BXM.mjs → chunk-5LTTL3Q3.mjs} +1 -1
- package/node_modules/@higgsfield/higgsedit/dist/chunk-7PYXSJS7.mjs +717 -0
- package/node_modules/@higgsfield/higgsedit/dist/{chunk-MLJAIZGP.mjs → chunk-BH2QF635.mjs} +33 -326
- package/node_modules/@higgsfield/higgsedit/dist/{chunk-WZR5PZM7.mjs → chunk-BV5COOQZ.mjs} +250 -161
- package/node_modules/@higgsfield/higgsedit/dist/{chunk-HTCYVKFX.mjs → chunk-C3GSB3XZ.mjs} +8 -7
- package/node_modules/@higgsfield/higgsedit/dist/{chunk-CYH2EUQV.mjs → chunk-DVN4LUXV.mjs} +13 -4
- package/node_modules/@higgsfield/higgsedit/dist/chunk-F4CMIG5G.mjs +36 -0
- package/node_modules/@higgsfield/higgsedit/dist/chunk-IEPPEDEU.mjs +33 -0
- package/node_modules/@higgsfield/higgsedit/dist/{chunk-UVAZ6I6U.mjs → chunk-KIWGVAPJ.mjs} +16 -12
- package/node_modules/@higgsfield/higgsedit/dist/{chunk-L6QDNSL3.mjs → chunk-L5LWBA6A.mjs} +5 -5
- package/node_modules/@higgsfield/higgsedit/dist/chunk-LMQR3DHT.mjs +37 -0
- package/node_modules/@higgsfield/higgsedit/dist/chunk-LTKMGZ6T.mjs +58 -0
- package/node_modules/@higgsfield/higgsedit/dist/{chunk-VI6IV6JP.mjs → chunk-MV2JTTBQ.mjs} +65 -47
- package/node_modules/@higgsfield/higgsedit/dist/{chunk-4D6AXU4B.mjs → chunk-NARTAWRN.mjs} +50 -30
- package/node_modules/@higgsfield/higgsedit/dist/{chunk-27NBQ5FA.mjs → chunk-NUXTKQNM.mjs} +33 -21
- package/node_modules/@higgsfield/higgsedit/dist/chunk-OCIZ36XD.mjs +40 -0
- package/node_modules/@higgsfield/higgsedit/dist/{chunk-MK6PL7N4.mjs → chunk-OF6RMSM2.mjs} +19 -17
- package/node_modules/@higgsfield/higgsedit/dist/{chunk-6BETMESC.mjs → chunk-P2BGHTRR.mjs} +2 -2
- package/node_modules/@higgsfield/higgsedit/dist/{chunk-EKFC4S4M.mjs → chunk-PAHMD6SU.mjs} +5 -0
- package/node_modules/@higgsfield/higgsedit/dist/{chunk-QVLAEV3U.mjs → chunk-PFQYUJQL.mjs} +3 -4
- package/node_modules/@higgsfield/higgsedit/dist/chunk-QJTILFBS.mjs +335 -0
- package/node_modules/@higgsfield/higgsedit/dist/chunk-QQ3GGKDN.mjs +21 -0
- package/node_modules/@higgsfield/higgsedit/dist/chunk-TH7TK67K.mjs +23 -0
- package/node_modules/@higgsfield/higgsedit/dist/{chunk-SIMO6I3D.mjs → chunk-UDL5AHKO.mjs} +163 -158
- package/node_modules/@higgsfield/higgsedit/dist/chunk-UMWOUQN3.mjs +60 -0
- package/node_modules/@higgsfield/higgsedit/dist/{chunk-3AIM3THH.mjs → chunk-VLM5EOWJ.mjs} +4 -4
- package/node_modules/@higgsfield/higgsedit/dist/chunk-WENFTPXQ.mjs +403 -0
- package/node_modules/@higgsfield/higgsedit/dist/chunk-YLVXQIPX.mjs +464 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/.vite/manifest.json +559 -506
- package/node_modules/@higgsfield/higgsedit/dist/editor/assets/agent-corner-bottom-q4hZltI-.svg +431 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/assets/agent-corner-top-BJYI-I24.svg +431 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/assets/confirmation-BTnwl3LS.css +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/assets/drag-Bt_t4HZO.css +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/assets/local-B3OTAV_A.css +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/assets/menubar-2Y1Y2XJt.css +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/assets/model-DdE4hCgf.css +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/assets/{IconText1-CzbCrP7v.css → notifications-B08L1jSe.css} +1 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/assets/{panel-g852pZf_.css → panel-BRN_AbBM.css} +1 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/assets/panel-CYELNqrv.css +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/assets/panel-DYLpT6oA.css +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/assets/panel-v84HaGTZ.css +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/IconChainLink1-Bxb1Or0F.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/{IconCheckmark2Medium-daaES9uF.js → IconCheckmark2Medium-hegaz9mQ.js} +1 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/{IconChevronDownSmall-BhTBJk26.js → IconChevronDownSmall-DaruzJwU.js} +1 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/IconClosedCaptioning-BPqcqKsD.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/{IconCrossMedium-acfnCXOM.js → IconCrossMedium-BsPFJzc6.js} +1 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/IconOpenaiFilled-D1fzthmi.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/{IconPause-pTeVSvUe.js → IconPause-ClNg8pao.js} +1 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/{IconPlayFilled-CwdgIuDG.js → IconPlayFilled-CHb-7GSx.js} +1 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/IconSparklesSoftFilled-o7o33KRn.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/ai-composer-B9h-eaki.js +567 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/auto-layout-BO20Tg4B.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/{button-CjG6GcgF.js → button-Cg0U0zpV.js} +1 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/canvas-Bw4CVzfw.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/capabilities-BCd4-zPF.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/commands-QeSqAbCt.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/components-tXMtIZNL.js +51 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/confirmation-CO2PHR_z.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/dom-6aoQn29n.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/drag-Dw8b_vO2.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/{editing-CjWbiCxv.js → editing-Cy-SaOyB.js} +1 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/edits-CqLBqir0.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/export-dialog-BjBskOe3.js +2 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/factories-Bw_iQrUL.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/id3-CSR0NCRI.js +2 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/import-DP49i4ke.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/import-error-CMz9sLPe.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/ingest-DsmIc415.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/jsx-runtime-B5yqYJvp.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/{media-Bwjxu-0U.js → media-DQw6vU_T.js} +1 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/menubar-D31srALX.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/meters-D0nZVEJs.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/mode-DEG6doKF.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/model-Duf9fszJ.js +2 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/model-DyAkLA69.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/notifications-DqWZNIrK.js +9 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/palette-HT83gWgL.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-B5Mvm6dg.js +7 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-BC90wyvd.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-Bw_ZJ2JI.js +3 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-DNS060Nt.js +3 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-DSgxIrEq.js +2 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-DgBttE5O.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-assets-_T2bHsHW.js +771 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-inspector-DfHvAt5X.js +2 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-nBZvHlkA.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-timeline-DsCpJVSt.js +327 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-viewport-CEhZwZ67.js +280 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/projects-2_tW9Do7.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/react-dom-1uB7Vbbb.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/schemas-CddYAOcj.js +64 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/session-BpFeKAI2.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/src-BLG3tYBa.js +2 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/styles-e2n2A_JN.js +284 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/supercomputer-CuV0zYKd.js +24 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/tabs-XeAgs9cs.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/toggle-DbNEaSIl.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/transport-C8Ll3qFl.js +69 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/transport-bar-Dv1LPFbu.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/useOpenInteractionType-HWSfSsp2.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/useRenderElement-D4SOg3N_.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/value-EB7YmAdS.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/writeback-support-fj5rA9k3.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/editor-B-WAkLt7.js +372 -0
- package/node_modules/@higgsfield/higgsedit/dist/higgsedit.mjs +39 -24
- package/node_modules/@higgsfield/higgsedit/dist/jsx/hooks.d.ts +26 -0
- package/node_modules/@higgsfield/higgsedit/dist/jsx/index.d.ts +17 -0
- package/node_modules/@higgsfield/higgsedit/dist/jsx/inspect.d.ts +42 -0
- package/node_modules/@higgsfield/higgsedit/dist/jsx/jsx-runtime.d.ts +28 -0
- package/node_modules/@higgsfield/higgsedit/dist/jsx/svg.d.ts +9 -0
- package/node_modules/@higgsfield/higgsedit/dist/jsx/time.d.ts +6 -0
- package/node_modules/@higgsfield/higgsedit/dist/jsx/types.d.ts +420 -0
- package/node_modules/@higgsfield/higgsedit/package.json +28 -20
- package/package.json +4 -3
- package/plugin/.codex-plugin/plugin.json +1 -1
- package/plugin/plugin.json +1 -1
- package/plugin/skills/video-editing/references/caption-titling.md +1 -1
- package/plugin/skills/video-editing/references/local-setup.md +3 -3
- package/node_modules/@higgsfield/higgsedit/dist/chunk-C6SASQHE.mjs +0 -424
- package/node_modules/@higgsfield/higgsedit/dist/chunk-FZ5U36SQ.mjs +0 -83
- package/node_modules/@higgsfield/higgsedit/dist/chunk-QLPCYN6K.mjs +0 -292
- package/node_modules/@higgsfield/higgsedit/dist/editor/assets/edit-drag-D2EV5ddd.css +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/assets/editor-CuRHT75g.css +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/assets/panel-DnuQD7ja.css +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/FieldControl-B0fenhBJ.js +0 -2
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/IconChainLink1-Cwv1X7hi.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/IconEyeOpen-BqTT9_VV.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/IconEyeSlash-Whv58c1m.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/IconPencil-Dr17k_7e.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/IconPlay-BroH3ziH.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/IconPlusSmall-43T9aE3d.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/IconText1-BaP_p9DW.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/IconTrashCan-DX2w2AIC.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/ai-composer-C-l0eIdP.js +0 -560
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/captions-Cd-bDG3G.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/clip-highlight-DpAvcA4x.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/components-e3ZbUVns.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/disposables-CwUPjcuA.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/drag-HLBkto5o.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/dropdown-BJ04G_X3.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/edit-drag-Bg6LggKC.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/edits-a2IixhrN.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/export-dialog-4I4gqI5V.js +0 -2
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/face-tracker-DzVfjVOO.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/fit-imported-media-CaCB0x0b.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/generation-queue-DuL2F4-_.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/import-error-CMARA0Hy.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/jsx-runtime-B-hcVAMW.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/menubar-Bs26OdwP.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/meters-YEr9OQjq.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/paints-DS2Msf91.js +0 -67
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/palette-CcS9IcAC.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-7M3uQokX.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-BBK1NyG-.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-CHZTs7By.js +0 -4
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-DaSOa3MP.js +0 -2
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-DlK3RYVo.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-Dst5OKWu.js +0 -2
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-H_ZoDiKK.js +0 -2
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-Rn9Z7Eek.js +0 -3
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-assets-FAghGFG3.js +0 -678
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-inspector-DEqULBNF.js +0 -260
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-timeline-0GYNz1uc.js +0 -333
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-viewport-DOWjJi5-.js +0 -317
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/projects-BBJc7h5_.js +0 -2
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/session-B9sZaFKC.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/supercomputer-CX-LCL6Y.js +0 -24
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/tabs-CvKQ-eas.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/toggle-CrzrwiDZ.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/transport-BgRfk-Qq.js +0 -69
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/transport-bar-C9nqAfE2.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/typography-C5-w9LOu-kD3uLKkf.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/useOpenInteractionType-DbrQ6Ehu.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/useRenderElement-bbxXdYq0.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/writeback-support-BZfNpkmB.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/editor-Csn2_T_e.js +0 -293
- package/node_modules/@higgsfield/higgsedit/dist/export-settings.mjs +0 -75
- package/node_modules/@higgsfield/higgsedit/dist/history.mjs +0 -295
- package/node_modules/@higgsfield/higgsedit/dist/media-upload.mjs +0 -381
- package/node_modules/@higgsfield/higgsedit/dist/proxy.mjs +0 -170
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["chunks/panel-nBZvHlkA.js","chunks/jsx-runtime-B5yqYJvp.js","chunks/notifications-DqWZNIrK.js","chunks/react-dom-1uB7Vbbb.js","assets/notifications-B08L1jSe.css","chunks/capabilities-BCd4-zPF.js","chunks/edits-CqLBqir0.js","chunks/model-Duf9fszJ.js","chunks/components-tXMtIZNL.js","chunks/IconCheckmark2Medium-hegaz9mQ.js","chunks/dom-6aoQn29n.js","chunks/useRenderElement-D4SOg3N_.js","chunks/useOpenInteractionType-HWSfSsp2.js","chunks/button-Cg0U0zpV.js","editor-B-WAkLt7.js","chunks/session-BpFeKAI2.js","chunks/src-BLG3tYBa.js","chunks/factories-Bw_iQrUL.js","chunks/ingest-DsmIc415.js","chunks/value-EB7YmAdS.js","chunks/schemas-CddYAOcj.js","chunks/import-error-CMz9sLPe.js","chunks/asset-op-C6YhYJcd.js","chunks/import-DP49i4ke.js","chunks/editing-Cy-SaOyB.js","assets/local-B3OTAV_A.css","chunks/IconChevronDownSmall-DaruzJwU.js","chunks/confirmation-CO2PHR_z.js","assets/confirmation-BTnwl3LS.css","chunks/auto-layout-BO20Tg4B.js","chunks/IconChainLink1-Bxb1Or0F.js","chunks/canvas-Bw4CVzfw.js","chunks/writeback-support-fj5rA9k3.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{u as e}from"./edits-CqLBqir0.js";import{St as t,Ut as n,X as r}from"../editor-B-WAkLt7.js";import{t as i}from"./panel-4DTzhYdA.js";import{injectInspectorStyles as a}from"./styles-e2n2A_JN.js";function o(o){let s=new n;return r.inspector&&s.add(o.extensions.register(`panel`,`fable.panel-inspector.panel`,i(()=>t(()=>import(`./panel-nBZvHlkA.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32])),{styles:a}))),s.add(o.extensions.register(`operator`,`fable.panel-inspector.setSpeed`,e())),s}export{o as activate};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e,s as t,t as n}from"./jsx-runtime-B5yqYJvp.js";import"./notifications-DqWZNIrK.js";import{n as r}from"./capabilities-BCd4-zPF.js";import{C as i,T as a,a as o,b as s,c,d as l,g as u,h as d,l as f,m as p,n as m,o as h,p as g,r as _,s as v,t as y,v as b,w as ee,x,y as S}from"./edits-CqLBqir0.js";import{a as C}from"./model-Duf9fszJ.js";import{_ as te,a as w,c as T,d as E,f as ne,i as D,l as O,m as re,n as k,p as ie,s as A,u as j}from"./components-tXMtIZNL.js";import{S as ae,_ as oe,d as M,m as se,p as N,y as ce}from"../editor-B-WAkLt7.js";import{t as P}from"./button-Cg0U0zpV.js";import{t as F}from"./IconChevronDownSmall-DaruzJwU.js";import{t as le}from"./confirmation-CO2PHR_z.js";import{n as ue,r as I}from"./auto-layout-BO20Tg4B.js";import{_ as L,f as de,g as R,h as fe,m as pe,p as me,t as he,u as z,v as ge}from"./IconChainLink1-Bxb1Or0F.js";import"./canvas-Bw4CVzfw.js";import{t as _e}from"./writeback-support-fj5rA9k3.js";var ve=[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],B=t(e(),1),V=(0,B.createContext)(null);function H(){let e=(0,B.use)(V);if(!e)throw Error(`useEdit() outside the inspector panel`);return e}var U=n();function W(e){return{available:!1,reason:e}}function G(e,t){if(!e||t.length===0)return{availability:W(`Select a visual layer to align.`),context:null};let n=e.scenes.find(e=>t.every(t=>C(e,t)!==null));if(!n)return{availability:W(`Selected layers must be in the same scene.`),context:null};let r=t.map(e=>C(n,e)).filter(e=>e!==null);if(r.some(e=>e.clip.kind===`audio`))return{availability:W(`Audio layers cannot be aligned on the canvas.`),context:null};let i=t.map(t=>I(e,t));if(i.some(e=>e===null))return{availability:W(`One or more selected layers could not be found.`),context:null};if(i.some(e=>e.locked))return{availability:W(`Alignment is unavailable because a selected layer or ancestor is locked.`),context:null};if(i.some(e=>e.sealed))return{availability:W(`Component internals are sealed. Align the component instance instead.`),context:null};if(i.some(e=>e.parent?.autoLayout!=null))return{availability:W(`Alignment is managed by the Auto Layout parent.`),context:null};if(!de(r))return{availability:W(`Selected layers must share the same parent.`),context:null};let a;if(r.length>1){let e=z(r);if(!e)return{availability:W(`Selected layers do not have alignable bounds.`),context:null};a=e}else{let e=i[0].parent;a=e?{minX:0,minY:0,maxX:e.size.width,maxY:e.size.height}:{minX:0,minY:0,maxX:n.width,maxY:n.height}}return{availability:{available:!0,reason:null},context:{scene:n,locations:r,containerBounds:a}}}function ye(e,t){return G(e,t).availability}function K(e,t,n){let r=t===`x`?e.minX:e.minY,i=t===`x`?e.maxX:e.maxY;return n===`start`?r:n===`end`?i:(r+i)/2}function be(e,t){return e===`x`?t===`start`?`Align left`:t===`end`?`Align right`:`Align horizontal centers`:t===`start`?`Align top`:t===`end`?`Align bottom`:`Align vertical centers`}function xe(e,t,n,r){let{context:i}=G(e,t);if(!i)return null;let a=K(i.containerBounds,n,r),o=[];for(let t of i.locations){let i=z([t]),s=v(e,t.clip.id);if(!i||!s)return null;let c=a-K(i,n,r);if(Math.abs(c)<1e-9)continue;let u={...t.clip,transform:{...t.clip.transform,[n]:t.clip.transform[n]+c}};o.push({op:`set`,path:s.path,value:l(u)})}return o.length===0?null:{id:x(),name:be(n,r),coalesceKey:null,ops:o}}var Se=[{label:`Align left`,axis:`x`,edge:`start`,icon:(0,U.jsx)(L,{mode:`raw`,size:15})},{label:`Align horizontal center`,axis:`x`,edge:`center`,icon:(0,U.jsx)(ge,{mode:`raw`,size:15})},{label:`Align right`,axis:`x`,edge:`end`,icon:(0,U.jsx)(R,{mode:`raw`,size:15})},{label:`Align top`,axis:`y`,edge:`start`,icon:(0,U.jsx)(me,{mode:`raw`,size:15})},{label:`Align vertical center`,axis:`y`,edge:`center`,icon:(0,U.jsx)(fe,{mode:`raw`,size:15})},{label:`Align bottom`,axis:`y`,edge:`end`,icon:(0,U.jsx)(pe,{mode:`raw`,size:15})}];function Ce({disabled:e,reason:t,onAlign:n}){return(0,U.jsxs)(j,{title:`Align`,children:[(0,U.jsx)(`div`,{className:`alignment-buttons`,role:`group`,"aria-label":`Align selected layers`,children:Se.map(t=>(0,U.jsx)(w,{title:t.label,disabled:e,onClick:()=>n(t.axis,t.edge),children:t.icon},t.label))}),t&&(0,U.jsx)(A,{children:t})]})}function we(e,t){return e.available===t.available&&e.reason===t.reason}function q({clipIds:e}){let t=M(r),{applyEnvelope:n}=H(),i=N(t=>ye(t,e),we);return(0,U.jsx)(Ce,{disabled:!i.available,reason:i.reason,onAlign:(r,i)=>{let a=t?.snapshot();a&&n(xe(a,e,r,i))}})}var Te=0,J=()=>`gesture-${++Te}`;function Y({checked:e,label:t,onChange:n}){return(0,U.jsx)(`button`,{type:`button`,className:`properties-switch`,role:`switch`,"aria-label":t,"aria-checked":e,onClick:()=>n(!e)})}function Ee({value:e,min:t,max:n,step:r,format:i,onInput:a}){let[o,s]=(0,B.useState)(null),c=(0,B.useRef)(null),l=o??e;return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(ne,{value:l,min:t,max:n,step:r,onGestureStart:()=>{c.current=J()},onGestureEnd:()=>{c.current=null,s(null)},onInput:e=>{s(c.current===null?null:e),a(e,c.current)}}),i!==void 0&&(0,U.jsx)(`span`,{className:`muted num-readout text-q-mono-xs-regular`,children:i(l)})]})}function X({axis:e,value:t,onCommit:n,step:r,min:i,max:a,disabled:o}){let s=(0,B.useRef)(null);return(0,U.jsxs)(`span`,{className:`axis-field`,children:[(0,U.jsx)(`span`,{className:`axis-label muted text-q-caption-xs-regular`,children:e}),(0,U.jsx)(T,{label:`${e} axis value`,value:t,disabled:o,onCommit:e=>n(e,s.current),step:r,min:i,max:a,onGestureStart:()=>{s.current=J()},onGestureEnd:()=>{s.current=null}})]})}function De({linked:e,onToggle:t}){return(0,U.jsx)(P,{variant:e?`brandSoft`:`ghost`,size:`xxs`,iconOnly:!0,className:`link-btn${e?` active`:``}`,"aria-label":e?`Unlink X and Y`:`Link X and Y`,"aria-pressed":e,title:e?`Unlink X and Y`:`Link X and Y`,onClick:t,children:(0,U.jsx)(he,{mode:`raw`,size:12})})}function Oe({label:e,title:t,active:n,disabled:r,onClick:i}){return(0,U.jsx)(P,{variant:n?`brandSoft`:`tertiary`,size:`xxs`,title:t,"aria-label":t??e,"aria-pressed":!!n,disabled:r,onClick:i,children:e})}function Z(e,t){return t.kind===`audio`||t.kind===`media`&&e?.assets.find(e=>e.id===t.assetId)?.kind===`video`}function ke(e,t){return e===t?!0:!e||!t?!1:e.leftId===t.leftId&&e.rightId===t.rightId&&c(e.presets,t.presets)}function Ae({clipIds:e}){let{applyEnvelope:t}=H(),n=M(r),i=N(t=>{if(!t)return null;let n=m(t,e);if(!n)return null;let r=s(n.left.kind,Z(t,n.left)),i=new Set(s(n.right.kind,Z(t,n.right)));return{leftId:n.left.id,rightId:n.right.id,presets:r.filter(e=>i.has(e))}},ke);return i?(0,U.jsxs)(j,{title:`Transition`,children:[(0,U.jsx)(D,{label:`Add transition`,buttonClassName:`w-full`,entries:()=>i.presets.map(e=>({kind:`item`,label:S(e),onSelect:()=>{let r=n?.snapshot();r&&t(y(r,i.leftId,i.rightId,e))}}))}),(0,U.jsx)(`div`,{className:`muted anim-hint text-q-caption-xs-regular`,children:`Animates the left clip out and the right clip in.`})]}):null}var Q=[{family:`Inter`,label:`Inter`,weights:[300,400,500,600,700,800],fallback:`sans-serif`},{family:`Geologica`,label:`Geologica`,weights:[300,400,500,600,700,800],fallback:`sans-serif`},{family:`Nunito`,label:`Nunito`,weights:[300,400,500,600,700,800],fallback:`sans-serif`},{family:`Figtree`,label:`Figtree`,weights:[300,400,500,600,700,800],fallback:`sans-serif`},{family:`Urbanist`,label:`Urbanist`,weights:[300,400,500,600,700,800],fallback:`sans-serif`},{family:`Montserrat`,label:`Montserrat`,weights:[300,400,500,600,700,800],fallback:`sans-serif`},{family:`Bangers`,label:`Bangers`,weights:[400],fallback:`cursive`},{family:`Chewy`,label:`Chewy`,weights:[400],fallback:`cursive`},{family:`Source Code Pro`,label:`Source Code Pro`,weights:[300,400,500,600,700],fallback:`monospace`},{family:`monospace`,label:`Monospace`,weights:[400,700],fallback:`monospace`}];function je(e){return e.family===e.fallback?e.fallback:`"${e.family}", ${e.fallback}`}var Me=e=>e.replace(/^["']|["']$/g,``);async function Ne(e,t){let n=new URLSearchParams({family:t,weight:`400`,style:`normal`}),r=await fetch(`${e}/__higgsedit/fonts/google?${n}`);if(!r.ok)return null;let i=await r.json();if(!i||!(`url`in i))return null;let a=await fetch(i.url.startsWith(`/`)?`${e}${i.url}`:i.url);return a.ok?new FontFace(t,await a.arrayBuffer(),{weight:String(i.weight),style:i.style}).load():null}var Pe=new WeakSet;function Fe(e,t,n){let r=e.fonts;if(!r||Pe.has(r))return;Pe.add(r);let i=new Set([...r].map(e=>Me(e.family))),a=Q.filter(e=>e.family!==e.fallback&&!i.has(e.family));Promise.allSettled(a.map(async e=>{let n=await Ne(t,e.family);n&&r.add(n)})).then(n)}function Ie(e){return e.background.type===`solid`?e.background.color:`#000000`}function Le({doc:e,scene:t}){let{updateScene:n}=H(),i=ce(),a=M(r),[o,s]=(0,B.useState)(!1),c=(e,r)=>n(t.id,e,r),l=d.find(e=>e.width===t.width&&e.height===t.height)??null,u=()=>{let e=[];for(let t of g){e.push({kind:`header`,label:p[t]});for(let n of d.filter(e=>e.category===t))e.push({kind:`item`,label:n.ratioLabel?`${n.name} ${n.ratioLabel}`:n.name,detail:`${n.width}×${n.height}`,checked:l?.id===n.id,onSelect:()=>c(`Change scene size`,e=>({...e,width:n.width,height:n.height}))})}return e},f=t.tracks.reduce((e,t)=>e+t.clips.length,0);return(0,U.jsxs)(`div`,{children:[(0,U.jsxs)(j,{title:`Scene`,children:[(0,U.jsx)(O,{label:`Name`,children:(0,U.jsx)(re,{value:t.name,onCommit:e=>{let n=e.trim();n.length>0&&n!==t.name&&c(`Rename scene`,e=>({...e,name:n}))}})}),(0,U.jsx)(O,{label:`Aspect`,children:(0,U.jsx)(`div`,{className:`picker`,children:(0,U.jsx)(D,{buttonClassName:`w-full justify-between`,entries:u,label:(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`span`,{children:l?`${l.name}${l.ratioLabel?` ${l.ratioLabel}`:``}`:`Custom`}),(0,U.jsx)(`span`,{className:`muted`,children:(0,U.jsx)(F,{mode:`raw`,size:12})})]})})})}),(0,U.jsxs)(O,{label:`Size`,children:[(0,U.jsx)(T,{value:t.width,min:2,onCommit:e=>c(`Resize scene`,t=>({...t,width:Math.round(e)}))}),(0,U.jsx)(`span`,{className:`muted`,children:`×`}),(0,U.jsx)(T,{value:t.height,min:2,onCommit:e=>c(`Resize scene`,t=>({...t,height:Math.round(e)}))})]}),(0,U.jsx)(O,{label:`Duration`,children:(0,U.jsxs)(`span`,{className:`muted`,children:[te(t.duration),` s`]})}),(0,U.jsx)(O,{label:`FPS`,children:(0,U.jsx)(T,{value:t.fps,min:1,max:120,onCommit:e=>c(`Change fps`,t=>({...t,fps:e}))})})]}),(0,U.jsx)(j,{title:`Background`,children:(0,U.jsx)(O,{label:`Color`,children:(0,U.jsx)(k,{value:Ie(t),onCommit:e=>c(`Change background`,t=>({...t,background:{type:`solid`,color:e}}))})})}),_e(`scene-list`)&&(0,U.jsx)(j,{children:(0,U.jsx)(P,{variant:`secondary`,size:`xs`,className:`w-full`,disabled:e.scenes.length<=1,onClick:()=>s(!0),children:`Delete scene`})}),o&&(0,U.jsx)(le,{title:`Delete “${t.name}”?`,description:`This removes the scene and its ${f} clip${f===1?``:`s`}.`,onConfirm:async()=>{let n=a?.snapshot();if(!n||n.id!==e.id)return;let r=h(n,t.id);r&&await i.commands.execute(`document.apply`,r)},onClose:()=>s(!1)})]})}function Re(){return(0,U.jsx)(j,{children:(0,U.jsx)(A,{children:`No document open`})})}var ze=e=>{let t=B.useId();return B.createElement(Ue,{...e,instanceId:t})},Be=0,Ve=typeof B.useId==`function`?void 0:class extends B.Component{state={};componentDidMount(){this.setState({instanceId:`legacy-${++Be}`})}render(){return B.createElement(Ue,{...this.props.iconProps,instanceId:this.state.instanceId})}},He=B.forwardRef((e,t)=>Ve?B.createElement(Ve,{iconProps:{...e,svgRef:t}}):B.createElement(ze,{...e,svgRef:t}));He.displayName=`CentralIconBase`;var Ue=({children:e,size:t=24,ariaLabel:n,color:r,ariaHidden:i,"aria-hidden":a,"aria-label":o,role:s,svgRef:c,renderShapes:l,style:u,mode:d=`masked`,maskId:f,instanceId:p,...m})=>{let h=p?`${f}-${p}`:f,g=d!==`raw`&&!!f,_=a??i??!0,v=_===!0||_===`true`,y=o??n,b=l?l(h??p??`icon`):e;return B.createElement(`svg`,{...m,ref:c,"aria-hidden":_,"aria-label":o,role:s??(v?void 0:`img`),width:typeof t==`number`?`${t}px`:t,height:typeof t==`number`?`${t}px`:t,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:{color:r,...u}},y&&!v&&B.createElement(`title`,null,y),g?B.createElement(B.Fragment,null,B.createElement(`mask`,{id:h,maskUnits:`userSpaceOnUse`,x:`0`,y:`0`,width:`24`,height:`24`},B.createElement(`rect`,{width:`24`,height:`24`,fill:`#000`}),B.createElement(`g`,{fill:`none`,style:{color:`#fff`}},b)),B.createElement(`rect`,{width:`24`,height:`24`,fill:`currentColor`,mask:`url(#${h})`})):b)},We=B.memo(B.forwardRef((e,t)=>B.createElement(He,{...e,ref:t,ariaLabel:`corner-radius, border-radius`,maskId:`round-outlined-radius-2-stroke-1.5-IconCornerRadius`},B.createElement(`path`,{d:`M20.25 3.75H13.35C9.98969 3.75 8.30953 3.75 7.02606 4.40396C5.89708 4.9792 4.9792 5.89708 4.40396 7.02606C3.75 8.30953 3.75 9.98969 3.75 13.35V20.25`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})))),Ge=e=>{let t=B.useId();return B.createElement(Ye,{...e,instanceId:t})},Ke=0,qe=typeof B.useId==`function`?void 0:class extends B.Component{state={};componentDidMount(){this.setState({instanceId:`legacy-${++Ke}`})}render(){return B.createElement(Ye,{...this.props.iconProps,instanceId:this.state.instanceId})}},Je=B.forwardRef((e,t)=>qe?B.createElement(qe,{iconProps:{...e,svgRef:t}}):B.createElement(Ge,{...e,svgRef:t}));Je.displayName=`CentralIconBase`;var Ye=({children:e,size:t=24,ariaLabel:n,color:r,ariaHidden:i,"aria-hidden":a,"aria-label":o,role:s,svgRef:c,renderShapes:l,style:u,mode:d=`masked`,maskId:f,instanceId:p,...m})=>{let h=p?`${f}-${p}`:f,g=d!==`raw`&&!!f,_=a??i??!0,v=_===!0||_===`true`,y=o??n,b=l?l(h??p??`icon`):e;return B.createElement(`svg`,{...m,ref:c,"aria-hidden":_,"aria-label":o,role:s??(v?void 0:`img`),width:typeof t==`number`?`${t}px`:t,height:typeof t==`number`?`${t}px`:t,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:{color:r,...u}},y&&!v&&B.createElement(`title`,null,y),g?B.createElement(B.Fragment,null,B.createElement(`mask`,{id:h,maskUnits:`userSpaceOnUse`,x:`0`,y:`0`,width:`24`,height:`24`},B.createElement(`rect`,{width:`24`,height:`24`,fill:`#000`}),B.createElement(`g`,{fill:`none`,style:{color:`#fff`}},b)),B.createElement(`rect`,{width:`24`,height:`24`,fill:`currentColor`,mask:`url(#${h})`})):b)},Xe=B.memo(B.forwardRef((e,t)=>B.createElement(Je,{...e,ref:t,ariaLabel:`alignment-center`,maskId:`round-outlined-radius-2-stroke-1.5-IconAlignmentCenter`},B.createElement(`path`,{d:`M3.75 4.75H20.25`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),B.createElement(`path`,{d:`M7.75 12H16.25`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),B.createElement(`path`,{d:`M3.75 19.25H20.25`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})))),Ze=[{type:`solid`,label:`Solid`},{type:`gradient`,label:`Gradient`},{type:`media`,label:`Media`}],Qe=[`cover`,`contain`,`fill`];function $e({clip:e,assets:t}){let{updateClip:n}=H(),r=e.fill,o=t.filter(e=>e.kind===`image`||e.kind===`video`),[s,c]=(0,B.useState)(0),[l,u]=(0,B.useState)(null),d=(0,B.useRef)(``),f=(0,B.useRef)(null),p=(t,r=`Fill`,i=null)=>n(e.id,r,e=>({...e,fill:t}),i),m=e=>{if(r.type!==e){if(e===`solid`)p({type:`solid`,color:r.type===`gradient`?r.stops[0]?.color??`#ffffff`:`#808080`},`Solid fill`);else if(e===`gradient`){let e=r.type===`solid`?r.color:`#d1fe17`;c(0),p({type:`gradient`,gradientKind:`linear`,angle:90,stops:[{offset:0,color:e,opacity:1},{offset:1,color:e,opacity:0}]},`Gradient fill`)}else{let e=o[0];e&&p({type:`media`,assetId:e.id,fit:`cover`},`Media fill`)}}},h=(0,U.jsx)(O,{label:`Fill`,children:(0,U.jsx)(`div`,{className:`properties-segmented`,children:Ze.map(e=>(0,U.jsx)(Oe,{label:e.label,active:r.type===e.type,disabled:e.type===`media`&&r.type!==`media`&&o.length===0,title:e.type===`media`&&o.length===0?`Import an image or video first`:void 0,onClick:()=>m(e.type)},e.type))})});if(r.type===`solid`)return(0,U.jsxs)(U.Fragment,{children:[h,(0,U.jsx)(O,{label:`Color`,children:(0,U.jsx)(k,{value:r.color,onCommit:e=>p({type:`solid`,color:e})})})]});if(r.type===`media`)return(0,U.jsxs)(U.Fragment,{children:[h,o.length===0?(0,U.jsx)(A,{children:`Import an image or video first`}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(O,{label:`Asset`,children:(0,U.jsx)(E,{value:r.assetId,options:o.map(e=>({value:e.id,label:e.name})),onChange:e=>p({...r,assetId:e},`Media fill asset`)})}),(0,U.jsx)(O,{label:`Fit`,children:(0,U.jsx)(E,{value:r.fit,options:Qe.map(e=>({value:e,label:e})),onChange:e=>p({...r,fit:e},`Media fill fit`)})})]})]});let g=(e,t=`Fill`,n=null)=>p({...r,...e},t,n),_=(e,t,n=`Edit gradient stop`,i=null)=>g({stops:r.stops.map((n,r)=>r===e?{...n,...t}:n)},n,i),v=r.stops[s]?s:0,y=r.stops[v]??null,b=l?r.stops.map((e,t)=>t===l.index?{...e,offset:l.offset}:e):r.stops,x=e=>{let t=[...r.stops].sort((e,t)=>e.offset-t.offset),n=t[0],i=t[t.length-1];for(let r of t)if(r.offset<=e&&(n=r),r.offset>=e){i=r;break}let a=i.offset-n.offset,o=a>1e-6?(e-n.offset)/a:0,s={offset:e,color:ee(n.color,i.color,o),opacity:n.opacity+(i.opacity-n.opacity)*o};c(r.stops.length),g({stops:[...r.stops,s]},`Add gradient stop`)},S=r.stops.length<=2;return(0,U.jsxs)(U.Fragment,{children:[h,(0,U.jsx)(`div`,{className:`grad-strip`,title:`Click to add a stop`,style:{background:i(b)},onPointerDown:e=>{if(e.target!==e.currentTarget)return;let t=e.currentTarget.getBoundingClientRect();x(Math.min(1,Math.max(0,(e.clientX-t.left)/t.width)))},children:r.stops.map((e,t)=>(0,U.jsx)(`button`,{type:`button`,className:`grad-handle${t===v?` active`:``}`,style:{left:`${(l?.index===t?l.offset:e.offset)*100}%`,background:a(e.color,1)},onPointerDown:n=>{n.stopPropagation(),n.preventDefault(),c(t),d.current=J(),f.current=n.currentTarget.parentElement.getBoundingClientRect(),n.currentTarget.setPointerCapture(n.pointerId),u({index:t,offset:e.offset})},onPointerMove:e=>{let n=f.current;if(!n||l?.index!==t)return;let r=Math.round(Math.min(1,Math.max(0,(e.clientX-n.left)/n.width))*1e3)/1e3;u({index:t,offset:r}),_(t,{offset:r},`Move gradient stop`,d.current)},onPointerUp:()=>u(null),onPointerCancel:()=>u(null)},t))}),y&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(O,{label:`Stop`,children:[(0,U.jsx)(k,{value:y.color,onCommit:e=>_(v,{color:e})}),(0,U.jsx)(w,{title:`Remove stop`,disabled:S,onClick:()=>{S||(c(Math.max(0,Math.min(v,r.stops.length-2))),g({stops:r.stops.filter((e,t)=>t!==v)},`Remove gradient stop`))},children:`×`})]}),(0,U.jsx)(O,{label:`Opacity`,children:(0,U.jsx)(Ee,{value:y.opacity,min:0,max:1,step:.01,format:e=>`${Math.round(e*100)}%`,onInput:(e,t)=>_(v,{opacity:e},`Edit gradient stop`,t)})}),(0,U.jsx)(O,{label:`Offset`,children:(0,U.jsx)(T,{value:y.offset,min:0,max:1,step:.01,onCommit:e=>_(v,{offset:e})})})]}),(0,U.jsx)(O,{label:`Type`,children:(0,U.jsx)(E,{value:r.gradientKind,options:[{value:`linear`,label:`Linear`},{value:`radial`,label:`Radial`}],onChange:e=>g({gradientKind:e})})}),r.gradientKind===`linear`&&(0,U.jsxs)(O,{label:`Angle`,children:[(0,U.jsx)(T,{value:r.angle,step:1,onCommit:e=>g({angle:e})}),(0,U.jsx)(`span`,{className:`muted`,children:`°`})]})]})}function et({clip:e}){let{updateClip:t}=H(),n=e.cornerRadius,r=n=>t(e.id,`Corner radius`,e=>({...e,cornerRadius:n(e.cornerRadius)})),i=e=>(0,U.jsx)(T,{value:n[e],min:0,onCommit:t=>r(n=>({...n,mixed:!0,[e]:t}))}),a=(0,U.jsx)(w,{title:n.mixed?`Link corners`:`Separate corners`,active:n.mixed,onClick:()=>r(e=>e.mixed?{mixed:!1,uniform:e.tl,tl:e.tl,tr:e.tl,br:e.tl,bl:e.tl}:{...e,mixed:!0,tl:e.uniform,tr:e.uniform,br:e.uniform,bl:e.uniform}),children:(0,U.jsx)(We,{mode:`raw`,size:16})});return n.mixed?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(O,{label:`Radius`,children:[(0,U.jsx)(`span`,{className:`muted`,style:{flex:1},children:`Per corner`}),a]}),(0,U.jsxs)(O,{label:`TL · TR`,children:[i(`tl`),i(`tr`)]}),(0,U.jsxs)(O,{label:`BL · BR`,children:[i(`bl`),i(`br`)]})]}):(0,U.jsxs)(O,{label:`Radius`,children:[(0,U.jsx)(T,{value:n.uniform,min:0,onCommit:e=>r(()=>({mixed:!1,uniform:e,tl:e,tr:e,br:e,bl:e}))}),a]})}function tt({clip:e,assets:t,children:n}){let{updateClip:r}=H();return(0,U.jsxs)(j,{title:`Appearance`,children:[(0,U.jsx)($e,{clip:e,assets:t}),(0,U.jsx)(O,{label:`Stroke`,children:(0,U.jsx)(k,{value:e.stroke.color,onCommit:t=>r(e.id,`Stroke`,e=>({...e,stroke:{...e.stroke,color:t}}))})}),(0,U.jsx)(O,{label:`Stroke width`,children:(0,U.jsx)(T,{label:`Stroke width`,value:e.stroke.width,min:0,onCommit:t=>r(e.id,`Stroke width`,e=>({...e,stroke:{...e.stroke,width:t}}))})}),(0,U.jsx)(et,{clip:e}),n]})}function nt({clip:e}){let{updateClip:t}=H(),n=Q.find(t=>t.family===e.fontFamily)??null;return(0,U.jsx)(`div`,{className:`picker`,children:(0,U.jsx)(D,{buttonClassName:`w-full justify-between`,label:(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`span`,{style:{fontFamily:n?je(n):e.fontFamily},children:n?.label??e.fontFamily}),(0,U.jsx)(`span`,{className:`muted`,children:(0,U.jsx)(F,{mode:`raw`,size:12})})]}),entries:()=>Q.map(n=>({kind:`item`,label:n.label,checked:n.family===e.fontFamily,labelStyle:{fontFamily:je(n)},onSelect:()=>t(e.id,`Font`,e=>{let t=e,r=n.weights.reduce((e,n)=>Math.abs(n-t.fontWeight)<Math.abs(e-t.fontWeight)?n:e,n.weights[0]);return{...t,fontFamily:n.family,fontWeight:r}})}))})})}function rt({clip:e,assets:t}){let{updateClip:n}=H(),r=(t,r)=>n(e.id,t,e=>r(e)),i=[...Q.find(t=>t.family===e.fontFamily)?.weights??[300,400,500,600,700,800]];return i.includes(e.fontWeight)||i.push(e.fontWeight),i.sort((e,t)=>e-t),(0,U.jsxs)(j,{title:`Text`,children:[(0,U.jsx)(ie,{className:`text-area`,value:e.text,onCommit:e=>r(`Edit text`,t=>({...t,text:e}))}),(0,U.jsx)(O,{label:`Font`,children:(0,U.jsx)(nt,{clip:e})}),(0,U.jsx)(O,{label:`Size`,children:(0,U.jsx)(T,{value:e.fontSize,min:1,onCommit:e=>r(`Font size`,t=>({...t,fontSize:e}))})}),(0,U.jsxs)(O,{label:`Weight`,children:[(0,U.jsx)(E,{value:String(e.fontWeight),options:i.map(e=>({value:String(e),label:b[e]??String(e)})),onChange:e=>r(`Font weight`,t=>({...t,fontWeight:Number(e)}))}),(0,U.jsx)(w,{className:`style-btn italic-btn`,title:`Italic`,active:e.italic,onClick:()=>r(`Italic`,e=>({...e,italic:!e.italic})),children:`I`}),(0,U.jsx)(w,{className:`style-btn bold-btn`,title:`Bold`,active:e.fontWeight>=700,onClick:()=>r(`Bold`,e=>({...e,fontWeight:e.fontWeight>=700?400:700})),children:`B`})]}),(0,U.jsx)(O,{label:`Align`,children:(0,U.jsx)(`div`,{className:`properties-segmented`,children:[[`left`,L],[`center`,Xe],[`right`,R]].map(([t,n])=>(0,U.jsx)(w,{title:`Align text ${t}`,active:e.align===t,onClick:()=>r(`Align`,e=>({...e,align:t})),children:(0,U.jsx)(n,{mode:`raw`,size:16})},t))})}),(0,U.jsxs)(O,{label:`Spacing`,children:[(0,U.jsx)(T,{value:e.letterSpacing,step:.5,onCommit:e=>r(`Letter spacing`,t=>({...t,letterSpacing:e}))}),(0,U.jsx)(`span`,{className:`muted`,children:`px`})]}),(0,U.jsxs)(O,{label:`Line height`,children:[(0,U.jsx)(T,{value:e.lineHeight,min:.5,max:4,step:.1,onCommit:e=>r(`Line height`,t=>({...t,lineHeight:e}))}),(0,U.jsx)(`span`,{className:`muted`,children:`×`})]}),(0,U.jsx)($e,{clip:e,assets:t})]})}var it=`data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Frame'%3e%3cpath%20id='Vector'%20d='M1.875%201.875H9.625C9.90114%201.875%2010.125%202.09886%2010.125%202.375V10.125'%20stroke='%23828282'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3c/svg%3e`,at=`data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Frame'%3e%3cpath%20id='Vector'%20d='M10.125%201.875H2.375C2.09886%201.875%201.875%202.09886%201.875%202.375V10.125'%20stroke='%23828282'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3c/svg%3e`,ot=`data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Frame'%3e%3cpath%20id='Vector'%20d='M10.125%201.875H2.375C2.09886%201.875%201.875%202.09886%201.875%202.375V10.125'%20stroke='%23828282'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3c/svg%3e`,st=`data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Frame'%3e%3cpath%20id='Vector'%20d='M10.125%201.875H2.375C2.09886%201.875%201.875%202.09886%201.875%202.375V10.125'%20stroke='%23828282'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3c/svg%3e`;function ct({clip:e,sceneWidth:t,sceneHeight:n,disabled:r,positioningDisabled:i,sizeDisabled:a}){let{updateClip:o}=H(),[s,c]=(0,B.useState)(!1),l=(t,n)=>o(e.id,t,e=>({...e,transform:{...e.transform,...n}})),u=(t,n)=>o(e.id,`Resize`,e=>{let r=e.size[t]>0?n/e.size[t]:1,i=s?{width:e.size.width*r,height:e.size.height*r}:e.size;return{...e,size:{...i,[t]:n}}}),d=e.transform;return(0,U.jsx)(j,{title:`Transform`,children:(0,U.jsxs)(`fieldset`,{className:`contents`,disabled:r,children:[(0,U.jsxs)(O,{label:`Position`,children:[(0,U.jsx)(X,{axis:`X`,value:d.x-t/2,disabled:i,onCommit:e=>l(`Move`,{x:e+t/2})}),(0,U.jsx)(X,{axis:`Y`,value:d.y-n/2,disabled:i,onCommit:e=>l(`Move`,{y:e+n/2})})]}),(0,U.jsxs)(O,{label:`Scale`,children:[(0,U.jsx)(T,{label:`Scale`,value:d.scaleX*100,step:1,onCommit:e=>{let t=e/100;l(`Scale`,{scaleX:t,scaleY:d.scaleX===0?t:d.scaleY*t/d.scaleX})}}),(0,U.jsx)(`span`,{className:`muted`,children:`%`})]}),(0,U.jsxs)(`div`,{className:`properties-dimensions`,children:[(0,U.jsx)(O,{label:`Width`,children:(0,U.jsx)(T,{label:`Width`,value:e.size.width,min:1,disabled:a?.width||s&&a?.height,onCommit:e=>u(`width`,e)})}),(0,U.jsx)(O,{label:`Height`,children:(0,U.jsx)(T,{label:`Height`,value:e.size.height,min:1,disabled:a?.height||s&&a?.width,onCommit:e=>u(`height`,e)})}),(0,U.jsx)(De,{linked:s,onToggle:()=>c(e=>!e)})]}),(0,U.jsxs)(O,{label:`Rotate`,children:[(0,U.jsx)(T,{label:`Rotate`,value:d.rotation,onCommit:e=>l(`Rotate`,{rotation:e})}),(0,U.jsx)(`span`,{className:`muted`,children:`°`})]})]})})}function $({clip:e}){let{updateClip:t}=H();return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(O,{label:`Opacity`,children:[(0,U.jsx)(T,{label:`Opacity`,value:e.opacity*100,min:0,max:100,onCommit:n=>t(e.id,`Opacity`,e=>({...e,opacity:n/100}))}),(0,U.jsx)(`span`,{className:`muted`,children:`%`})]}),(0,U.jsx)(O,{label:`Blend`,children:(0,U.jsx)(E,{value:e.blendMode,options:ve.map(e=>({value:e,label:u[e]})),onChange:n=>t(e.id,`Blend mode`,e=>({...e,blendMode:n}))})})]})}function lt({clip:e}){let{updateClip:t}=H(),n=(n,r)=>t(e.id,n===`muted`?`Mute`:`Preserve pitch`,e=>({...e,[n]:r}));return(0,U.jsxs)(j,{title:`Audio`,children:[(0,U.jsxs)(O,{label:`Volume`,children:[(0,U.jsx)(T,{label:`Volume`,value:e.volume*100,min:0,max:100,onCommit:n=>t(e.id,`Volume`,e=>({...e,volume:n/100}))}),(0,U.jsx)(`span`,{className:`muted`,children:`%`})]}),(0,U.jsx)(O,{label:`Preserve pitch`,children:(0,U.jsx)(Y,{label:`Preserve pitch`,checked:e.preservePitch,onChange:e=>n(`preservePitch`,e)})}),(0,U.jsx)(O,{label:`Mute`,children:(0,U.jsx)(Y,{label:`Mute`,checked:e.muted,onChange:e=>n(`muted`,e)})})]})}function ut({clip:e}){let{updateClip:t}=H(),n=e.cornerRadius;return(0,U.jsx)(O,{label:`Radius`,children:(0,U.jsx)(`div`,{className:`properties-corners`,children:[[`tl`,`Top left`,it],[`tr`,`Top right`,at],[`br`,`Bottom right`,ot],[`bl`,`Bottom left`,st]].map(([r,i,a])=>(0,U.jsxs)(`label`,{className:`properties-corner`,children:[(0,U.jsx)(`img`,{src:a,alt:``,"data-corner":r}),(0,U.jsx)(T,{label:`${i} radius`,value:n.mixed?n[r]:n.uniform,min:0,onCommit:n=>t(e.id,`Corner radius`,e=>{if(e.kind!==`media`)return e;let t=e.cornerRadius,i=t.mixed?t:{...t,tl:t.uniform,tr:t.uniform,br:t.uniform,bl:t.uniform};return{...e,cornerRadius:{...i,mixed:!0,[r]:n}}})})]},r))})})}var dt={clipIds:[],sceneId:null,enteredGroupId:null};function ft(){let e=ce(),t=se(),n=M(r),i=oe(t?.selection,dt),a=ae()?.origin??``,o=(0,B.useRef)(null),s=(0,B.useMemo)(()=>{let t=t=>{e.commands.execute(`document.apply`,t).catch(t=>{e.log.error(`inspector: document.apply failed — ${t instanceof Error?t.message:String(t)}`)})};return{updateClip(e,r,i,a=null){let o=n?.snapshot();if(!o)return;let s=_(o,e,r,i,a);s&&t(s)},updateScene(e,r,i,a=null){let o=n?.snapshot();if(!o)return;let s=f(o,e,r,i,a);s&&t(s)},applyEnvelope(e){e&&t(e)}}},[e,n]);return(0,B.useEffect)(()=>{if(!t)return;let e=o.current?.ownerDocument;e&&Fe(e,a,()=>t.requestRender())},[t,a]),(0,U.jsx)(`div`,{ref:o,className:`fable-inspector inspector-properties text-q-caption-sm-regular text-q-text-primary`,children:(0,U.jsx)(`div`,{className:`inspector-body`,children:(0,U.jsx)(V,{value:s,children:(0,U.jsx)(pt,{selection:i})})})})}function pt({selection:e}){let t=N(t=>t?e.clipIds.filter(e=>v(t,e)!==null):[],c);return t.length===1?(0,U.jsx)(ht,{clipId:t[0]},t[0]):t.length>1?(0,U.jsx)(gt,{clipIds:t}):(0,U.jsx)(vt,{sceneId:e.sceneId})}function mt(e,t){return e?.clip===t?.clip&&e?.sceneWidth===t?.sceneWidth&&e?.sceneHeight===t?.sceneHeight&&e?.assets===t?.assets&&e?.hasAudio===t?.hasAudio&&e?.directControlsDisabled===t?.directControlsDisabled&&e?.positioningDisabled===t?.positioningDisabled&&e?.widthManaged===t?.widthManaged&&e?.heightManaged===t?.heightManaged}function ht({clipId:e}){let t=N(t=>{if(!t)return null;let n=v(t,e);if(!n)return null;let r=I(t,e),i=r?.locked===!0||r?.sealed===!0,a=i||r?.parent?.autoLayout!=null;return{clip:n.clip,sceneWidth:n.scene.width,sceneHeight:n.scene.height,assets:t.assets,hasAudio:Z(t,n.clip),directControlsDisabled:i,positioningDisabled:a,widthManaged:i||(r?.layout!=null||r?.parent?.autoLayout!=null)&&r.sizing.width!==`fixed`,heightManaged:i||(r?.layout!=null||r?.parent?.autoLayout!=null)&&r.sizing.height!==`fixed`}},mt);if(!t)return null;let{clip:n,sceneWidth:r,sceneHeight:i,assets:a,hasAudio:o,directControlsDisabled:s,positioningDisabled:c,widthManaged:l,heightManaged:u}=t,d=n.kind===`audio`||n.kind===`media`&&o;return(0,U.jsxs)(U.Fragment,{children:[n.kind!==`audio`&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(ct,{clip:n,sceneWidth:r,sceneHeight:i,disabled:s,positioningDisabled:c,sizeDisabled:{width:l,height:u}}),(0,U.jsxs)(`fieldset`,{className:`contents`,disabled:s,children:[n.kind===`rect`&&(0,U.jsx)(tt,{clip:n,assets:a,children:(0,U.jsx)($,{clip:n})}),n.kind===`media`&&(0,U.jsxs)(j,{title:`Appearance`,children:[(0,U.jsx)(ut,{clip:n}),(0,U.jsx)($,{clip:n})]}),n.kind===`text`&&(0,U.jsx)(rt,{clip:n,assets:a}),n.kind!==`rect`&&n.kind!==`media`&&(0,U.jsx)(j,{title:`Appearance`,children:(0,U.jsx)($,{clip:n})})]}),(0,U.jsx)(q,{clipIds:[n.id]})]}),d&&(0,U.jsx)(`fieldset`,{className:`contents`,disabled:s,children:(0,U.jsx)(lt,{clip:n})})]})}function gt({clipIds:e}){let{applyEnvelope:t}=H(),n=se(),i=M(r);return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(q,{clipIds:e}),(0,U.jsx)(ue,{clipIds:e}),(0,U.jsx)(j,{title:`${e.length} clips selected`,children:(0,U.jsx)(P,{variant:`secondary`,size:`xs`,className:`w-full`,onClick:()=>{let r=i?.snapshot();r&&(t(o(r,e)),n?.clearSelection())},children:`Delete clips`})}),(0,U.jsx)(Ae,{clipIds:e})]})}function _t(e,t){return e.doc===t.doc&&e.scene===t.scene}function vt({sceneId:e}){let t=N(t=>{if(!t)return{doc:null,scene:null};let n=e??t.activeSceneId;return{doc:t,scene:t.scenes.find(e=>e.id===n)??t.scenes[0]??null}},_t);return t.doc?t.scene?(0,U.jsx)(Le,{doc:t.doc,scene:t.scene},`${t.doc.id}:${t.scene.id}`):(0,U.jsx)(j,{children:(0,U.jsx)(A,{children:`No scene`})}):(0,U.jsx)(Re,{})}export{ft as default};
|
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["chunks/panel-B5Mvm6dg.js","chunks/jsx-runtime-B5yqYJvp.js","chunks/notifications-DqWZNIrK.js","chunks/react-dom-1uB7Vbbb.js","assets/notifications-B08L1jSe.css","chunks/capabilities-BCd4-zPF.js","chunks/ingest-DsmIc415.js","chunks/factories-Bw_iQrUL.js","chunks/schemas-CddYAOcj.js","chunks/session-BpFeKAI2.js","chunks/value-EB7YmAdS.js","chunks/import-error-CMz9sLPe.js","chunks/IconCheckmark2Medium-hegaz9mQ.js","chunks/edits-CqLBqir0.js","chunks/dom-6aoQn29n.js","chunks/editing-Cy-SaOyB.js","chunks/useRenderElement-D4SOg3N_.js","chunks/useOpenInteractionType-HWSfSsp2.js","chunks/components-tXMtIZNL.js","chunks/button-Cg0U0zpV.js","editor-B-WAkLt7.js","chunks/src-BLG3tYBa.js","chunks/asset-op-C6YhYJcd.js","chunks/import-DP49i4ke.js","chunks/model-Duf9fszJ.js","assets/local-B3OTAV_A.css","chunks/mode-DEG6doKF.js","chunks/toggle-DbNEaSIl.js","chunks/IconCrossMedium-BsPFJzc6.js","chunks/commands-QeSqAbCt.js","chunks/model-DyAkLA69.js","assets/model-DdE4hCgf.css","chunks/id3-CSR0NCRI.js","chunks/auto-layout-BO20Tg4B.js","chunks/canvas-Bw4CVzfw.js","chunks/palette-HT83gWgL.js","chunks/writeback-support-fj5rA9k3.js","chunks/drag-Dw8b_vO2.js","assets/drag-Bt_t4HZO.css","chunks/IconSparklesSoftFilled-o7o33KRn.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{n as e}from"./capabilities-BCd4-zPF.js";import{t}from"./session-BpFeKAI2.js";import{t as n}from"./dom-6aoQn29n.js";import{St as r,Ut as i}from"../editor-B-WAkLt7.js";import{t as a}from"./panel-4DTzhYdA.js";import{T as o,i as s,n as c,s as l,v as u}from"./commands-QeSqAbCt.js";var d=`fable-timeline-styles`,f=`
|
|
3
|
+
.ftl-timeline {
|
|
4
|
+
--ftl-surface: var(--hf-color-background-secondary);
|
|
5
|
+
--ftl-surface-elevated: var(--hf-color-background-tertiary);
|
|
6
|
+
--ftl-border-subtle: var(--hf-color-border-subtle);
|
|
7
|
+
--ftl-border-card: var(--hf-color-border-subtle);
|
|
8
|
+
position: relative;
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
width: 100%;
|
|
12
|
+
height: 100%;
|
|
13
|
+
min-height: 0;
|
|
14
|
+
overflow: hidden;
|
|
15
|
+
padding: 4px 0 0;
|
|
16
|
+
border: 2px solid var(--ftl-border-subtle);
|
|
17
|
+
border-radius: 24px;
|
|
18
|
+
background: var(--ftl-surface);
|
|
19
|
+
box-shadow:
|
|
20
|
+
inset 0 0 100px var(--hf-color-overlay-hover),
|
|
21
|
+
inset 32px 32px 64px var(--hf-color-overlay-dim-soft);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.ftl-body {
|
|
25
|
+
position: relative;
|
|
26
|
+
flex: 1;
|
|
27
|
+
min-height: 0;
|
|
28
|
+
margin: 0;
|
|
29
|
+
overflow: hidden;
|
|
30
|
+
border-top: 1px solid var(--ftl-border-card);
|
|
31
|
+
}
|
|
32
|
+
.ftl-edit-status {
|
|
33
|
+
display: flex;
|
|
34
|
+
align-items: center;
|
|
35
|
+
justify-content: space-between;
|
|
36
|
+
gap: 12px;
|
|
37
|
+
padding: 6px 12px;
|
|
38
|
+
background: var(--ftl-surface-elevated);
|
|
39
|
+
color: var(--hf-color-text-primary);
|
|
40
|
+
font-size: 12px;
|
|
41
|
+
}
|
|
42
|
+
.ftl-canvas { position: absolute; inset: 0; touch-action: none; }
|
|
43
|
+
.ftl-playhead { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
|
|
44
|
+
.ftl-scrollbar {
|
|
45
|
+
flex: none;
|
|
46
|
+
display: flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
height: 1.5rem;
|
|
49
|
+
padding-right: .75rem;
|
|
50
|
+
}
|
|
51
|
+
.ftl-scrollbar-input {
|
|
52
|
+
appearance: none;
|
|
53
|
+
display: block;
|
|
54
|
+
width: 100%;
|
|
55
|
+
min-width: 0;
|
|
56
|
+
height: 1.25rem;
|
|
57
|
+
margin: 0;
|
|
58
|
+
padding: 0;
|
|
59
|
+
border: 0;
|
|
60
|
+
background: transparent;
|
|
61
|
+
touch-action: none;
|
|
62
|
+
cursor: pointer;
|
|
63
|
+
}
|
|
64
|
+
.ftl-scrollbar-input::-webkit-slider-runnable-track {
|
|
65
|
+
height: .375rem; border-radius: 999px; background: var(--ftl-surface-elevated);
|
|
66
|
+
}
|
|
67
|
+
.ftl-scrollbar-input::-moz-range-track {
|
|
68
|
+
height: .375rem; border-radius: 999px; background: var(--ftl-surface-elevated);
|
|
69
|
+
}
|
|
70
|
+
.ftl-scrollbar-input::-webkit-slider-thumb {
|
|
71
|
+
appearance: none; height: .375rem; width: clamp(1.5rem, var(--ftl-scrollbar-thumb), 100%);
|
|
72
|
+
border: 0; border-radius: 999px; background: var(--hf-color-text-tertiary);
|
|
73
|
+
}
|
|
74
|
+
.ftl-scrollbar-input::-moz-range-thumb {
|
|
75
|
+
height: .375rem; width: clamp(1.5rem, var(--ftl-scrollbar-thumb), 100%);
|
|
76
|
+
border: 0; border-radius: 999px; background: var(--hf-color-text-tertiary);
|
|
77
|
+
}
|
|
78
|
+
.ftl-scrollbar-input:hover::-webkit-slider-thumb,
|
|
79
|
+
.ftl-scrollbar-input:active::-webkit-slider-thumb { background: var(--hf-color-text-secondary); }
|
|
80
|
+
.ftl-scrollbar-input:hover::-moz-range-thumb,
|
|
81
|
+
.ftl-scrollbar-input:active::-moz-range-thumb { background: var(--hf-color-text-secondary); }
|
|
82
|
+
.ftl-scrollbar-input:focus-visible { outline: 1px solid var(--hf-color-text-primary); outline-offset: 2px; border-radius: 999px; }
|
|
83
|
+
.ftl-scrollbar-input:disabled { opacity: .3; cursor: default; }
|
|
84
|
+
.ftl-generations { position: absolute; right: 0; bottom: 0; overflow: hidden; pointer-events: none; }
|
|
85
|
+
.ftl-generating {
|
|
86
|
+
position: absolute;
|
|
87
|
+
display: flex;
|
|
88
|
+
align-items: center;
|
|
89
|
+
justify-content: center;
|
|
90
|
+
overflow: hidden;
|
|
91
|
+
border: .5px solid rgb(255 255 255 / 5%);
|
|
92
|
+
border-radius: 8px;
|
|
93
|
+
background: #121212;
|
|
94
|
+
color: var(--hf-color-text-brand, #d1fe17);
|
|
95
|
+
font-size: 14px;
|
|
96
|
+
font-weight: 500;
|
|
97
|
+
line-height: 20px;
|
|
98
|
+
pointer-events: none;
|
|
99
|
+
}
|
|
100
|
+
.ftl-generating[data-status="failed"] { pointer-events: auto; cursor: pointer; padding: 0; font-family: inherit; color: #fa0019; transition: box-shadow 150ms ease; }
|
|
101
|
+
.ftl-generating[data-status="failed"]:is(:hover, :focus-visible, [data-popup-open]) { outline: 0; box-shadow: inset 0 0 14.8px rgb(250 0 25 / 60%), inset 0 0 0 2px #fa0019; }
|
|
102
|
+
.ftl-generating[data-status="failed"] .ftl-generating-glow { background: radial-gradient(ellipse 94px 72px at 50% -12px, rgb(250 0 25 / 10%), transparent); }
|
|
103
|
+
.ftl-generating[data-status="queued"] { opacity: .4; }
|
|
104
|
+
.ftl-generating[data-status="completed"] .ftl-generating-loader { animation: none; }
|
|
105
|
+
.ftl-generating[data-clipped-start="true"] { border-left: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; }
|
|
106
|
+
.ftl-generating[data-clipped-end="true"] { border-right: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
|
|
107
|
+
.ftl-generating-glow {
|
|
108
|
+
position: absolute;
|
|
109
|
+
inset: 0;
|
|
110
|
+
background: radial-gradient(ellipse 94px 72px at 50% -12px, rgb(209 254 23 / 10%), transparent);
|
|
111
|
+
}
|
|
112
|
+
.ftl-generating:is([data-status="in_progress"], [data-status="importing"]) .ftl-generating-glow {
|
|
113
|
+
animation: hf-generation-pending-glow 2.2s ease-in-out infinite;
|
|
114
|
+
}
|
|
115
|
+
.ftl-generating-label { position: relative; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
|
|
116
|
+
.ftl-generating-loader { width: 14px; height: 14px; flex: none; animation: hf-generation-pending-spin 1s linear infinite; }
|
|
117
|
+
.ftl-generating-clock { width: 16px; height: 16px; flex: none; }
|
|
118
|
+
@media (prefers-reduced-motion: reduce) {
|
|
119
|
+
.ftl-generating-loader { animation: none; }
|
|
120
|
+
.ftl-generating:is([data-status="in_progress"], [data-status="importing"]) .ftl-generating-glow { animation: none; opacity: .675; }
|
|
121
|
+
.ftl-generating[data-status="failed"] { transition: none; }
|
|
122
|
+
}
|
|
123
|
+
.ftl-transitions { position: absolute; right: 0; bottom: 0; overflow: hidden; pointer-events: none; }
|
|
124
|
+
.ftl-transition {
|
|
125
|
+
position: absolute;
|
|
126
|
+
height: 42px;
|
|
127
|
+
transform: translate(-50%, -50%);
|
|
128
|
+
border-radius: 6px;
|
|
129
|
+
pointer-events: auto;
|
|
130
|
+
animation: ftl-transition-enter 140ms ease-out;
|
|
131
|
+
transition: border-color 140ms ease;
|
|
132
|
+
}
|
|
133
|
+
.ftl-transition[data-exiting="true"] {
|
|
134
|
+
pointer-events: none;
|
|
135
|
+
animation: ftl-transition-exit 120ms ease-out forwards;
|
|
136
|
+
}
|
|
137
|
+
.ftl-transition[data-applied="false"] {
|
|
138
|
+
height: 26px;
|
|
139
|
+
background: rgb(0 0 0 / 50%);
|
|
140
|
+
backdrop-filter: blur(12px);
|
|
141
|
+
filter: drop-shadow(0 8px 8px rgb(0 0 0 / 50%));
|
|
142
|
+
}
|
|
143
|
+
.ftl-transition[data-applied="true"] {
|
|
144
|
+
overflow: hidden;
|
|
145
|
+
background: rgb(255 255 255 / 1%);
|
|
146
|
+
border: 1px solid var(--ftl-border-subtle, rgb(255 255 255 / 5%));
|
|
147
|
+
}
|
|
148
|
+
.ftl-transition[data-applied="true"]::after {
|
|
149
|
+
content: "";
|
|
150
|
+
position: absolute;
|
|
151
|
+
inset: 0;
|
|
152
|
+
border-radius: inherit;
|
|
153
|
+
box-shadow: inset 0 0 29.4px rgb(255 255 255 / 60%);
|
|
154
|
+
pointer-events: none;
|
|
155
|
+
}
|
|
156
|
+
.ftl-transition[data-applied="true"]:hover { border-color: rgb(255 255 255 / 50%); }
|
|
157
|
+
.ftl-transition[data-applied="true"][data-selected="true"] { border-color: #fff; }
|
|
158
|
+
.ftl-transition[data-drop-target="true"] {
|
|
159
|
+
background: linear-gradient(to bottom, rgba(209,254,23,.75), rgba(209,254,23,.45));
|
|
160
|
+
border-color: var(--hf-color-brand-primary);
|
|
161
|
+
box-shadow: 0 0 12px rgb(209 254 23 / 24%);
|
|
162
|
+
}
|
|
163
|
+
.ftl-transition[data-drop-target="true"]::after { content: none; }
|
|
164
|
+
.ftl-transition-button {
|
|
165
|
+
display: flex;
|
|
166
|
+
align-items: center;
|
|
167
|
+
justify-content: center;
|
|
168
|
+
width: 100%;
|
|
169
|
+
height: 100%;
|
|
170
|
+
padding: 0;
|
|
171
|
+
border: 0;
|
|
172
|
+
border-radius: inherit;
|
|
173
|
+
background: transparent;
|
|
174
|
+
color: inherit;
|
|
175
|
+
cursor: pointer;
|
|
176
|
+
}
|
|
177
|
+
.ftl-transition-button img { flex: none; pointer-events: none; }
|
|
178
|
+
.ftl-transition[data-compact="true"] .ftl-transition-button img { visibility: hidden; }
|
|
179
|
+
.ftl-transition-button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
|
|
180
|
+
.ftl-transition-handle {
|
|
181
|
+
position: absolute;
|
|
182
|
+
top: 0;
|
|
183
|
+
bottom: 0;
|
|
184
|
+
width: 8px;
|
|
185
|
+
max-width: 30%;
|
|
186
|
+
padding: 0;
|
|
187
|
+
border: 0;
|
|
188
|
+
background: transparent;
|
|
189
|
+
cursor: ew-resize;
|
|
190
|
+
touch-action: none;
|
|
191
|
+
}
|
|
192
|
+
.ftl-transition-handle[data-side="left"] { left: 0; }
|
|
193
|
+
.ftl-transition-handle[data-side="right"] { right: 0; }
|
|
194
|
+
.ftl-transition-handle::after {
|
|
195
|
+
content: "";
|
|
196
|
+
position: absolute;
|
|
197
|
+
top: calc(50% - 4px);
|
|
198
|
+
width: 2px;
|
|
199
|
+
height: 8px;
|
|
200
|
+
border-radius: 99px;
|
|
201
|
+
background: #fff;
|
|
202
|
+
}
|
|
203
|
+
.ftl-transition-handle[data-side="left"]::after { left: 1px; }
|
|
204
|
+
.ftl-transition-handle[data-side="right"]::after { right: 1px; }
|
|
205
|
+
.ftl-transition-handle:focus-visible { outline: 1px solid #fff; border-radius: 3px; }
|
|
206
|
+
@keyframes ftl-transition-reveal { from { opacity: 0; } to { opacity: 1; } }
|
|
207
|
+
@keyframes ftl-transition-enter {
|
|
208
|
+
from { opacity: 0; transform: translate(-50%, -50%) scale(.96); }
|
|
209
|
+
to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
|
|
210
|
+
}
|
|
211
|
+
@keyframes ftl-transition-exit {
|
|
212
|
+
from { opacity: 1; transform: translate(-50%, -50%) scale(1); }
|
|
213
|
+
to { opacity: 0; transform: translate(-50%, -50%) scale(.96); }
|
|
214
|
+
}
|
|
215
|
+
@media (prefers-reduced-motion: reduce) {
|
|
216
|
+
.ftl-transition, .ftl-transition[data-exiting="true"] { animation: none; transition: none; }
|
|
217
|
+
}
|
|
218
|
+
.ftl-toolbar {
|
|
219
|
+
flex: none;
|
|
220
|
+
display: flex;
|
|
221
|
+
align-items: center;
|
|
222
|
+
gap: 3px;
|
|
223
|
+
height: 48px;
|
|
224
|
+
padding: 4px 6px 10px;
|
|
225
|
+
overflow: visible;
|
|
226
|
+
background: transparent;
|
|
227
|
+
border-bottom: 1px solid var(--ftl-border-subtle);
|
|
228
|
+
}
|
|
229
|
+
.ftl-toolbar-group {
|
|
230
|
+
display: inline-flex;
|
|
231
|
+
flex: none;
|
|
232
|
+
align-items: center;
|
|
233
|
+
gap: 3px;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.ftl-toolbar-sep {
|
|
237
|
+
flex: none;
|
|
238
|
+
width: 1px;
|
|
239
|
+
height: 16px;
|
|
240
|
+
margin: 0 8px;
|
|
241
|
+
background: var(--ftl-border-subtle);
|
|
242
|
+
}
|
|
243
|
+
.ftl-tool {
|
|
244
|
+
position: relative;
|
|
245
|
+
flex: none;
|
|
246
|
+
width: 32px;
|
|
247
|
+
height: 32px;
|
|
248
|
+
padding: 0;
|
|
249
|
+
border-radius: 9999px;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
.ftl-transition-menu-anchor {
|
|
254
|
+
position: fixed; width: 0; height: 42px; padding: 0; border: 0;
|
|
255
|
+
pointer-events: none; opacity: 0;
|
|
256
|
+
}
|
|
257
|
+
.ftl-transition-menu-positioner,
|
|
258
|
+
.q-dropdown-positioner:has(> :is(.ftl-transition-duration-menu, .ftl-effect-menu)) { z-index: 1000; }
|
|
259
|
+
.ftl-transition-menu.q-dropdown-popup { width: 280px; }
|
|
260
|
+
.ftl-transition-menu[data-applied="true"], .ftl-effect-menu.q-dropdown-popup { width: 260px; }
|
|
261
|
+
.ftl-transition-duration-menu.q-dropdown-popup { width: 180px; }
|
|
262
|
+
.ftl-effect-menu-label {
|
|
263
|
+
padding: 8px; color: rgba(255,255,255,.5); font-size: 12px; line-height: 16px;
|
|
264
|
+
font-weight: 500; text-transform: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
|
|
265
|
+
}
|
|
266
|
+
.ftl-effect-menu .q-menu-item-danger { color: #e5534b; }
|
|
267
|
+
.ftl-effect-menu .ftl-effect-row { padding-right: 4px; }
|
|
268
|
+
.ftl-effect-remove {
|
|
269
|
+
display: grid; place-items: center; width: 28px; height: 28px; padding: 6px; border: 0;
|
|
270
|
+
border-radius: 6px; color: rgba(255,255,255,.5); background: transparent; cursor: pointer;
|
|
271
|
+
}
|
|
272
|
+
.ftl-effect-remove:hover, .ftl-effect-remove:focus-visible { color: white; background: rgba(255,255,255,.08); }
|
|
273
|
+
.ftl-effect-remove:disabled { opacity: .4; cursor: default; }
|
|
274
|
+
.ftl-transition-duration-check { color: #d1fe17; }
|
|
275
|
+
|
|
276
|
+
.ftl-toolbar-group:has(.ftl-action) { gap: 6px; }
|
|
277
|
+
.ftl-action { flex: none; height: 32px; border-radius: 9999px; white-space: nowrap; }
|
|
278
|
+
.ftl-tip {
|
|
279
|
+
position: absolute;
|
|
280
|
+
top: calc(100% + 6px);
|
|
281
|
+
left: 0;
|
|
282
|
+
display: inline-flex;
|
|
283
|
+
align-items: center;
|
|
284
|
+
gap: 6px;
|
|
285
|
+
padding: 4px 6px;
|
|
286
|
+
border-radius: 6px;
|
|
287
|
+
background: var(--ftl-surface-elevated);
|
|
288
|
+
border: 1px solid var(--ftl-border-subtle);
|
|
289
|
+
color: var(--hf-color-text-primary);
|
|
290
|
+
white-space: nowrap;
|
|
291
|
+
box-shadow: 0 4px 16px var(--hf-color-overlay-dim-soft);
|
|
292
|
+
opacity: 0;
|
|
293
|
+
visibility: hidden;
|
|
294
|
+
pointer-events: none;
|
|
295
|
+
z-index: 30;
|
|
296
|
+
transition: opacity 120ms ease 300ms, visibility 0ms linear 300ms;
|
|
297
|
+
}
|
|
298
|
+
.ftl-tip-right { left: auto; right: 0; }
|
|
299
|
+
.ftl-tool:hover .ftl-tip,
|
|
300
|
+
.ftl-tool:focus-visible .ftl-tip {
|
|
301
|
+
opacity: 1;
|
|
302
|
+
visibility: visible;
|
|
303
|
+
}
|
|
304
|
+
.ftl-tool-preview-anchor { display: inline-flex; flex: none; }
|
|
305
|
+
.ftl-tool-preview.q-tooltip {
|
|
306
|
+
box-sizing: border-box; display: flex; flex-direction: column; gap: 8px;
|
|
307
|
+
width: 240px; max-width: calc(100vw - 16px); padding: 8px 6px;
|
|
308
|
+
border: .5px solid rgba(255,255,255,.05); border-radius: 16px;
|
|
309
|
+
background: #0f0f0f; color: #fff; box-shadow: 0 12px 16px rgba(0,0,0,.35);
|
|
310
|
+
white-space: normal; text-align: left;
|
|
311
|
+
}
|
|
312
|
+
.ftl-tool-preview-media {
|
|
313
|
+
width: 100%; aspect-ratio: 16 / 9; flex: none; border-radius: 12px; background: #fff;
|
|
314
|
+
}
|
|
315
|
+
.ftl-tool-preview-copy { display: flex; flex-direction: column; gap: 2px; padding: 0 8px; }
|
|
316
|
+
.ftl-tool-preview-title {
|
|
317
|
+
margin: 0; font-size: 14px; font-weight: 500; line-height: 20px; letter-spacing: .1px;
|
|
318
|
+
}
|
|
319
|
+
.ftl-tool-preview-description {
|
|
320
|
+
margin: 0; color: rgba(255,255,255,.5); font-size: 12px; font-weight: 500;
|
|
321
|
+
line-height: 16px; letter-spacing: 0;
|
|
322
|
+
}
|
|
323
|
+
.fshell[data-design="higgsfield"] .ftl-toolbar {
|
|
324
|
+
height: 48px;
|
|
325
|
+
background: transparent;
|
|
326
|
+
}
|
|
327
|
+
`;function p(e){n(e,d,f)}function m(){let e=[];return{bind(t){return e.push(t),{dispose:()=>{let n=e.indexOf(t);n!==-1&&e.splice(n,1)}}},active:()=>e[e.length-1]??null}}function h(e){if(typeof e!=`object`||!e||Array.isArray(e))return null;let t=e=>Array.isArray(e)?e.filter(e=>typeof e==`string`):[],n=t(e.assetIds),r=t(e.sceneIds);return n.length===0&&r.length===0?null:{assetIds:n,sceneIds:r}}function g(n){let d=new i,f=m(),g=()=>n.require(t),_=()=>n.require(e);async function v(){let e=f.active();if(e){e.splitAtPlayhead();return}let[t,r]=await Promise.all([g(),_()]),i=r.snapshot();if(!i)return;let a=o(i,t.currentTime.get(),t.selection.get().clipIds);a&&(await n.commands.execute(`document.apply`,a.envelope),a.rightIds.length>0&&t.setSelection({clipIds:a.rightIds}))}async function y(){let e=f.active();if(e){e.addAdjustmentLayer();return}let[t,r]=await Promise.all([g(),_()]),i=r.snapshot();if(!i)return;let a=s(i);a&&(await n.commands.execute(`document.apply`,a.envelope),t.setSelection({clipIds:[a.clipId]}))}async function b(){let e=f.active();if(e){e.rippleDelete();return}let[t,r]=await Promise.all([g(),_()]),i=r.snapshot();if(!i)return;let a=u(i,t.selection.get().clipIds);a&&await n.commands.execute(`document.apply`,a)}async function x(e){let[t,n]=await Promise.all([g(),_()]),r=n.snapshot(),i=r?c(r):null;if(!i||i.markers.length===0)return;let a=t.currentTime.get(),o=1e-6,s=i.markers.map(e=>e.time).filter(t=>e===1?t>a+o:t<a-o).sort((e,t)=>e-t),l=e===1?s[0]:s[s.length-1];l!==void 0&&t.seek(l)}async function S(){let e=f.active();if(e){e.addMarkerAtPlayhead();return}let[t,r]=await Promise.all([g(),_()]),i=r.snapshot();if(!i)return;let a=l(i,t.currentTime.get());a&&await n.commands.execute(`document.apply`,a.envelope)}return d.add(n.extensions.register(`panel`,`fable.panel-timeline.panel`,a(()=>r(()=>import(`./panel-B5Mvm6dg.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39])),{props:()=>({bindView:f.bind}),styles:p}))),d.add(n.commands.register(`fable.panel-timeline.splitAtPlayhead`,()=>v())),d.add(n.commands.register(`fable.panel-timeline.addAdjustmentLayer`,()=>y())),d.add(n.commands.register(`fable.panel-timeline.rippleDelete`,()=>b())),d.add(n.commands.register(`fable.panel-timeline.addMarkerAtPlayhead`,()=>S())),d.add(n.commands.register(`fable.panel-timeline.prevMarker`,()=>x(-1))),d.add(n.commands.register(`fable.panel-timeline.nextMarker`,()=>x(1))),d.add(n.commands.register(`fable.panel-timeline.zoomFit`,()=>f.active()?.zoomToFitScene())),d.add(n.commands.register(`fable.panel-timeline.zoomSelection`,()=>f.active()?.zoomToSelection())),d.add(n.commands.register(`fable.panel-timeline.zoom100`,()=>f.active()?.zoomTo100())),d.add(n.commands.register(`fable.panel-timeline.clipMenuAnchor`,e=>typeof e==`string`||Array.isArray(e)&&e.every(e=>typeof e==`string`)?f.active()?.clipMenuAnchor(e)??null:null)),d.add(n.commands.register(`fable.panel-timeline.assetDragPreview`,e=>f.active()?.setAssetDragPreview(h(e)))),d}export{g as activate};
|