@tempots/beatui 0.34.0 → 0.35.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/beatui.css +34 -7
- package/dist/beatui.tailwind.css +34 -7
- package/dist/{index-BXjEbt8G.js → index-C2rz3G1d.js} +1886 -1874
- package/dist/{index-BBIdmCak.cjs → index-CCu0qfNP.cjs} +1 -1
- package/dist/{index-HIb25Ti2.cjs → index-CZQHL_pf.cjs} +21 -21
- package/dist/{index-xdCnysNz.js → index-C_nSdynJ.js} +1 -1
- package/dist/index.cjs.js +4 -4
- package/dist/index.es.js +440 -413
- package/dist/prosemirror/index.cjs.js +1 -1
- package/dist/prosemirror/index.es.js +1 -1
- package/dist/types/components/content/native-pdf-preview.d.ts +12 -2
- package/dist/types/components/overlay/ribbon.d.ts +5 -2
- package/dist/types/components/prosemirror/prosemirror-markdown-input.d.ts +2 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../index-CZQHL_pf.cjs");exports.DEFAULT_FEATURES=r.DEFAULT_FEATURES;exports.ProseMirrorMarkdownInput=r.ProseMirrorMarkdownInput;exports.ProseMirrorToolbar=r.ProseMirrorToolbar;
|
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
import { Value } from '@tempots/dom';
|
|
2
|
-
export
|
|
2
|
+
export interface NativePdfPreviewOptions {
|
|
3
|
+
/** PDF content blob */
|
|
3
4
|
content: Value<Blob>;
|
|
4
|
-
|
|
5
|
+
/** Show/hide toolbar (Chrome only). Default: true */
|
|
6
|
+
toolbar?: Value<boolean>;
|
|
7
|
+
/** Initial page number to display (Chrome, Firefox, Safari) */
|
|
8
|
+
page?: Value<number>;
|
|
9
|
+
/** Zoom level in percentage (Chrome, Firefox). Example: 150 for 150% */
|
|
10
|
+
zoom?: Value<number>;
|
|
11
|
+
/** Zoom fit mode (Chrome only). FitV=vertical, FitH=horizontal, Fit=both */
|
|
12
|
+
view?: Value<'FitV' | 'FitH' | 'Fit'>;
|
|
13
|
+
}
|
|
14
|
+
export declare function NativePdfPreview({ content, toolbar, page, zoom, view, }: NativePdfPreviewOptions): import("@tempots/dom").Renderable;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { TNode, Value, Renderable } from '@tempots/dom';
|
|
2
2
|
import type { ThemeColorName } from '@/tokens';
|
|
3
3
|
import { ExtendedColor } from '../theme/style-utils';
|
|
4
|
+
export type RibbonCorner = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
4
5
|
export type RibbonOptions = {
|
|
5
6
|
/** Background/text color theme (defaults to 'primary') */
|
|
6
7
|
color?: Value<ThemeColorName | ExtendedColor>;
|
|
@@ -14,9 +15,11 @@ export type RibbonOptions = {
|
|
|
14
15
|
width?: Value<number | string>;
|
|
15
16
|
/** Rotation angle in degrees. Default: 45 */
|
|
16
17
|
angle?: Value<number>;
|
|
18
|
+
/** Corner position. Default: 'top-right' */
|
|
19
|
+
corner?: Value<RibbonCorner>;
|
|
17
20
|
};
|
|
18
21
|
/**
|
|
19
|
-
* Ribbon: renders diagonal content at
|
|
22
|
+
* Ribbon: renders diagonal content at a specified corner.
|
|
20
23
|
* Note: The parent container should be positioned (e.g., position: relative) for best results.
|
|
21
24
|
*/
|
|
22
|
-
export declare function Ribbon({ color, class: cls, inset, offset, width, angle, }: RibbonOptions, ...children: TNode[]): Renderable;
|
|
25
|
+
export declare function Ribbon({ color, class: cls, inset, offset, width, angle, corner, }: RibbonOptions, ...children: TNode[]): Renderable;
|
|
@@ -63,7 +63,8 @@ export declare const DEFAULT_FEATURES: MarkdownFeatures;
|
|
|
63
63
|
*
|
|
64
64
|
* ProseMirrorMarkdownInput({
|
|
65
65
|
* value: markdown,
|
|
66
|
-
*
|
|
66
|
+
* onInput: v => markdown.set(v), // Called on every document change
|
|
67
|
+
* onChange: v => console.log('Saved:', v), // Called when editor loses focus
|
|
67
68
|
* showToolbar: true,
|
|
68
69
|
* features: {
|
|
69
70
|
* headings: true,
|