@lwrjs/types 0.17.2-alpha.9 → 0.18.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/build/cli.d.ts CHANGED
@@ -30,16 +30,24 @@ export type LocalDevMode = 'dev' | 'prod';
30
30
  */
31
31
  export interface LocalDevOptions {
32
32
  mode: LocalDevMode;
33
- siteDir: string;
34
33
  port: number;
34
+ basePath?: string;
35
35
  timeout?: number;
36
36
  logLevel?: string;
37
37
  open?: boolean;
38
- siteZip?: string;
39
38
  authToken?: string;
40
39
  sfCLI?: boolean;
40
+ }
41
+ export interface SitesLocalDevOptions extends LocalDevOptions {
42
+ siteDir: string;
43
+ siteZip?: string;
41
44
  writeSrcFilesToBundle?: boolean;
42
45
  inlineUpdate?: boolean;
43
46
  regenerateAllRoutes?: boolean;
44
47
  }
48
+ export interface ComponentLocalDevOptions extends LocalDevOptions {
49
+ rootDir: string;
50
+ namespacePaths: string[];
51
+ name?: string;
52
+ }
45
53
  //# sourceMappingURL=cli.d.ts.map
package/build/index.d.ts CHANGED
@@ -524,7 +524,7 @@ export interface ClientBootstrapConfig {
524
524
  customInit?: Function;
525
525
  onError?: Function;
526
526
  baseUrl?: string;
527
- disableInitDefer?: boolean;
527
+ initDeferDOM?: boolean;
528
528
  endpoints?: Endpoints;
529
529
  imports?: ImportMetadataImports;
530
530
  index?: ImportMetadataIndex;
@@ -532,6 +532,10 @@ export interface ClientBootstrapConfig {
532
532
  importMappings?: object;
533
533
  env?: any;
534
534
  }
535
+ export type GlobalThis = {
536
+ LWR: ClientBootstrapConfig;
537
+ [key: string]: unknown;
538
+ };
535
539
  export interface Endpoints {
536
540
  uris: Record<string, string>;
537
541
  modifiers?: Record<string, string>;
package/build/views.d.ts CHANGED
@@ -48,6 +48,10 @@ export interface RenderedViewMetadata {
48
48
  warnings?: (Error | string)[];
49
49
  };
50
50
  }
51
+ export interface HtmlMetadata {
52
+ customElements: CustomElementReference[];
53
+ assetReferences: AssetReference[];
54
+ }
51
55
  export interface RenderedAssetReference {
52
56
  url: string;
53
57
  tagName?: string;
@@ -220,12 +224,6 @@ export interface SsrRequestContext {
220
224
  basePath: string;
221
225
  crossRequestCache: Record<string, any>;
222
226
  }
223
- export interface SsrRequestOptions {
224
- bundleSpecifier: string;
225
- cacheDir: string;
226
- host?: string;
227
- requestDepth?: number;
228
- }
229
227
  export type MetaTag = {
230
228
  name?: string;
231
229
  httpEquiv?: string;
@@ -237,30 +235,26 @@ export type LinkTag = {
237
235
  rel?: string;
238
236
  fetchpriority?: 'high' | 'low' | 'auto';
239
237
  };
238
+ export interface HeadMarkup {
239
+ title?: string;
240
+ meta?: MetaTag[];
241
+ scripts?: {
242
+ body: string;
243
+ }[];
244
+ links?: LinkTag[];
245
+ styles?: {
246
+ body: string;
247
+ id?: string;
248
+ }[];
249
+ }
240
250
  export interface SsrDataResponse {
241
251
  props?: {
242
252
  [prop: string]: Json;
243
253
  };
244
- markup?: {
245
- title?: string;
246
- meta?: MetaTag[];
247
- scripts?: {
248
- body: string;
249
- }[];
250
- links?: LinkTag[];
251
- styles?: {
252
- body: string;
253
- id?: string;
254
- }[];
255
- };
254
+ markup?: HeadMarkup;
256
255
  cache?: CacheResponse;
257
- status?: SsrStatus;
258
256
  warnings?: (Error | string)[];
259
257
  }
260
- export interface SsrStatus {
261
- code: 301 | 302 | 429 | 503;
262
- location?: string;
263
- }
264
258
  export interface DirectToCoreProxy {
265
259
  origin: string;
266
260
  host?: string;
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "build": "tsc -b"
9
9
  },
10
10
  "type": "module",
11
- "version": "0.17.2-alpha.9",
11
+ "version": "0.18.0",
12
12
  "homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
13
13
  "repository": {
14
14
  "type": "git",
@@ -27,7 +27,7 @@
27
27
  "chokidar": "^3.6.0"
28
28
  },
29
29
  "engines": {
30
- "node": ">=18.0.0"
30
+ "node": ">=20.0.0"
31
31
  },
32
- "gitHead": "7ede5d04a97513b9869b13e66155bc4f3920bb99"
32
+ "gitHead": "763c7c558ea75fe34a91162c9793de63e55f1d2f"
33
33
  }