@salina-app/media-editor 0.0.6 → 0.0.8

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.
@@ -1,5 +1,6 @@
1
1
  export declare const addNumberPadding: (number: number, length: number) => string;
2
2
  export declare const splitTimestamps: (totalSeconds: number) => number;
3
+ export declare const timestampToSeconds: (timestamp: string) => number;
3
4
  export declare const checkStampDivisible: (zsz: number, tm: string) => {
4
5
  zoom: number;
5
6
  opacity: string;
@@ -7,3 +8,4 @@ export declare const checkStampDivisible: (zsz: number, tm: string) => {
7
8
  export declare const timestampToWidth: (start: string, end: string, zoomSize?: number) => number;
8
9
  export declare const durationToTimestamp: (duration: number, format?: string) => string;
9
10
  export declare const durationToPixel: (duration: number, zoomSize: number) => number;
11
+ export declare const secondsToTimestamp: (startingSeconds: number) => string;
package/dist/main.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { default as Button, buttonVariants } from './components/ui/button';
2
2
  import { default as Player } from './components/customs/Player/Player';
3
3
  import { default as Timeline } from './components/customs/Timeline/Timeline';
4
- import { durationToTimestamp } from './lib/helpers/timeline';
5
- export { Button, buttonVariants, Player, Timeline, durationToTimestamp };
4
+ import { useTimelineStore } from './zustand/TimelineStore';
5
+ export { Button, buttonVariants, Player, Timeline, useTimelineStore };
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,8 @@
1
+ interface TimelineStore {
2
+ showTimeline: boolean;
3
+ setShowTimeline: (showTimeline: boolean) => void;
4
+ zoomSize: number;
5
+ setZoomSize: (zoomSize: number) => void;
6
+ }
7
+ export declare const useTimelineStore: import('zustand').UseBoundStore<import('zustand').StoreApi<TimelineStore>>;
8
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salina-app/media-editor",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/main.d.ts",
@@ -33,7 +33,9 @@
33
33
  "react-icons": "^5.4.0",
34
34
  "tailwind-merge": "^2.6.0",
35
35
  "tailwindcss-animate": "^1.0.7",
36
- "video.js": "^8.21.0"
36
+ "video.js": "^8.21.0",
37
+ "wavesurfer.js": "^7.8.15",
38
+ "zustand": "^5.0.2"
37
39
  },
38
40
  "devDependencies": {
39
41
  "@chromatic-com/storybook": "3.2.3",