@lwrjs/types 0.15.0-alpha.26 → 0.15.0-alpha.28

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/config.d.ts CHANGED
@@ -126,12 +126,13 @@ export interface LwrGlobalConfig {
126
126
  uriTransformers?: ServiceConfig[];
127
127
  i18n?: I18NConfig;
128
128
  coreProxy?: DirectToCoreProxy | null;
129
+ unsafeEnableViewLinkCaching?: boolean;
129
130
  _isSsrCompilerEnabled?: boolean;
130
131
  }
131
132
  type RequiredPick<T, K extends keyof T> = {
132
133
  [P in K]-?: T[P];
133
134
  };
134
- export type OnStartConfig = RequiredPick<LwrGlobalConfig, 'basePath' | 'i18n' | 'routes' | 'errorRoutes'>;
135
+ export type OnStartConfig = RequiredPick<LwrGlobalConfig, '_isSsrCompilerEnabled' | 'basePath' | 'coreProxy' | 'errorRoutes' | 'i18n' | 'routes'>;
135
136
  export interface BuildOptions {
136
137
  target?: string;
137
138
  input?: string;
package/build/index.d.ts CHANGED
@@ -344,6 +344,7 @@ export interface ProviderAppConfig {
344
344
  bundleConfig: BundleConfig;
345
345
  assets: AssetConfig[];
346
346
  i18n: I18NConfig;
347
+ _isSsrCompilerEnabled: boolean;
347
348
  }
348
349
  export interface ProviderContext {
349
350
  appObserver: Pick<LwrAppObserver, 'onModuleDefinitionChange' | 'onModuleSourceChange' | 'onAssetSourceChange' | 'onViewSourceChange'>;
package/build/views.d.ts CHANGED
@@ -154,6 +154,7 @@ type ViewPluginLinkHook = (builder: LwrStringBuilder, viewContext: ViewTransform
154
154
  type ViewPluginLinkHookReturn = void | null | undefined | false | LwrStringBuilder | {
155
155
  builder?: LwrStringBuilder;
156
156
  cache?: CacheResponse;
157
+ redirect?: SsrRedirect;
157
158
  };
158
159
  type ViewPluginOptimizeHook = (code: string, assetSource: AssetSource) => Promise<ViewPluginOptimizeHookReturn>;
159
160
  type ViewPluginOptimizeHookReturn = null | undefined | false | string | {
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "build": "tsc -b"
9
9
  },
10
10
  "type": "module",
11
- "version": "0.15.0-alpha.26",
11
+ "version": "0.15.0-alpha.28",
12
12
  "homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
13
13
  "repository": {
14
14
  "type": "git",
@@ -29,5 +29,5 @@
29
29
  "engines": {
30
30
  "node": ">=18.0.0"
31
31
  },
32
- "gitHead": "b73171fb2777cf921935959d60d51750747de343"
32
+ "gitHead": "b14e7aab8eee6aa8f1b2a05cad098f9ef65e9ef4"
33
33
  }