strata-react 1.0.9 → 1.0.10

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.
@@ -58,6 +58,16 @@ export declare function createFormat(locale: string, options?: FormatOptions): {
58
58
  * (null, negative, not finite) prints the placeholder. Set it in `tabular-nums`.
59
59
  */
60
60
  runningTime: (seconds: number | null | undefined) => string;
61
+ /**
62
+ * A position in media as an editor shows it, to a chosen precision: "4:05" (seconds), "4:05.250"
63
+ * (`"ms"`), or "4:05:07" (`"frames"` at `fps`, the last part the frame). Hours appear only from
64
+ * one hour. Floors, never rounds up, so a time never reads ahead of the picture. Unknown
65
+ * (null, negative, not finite) prints the placeholder. Set it in `tabular-nums`.
66
+ */
67
+ timecode: (seconds: number | null | undefined, { precision, fps }?: {
68
+ precision?: "seconds" | "ms" | "frames";
69
+ fps?: number;
70
+ }) => string;
61
71
  /** What a missing value prints as: an en dash unless `createFormat`'s `missing` says otherwise. */
62
72
  missing: string;
63
73
  /** A time of day: `format.clock(at)` is "06:05". */
@@ -119,6 +129,16 @@ export declare const format: {
119
129
  * (null, negative, not finite) prints the placeholder. Set it in `tabular-nums`.
120
130
  */
121
131
  runningTime: (seconds: number | null | undefined) => string;
132
+ /**
133
+ * A position in media as an editor shows it, to a chosen precision: "4:05" (seconds), "4:05.250"
134
+ * (`"ms"`), or "4:05:07" (`"frames"` at `fps`, the last part the frame). Hours appear only from
135
+ * one hour. Floors, never rounds up, so a time never reads ahead of the picture. Unknown
136
+ * (null, negative, not finite) prints the placeholder. Set it in `tabular-nums`.
137
+ */
138
+ timecode: (seconds: number | null | undefined, { precision, fps }?: {
139
+ precision?: "seconds" | "ms" | "frames";
140
+ fps?: number;
141
+ }) => string;
122
142
  /** What a missing value prints as: an en dash unless `createFormat`'s `missing` says otherwise. */
123
143
  missing: string;
124
144
  /** A time of day: `format.clock(at)` is "06:05". */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "strata-react",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "React + Tailwind v4 components that ship structure, behaviour, states and a token contract, and no look: each product brings a theme generated from its own subject.",
5
5
  "repository": {
6
6
  "type": "git",