Mission Control Dashboard - Initial implementation
This commit is contained in:
15
node_modules/framer-motion/dist/es/projection/use-instant-layout-transition.mjs
generated
vendored
Normal file
15
node_modules/framer-motion/dist/es/projection/use-instant-layout-transition.mjs
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
import { rootProjectionNode } from 'motion-dom';
|
||||
|
||||
function useInstantLayoutTransition() {
|
||||
return startTransition;
|
||||
}
|
||||
function startTransition(callback) {
|
||||
if (!rootProjectionNode.current)
|
||||
return;
|
||||
rootProjectionNode.current.isUpdating = false;
|
||||
rootProjectionNode.current.blockUpdate();
|
||||
callback && callback();
|
||||
}
|
||||
|
||||
export { useInstantLayoutTransition };
|
||||
//# sourceMappingURL=use-instant-layout-transition.mjs.map
|
||||
1
node_modules/framer-motion/dist/es/projection/use-instant-layout-transition.mjs.map
generated
vendored
Normal file
1
node_modules/framer-motion/dist/es/projection/use-instant-layout-transition.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"use-instant-layout-transition.mjs","sources":["../../../src/projection/use-instant-layout-transition.ts"],"sourcesContent":["import { rootProjectionNode } from \"motion-dom\"\n\nexport function useInstantLayoutTransition(): (\n cb?: (() => void) | undefined\n) => void {\n return startTransition\n}\n\nfunction startTransition(callback?: () => void) {\n if (!rootProjectionNode.current) return\n rootProjectionNode.current.isUpdating = false\n rootProjectionNode.current.blockUpdate()\n callback && callback()\n}\n"],"names":[],"mappings":";;SAEgB,0BAA0B,GAAA;AAGtC,IAAA,OAAO,eAAe;AAC1B;AAEA,SAAS,eAAe,CAAC,QAAqB,EAAA;IAC1C,IAAI,CAAC,kBAAkB,CAAC,OAAO;QAAE;AACjC,IAAA,kBAAkB,CAAC,OAAO,CAAC,UAAU,GAAG,KAAK;AAC7C,IAAA,kBAAkB,CAAC,OAAO,CAAC,WAAW,EAAE;IACxC,QAAQ,IAAI,QAAQ,EAAE;AAC1B;;;;"}
|
||||
15
node_modules/framer-motion/dist/es/projection/use-reset-projection.mjs
generated
vendored
Normal file
15
node_modules/framer-motion/dist/es/projection/use-reset-projection.mjs
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
import { useCallback } from 'react';
|
||||
import { rootProjectionNode } from 'motion-dom';
|
||||
|
||||
function useResetProjection() {
|
||||
const reset = useCallback(() => {
|
||||
const root = rootProjectionNode.current;
|
||||
if (!root)
|
||||
return;
|
||||
root.resetTree();
|
||||
}, []);
|
||||
return reset;
|
||||
}
|
||||
|
||||
export { useResetProjection };
|
||||
//# sourceMappingURL=use-reset-projection.mjs.map
|
||||
1
node_modules/framer-motion/dist/es/projection/use-reset-projection.mjs.map
generated
vendored
Normal file
1
node_modules/framer-motion/dist/es/projection/use-reset-projection.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"use-reset-projection.mjs","sources":["../../../src/projection/use-reset-projection.ts"],"sourcesContent":["import { useCallback } from \"react\";\nimport { rootProjectionNode } from \"motion-dom\"\n\nexport function useResetProjection() {\n const reset = useCallback(() => {\n const root = rootProjectionNode.current\n if (!root) return\n root.resetTree()\n }, [])\n\n return reset\n}\n"],"names":[],"mappings":";;;SAGgB,kBAAkB,GAAA;AAC9B,IAAA,MAAM,KAAK,GAAG,WAAW,CAAC,MAAK;AAC3B,QAAA,MAAM,IAAI,GAAG,kBAAkB,CAAC,OAAO;AACvC,QAAA,IAAI,CAAC,IAAI;YAAE;QACX,IAAI,CAAC,SAAS,EAAE;IACpB,CAAC,EAAE,EAAE,CAAC;AAEN,IAAA,OAAO,KAAK;AAChB;;;;"}
|
||||
Reference in New Issue
Block a user