@softure-ai/marketing-kit 0.41.0 → 0.42.0

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.
Files changed (41) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +8 -0
  3. package/dist/compose/timeline.d.ts +6 -0
  4. package/dist/compose/timeline.d.ts.map +1 -1
  5. package/dist/compose/timeline.js +9 -1
  6. package/dist/compose/timeline.js.map +1 -1
  7. package/dist/footage/compose.d.ts.map +1 -1
  8. package/dist/footage/compose.js +3 -3
  9. package/dist/footage/compose.js.map +1 -1
  10. package/dist/footage/draft-overlays.d.ts +10 -0
  11. package/dist/footage/draft-overlays.d.ts.map +1 -1
  12. package/dist/footage/draft-overlays.js +45 -15
  13. package/dist/footage/draft-overlays.js.map +1 -1
  14. package/dist/footage/draft-text-width.d.ts +30 -0
  15. package/dist/footage/draft-text-width.d.ts.map +1 -1
  16. package/dist/footage/draft-text-width.js +51 -1
  17. package/dist/footage/draft-text-width.js.map +1 -1
  18. package/dist/footage/draft.d.ts +22 -1
  19. package/dist/footage/draft.d.ts.map +1 -1
  20. package/dist/footage/draft.js +56 -29
  21. package/dist/footage/draft.js.map +1 -1
  22. package/dist/footage/overlay-html.d.ts.map +1 -1
  23. package/dist/footage/overlay-html.js +6 -5
  24. package/dist/footage/overlay-html.js.map +1 -1
  25. package/dist/footage/overlays.d.ts +10 -0
  26. package/dist/footage/overlays.d.ts.map +1 -1
  27. package/dist/footage/overlays.js +5 -0
  28. package/dist/footage/overlays.js.map +1 -1
  29. package/dist/index.d.ts +4 -4
  30. package/dist/index.d.ts.map +1 -1
  31. package/dist/index.js +4 -4
  32. package/dist/index.js.map +1 -1
  33. package/package.json +1 -1
  34. package/src/compose/timeline.ts +12 -1
  35. package/src/footage/compose.ts +3 -3
  36. package/src/footage/draft-overlays.ts +61 -15
  37. package/src/footage/draft-text-width.ts +69 -1
  38. package/src/footage/draft.ts +81 -31
  39. package/src/footage/overlay-html.ts +6 -4
  40. package/src/footage/overlays.ts +5 -0
  41. package/src/index.ts +17 -1
@@ -107,6 +107,11 @@ export const LIST_CHIP_MIN_FONT_SIZE = 36;
107
107
  export const LIST_CHIP_CENTRED_MIN_FONT_SIZE = 32;
108
108
  /** A place card title's line height, tighter for its big type. */
109
109
  export const OVERLAY_TITLE_LINE_HEIGHT = 1.05;
110
+ /**
111
+ * The render's letter spacing, in em: every card's text (`card`), a hook title's and a place card's title lines, and a
112
+ * paper strip's capitals. The draft spaces its letters the same (`\\fsp`) and measures its lines with it.
113
+ */
114
+ export const OVERLAY_LETTER_SPACING_EM = { card: -0.015, hookTitle: -0.02, placeTitle: -0.025, strip: 0.02 } as const;
110
115
  export const OVERLAY_PADDING_EM = { x: 0.6, y: 0.35 } as const;
111
116
  /** The search field's padding round its query, in font sizes (its height is the line plus twice this). */
112
117
  export const SEARCH_BAR_PADDING_EM = { x: 0.7, y: 0.55 } as const;
package/src/index.ts CHANGED
@@ -157,11 +157,22 @@ export {
157
157
  type StylePadding,
158
158
  type StyleShadow,
159
159
  } from "./footage/brand-style.js";
160
- export { createDraftTextMeasure, wrapDraftLine, type DraftTextMeasure } from "./footage/draft-text-width.js";
160
+ export {
161
+ createDraftFont,
162
+ createDraftTextMeasure,
163
+ getSpacingWidth,
164
+ toDraftAssSize,
165
+ toDraftSpacing,
166
+ withLetterSpacing,
167
+ wrapDraftLine,
168
+ type DraftFont,
169
+ type DraftTextMeasure,
170
+ } from "./footage/draft-text-width.js";
161
171
  export { HAND_FONT } from "./footage/hand-font.js";
162
172
  export {
163
173
  OVERLAY_FONT_ROLES,
164
174
  OVERLAY_FONT_SIZES,
175
+ OVERLAY_LETTER_SPACING_EM,
165
176
  OVERLAY_SUBTITLE_SCALES,
166
177
  MIN_OVERLAY_SUBTITLE_PX,
167
178
  OVERLAY_TITLE_SHRINK,
@@ -278,7 +289,10 @@ export { describeVoiceoverBatch, produceVoiceovers, type VoiceoverBatchItem, typ
278
289
  export { getPlaceholderKey, isPlaceholderKey, makePlaceholderWords, writePlaceholderVoiceover, type PlaceholderPace, type WritePlaceholderOptions } from "./voice/placeholder.js";
279
290
  export {
280
291
  BROWSER_BAR_HEIGHT,
292
+ CAPTION_LETTER_SPACING_EM,
281
293
  CAPTION_LINE_HEIGHT,
294
+ CAPTION_RIBBON_LETTER_SPACING_EM,
295
+ toCssEm,
282
296
  CAPTION_PILL_PADDING,
283
297
  DEVICE_KINDS,
284
298
  LAYOUTS,
@@ -687,6 +701,8 @@ export {
687
701
  FOOTAGE_DRAFT_OVERLAY_COLORS,
688
702
  FOOTAGE_DRAFT_FONT,
689
703
  FOOTAGE_DRAFT_WIDTH,
704
+ loadFootageDraftFonts,
705
+ type FootageDraftFonts,
690
706
  buildFootageDraftArgs,
691
707
  buildFootageDraftCaptions,
692
708
  buildFootageDraftJoinArgs,