@getquick/content 0.3.0 → 0.3.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/README.md +81 -0
- package/dist/consent-astro.js +2 -2
- package/dist/consent-client.js +19 -6
- package/dist/consent.js +2 -2
- package/dist/design-client.d.ts +19 -0
- package/dist/design-client.js +519 -0
- package/dist/{dist-D4-CMkrf.js → dist-5jNKLmbn.js} +198 -3
- package/dist/{embeds-p9SyGNZI.js → embeds-CJJemAmE.js} +2 -2
- package/dist/index.d.ts +134 -10
- package/dist/index.js +9 -2
- package/dist/metadata-content.js +1 -1
- package/dist/metadata-testing.js +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.js +126 -20
- package/dist/site-language-BcPac0Ia.js +148183 -0
- package/dist/{version-D_Ao31D3.js → version-DkpQm85L.js} +1 -1
- package/dist/video-hero-D8AcMR4q.js +69 -0
- package/dist/{wordpress-D_HG2rEt.d.ts → wordpress-C1xs3xHN.d.ts} +241 -3
- package/package.json +5 -1
- package/dist/site-language-cBP8SFrS.js +0 -528
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//#endregion
|
|
2
2
|
//#region frontend/src/consent/version.ts
|
|
3
3
|
/** The UI/adapter version recorded with each decision (CN-R7). */
|
|
4
|
-
const CONSENT_UI_VERSION = `gq-content@0.3.
|
|
4
|
+
const CONSENT_UI_VERSION = `gq-content@0.3.2`;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { CONSENT_UI_VERSION as t };
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/** Object-fit geometry for a 16:9 YouTube frame in the actual authored media box.
|
|
2
|
+
* Adapters must size the iframe itself; object-fit cannot crop its document.
|
|
3
|
+
* The intrinsic frame size matches the player's 560 × 315 embedding dimensions.
|
|
4
|
+
*/
|
|
5
|
+
function videoHeroFrameGeometry(box, fit = "cover", position = {
|
|
6
|
+
x: .5,
|
|
7
|
+
y: .5
|
|
8
|
+
}) {
|
|
9
|
+
const contain = Math.min(box.width / 560, box.height / 315);
|
|
10
|
+
const scale = fit === "cover" ? Math.max(box.width / 560, box.height / 315) : fit === "contain" ? contain : fit === "scale-down" ? Math.min(1, contain) : 1;
|
|
11
|
+
const width = fit === "fill" ? box.width : 560 * scale;
|
|
12
|
+
const height = fit === "fill" ? box.height : 315 * scale;
|
|
13
|
+
return {
|
|
14
|
+
width,
|
|
15
|
+
height,
|
|
16
|
+
left: (box.width - width) * position.x || 0,
|
|
17
|
+
top: (box.height - height) * position.y || 0
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
/** Canonical structural CSS for every Video Hero adapter; presentation stays in the shared model. */
|
|
21
|
+
function videoHeroStyleSheet() {
|
|
22
|
+
return `.wp-block-getquick-design-video-hero {
|
|
23
|
+
position: relative;
|
|
24
|
+
display: grid;
|
|
25
|
+
box-sizing: border-box;
|
|
26
|
+
isolation: isolate;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.wp-block-getquick-design-video-hero > .gqd-video-hero__media {
|
|
30
|
+
position: absolute;
|
|
31
|
+
z-index: 0;
|
|
32
|
+
overflow: hidden;
|
|
33
|
+
inset: 0;
|
|
34
|
+
background: inherit;
|
|
35
|
+
pointer-events: none;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.wp-block-getquick-design-video-hero > .gqd-video-hero__media > .gqd-video-hero__video,
|
|
39
|
+
.wp-block-getquick-design-video-hero > .gqd-video-hero__media > .gqd-video-hero__poster {
|
|
40
|
+
position: absolute;
|
|
41
|
+
width: 100%;
|
|
42
|
+
height: 100%;
|
|
43
|
+
inset: 0;
|
|
44
|
+
object-fit: cover;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.wp-block-getquick-design-video-hero > .gqd-video-hero__media > iframe.gqd-video-hero__video {
|
|
48
|
+
inset: auto;
|
|
49
|
+
border: 0;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.wp-block-getquick-design-video-hero > .gqd-video-hero__content {
|
|
53
|
+
position: relative;
|
|
54
|
+
z-index: 1;
|
|
55
|
+
display: flex;
|
|
56
|
+
min-width: 0;
|
|
57
|
+
box-sizing: border-box;
|
|
58
|
+
flex-direction: column;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@media (prefers-reduced-motion: reduce) {
|
|
62
|
+
.wp-block-getquick-design-video-hero > .gqd-video-hero__media > .gqd-video-hero__video {
|
|
63
|
+
visibility: hidden;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
`;
|
|
67
|
+
}
|
|
68
|
+
//#endregion
|
|
69
|
+
export { videoHeroStyleSheet as n, videoHeroFrameGeometry as t };
|
|
@@ -1,5 +1,221 @@
|
|
|
1
1
|
import { r as ConsentConfiguration, t as AnalyticsSettings } from "./configuration-C_JGygQI.js";
|
|
2
2
|
import { r as LegalLanguage } from "./legal-C5Xiq59W.js";
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region frontend/src/design-text.d.ts
|
|
5
|
+
/** Already loaded, authorized values. No lookup, fetching or query selection.
|
|
6
|
+
* Site title and description are plain text, as returned by WP settings. */
|
|
7
|
+
interface DesignTextContext {
|
|
8
|
+
site?: {
|
|
9
|
+
title?: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
url?: string;
|
|
12
|
+
};
|
|
13
|
+
post?: {
|
|
14
|
+
uri?: string;
|
|
15
|
+
/** Caller selects/formats the requested date using the block's format,
|
|
16
|
+
* date source and Site timezone; this adapter never guesses them. */
|
|
17
|
+
date?: {
|
|
18
|
+
text: string;
|
|
19
|
+
dateTime: string;
|
|
20
|
+
};
|
|
21
|
+
/** Supplied inline rich text, not a generated/truncated post body. */
|
|
22
|
+
excerpt?: string;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
/** Restore source-only native text. Saved, producer-sanitized shells stay with
|
|
26
|
+
* the caller; childrenHtml contains HTML already rendered by that same caller.
|
|
27
|
+
* undefined means this adapter cannot supply the block, never placeholder text.
|
|
28
|
+
* Presentation validation and all styling belong to the shared renderer. */
|
|
29
|
+
declare function renderDesignText(name: string, attributes: Record<string, unknown>, childrenHtml?: string, context?: DesignTextContext): string | undefined;
|
|
30
|
+
/** Small shared source-rich-text boundary; also suitable for Image captions.
|
|
31
|
+
* Rebuild parsed HTML, preserving safe inline formatting without executable
|
|
32
|
+
* attributes, embedded documents, foreign namespaces or source CSS. */
|
|
33
|
+
declare function safeDesignRichText(value: string): string;
|
|
34
|
+
//#endregion
|
|
35
|
+
//#region frontend/src/design-query.d.ts
|
|
36
|
+
/** Authorized, synchronously preloaded content; supplied by the caller's data layer. */
|
|
37
|
+
interface DesignPostContext {
|
|
38
|
+
id: number | string;
|
|
39
|
+
/** Plain text, escaped when rendered as a native Post Title. */
|
|
40
|
+
title: string;
|
|
41
|
+
blocks: DesignBlock[];
|
|
42
|
+
uri?: string;
|
|
43
|
+
featuredImage?: {
|
|
44
|
+
sourceUrl: string;
|
|
45
|
+
altText: string;
|
|
46
|
+
} | null;
|
|
47
|
+
}
|
|
48
|
+
/** A producer-selected identity, not permission to fetch an arbitrary post. */
|
|
49
|
+
interface DesignQueryItem {
|
|
50
|
+
id: number | string;
|
|
51
|
+
type?: string;
|
|
52
|
+
slug?: string;
|
|
53
|
+
uri?: string;
|
|
54
|
+
}
|
|
55
|
+
interface DesignQueryResolverOptions {
|
|
56
|
+
/** Map lookup or other synchronous lookup of already authorized, loaded posts. */
|
|
57
|
+
resolvePost?: (item: DesignQueryItem) => DesignPostContext | null | undefined;
|
|
58
|
+
}
|
|
59
|
+
interface DesignQueryRenderContext extends DesignQueryResolverOptions {
|
|
60
|
+
post?: DesignPostContext;
|
|
61
|
+
/** Use the same renderer and Site overrides recursively, under this post context. */
|
|
62
|
+
render: (blocks: DesignBlock[], post?: DesignPostContext) => string;
|
|
63
|
+
/** Optional Site URL normalization, followed by the shared safe-link boundary. */
|
|
64
|
+
href?: (url: unknown) => string;
|
|
65
|
+
}
|
|
66
|
+
/** Repeat the delivered template once per delivered item, without selecting again.
|
|
67
|
+
* Returns undefined for other blocks. No Query or synced-pattern shell is added.
|
|
68
|
+
*/
|
|
69
|
+
declare function renderDesignQuery(block: DesignBlock, context: DesignQueryRenderContext): string | undefined;
|
|
70
|
+
/** Native post-dependent blocks and already-resolved synced references.
|
|
71
|
+
* Call only after Site renderer overrides have had precedence.
|
|
72
|
+
*/
|
|
73
|
+
declare function renderDesignPostBlock(block: DesignBlock, context: DesignQueryRenderContext): string | undefined;
|
|
74
|
+
/** Find identities already selected by producers, including resolved patterns.
|
|
75
|
+
* This never interprets query arguments or requests content. */
|
|
76
|
+
declare function designQueryItems(pattern: {
|
|
77
|
+
blocks: DesignBlock[];
|
|
78
|
+
} | DesignBlock[] | null | undefined): DesignQueryItem[];
|
|
79
|
+
interface DesignPostRecord {
|
|
80
|
+
id: string | number;
|
|
81
|
+
databaseId?: number;
|
|
82
|
+
title: string;
|
|
83
|
+
uri: string;
|
|
84
|
+
designBlocks?: DesignBlock[];
|
|
85
|
+
featuredImage?: {
|
|
86
|
+
sourceUrl: string;
|
|
87
|
+
altText: string;
|
|
88
|
+
} | null;
|
|
89
|
+
}
|
|
90
|
+
/** Convert an existing authorized publication; absent neutral delivery is explicit. */
|
|
91
|
+
declare function designPostContext(record: DesignPostRecord): DesignPostContext | null;
|
|
92
|
+
interface DesignPreloadedPosts extends DesignQueryResolverOptions {
|
|
93
|
+
posts: ReadonlyMap<string, DesignPostContext>;
|
|
94
|
+
resolvePost: (item: DesignQueryItem) => DesignPostContext | null;
|
|
95
|
+
}
|
|
96
|
+
/** Preload producer-selected URIs through a caller's existing publication loader.
|
|
97
|
+
* Selection/order stay with the producer; nested contexts use the same boundary. */
|
|
98
|
+
declare function preloadDesignQueryPosts(pattern: {
|
|
99
|
+
blocks: DesignBlock[];
|
|
100
|
+
} | DesignBlock[] | null | undefined, load: (item: DesignQueryItem) => Promise<DesignPostRecord | null>): Promise<DesignPreloadedPosts>;
|
|
101
|
+
//#endregion
|
|
102
|
+
/** Neutral resolved dimensions; palette identities and dark governance stay in DesignTokens. */
|
|
103
|
+
interface DesignTheme {
|
|
104
|
+
spacing: string;
|
|
105
|
+
breakpoints: Record<"sm" | "md" | "lg" | "xl" | "2xl", string>;
|
|
106
|
+
colors: Record<string, string>;
|
|
107
|
+
fontFamilies: Record<string, string>;
|
|
108
|
+
fontSizes: Record<string, string>;
|
|
109
|
+
fontSizeLineHeights: Record<string, string>;
|
|
110
|
+
fontWeights: Record<string, string>;
|
|
111
|
+
letterSpacings: Record<string, string>;
|
|
112
|
+
lineHeights: Record<string, string>;
|
|
113
|
+
radii: Record<string, string>;
|
|
114
|
+
maxWidths: Record<string, string>;
|
|
115
|
+
}
|
|
116
|
+
type DesignThemeOverrides = { [K in keyof DesignTheme]?: DesignTheme[K] extends string ? string : Partial<DesignTheme[K]>; };
|
|
117
|
+
/** The same bounded override vocabulary PHP and JSON Schema validate. */
|
|
118
|
+
declare function resolveDesignTheme(overrides?: unknown): DesignTheme;
|
|
119
|
+
/** Complete theme declarations for every supported value, independent of CMS content scanning. */
|
|
120
|
+
declare function designThemeVariables(overrides?: DesignThemeOverrides): Record<string, string>;
|
|
121
|
+
/** Exact pinned Preflight, deliberately scoped away from inspectors and wp-admin. */
|
|
122
|
+
declare function designThemeStyleSheet(overrides?: DesignThemeOverrides, scope?: string): string;
|
|
123
|
+
/** Color/font extension for the shared presentation parser; never raw utility strings. */
|
|
124
|
+
declare function resolvePresentationToken(kind: string, value: unknown): string | undefined;
|
|
125
|
+
//#endregion
|
|
126
|
+
type PresentationBreakpoint = "base" | "sm" | "md" | "lg" | "xl" | "2xl";
|
|
127
|
+
interface PresentationModel {
|
|
128
|
+
baseline: string;
|
|
129
|
+
breakpoints: Record<PresentationBreakpoint, string | null>;
|
|
130
|
+
properties: Record<string, Property>;
|
|
131
|
+
capabilities: Record<string, string[]>;
|
|
132
|
+
targets?: Record<string, PresentationTargets>;
|
|
133
|
+
selectors?: Record<string, string>;
|
|
134
|
+
nativeSupports?: Record<string, string[][]>;
|
|
135
|
+
shorthands?: Record<string, string[]>;
|
|
136
|
+
defaultDisplay?: Record<string, string>;
|
|
137
|
+
variablesFrom?: Record<string, Record<string, {
|
|
138
|
+
path: string[];
|
|
139
|
+
values: Record<string, string>;
|
|
140
|
+
default?: string;
|
|
141
|
+
}>>;
|
|
142
|
+
defaults: Record<string, Record<string, string | number>>;
|
|
143
|
+
}
|
|
144
|
+
interface PresentationTargets {
|
|
145
|
+
selector?: string;
|
|
146
|
+
elements?: Record<string, string[]>;
|
|
147
|
+
properties?: Record<string, string>;
|
|
148
|
+
cssProperties?: Record<string, string[]>;
|
|
149
|
+
styles?: Record<string, Record<string, string>>;
|
|
150
|
+
conditionalStyles?: {
|
|
151
|
+
property: string;
|
|
152
|
+
target: string;
|
|
153
|
+
declarations: Record<string, string>;
|
|
154
|
+
}[];
|
|
155
|
+
/** Native structural baselines; authored presentation has higher priority. */
|
|
156
|
+
rules?: {
|
|
157
|
+
target: string;
|
|
158
|
+
important?: boolean;
|
|
159
|
+
declarations: Record<string, string>;
|
|
160
|
+
media?: {
|
|
161
|
+
minWidth?: string;
|
|
162
|
+
maxWidth?: string;
|
|
163
|
+
};
|
|
164
|
+
}[];
|
|
165
|
+
}
|
|
166
|
+
interface PresentationExtension {
|
|
167
|
+
/** Existing canonical properties only; extensions never define CSS values. */
|
|
168
|
+
properties: readonly string[];
|
|
169
|
+
/** A single wrapper class. Defaults to the conventional WordPress block class. */
|
|
170
|
+
selector?: string;
|
|
171
|
+
/** Optional descendant/child class paths, keyed by declared property. */
|
|
172
|
+
targets?: Readonly<Record<string, string>>;
|
|
173
|
+
/** Native wrapper mode restored by Display Auto/reset and editor hidden preview. */
|
|
174
|
+
defaultDisplay?: string;
|
|
175
|
+
}
|
|
176
|
+
type PresentationExtensions = Readonly<Record<string, PresentationExtension>>;
|
|
177
|
+
/** Explicit Site additions reuse the canonical vocabulary without changing core capabilities. */
|
|
178
|
+
declare function createPresentationModel(extensions?: PresentationExtensions): PresentationModel;
|
|
179
|
+
/** One bounded catalog shared by controls, producers and Site adapters. */
|
|
180
|
+
declare const presentationModel: PresentationModel;
|
|
181
|
+
type Presentation = Partial<Record<PresentationBreakpoint, Record<string, string | number | {
|
|
182
|
+
x: number;
|
|
183
|
+
y: number;
|
|
184
|
+
} | {
|
|
185
|
+
palette: string;
|
|
186
|
+
} | {
|
|
187
|
+
theme: string;
|
|
188
|
+
} | {
|
|
189
|
+
literal: string;
|
|
190
|
+
}>>>;
|
|
191
|
+
type PresentationTheme = DesignThemeOverrides;
|
|
192
|
+
type Property = {
|
|
193
|
+
label: string;
|
|
194
|
+
valueType?: string;
|
|
195
|
+
scale?: string;
|
|
196
|
+
themeToken?: string;
|
|
197
|
+
valueSchema?: Record<string, unknown>;
|
|
198
|
+
cssProperty: string;
|
|
199
|
+
companionCssProperty?: string;
|
|
200
|
+
reset: string;
|
|
201
|
+
values: {
|
|
202
|
+
value: string | number;
|
|
203
|
+
css: string;
|
|
204
|
+
label: string;
|
|
205
|
+
editorCss?: string;
|
|
206
|
+
companionCss?: string;
|
|
207
|
+
}[];
|
|
208
|
+
};
|
|
209
|
+
/** Invalid or unsupported settings fail explicitly; omission never means Auto/reset. */
|
|
210
|
+
declare function presentationVariables(name: string, presentation?: unknown, options?: {
|
|
211
|
+
editor?: boolean;
|
|
212
|
+
attributes?: Record<string, unknown>;
|
|
213
|
+
model?: PresentationModel;
|
|
214
|
+
}): Record<string, string>;
|
|
215
|
+
/** Static, complete CSS: content first authored after a production build still works. */
|
|
216
|
+
declare function presentationStyleSheet(theme?: PresentationTheme, options?: {
|
|
217
|
+
model?: PresentationModel;
|
|
218
|
+
}): string;
|
|
3
219
|
declare namespace content_types_d_exports {
|
|
4
220
|
export { Archives, CmsFailure, CmsFailureReason, CollectionMembership, CollectionTerm, Delivery, DesignPresets, EntryContent, Extended, Found, HomeContent, Missing, PublishedEntry, SiteChrome, Translation, Unavailable, WordPressImage, WordPressMenuItem, WordPressPost, WordPressSettings };
|
|
5
221
|
}
|
|
@@ -8,6 +224,8 @@ interface WordPressImage {
|
|
|
8
224
|
altText: string;
|
|
9
225
|
}
|
|
10
226
|
interface WordPressPost {
|
|
227
|
+
databaseId?: number;
|
|
228
|
+
designBlocks?: DesignBlock[];
|
|
11
229
|
id: string;
|
|
12
230
|
title: string;
|
|
13
231
|
excerpt: string;
|
|
@@ -29,6 +247,8 @@ interface WordPressSettings {
|
|
|
29
247
|
description: string;
|
|
30
248
|
}
|
|
31
249
|
interface DesignPresets {
|
|
250
|
+
/** Resolved CMS theme; absent in publications written before theme delivery. */
|
|
251
|
+
theme?: DesignTheme;
|
|
32
252
|
spacingSizes: Array<{
|
|
33
253
|
slug: string;
|
|
34
254
|
size: string;
|
|
@@ -54,6 +274,8 @@ interface HomeContent<X = unknown> extends DesignPresets {
|
|
|
54
274
|
title: string;
|
|
55
275
|
content: string;
|
|
56
276
|
hasVideoHero: boolean;
|
|
277
|
+
databaseId?: number;
|
|
278
|
+
designBlocks?: DesignBlock[];
|
|
57
279
|
} & Extended<X>;
|
|
58
280
|
/** WordPress failed on the blocks, so this is the page without them. */
|
|
59
281
|
blocksOmitted: boolean;
|
|
@@ -176,12 +398,16 @@ declare function parseDesignBlocks(value: unknown): DesignBlock[] | undefined;
|
|
|
176
398
|
declare function escapeHtml(value: string): string;
|
|
177
399
|
/** What a block renderer is given besides its block. */
|
|
178
400
|
interface DesignRenderContext {
|
|
401
|
+
colorScheme?: "light" | "dark";
|
|
402
|
+
siteTitle?: string;
|
|
403
|
+
/** Current preloaded post when rendering a Query item or a post body. */
|
|
404
|
+
post?: DesignPostContext;
|
|
179
405
|
/** The block's children, rendered in order by the same renderers (when read). */
|
|
180
406
|
children: string;
|
|
181
407
|
/** The blocks it is inside, outermost first. */
|
|
182
408
|
ancestors: DesignBlock[];
|
|
183
409
|
/** Renders other blocks (a subset of the children, say) by the same renderers. */
|
|
184
|
-
render(this: void, blocks: DesignBlock[]): string;
|
|
410
|
+
render(this: void, blocks: DesignBlock[], post?: DesignPostContext): string;
|
|
185
411
|
/**
|
|
186
412
|
* A link from CMS data as the Frontend serves it: one into this Site (the
|
|
187
413
|
* CMS or the Site origin) becomes its path, another http(s) link stays
|
|
@@ -196,7 +422,17 @@ interface DesignRenderContext {
|
|
|
196
422
|
* CMS supplied (`escapeHtml`) and pass links through `context.href`.
|
|
197
423
|
*/
|
|
198
424
|
type DesignBlockRenderer = (block: DesignBlock, context: DesignRenderContext) => string;
|
|
199
|
-
interface DesignRenderOptions {
|
|
425
|
+
interface DesignRenderOptions extends DesignQueryResolverOptions {
|
|
426
|
+
/** Explicit surface scheme for the canonical Branding logo selection. */
|
|
427
|
+
colorScheme?: "light" | "dark";
|
|
428
|
+
/** Preloaded native Site text sources; no lookup occurs during rendering. */
|
|
429
|
+
textContext?: DesignTextContext;
|
|
430
|
+
/** Explicit Site-added capability model, shared with its stylesheet. */
|
|
431
|
+
presentationModel?: PresentationModel;
|
|
432
|
+
/** Gate generated media before composing already-delivered child HTML. */
|
|
433
|
+
mediaHtml?: (html: string) => string;
|
|
434
|
+
/** Preloaded context for native Post Title/Post Content outside a Query. */
|
|
435
|
+
post?: DesignPostContext;
|
|
200
436
|
/**
|
|
201
437
|
* The Site's renderers, by block name: its own blocks (such as
|
|
202
438
|
* `getquick/header-navigation`), and any core block it renders itself.
|
|
@@ -562,6 +798,8 @@ declare function createContentRuntime<X = never>(input: ContentConfig<X>): {
|
|
|
562
798
|
* `renderDesignPattern`), with links into the CMS or `siteOrigin` served
|
|
563
799
|
* as this Site's paths.
|
|
564
800
|
*/
|
|
801
|
+
/** Preload selected standard Post/Page records through the existing store reader. */
|
|
802
|
+
preloadDesignQueryPosts: (pattern: DesignPattern | DesignBlock[] | null | undefined, siteOrigin?: string) => Promise<DesignPreloadedPosts>;
|
|
565
803
|
renderDesignPattern: (pattern: DesignPattern | DesignBlock[] | null | undefined, options?: DesignRenderOptions & {
|
|
566
804
|
siteOrigin?: string;
|
|
567
805
|
}) => string;
|
|
@@ -603,4 +841,4 @@ interface WordPressClient<X = unknown> {
|
|
|
603
841
|
}): Promise<Found<SiteChrome> | Unavailable>;
|
|
604
842
|
}
|
|
605
843
|
//#endregion
|
|
606
|
-
export { Found as $, htmlLang as A, designMenuItems as B, Moved as C, SqlStatement as D, SqlDatabase as E, DesignBlock as F, CmsFailure as G, parseDesignBlocks as H, DesignBlockRenderer as I, CollectionTerm as J, CmsFailureReason as K, DesignPattern as L, languageSubject as M, routeLanguage as N, SiteLanguage as O, siteLanguages as P, Extended as Q, DesignRenderContext as R, HomePublication as S, ContentBindings as T, renderDesignPattern as U, escapeHtml as V, Archives as W, DesignPresets as X, Delivery as Y, EntryContent as Z, EntryDelivery as _, ContentExtension as a, Unavailable as at, HomeDelivery as b, createContentRuntime as c, WordPressPost as ct, CollectionListing as d, HomeContent as et, CollectionPage as f, DeliveryFailureReason as g, CollectionTermListing as h, ContentConsentConfig as i, Translation as it, isLanguageHome as j, WordPressLanguages as k, Alternate as l, WordPressSettings as lt, CollectionTermCount as m, CollectionConfig as n, PublishedEntry as nt, ContentRuntime as o, WordPressImage as ot, CollectionQuery as p, CollectionMembership as q, ContentConfig as r, SiteChrome as rt, ExtensionNode as s, WordPressMenuItem as st, WordPressClient as t, Missing as tt, CollectionItem as u, EntryPage as v, NotServed as w, HomePage as x, EntryPublication as y, DesignRenderOptions as z };
|
|
844
|
+
export { Found as $, htmlLang as A, DesignQueryRenderContext as At, designMenuItems as B, Moved as C, designThemeVariables as Ct, SqlStatement as D, DesignPostRecord as Dt, SqlDatabase as E, DesignPostContext as Et, DesignBlock as F, renderDesignPostBlock as Ft, CmsFailure as G, parseDesignBlocks as H, DesignBlockRenderer as I, renderDesignQuery as It, CollectionTerm as J, CmsFailureReason as K, DesignPattern as L, DesignTextContext as Lt, languageSubject as M, designPostContext as Mt, routeLanguage as N, designQueryItems as Nt, SiteLanguage as O, DesignPreloadedPosts as Ot, siteLanguages as P, preloadDesignQueryPosts as Pt, Extended as Q, DesignRenderContext as R, renderDesignText as Rt, HomePublication as S, designThemeStyleSheet as St, ContentBindings as T, resolvePresentationToken as Tt, renderDesignPattern as U, escapeHtml as V, Archives as W, DesignPresets as X, Delivery as Y, EntryContent as Z, EntryDelivery as _, presentationModel as _t, ContentExtension as a, Unavailable as at, HomeDelivery as b, DesignTheme as bt, createContentRuntime as c, WordPressPost as ct, CollectionListing as d, PresentationBreakpoint as dt, HomeContent as et, CollectionPage as f, PresentationModel as ft, DeliveryFailureReason as g, createPresentationModel as gt, CollectionTermListing as h, Property as ht, ContentConsentConfig as i, Translation as it, isLanguageHome as j, DesignQueryResolverOptions as jt, WordPressLanguages as k, DesignQueryItem as kt, Alternate as l, WordPressSettings as lt, CollectionTermCount as m, PresentationTheme as mt, CollectionConfig as n, PublishedEntry as nt, ContentRuntime as o, WordPressImage as ot, CollectionQuery as p, PresentationTargets as pt, CollectionMembership as q, ContentConfig as r, SiteChrome as rt, ExtensionNode as s, WordPressMenuItem as st, WordPressClient as t, Missing as tt, CollectionItem as u, Presentation as ut, EntryPage as v, presentationStyleSheet as vt, NotServed as w, resolveDesignTheme as wt, HomePage as x, DesignThemeOverrides as xt, EntryPublication as y, presentationVariables as yt, DesignRenderOptions as z, safeDesignRichText as zt };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getquick/content",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -57,6 +57,10 @@
|
|
|
57
57
|
"./metadata/content": {
|
|
58
58
|
"types": "./dist/metadata-content.d.ts",
|
|
59
59
|
"import": "./dist/metadata-content.js"
|
|
60
|
+
},
|
|
61
|
+
"./design/client": {
|
|
62
|
+
"types": "./dist/design-client.d.ts",
|
|
63
|
+
"import": "./dist/design-client.js"
|
|
60
64
|
}
|
|
61
65
|
},
|
|
62
66
|
"publishConfig": {
|