@webx-ui/module-blocks 0.9.0 → 0.9.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/dist/BlockDataField.d.ts +3 -1
- package/dist/BlockThumb.d.ts +8 -0
- package/dist/index.js +1555 -1514
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/BlockDataField.d.ts
CHANGED
|
@@ -5,7 +5,9 @@
|
|
|
5
5
|
*
|
|
6
6
|
* The text is kept as typed and the value changes only on JSON that parses: half a bracket is
|
|
7
7
|
* what the text looks like on every keystroke on the way to the next valid one, and a sample
|
|
8
|
-
* that became `null` in the middle of typing would redraw the stage empty each time.
|
|
8
|
+
* that became `null` in the middle of typing would redraw the stage empty each time. An empty
|
|
9
|
+
* editor is the one exception: that is `null` on purpose — the call that passes nothing, which
|
|
10
|
+
* a component has to survive, and which publishing checks when the sample says so.
|
|
9
11
|
*/
|
|
10
12
|
type __VLS_Props = {
|
|
11
13
|
modelValue?: unknown;
|
package/dist/BlockThumb.d.ts
CHANGED
|
@@ -9,6 +9,11 @@ import { BlockThumbnail } from './types';
|
|
|
9
9
|
* Drawn in the site's own clothes when the site has a stage: its stylesheets and fonts, and
|
|
10
10
|
* the wrappers the block sits in on a page, without the header, the footer or any script
|
|
11
11
|
* (see `siteShell`). Bare until that arrives, and bare where there is none.
|
|
12
|
+
*
|
|
13
|
+
* `fit` is for components. A block is a band of a page, and the top of it at full width is the
|
|
14
|
+
* right picture; a component is a whole thing — a card taller than it is wide — and cut to the
|
|
15
|
+
* height of the box it shows only its photo. So with `fit` the root of what was drawn is measured
|
|
16
|
+
* inside the frame and scaled to fit the box both ways, in the middle of it.
|
|
12
17
|
*/
|
|
13
18
|
type __VLS_Props = {
|
|
14
19
|
thumbnail: BlockThumbnail | null;
|
|
@@ -16,10 +21,13 @@ type __VLS_Props = {
|
|
|
16
21
|
width?: number;
|
|
17
22
|
/** How tall the picture is, in the panel's pixels. */
|
|
18
23
|
height?: number;
|
|
24
|
+
/** Scale what was drawn to fit the box, rather than the width to fill it. */
|
|
25
|
+
fit?: boolean;
|
|
19
26
|
};
|
|
20
27
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
21
28
|
width: number;
|
|
22
29
|
height: number;
|
|
30
|
+
fit: boolean;
|
|
23
31
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
24
32
|
box: HTMLDivElement;
|
|
25
33
|
}, HTMLDivElement>;
|