cryptis-video-editor 0.1.3 → 0.1.4

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/index.esm.js CHANGED
@@ -26,7 +26,6 @@ import { BoxAnim, ContentAnim, MaskAnim } from '@designcombo/animations';
26
26
  import styled from '@emotion/styled';
27
27
  import { keyframes, css } from '@emotion/react';
28
28
  import { Player as Player$1 } from '@remotion/player';
29
- import { webcrypto } from 'node:crypto';
30
29
  import * as SeparatorPrimitive from '@radix-ui/react-separator';
31
30
  import * as SelectPrimitive from '@radix-ui/react-select';
32
31
  import { AnimatePresence, motion, useAnimation } from 'framer-motion';
@@ -31459,8 +31458,6 @@ const Scene = forwardRef(({ stateManager }, ref) => {
31459
31458
  });
31460
31459
  Scene.displayName = "Scene";
31461
31460
 
31462
- const isBrowser = typeof window !== "undefined";
31463
-
31464
31461
  // The "contextmenu" event is not supported as a PointerEvent in all browsers yet, so MouseEvent still need to be handled
31465
31462
 
31466
31463
  const PanelGroupContext = createContext(null);
@@ -31482,7 +31479,7 @@ const DATA_ATTRIBUTES = {
31482
31479
  };
31483
31480
  const PRECISION = 10;
31484
31481
 
31485
- const useIsomorphicLayoutEffect$1 = isBrowser ? useLayoutEffect : () => {};
31482
+ const useIsomorphicLayoutEffect$1 = useLayoutEffect ;
31486
31483
 
31487
31484
  const useId = React["useId".toString()];
31488
31485
  const wrappedUseId = typeof useId === "function" ? useId : () => null;
@@ -35890,27 +35887,15 @@ const TEXT_ADD_PAYLOAD = {
35890
35887
  const urlAlphabet =
35891
35888
  'useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict';
35892
35889
 
35893
- const POOL_SIZE_MULTIPLIER = 128;
35894
- let pool, poolOffset;
35895
- function fillPool(bytes) {
35896
- if (!pool || pool.length < bytes) {
35897
- pool = Buffer.allocUnsafe(bytes * POOL_SIZE_MULTIPLIER);
35898
- webcrypto.getRandomValues(pool);
35899
- poolOffset = 0;
35900
- } else if (poolOffset + bytes > pool.length) {
35901
- webcrypto.getRandomValues(pool);
35902
- poolOffset = 0;
35903
- }
35904
- poolOffset += bytes;
35905
- }
35906
- function nanoid(size = 21) {
35907
- fillPool((size |= 0));
35890
+ /* @ts-self-types="./index.d.ts" */
35891
+ let nanoid = (size = 21) => {
35908
35892
  let id = '';
35909
- for (let i = poolOffset - size; i < poolOffset; i++) {
35910
- id += urlAlphabet[pool[i] & 63];
35893
+ let bytes = crypto.getRandomValues(new Uint8Array((size |= 0)));
35894
+ while (size--) {
35895
+ id += urlAlphabet[bytes[size] & 63];
35911
35896
  }
35912
35897
  return id
35913
- }
35898
+ };
35914
35899
 
35915
35900
  const Texts = () => {
35916
35901
  const isDraggingOverTimeline = useIsDraggingOverTimeline();