@cmssy/types 0.8.1 → 0.9.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.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export { FieldType, fieldTypeValues, type FieldValidation, type ValidationPatter
|
|
|
9
9
|
export { LayoutPosition, layoutPositionValues, LayoutOverrideAction, type LayoutOverride, } from "./layout.js";
|
|
10
10
|
export { WorkspaceModule, workspaceModuleValues, FeatureFlag, featureFlagValues, type BlockRequires, } from "./modules.js";
|
|
11
11
|
export { type BlockConfig, type TypedBlockConfig, BlockSource, PackageType, } from "./block.js";
|
|
12
|
-
export type { BlockMemberProfile, BlockMember, BlockAuthContext,
|
|
12
|
+
export type { CollectionData, PageItem, MediaItem, MemberItem, FormItem, SiteConfigData, BlockMemberProfile, BlockMember, BlockAuthContext, BlockLocaleContext, PlatformContext, BlockProps, } from "./platform-context.js";
|
|
13
13
|
export { ALLOWED_CDN_DOMAINS, type AllowedCdnDomain, TranslationStatus, translationStatusValues, MediaType, mediaTypeValues, } from "./shared-constants.js";
|
|
14
14
|
export { type TemplateBlockContent, type TemplateBlockInstance, type TemplatePageBlueprint, type TemplateLayoutPosition, type TemplatePageTypeField, type TemplatePageType, type TemplateTheme, type TemplateConfig, type ResourceConfig, isTemplateConfig, } from "./template.js";
|
|
15
15
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EACL,sBAAsB,EACtB,uBAAuB,EACvB,0BAA0B,EAC1B,KAAK,gBAAgB,EACrB,KAAK,sBAAsB,EAC3B,KAAK,gBAAgB,GACtB,MAAM,2BAA2B,CAAC;AAGnC,OAAO,EACL,SAAS,EACT,eAAe,EACf,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,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c,EACd,oBAAoB,EACpB,oBAAoB,EACpB,KAAK,cAAc,GACpB,MAAM,aAAa,CAAC;AAGrB,OAAO,EACL,eAAe,EACf,qBAAqB,EACrB,WAAW,EACX,iBAAiB,EACjB,KAAK,aAAa,GACnB,MAAM,cAAc,CAAC;AAGtB,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,WAAW,EACX,WAAW,GACZ,MAAM,YAAY,CAAC;AAGpB,YAAY,EACV,cAAc,EACd,QAAQ,EACR,SAAS,EACT,UAAU,EACV,QAAQ,EACR,cAAc,EACd,kBAAkB,EAClB,WAAW,EACX,gBAAgB,EAChB,kBAAkB,EAClB,eAAe,EACf,UAAU,GACX,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EACL,mBAAmB,EACnB,KAAK,gBAAgB,EACrB,iBAAiB,EACjB,uBAAuB,EACvB,SAAS,EACT,eAAe,GAChB,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,gBAAgB,GACjB,MAAM,eAAe,CAAC"}
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,gDAAgD;AAChD,OAAO,EACL,sBAAsB,EACtB,uBAAuB,EACvB,0BAA0B,GAI3B,MAAM,2BAA2B,CAAC;AAEnC,eAAe;AACf,OAAO,EACL,SAAS,EACT,eAAe,EAcf,mBAAmB,GAEpB,MAAM,mBAAmB,CAAC;AAE3B,SAAS;AACT,OAAO,EACL,cAAc,EACd,oBAAoB,EACpB,oBAAoB,GAErB,MAAM,aAAa,CAAC;AAErB,qBAAqB;AACrB,OAAO,EACL,eAAe,EACf,qBAAqB,EACrB,WAAW,EACX,iBAAiB,GAElB,MAAM,cAAc,CAAC;AAEtB,eAAe;AACf,OAAO,EAGL,WAAW,EACX,WAAW,GACZ,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,gDAAgD;AAChD,OAAO,EACL,sBAAsB,EACtB,uBAAuB,EACvB,0BAA0B,GAI3B,MAAM,2BAA2B,CAAC;AAEnC,eAAe;AACf,OAAO,EACL,SAAS,EACT,eAAe,EAcf,mBAAmB,GAEpB,MAAM,mBAAmB,CAAC;AAE3B,SAAS;AACT,OAAO,EACL,cAAc,EACd,oBAAoB,EACpB,oBAAoB,GAErB,MAAM,aAAa,CAAC;AAErB,qBAAqB;AACrB,OAAO,EACL,eAAe,EACf,qBAAqB,EACrB,WAAW,EACX,iBAAiB,GAElB,MAAM,cAAc,CAAC;AAEtB,eAAe;AACf,OAAO,EAGL,WAAW,EACX,WAAW,GACZ,MAAM,YAAY,CAAC;AAkBpB,iEAAiE;AACjE,OAAO,EACL,mBAAmB,EAEnB,iBAAiB,EACjB,uBAAuB,EACvB,SAAS,EACT,eAAe,GAChB,MAAM,uBAAuB,CAAC;AAE/B,kBAAkB;AAClB,OAAO,EAUL,gBAAgB,GACjB,MAAM,eAAe,CAAC"}
|
|
@@ -1,3 +1,115 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Paginated collection result. Every data source returns this shape.
|
|
3
|
+
*/
|
|
4
|
+
export interface CollectionData<T> {
|
|
5
|
+
items: T[];
|
|
6
|
+
total: number;
|
|
7
|
+
hasMore: boolean;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* A published page item for collection blocks.
|
|
11
|
+
* Contains only public data needed for rendering page listings.
|
|
12
|
+
*/
|
|
13
|
+
export interface PageItem {
|
|
14
|
+
id: string;
|
|
15
|
+
slug: string;
|
|
16
|
+
/** Full URL path including parent slugs, e.g. "/blog/my-post" */
|
|
17
|
+
fullSlug: string;
|
|
18
|
+
publishedAt: string | null;
|
|
19
|
+
/** Multilingual display name, e.g. { en: "My Post", pl: "Mój Post" } */
|
|
20
|
+
displayName: Record<string, string>;
|
|
21
|
+
seoTitle: Record<string, string> | null;
|
|
22
|
+
seoDescription: Record<string, string> | null;
|
|
23
|
+
/** Custom field values, e.g. [{ fieldKey: "coverImage", value: "..." }] */
|
|
24
|
+
customFields: Array<{
|
|
25
|
+
fieldKey: string;
|
|
26
|
+
value: unknown;
|
|
27
|
+
}>;
|
|
28
|
+
pageType: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* A media asset item for gallery/image blocks.
|
|
32
|
+
*/
|
|
33
|
+
export interface MediaItem {
|
|
34
|
+
id: string;
|
|
35
|
+
url: string;
|
|
36
|
+
filename: string;
|
|
37
|
+
type: "image" | "video" | "document" | "audio";
|
|
38
|
+
mimeType: string;
|
|
39
|
+
width: number | null;
|
|
40
|
+
height: number | null;
|
|
41
|
+
size: number;
|
|
42
|
+
/** Multilingual alt text */
|
|
43
|
+
alt: Record<string, string>;
|
|
44
|
+
/** Multilingual caption */
|
|
45
|
+
caption: Record<string, string> | null;
|
|
46
|
+
tags: string[];
|
|
47
|
+
blurDataUrl: string | null;
|
|
48
|
+
createdAt: string;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* A site member item for team/directory blocks.
|
|
52
|
+
* No sensitive data (email, password) - only public profile.
|
|
53
|
+
*/
|
|
54
|
+
export interface MemberItem {
|
|
55
|
+
id: string;
|
|
56
|
+
displayName: string | null;
|
|
57
|
+
firstName: string | null;
|
|
58
|
+
lastName: string | null;
|
|
59
|
+
avatarUrl: string | null;
|
|
60
|
+
role: string;
|
|
61
|
+
status: "pending" | "active" | "suspended" | "deleted";
|
|
62
|
+
createdAt: string;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* A form submission item for testimonial/results blocks.
|
|
66
|
+
*/
|
|
67
|
+
export interface FormItem {
|
|
68
|
+
id: string;
|
|
69
|
+
formSlug: string;
|
|
70
|
+
data: Record<string, unknown>;
|
|
71
|
+
status: "pending" | "processed" | "spam" | "archived";
|
|
72
|
+
createdAt: string;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Workspace site configuration.
|
|
76
|
+
*/
|
|
77
|
+
export interface SiteConfigData {
|
|
78
|
+
siteName: Record<string, string>;
|
|
79
|
+
defaultLanguage: string;
|
|
80
|
+
enabledLanguages: string[];
|
|
81
|
+
enabledFeatures: string[];
|
|
82
|
+
header?: {
|
|
83
|
+
logoUrl?: string | null;
|
|
84
|
+
logoText: Record<string, string>;
|
|
85
|
+
navLinks?: Array<{
|
|
86
|
+
label: Record<string, string>;
|
|
87
|
+
url: string;
|
|
88
|
+
openInNewTab?: boolean;
|
|
89
|
+
}>;
|
|
90
|
+
cta?: {
|
|
91
|
+
label: Record<string, string>;
|
|
92
|
+
url: string;
|
|
93
|
+
style: string;
|
|
94
|
+
} | null;
|
|
95
|
+
sticky?: boolean;
|
|
96
|
+
transparent?: boolean;
|
|
97
|
+
} | null;
|
|
98
|
+
footer?: {
|
|
99
|
+
logoUrl?: string | null;
|
|
100
|
+
copyrightText: Record<string, string>;
|
|
101
|
+
socialLinks?: Array<{
|
|
102
|
+
platform: string;
|
|
103
|
+
url: string;
|
|
104
|
+
}>;
|
|
105
|
+
} | null;
|
|
106
|
+
memberAuth: {
|
|
107
|
+
enabled: boolean;
|
|
108
|
+
allowRegistration: boolean;
|
|
109
|
+
loginUrl: string;
|
|
110
|
+
registerUrl: string;
|
|
111
|
+
};
|
|
112
|
+
}
|
|
1
113
|
/**
|
|
2
114
|
* Member profile data available to blocks
|
|
3
115
|
*/
|
|
@@ -30,105 +142,71 @@ export interface BlockAuthContext {
|
|
|
30
142
|
logout: () => Promise<void>;
|
|
31
143
|
}
|
|
32
144
|
/**
|
|
33
|
-
*
|
|
34
|
-
* Blocks in cmssy-packages use this data to render their own language switchers.
|
|
145
|
+
* Locale context - merged language, i18n, and localizeHref.
|
|
35
146
|
*/
|
|
36
|
-
export interface
|
|
147
|
+
export interface BlockLocaleContext {
|
|
148
|
+
/** Currently active language resolved from URL (e.g. "en", "pl") */
|
|
149
|
+
current: string;
|
|
150
|
+
/** Workspace default language (clean URLs, no prefix) */
|
|
151
|
+
default: string;
|
|
37
152
|
/** All languages enabled for this workspace */
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
153
|
+
enabled: string[];
|
|
154
|
+
/**
|
|
155
|
+
* Build a localized href for internal page links.
|
|
156
|
+
* Prepends the current language prefix when not the default language.
|
|
157
|
+
*
|
|
158
|
+
* @example
|
|
159
|
+
* <a href={context.locale.localizeHref("/about")}>About</a>
|
|
160
|
+
* // default lang (en) -> "/about"
|
|
161
|
+
* // non-default (pl) -> "/pl/about"
|
|
162
|
+
*/
|
|
163
|
+
localizeHref: (href: string) => string;
|
|
43
164
|
}
|
|
44
165
|
/**
|
|
45
166
|
* Platform context passed to blocks.
|
|
46
|
-
*
|
|
167
|
+
*
|
|
168
|
+
* Data sources are declarative - blocks define what they need in block.config.ts,
|
|
169
|
+
* platform fetches server-side and injects into the appropriate key.
|
|
170
|
+
*
|
|
171
|
+
* Standard: https://linear.app/cmssy/document/standard-platformcontext-data-sources-49334ee212eb
|
|
47
172
|
*/
|
|
48
173
|
export interface PlatformContext {
|
|
174
|
+
/** Named page collections. Key = declaration name from block.config.ts */
|
|
175
|
+
pages?: Record<string, CollectionData<PageItem>>;
|
|
176
|
+
/** Named media collections */
|
|
177
|
+
media?: Record<string, CollectionData<MediaItem>>;
|
|
178
|
+
/** Named member collections */
|
|
179
|
+
members?: Record<string, CollectionData<MemberItem>>;
|
|
180
|
+
/** Named form submission collections */
|
|
181
|
+
forms?: Record<string, CollectionData<FormItem>>;
|
|
182
|
+
/** Workspace site configuration (singleton, not a collection) */
|
|
183
|
+
site?: SiteConfigData;
|
|
184
|
+
/** Language and localization context */
|
|
185
|
+
locale: BlockLocaleContext;
|
|
49
186
|
/** Auth context - available when memberAuth is enabled in workspace */
|
|
50
187
|
auth?: BlockAuthContext;
|
|
51
|
-
/** Current language code (e.g., "en", "pl") */
|
|
52
|
-
language: string;
|
|
53
|
-
/** i18n context — available when workspace has multiple languages */
|
|
54
|
-
i18n?: BlockI18nContext;
|
|
55
|
-
/** Whether the block is rendered in editor preview (sandbox) */
|
|
56
|
-
isPreview?: boolean;
|
|
57
|
-
/** Whether the page is viewed in draft mode (site preview with unpublished content) */
|
|
58
|
-
isDraftMode?: boolean;
|
|
59
188
|
/** Workspace information */
|
|
60
189
|
workspace?: {
|
|
61
190
|
id: string;
|
|
62
191
|
slug?: string;
|
|
63
192
|
name?: string;
|
|
64
193
|
};
|
|
65
|
-
/**
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
*
|
|
70
|
-
* @example
|
|
71
|
-
* <a href={context.localizeHref("/about")}>About</a>
|
|
72
|
-
* // default lang (en) → "/about"
|
|
73
|
-
* // non-default (pl) → "/pl/about"
|
|
74
|
-
*/
|
|
75
|
-
localizeHref?: (href: string) => string;
|
|
194
|
+
/** Whether the block is rendered in editor preview (sandbox) */
|
|
195
|
+
isPreview?: boolean;
|
|
196
|
+
/** Whether the page is viewed in draft mode (site preview with unpublished content) */
|
|
197
|
+
isDraftMode?: boolean;
|
|
76
198
|
/**
|
|
77
199
|
* Query the workspace's public GraphQL API.
|
|
78
|
-
*
|
|
79
|
-
*
|
|
80
|
-
* - **SSR** (`__ssr` export): returns `T` synchronously via SharedArrayBuffer bridge
|
|
81
|
-
*
|
|
82
|
-
* Use `cmssy codegen` to generate typed query helpers.
|
|
200
|
+
* Use for dynamic CSR queries (filters, search, infinite scroll).
|
|
201
|
+
* For static data needs, use declarative data sources instead.
|
|
83
202
|
*
|
|
84
203
|
* @example
|
|
85
|
-
* // CSR block (default export)
|
|
86
204
|
* useEffect(() => {
|
|
87
|
-
* context?.graphql?.(`{ pages { items { name
|
|
88
|
-
* .then(data =>
|
|
89
|
-
* }, []);
|
|
90
|
-
*
|
|
91
|
-
* // SSR block (__ssr export) - synchronous
|
|
92
|
-
* const data = context?.graphql?.(`{ pages { items { name slug } } }`);
|
|
205
|
+
* context?.graphql?.(`{ pages(filter: { search: "${query}" }) { items { name } } }`)
|
|
206
|
+
* .then(data => setResults(data.pages.items));
|
|
207
|
+
* }, [query]);
|
|
93
208
|
*/
|
|
94
209
|
graphql?: <T = unknown>(query: string, variables?: Record<string, unknown>) => Promise<T> | T;
|
|
95
|
-
/**
|
|
96
|
-
* Server-injected pages for collection blocks.
|
|
97
|
-
* Populated when a block's content has a `pageType` field.
|
|
98
|
-
* The platform fetches matching published pages server-side for SSR.
|
|
99
|
-
*
|
|
100
|
-
* @example
|
|
101
|
-
* function BlogPosts({ content, context }) {
|
|
102
|
-
* const { items, hasMore } = context.pages ?? { items: [], hasMore: false };
|
|
103
|
-
* return <Grid posts={items} />;
|
|
104
|
-
* }
|
|
105
|
-
*/
|
|
106
|
-
pages?: {
|
|
107
|
-
items: PageItem[];
|
|
108
|
-
total: number;
|
|
109
|
-
hasMore: boolean;
|
|
110
|
-
};
|
|
111
|
-
}
|
|
112
|
-
/**
|
|
113
|
-
* A published page item returned by the collection block data injection.
|
|
114
|
-
* Contains only public data needed for rendering page listings.
|
|
115
|
-
*/
|
|
116
|
-
export interface PageItem {
|
|
117
|
-
id: string;
|
|
118
|
-
slug: string;
|
|
119
|
-
/** Full URL path including parent slugs, e.g. "/blog/my-post" */
|
|
120
|
-
fullSlug: string;
|
|
121
|
-
publishedAt: string | null;
|
|
122
|
-
/** Multilingual display name, e.g. { en: "My Post", pl: "Mój Post" } */
|
|
123
|
-
displayName: Record<string, string>;
|
|
124
|
-
seoTitle: Record<string, string> | null;
|
|
125
|
-
seoDescription: Record<string, string> | null;
|
|
126
|
-
/** Custom field values, e.g. [{ fieldKey: "coverImage", value: "..." }] */
|
|
127
|
-
customFields: Array<{
|
|
128
|
-
fieldKey: string;
|
|
129
|
-
value: unknown;
|
|
130
|
-
}>;
|
|
131
|
-
pageType: string;
|
|
132
210
|
}
|
|
133
211
|
/**
|
|
134
212
|
* Standard props interface for all blocks
|
|
@@ -136,7 +214,7 @@ export interface PageItem {
|
|
|
136
214
|
export interface BlockProps<T = Record<string, unknown>> {
|
|
137
215
|
/** User-defined content from the page editor */
|
|
138
216
|
content: T;
|
|
139
|
-
/** Platform-provided context (
|
|
217
|
+
/** Platform-provided context (data sources, locale, auth, etc.) */
|
|
140
218
|
context?: PlatformContext | null;
|
|
141
219
|
}
|
|
142
220
|
//# sourceMappingURL=platform-context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platform-context.d.ts","sourceRoot":"","sources":["../src/platform-context.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"platform-context.d.ts","sourceRoot":"","sources":["../src/platform-context.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,MAAM,WAAW,cAAc,CAAC,CAAC;IAC/B,KAAK,EAAE,CAAC,EAAE,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;CAClB;AAMD;;;GAGG;AACH,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,iEAAiE;IACjE,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,wEAAwE;IACxE,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;IACxC,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;IAC9C,2EAA2E;IAC3E,YAAY,EAAE,KAAK,CAAC;QAAE,QAAQ,EAAE,M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E,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,SAAS,CAAC,CAAC,CAAC;IAClD,+BAA+B;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,UAAU,CAAC,CAAC,CAAC;IACrD,wCAAwC;IACxC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,QAAQ,CAAC,CAAC,CAAC;IACjD,iEAAiE;IACjE,IAAI,CAAC,EAAE,cAAc,CAAC;IAGtB,wCAAwC;IACxC,MAAM,EAAE,kBAAkB,CAAC;IAG3B,uEAAuE;IACvE,IAAI,CAAC,EAAE,gBAAgB,CAAC;IAGxB,4BAA4B;IAC5B,SAAS,CAAC,EAAE;QACV,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,CAAC;IAGF,gEAAgE;IAChE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,uFAAuF;IACvF,WAAW,CAAC,EAAE,OAAO,CAAC;IAGtB;;;;;;;;;;OAUG;IACH,OAAO,CAAC,EAAE,CAAC,CAAC,GAAG,OAAO,EACpB,KAAK,EAAE,MAAM,EACb,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAChC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;CACrB;AAMD;;GAEG;AACH,MAAM,WAAW,UAAU,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IACrD,gDAAgD;IAChD,OAAO,EAAE,CAAC,CAAC;IACX,mEAAmE;IACnE,OAAO,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;CAClC"}
|
package/dist/platform-context.js
CHANGED
|
@@ -1,2 +1,5 @@
|
|
|
1
|
+
// ---------------------------------------------------------------------------
|
|
2
|
+
// Collection data wrapper - consistent shape for all data sources
|
|
3
|
+
// ---------------------------------------------------------------------------
|
|
1
4
|
export {};
|
|
2
5
|
//# sourceMappingURL=platform-context.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platform-context.js","sourceRoot":"","sources":["../src/platform-context.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"platform-context.js","sourceRoot":"","sources":["../src/platform-context.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,kEAAkE;AAClE,8EAA8E"}
|