@softure-ai/marketing-kit 0.35.0 → 0.36.1
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/CHANGELOG.md +44 -0
- package/README.md +23 -1
- package/dist/config/config.d.ts.map +1 -1
- package/dist/config/config.js +1 -0
- package/dist/config/config.js.map +1 -1
- package/dist/config/schema.d.ts +2 -0
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/config/schema.js +8 -2
- package/dist/config/schema.js.map +1 -1
- package/dist/footage/cache.js +1 -1
- package/dist/footage/cache.js.map +1 -1
- package/dist/footage/captions.d.ts +22 -2
- package/dist/footage/captions.d.ts.map +1 -1
- package/dist/footage/captions.js +23 -4
- package/dist/footage/captions.js.map +1 -1
- package/dist/footage/compose.d.ts +9 -0
- package/dist/footage/compose.d.ts.map +1 -1
- package/dist/footage/compose.js +35 -14
- package/dist/footage/compose.js.map +1 -1
- package/dist/footage/draft.d.ts +3 -1
- package/dist/footage/draft.d.ts.map +1 -1
- package/dist/footage/draft.js +73 -15
- package/dist/footage/draft.js.map +1 -1
- package/dist/footage/edl.d.ts +26 -0
- package/dist/footage/edl.d.ts.map +1 -1
- package/dist/footage/edl.js +48 -1
- package/dist/footage/edl.js.map +1 -1
- package/dist/footage/film.d.ts +25 -2
- package/dist/footage/film.d.ts.map +1 -1
- package/dist/footage/film.js +10 -1
- package/dist/footage/film.js.map +1 -1
- package/dist/footage/hand-font.d.ts.map +1 -1
- package/dist/footage/hand-font.js +5 -2
- package/dist/footage/hand-font.js.map +1 -1
- package/dist/footage/overlays.d.ts.map +1 -1
- package/dist/footage/overlays.js +5 -0
- package/dist/footage/overlays.js.map +1 -1
- package/dist/footage/paid.js +1 -1
- package/dist/footage/paid.js.map +1 -1
- package/dist/footage/picture.d.ts +5 -0
- package/dist/footage/picture.d.ts.map +1 -1
- package/dist/footage/picture.js +26 -8
- package/dist/footage/picture.js.map +1 -1
- package/dist/footage/pipeline.d.ts.map +1 -1
- package/dist/footage/pipeline.js +7 -3
- package/dist/footage/pipeline.js.map +1 -1
- package/dist/footage/split-screen.d.ts +167 -0
- package/dist/footage/split-screen.d.ts.map +1 -0
- package/dist/footage/split-screen.js +233 -0
- package/dist/footage/split-screen.js.map +1 -0
- package/dist/footage/tools.d.ts +1 -1
- package/dist/footage/tools.d.ts.map +1 -1
- package/dist/footage/tools.js +3 -3
- package/dist/footage/tools.js.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/render/render.js +1 -1
- package/dist/render/render.js.map +1 -1
- package/package.json +1 -1
- package/schema/edl.schema.json +129 -0
- package/schema/marketing.schema.json +9 -2
- package/src/config/config.ts +1 -0
- package/src/config/schema.ts +8 -2
- package/src/footage/cache.ts +1 -1
- package/src/footage/captions.ts +32 -4
- package/src/footage/compose.ts +30 -8
- package/src/footage/draft.ts +84 -15
- package/src/footage/edl.ts +46 -1
- package/src/footage/film.ts +20 -2
- package/src/footage/hand-font.ts +5 -2
- package/src/footage/overlays.ts +5 -0
- package/src/footage/paid.ts +1 -1
- package/src/footage/picture.ts +27 -9
- package/src/footage/pipeline.ts +7 -3
- package/src/footage/split-screen.ts +319 -0
- package/src/footage/tools.ts +3 -3
- package/src/index.ts +30 -0
- package/src/render/render.ts +1 -1
package/src/footage/tools.ts
CHANGED
|
@@ -36,7 +36,7 @@ export interface FootageToolsOptions {
|
|
|
36
36
|
export const REQUIRED_DECODERS = ["hevc", "h264"] as const;
|
|
37
37
|
export const REQUIRED_FILTERS = ["zscale", "tonemap", "lut3d"] as const;
|
|
38
38
|
/** What the fast draft needs on top: libass (with libfreetype) for the captions, `xfade` for fades, `zoompan` for Ken Burns. */
|
|
39
|
-
export const DRAFT_FILTERS = ["ass", "xfade", "zoompan", "gblur", "geq", "rotate", "blend", "noise", "interleave", "hstack"] as const;
|
|
39
|
+
export const DRAFT_FILTERS = ["ass", "xfade", "zoompan", "gblur", "geq", "rotate", "blend", "noise", "interleave", "hstack", "vstack"] as const;
|
|
40
40
|
|
|
41
41
|
const DRAFT_INSTALL_HINT = "install an ffmpeg built with libass and libfreetype (macOS: brew install ffmpeg, Debian/Ubuntu: apt install ffmpeg)";
|
|
42
42
|
const INSTALL_HINT = "install an ffmpeg built with libzimg (macOS: brew install ffmpeg, Debian/Ubuntu: apt install ffmpeg)";
|
|
@@ -69,8 +69,8 @@ function findCachedHeadlessShell(base: string): string | null {
|
|
|
69
69
|
if (!statSync(versionDir).isDirectory()) continue;
|
|
70
70
|
for (const folder of readdirSync(versionDir)) {
|
|
71
71
|
for (const name of ["chrome-headless-shell", "chrome-headless-shell.exe"]) {
|
|
72
|
-
const binary = join(versionDir, folder, name);
|
|
73
|
-
if (existsSync(binary)) return binary;
|
|
72
|
+
const binary = join(/* turbopackIgnore: true */ versionDir, folder, name);
|
|
73
|
+
if (existsSync(/* turbopackIgnore: true */ binary)) return binary;
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
}
|
package/src/index.ts
CHANGED
|
@@ -383,6 +383,9 @@ export {
|
|
|
383
383
|
CAPTION_MIN_FONT_SCALE,
|
|
384
384
|
CAPTION_PRESETS,
|
|
385
385
|
CAPTION_STYLES,
|
|
386
|
+
CAPTION_RIBBON,
|
|
387
|
+
CAPTION_RIBBON_MAX_TILT,
|
|
388
|
+
CAPTION_RIBBON_TILT,
|
|
386
389
|
CAPTION_HIGHLIGHT_STYLES,
|
|
387
390
|
CAPTION_ENTRANCES,
|
|
388
391
|
DEFAULT_EDIT,
|
|
@@ -591,6 +594,29 @@ export {
|
|
|
591
594
|
type DrawnTransition,
|
|
592
595
|
type DrawnTransitionFiltersInput,
|
|
593
596
|
} from "./footage/drawn-transitions.js";
|
|
597
|
+
export {
|
|
598
|
+
MAX_SPLIT_LABEL_CHARACTERS,
|
|
599
|
+
SPLIT_BANDS,
|
|
600
|
+
SPLIT_LAYOUTS,
|
|
601
|
+
buildSplitScreenFilters,
|
|
602
|
+
findSplitCaptionProblems,
|
|
603
|
+
findSplitLabelProblems,
|
|
604
|
+
getSplitArrowPaths,
|
|
605
|
+
getSplitBandHeights,
|
|
606
|
+
getSplitCaption,
|
|
607
|
+
getSplitLayerInputArgs,
|
|
608
|
+
getSplitLayerSvg,
|
|
609
|
+
getSplitPlaces,
|
|
610
|
+
renderSplitLayerPng,
|
|
611
|
+
splitSchema,
|
|
612
|
+
writeSplitLayers,
|
|
613
|
+
type EdlSplit,
|
|
614
|
+
type EdlSplitBand,
|
|
615
|
+
type SplitBandPlace,
|
|
616
|
+
type SplitBox,
|
|
617
|
+
type SplitLayout,
|
|
618
|
+
type SplitScreenFiltersInput,
|
|
619
|
+
} from "./footage/split-screen.js";
|
|
594
620
|
export { findRetakes, splitFilmSentences, splitSentences, type RetakeKind, type RetakeSuggestion, type Sentence } from "./footage/sentences.js";
|
|
595
621
|
export {
|
|
596
622
|
CAPTION_SAFE_ZONES,
|
|
@@ -602,6 +628,9 @@ export {
|
|
|
602
628
|
getCaptionKeepsWithNext,
|
|
603
629
|
getFootageCaptionChunks,
|
|
604
630
|
getCaptionPresetLayout,
|
|
631
|
+
getCaptionRibbonTilt,
|
|
632
|
+
getRibbonCaptionExtent,
|
|
633
|
+
toCaptionDisplayText,
|
|
605
634
|
getCaptionSpans,
|
|
606
635
|
getFootageCaptionLayout,
|
|
607
636
|
getSegmentCaptionLayout,
|
|
@@ -612,6 +641,7 @@ export {
|
|
|
612
641
|
type MissingCaptionGlyphs,
|
|
613
642
|
type PhraseChunk,
|
|
614
643
|
type PhraseChunkOptions,
|
|
644
|
+
type RibbonCaptionExtent,
|
|
615
645
|
type SafeZone,
|
|
616
646
|
} from "./footage/captions.js";
|
|
617
647
|
export {
|
package/src/render/render.ts
CHANGED
|
@@ -59,7 +59,7 @@ export function copyFonts(fonts: RenderInput["fonts"] & { interface?: BrandFont
|
|
|
59
59
|
faces: font.files.map((file) => {
|
|
60
60
|
const name = `${count}${extname(file.path).toLowerCase()}`;
|
|
61
61
|
count += 1;
|
|
62
|
-
cpSync(file.path, join(dir, name));
|
|
62
|
+
cpSync(/* turbopackIgnore: true */ file.path, join(/* turbopackIgnore: true */ dir, name));
|
|
63
63
|
return { src: `assets/fonts/${name}`, weight: file.weight, style: file.style, unicodeRange: file.unicodeRange };
|
|
64
64
|
}),
|
|
65
65
|
};
|