@tempots/beatui 0.43.0 → 0.44.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.
package/dist/index.es.js CHANGED
@@ -3487,7 +3487,9 @@ function Fr({
3487
3487
  highlight: p,
3488
3488
  allowfullscreen: x = !1
3489
3489
  }) {
3490
- const h = m.toSignal(e).mapAsync(async (g) => {
3490
+ const h = m.toSignal(
3491
+ e
3492
+ ).mapAsync(async (g) => {
3491
3493
  if (g instanceof Blob) {
3492
3494
  const y = await g.arrayBuffer(), w = new Blob([y], { type: "application/pdf" });
3493
3495
  return URL.createObjectURL(w);
@@ -3576,7 +3578,9 @@ function jr({
3576
3578
  allowfullscreen: h = !0,
3577
3579
  class: v = null
3578
3580
  }) {
3579
- const g = m.toSignal(e).mapAsync(async (w) => {
3581
+ const g = m.toSignal(
3582
+ e
3583
+ ).mapAsync(async (w) => {
3580
3584
  if (w instanceof Blob)
3581
3585
  return URL.createObjectURL(w);
3582
3586
  if (w instanceof ArrayBuffer)
@@ -1,7 +1,7 @@
1
1
  import { Value } from '@tempots/dom';
2
2
  export interface NativePdfPreviewOptions {
3
3
  /** PDF content blob */
4
- content: Value<Blob | string | ArrayBuffer | Uint8Array>;
4
+ content: Value<Blob> | Value<string> | Value<ArrayBuffer> | Value<Uint8Array>;
5
5
  /** Show/hide toolbar (Chrome only). Default: true */
6
6
  toolbar?: Value<boolean>;
7
7
  /** Initial page number to display (Chrome, Firefox, Safari) */
@@ -1,7 +1,7 @@
1
1
  import { Value } from '@tempots/dom';
2
2
  export interface PDFJSPreviewOptions {
3
3
  /** PDF content as Blob, Uint8Array, ArrayBuffer, or URL string */
4
- content: Value<Blob | Uint8Array | ArrayBuffer | string>;
4
+ content: Value<Blob> | Value<string> | Value<ArrayBuffer> | Value<Uint8Array>;
5
5
  /** Initial page number to display (1-based) */
6
6
  page?: Value<number>;
7
7
  /** Zoom level: 'auto', 'page-fit', 'page-width', or a percentage number (e.g., 150 for 150%) */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tempots/beatui",
3
- "version": "0.43.0",
3
+ "version": "0.44.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.umd.js",
6
6
  "module": "dist/index.es.js",