@lwrjs/types 0.13.3 → 0.13.5

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 ADDED
@@ -0,0 +1,43 @@
1
+ /**
2
+ * LocalDevMode - we have two modes we can run local development in:
3
+ *
4
+ * 1. Dev Mode
5
+ * - Used as the standard local-dev experience where we serve debug/dev resources from the MRT bundle
6
+ * - Local source is compiled and served from the overrides directory at ${site}/app/__overrides__
7
+ * - Defaults to appendedSrc rather than inline (source modules are added at the begining of each view, original module left intact)
8
+ * - SSR_DEBUG enabled by default
9
+ * - HMR is enabled by default, refreshing page on change
10
+ *
11
+ * 2. Prod Mode (Experimental)
12
+ * - Alternative local development mode in which we serve prod resources from the MRT bundle
13
+ * - Local source is compiled will overwrite existing bundles in ${site}/app/prod/*
14
+ * - Defaults to 'inlineSrc' (source modules overwrite any existing module definitions, consitent with production build)
15
+ * - SSR_DEBUG is disabled by default
16
+ * - HMR is disabled by default
17
+ *
18
+ * Prod mode is intended to be used in the following flow:
19
+ * - You have source changes you want to test out for performance on MRT
20
+ * - You've used dev mode to prepare them
21
+ * - You start prod mode and navigate to the prod pages you want to update
22
+ * - Those files get overriden in the bundle
23
+ * - You then can stop the server and run the 'lwr preview' command to test performance locally
24
+ * - You can also zip up the changes and publish them to an MRT instance directly for testing
25
+ *
26
+ */
27
+ export type LocalDevMode = 'dev' | 'prod';
28
+ /**
29
+ * LocalDevOptions - options used in our CLI
30
+ */
31
+ export interface LocalDevOptions {
32
+ mode: LocalDevMode;
33
+ siteDir: string;
34
+ port: number;
35
+ timeout?: number;
36
+ logLevel?: string;
37
+ open?: boolean;
38
+ siteZip?: string;
39
+ writeSrcFilesToBundle?: boolean;
40
+ inlineUpdate?: boolean;
41
+ regenerateAllRoutes?: boolean;
42
+ }
43
+ //# sourceMappingURL=cli.d.ts.map
package/build/cli.js ADDED
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=cli.js.map
package/build/index.d.ts CHANGED
@@ -10,6 +10,7 @@ import type { BundleConfig, EnvironmentConfig, HooksPlugin, LwrLockerConfig, Nor
10
10
  import type { AssetReference, CompiledView, PublicViewRegistry, ViewProvider, ViewRegistry, ViewTransformPlugin } from './views.js';
11
11
  export * from './lwr-shim.js';
12
12
  export * from './config.js';
13
+ export * from './cli.js';
13
14
  export * from './server.js';
14
15
  export * from './views.js';
15
16
  export * from './serviceAPI/serviceAPI.js';
@@ -317,6 +318,7 @@ export interface BundleDefinition extends ModuleId {
317
318
  map?: any;
318
319
  bundleRecord: BundleRecord;
319
320
  src?: string;
321
+ srcOverride?: string;
320
322
  integrity?: string;
321
323
  }
322
324
  export interface ProviderAppConfig {
package/build/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  export * from './lwr-shim.js';
2
2
  export * from './config.js';
3
+ export * from './cli.js';
3
4
  export * from './server.js';
4
5
  export * from './views.js';
5
6
  // -- ServiceAPI --------------------------------
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "build": "tsc -b"
9
9
  },
10
10
  "type": "module",
11
- "version": "0.13.3",
11
+ "version": "0.13.5",
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": "adaedf286df20aed374d9eb07eaf74668084073c"
32
+ "gitHead": "8a0b773b7ed0e017f3fa29f1e918e0c0e31bd74f"
33
33
  }