@bagelink/blox 1.15.213 → 1.15.215
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/PageRenderer.d.ts.map +1 -1
- package/dist/{PreviewApp-APyemzqx.cjs → PreviewApp-C2Cn1yH2.cjs} +1 -1
- package/dist/{PreviewApp-BKTydm92.js → PreviewApp-CNIVF6Xq.js} +1 -1
- package/dist/{PreviewApp.vue_vue_type_style_index_0_lang-C0ZVst7R.cjs → PreviewApp.vue_vue_type_style_index_0_lang-kv9T9yLc.cjs} +20 -12
- package/dist/{PreviewApp.vue_vue_type_style_index_0_lang-DHb-NJ4C.js → PreviewApp.vue_vue_type_style_index_0_lang-lotrZDHC.js} +20 -12
- package/dist/PreviewRenderer.d.ts.map +1 -1
- package/dist/api/types.d.ts +33 -2
- package/dist/api/types.d.ts.map +1 -1
- package/dist/bridge.d.ts +2 -0
- package/dist/bridge.d.ts.map +1 -1
- package/dist/composables/useGlobalBlock.d.ts +14 -21
- package/dist/composables/useGlobalBlock.d.ts.map +1 -1
- package/dist/core.d.ts.map +1 -1
- package/dist/defineBlock.d.ts +8 -0
- package/dist/defineBlock.d.ts.map +1 -1
- package/dist/index.cjs +16 -20
- package/dist/index.d.ts +3 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +45 -49
- package/dist/manifest.d.ts +2 -0
- package/dist/manifest.d.ts.map +1 -1
- package/dist/{prerender-BNFeuap-.cjs → prerender-BkTA1QZ6.cjs} +97 -64
- package/dist/{prerender-Bth9K3uz.js → prerender-wIuYNW6N.js} +97 -64
- package/dist/{routes-C97aL4cQ.cjs → routes-0bOKkut4.cjs} +5 -91
- package/dist/{routes-bhjTTXfU.js → routes-CHfoa2Mk.js} +38 -124
- package/dist/schema.d.ts +2 -0
- package/dist/schema.d.ts.map +1 -1
- package/dist/ssg/cli.cjs +1 -1
- package/dist/ssg/cli.mjs +1 -1
- package/dist/ssg/index.cjs +2 -2
- package/dist/ssg/index.d.ts +1 -1
- package/dist/ssg/index.d.ts.map +1 -1
- package/dist/ssg/index.mjs +3 -3
- package/dist/ssg/prerender.d.ts +5 -1
- package/dist/ssg/prerender.d.ts.map +1 -1
- package/dist/ssg/seo.d.ts +13 -27
- package/dist/ssg/seo.d.ts.map +1 -1
- package/dist/symbols.d.ts +0 -11
- package/dist/symbols.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/GlobalBlockHost.d.ts +0 -75
- package/dist/GlobalBlockHost.d.ts.map +0 -1
- package/dist/globalRef.d.ts +0 -9
- package/dist/globalRef.d.ts.map +0 -1
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { Component, PropType } from 'vue';
|
|
2
|
-
/**
|
|
3
|
-
* Wrapper that renders a *dynamic* global block — one created via the page
|
|
4
|
-
* designer's "Duplicate as global" action, identified by `props._globalRef`.
|
|
5
|
-
*
|
|
6
|
-
* Unlike static global blocks (which read a fixed datastore singleton from
|
|
7
|
-
* inside their own component, e.g. `FooterBlox` reading `site-footer`), a
|
|
8
|
-
* reference block carries no inline content. This host resolves the shared
|
|
9
|
-
* content by `_globalRef` through the injected {@link GlobalBlockResolver} and
|
|
10
|
-
* merges it over the block's defaults before rendering the real component.
|
|
11
|
-
*
|
|
12
|
-
* It also listens for the editor's `BLOX_REFRESH_GLOBAL` message so saving the
|
|
13
|
-
* block in the designer updates the live preview without a reload.
|
|
14
|
-
*/
|
|
15
|
-
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
16
|
-
/** The resolved block component to render. */
|
|
17
|
-
component: {
|
|
18
|
-
type: PropType<Component>;
|
|
19
|
-
required: true;
|
|
20
|
-
};
|
|
21
|
-
/** Block-level defaults (from the block's schema). */
|
|
22
|
-
defaults: {
|
|
23
|
-
type: PropType<Record<string, unknown>>;
|
|
24
|
-
default: () => Record<string, unknown>;
|
|
25
|
-
};
|
|
26
|
-
/** The reference block's props (includes `_globalRef`, no real content). */
|
|
27
|
-
blockProps: {
|
|
28
|
-
type: PropType<Record<string, unknown>>;
|
|
29
|
-
default: () => Record<string, unknown>;
|
|
30
|
-
};
|
|
31
|
-
/** The dynamic global reference id. */
|
|
32
|
-
globalRef: {
|
|
33
|
-
type: StringConstructor;
|
|
34
|
-
required: true;
|
|
35
|
-
};
|
|
36
|
-
/** The block type, used to match targeted refresh messages. */
|
|
37
|
-
blockType: {
|
|
38
|
-
type: StringConstructor;
|
|
39
|
-
default: string;
|
|
40
|
-
};
|
|
41
|
-
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
42
|
-
[key: string]: any;
|
|
43
|
-
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
44
|
-
/** The resolved block component to render. */
|
|
45
|
-
component: {
|
|
46
|
-
type: PropType<Component>;
|
|
47
|
-
required: true;
|
|
48
|
-
};
|
|
49
|
-
/** Block-level defaults (from the block's schema). */
|
|
50
|
-
defaults: {
|
|
51
|
-
type: PropType<Record<string, unknown>>;
|
|
52
|
-
default: () => Record<string, unknown>;
|
|
53
|
-
};
|
|
54
|
-
/** The reference block's props (includes `_globalRef`, no real content). */
|
|
55
|
-
blockProps: {
|
|
56
|
-
type: PropType<Record<string, unknown>>;
|
|
57
|
-
default: () => Record<string, unknown>;
|
|
58
|
-
};
|
|
59
|
-
/** The dynamic global reference id. */
|
|
60
|
-
globalRef: {
|
|
61
|
-
type: StringConstructor;
|
|
62
|
-
required: true;
|
|
63
|
-
};
|
|
64
|
-
/** The block type, used to match targeted refresh messages. */
|
|
65
|
-
blockType: {
|
|
66
|
-
type: StringConstructor;
|
|
67
|
-
default: string;
|
|
68
|
-
};
|
|
69
|
-
}>> & Readonly<{}>, {
|
|
70
|
-
defaults: Record<string, unknown>;
|
|
71
|
-
blockProps: Record<string, unknown>;
|
|
72
|
-
blockType: string;
|
|
73
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
74
|
-
export default _default;
|
|
75
|
-
//# sourceMappingURL=GlobalBlockHost.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GlobalBlockHost.d.ts","sourceRoot":"","sources":["../src/GlobalBlockHost.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAK9C;;;;;;;;;;;;GAYG;;IAID,8CAA8C;;cAEjB,QAAQ,CAAC,SAAS,CAAC;;;IAGhD,sDAAsD;;cAErC,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;uBACpC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;IAErC,4EAA4E;;cAE3D,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;uBACpC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;IAErC,uCAAuC;;;;;IAKvC,+DAA+D;;;;;;;;IApB/D,8CAA8C;;cAEjB,QAAQ,CAAC,SAAS,CAAC;;;IAGhD,sDAAsD;;cAErC,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;uBACpC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;IAErC,4EAA4E;;cAE3D,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;uBACpC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;IAErC,uCAAuC;;;;;IAKvC,+DAA+D;;;;;;;;;;AAvBjE,wBAyEE"}
|
package/dist/globalRef.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Block } from './api/types';
|
|
2
|
-
/** Prop key used to mark a block as a reference to a dynamic global block. */
|
|
3
|
-
export declare const GLOBAL_REF_KEY = "_globalRef";
|
|
4
|
-
/**
|
|
5
|
-
* Read the dynamic global-block reference id off a block, if present.
|
|
6
|
-
* Returns `null` for regular blocks (no `_globalRef` prop).
|
|
7
|
-
*/
|
|
8
|
-
export declare function globalRefOf(block: Block | null | undefined): string | null;
|
|
9
|
-
//# sourceMappingURL=globalRef.d.ts.map
|
package/dist/globalRef.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"globalRef.d.ts","sourceRoot":"","sources":["../src/globalRef.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AAExC,8EAA8E;AAC9E,eAAO,MAAM,cAAc,eAAe,CAAA;AAE1C;;;GAGG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,IAAI,CAG1E"}
|