@bycrux/editor 1.0.1 → 1.0.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bycrux/editor",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "exports": {
@@ -16,6 +16,7 @@
16
16
  * beyond the width measurement below, and never touches the project.
17
17
  */
18
18
  import { useEffect, useRef, useState } from 'react'
19
+ import type { CSSProperties } from 'react'
19
20
  import type { Captions } from '../schema'
20
21
  import { activeCaptionWord } from './captionActiveWord'
21
22
  import { findFontOption } from '../text/FontPicker'
@@ -47,7 +48,7 @@ export interface CaptionSpecimenProps {
47
48
  fontFamily?: string
48
49
  /** The caption's real render font size, in project pixels (`captions.fontsize`). */
49
50
  fontSize: number
50
- textTransform?: string
51
+ textTransform?: CSSProperties['textTransform']
51
52
  letterSpacing?: string
52
53
  /** `captions.fontWeight` — absent means the active style's own designed
53
54
  * weight (the browser/template default), so leaving this unset is what