@salina-app/media-editor 0.0.4 → 0.0.6

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.
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Determine the file type for uploaded files based on their name.
3
+ * @param {string} name - The file name to check.
4
+ * @returns {string} - Returns 'audio' or 'video'.
5
+ */
6
+ export declare const mediaFileTypeChecker: (name: string) => "audio" | "video";
@@ -0,0 +1,9 @@
1
+ export declare const addNumberPadding: (number: number, length: number) => string;
2
+ export declare const splitTimestamps: (totalSeconds: number) => number;
3
+ export declare const checkStampDivisible: (zsz: number, tm: string) => {
4
+ zoom: number;
5
+ opacity: string;
6
+ };
7
+ export declare const timestampToWidth: (start: string, end: string, zoomSize?: number) => number;
8
+ export declare const durationToTimestamp: (duration: number, format?: string) => string;
9
+ export declare const durationToPixel: (duration: number, zoomSize: number) => number;
package/dist/main.d.ts CHANGED
@@ -1,2 +1,5 @@
1
1
  import { default as Button, buttonVariants } from './components/ui/button';
2
- export { Button, buttonVariants };
2
+ import { default as Player } from './components/customs/Player/Player';
3
+ import { default as Timeline } from './components/customs/Timeline/Timeline';
4
+ import { durationToTimestamp } from './lib/helpers/timeline';
5
+ export { Button, buttonVariants, Player, Timeline, durationToTimestamp };
@@ -0,0 +1,6 @@
1
+ import { default as Timeline } from '../components/customs/Timeline/Timeline';
2
+ import { Meta, StoryObj } from '@storybook/react';
3
+ declare const meta: Meta<typeof Timeline>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Timeline>;
6
+ export declare const Default: Story;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salina-app/media-editor",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/main.d.ts",