@geekapps/silo-elements-nextjs 0.2.53 → 0.2.54

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/dist/index.js CHANGED
@@ -2956,7 +2956,13 @@ function inferSourceType(source) {
2956
2956
  return "file";
2957
2957
  }
2958
2958
  function findStoryboardCue(cues, time) {
2959
- return cues.find((cue) => time >= cue.start && time <= cue.end) ?? null;
2959
+ if (cues.length === 0) return null;
2960
+ let best = null;
2961
+ for (const cue of cues) {
2962
+ if (cue.start <= time) best = cue;
2963
+ else break;
2964
+ }
2965
+ return best;
2960
2966
  }
2961
2967
  function parseStoryboardVtt(text, baseUrl) {
2962
2968
  const lines = text.split(/\r?\n/).map((line) => line.trim()).filter(Boolean);
@@ -3205,9 +3211,7 @@ var STATUS_LABEL = {
3205
3211
  CREATED: "Created",
3206
3212
  UPLOADING: "Uploading",
3207
3213
  INGESTING: "Ingesting",
3208
- QUEUED: "Queued",
3209
3214
  PROCESSING: "Processing",
3210
- SYNCING: "Syncing",
3211
3215
  READY: "Ready",
3212
3216
  FAILED: "Failed",
3213
3217
  CANCELLED: "Cancelled"
@@ -3221,7 +3225,7 @@ function statusColor(status) {
3221
3225
  return STATUS_COLOR[status] ?? "#6366f1";
3222
3226
  }
3223
3227
  function isProcessing(status) {
3224
- return ["UPLOADING", "INGESTING", "QUEUED", "PROCESSING", "SYNCING"].includes(status);
3228
+ return ["CREATED", "UPLOADING", "INGESTING", "PROCESSING"].includes(status);
3225
3229
  }
3226
3230
  function FileCard({
3227
3231
  fileId,
@@ -3339,15 +3343,13 @@ var STATUS_LABEL2 = {
3339
3343
  CREATED: "Created",
3340
3344
  UPLOADING: "Uploading",
3341
3345
  INGESTING: "Ingesting",
3342
- QUEUED: "Queued",
3343
3346
  PROCESSING: "Processing",
3344
- SYNCING: "Syncing",
3345
3347
  READY: "Ready",
3346
3348
  FAILED: "Failed",
3347
3349
  CANCELLED: "Cancelled"
3348
3350
  };
3349
3351
  function isProcessing2(status) {
3350
- return ["UPLOADING", "INGESTING", "QUEUED", "PROCESSING", "SYNCING"].includes(status);
3352
+ return ["CREATED", "UPLOADING", "INGESTING", "PROCESSING"].includes(status);
3351
3353
  }
3352
3354
  function formatDate(iso) {
3353
3355
  return new Date(iso).toLocaleString(void 0, { dateStyle: "medium", timeStyle: "short" });