@salesforce/sdk-lightning 1.40.0 → 1.42.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
@@ -1,9 +1,15 @@
1
- import type { LightningSDK } from "@salesforce/sdk-core";
1
+ import type { LightningSDK, SDKOptions } from "@salesforce/sdk-core";
2
+ /**
3
+ * Options for creating a LightningSDK instance.
4
+ */
5
+ export interface LightningSDKOptions extends SDKOptions {
6
+ }
2
7
  /**
3
8
  * Create and initialize a LightningSDK instance based on the detected surface
4
9
  *
10
+ * @param options - Optional configuration including surface override
5
11
  * @returns Promise resolving to an initialized LightningSDK instance
6
12
  */
7
- export declare function createLightningSDK(): Promise<LightningSDK>;
8
- export type { LightningSDK } from "@salesforce/sdk-core";
13
+ export declare function createLightningSDK(options?: LightningSDKOptions): Promise<LightningSDK>;
14
+ export type { LightningSDK, SDKOptions } from "@salesforce/sdk-core";
9
15
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEzD;;;;GAIG;AACH,wBAAsB,kBAAkB,IAAI,OAAO,CAAC,YAAY,CAAC,CAgBhE;AAED,YAAY,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAErE;;GAEG;AAEH,MAAM,WAAW,mBAAoB,SAAQ,UAAU;CAAG;AAE1D;;;;;GAKG;AACH,wBAAsB,kBAAkB,CAAC,OAAO,CAAC,EAAE,mBAAmB,GAAG,OAAO,CAAC,YAAY,CAAC,CAgB7F;AAED,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC"}
package/dist/index.js CHANGED
@@ -7,10 +7,11 @@ import { getSurface, Surface } from "@salesforce/sdk-core";
7
7
  /**
8
8
  * Create and initialize a LightningSDK instance based on the detected surface
9
9
  *
10
+ * @param options - Optional configuration including surface override
10
11
  * @returns Promise resolving to an initialized LightningSDK instance
11
12
  */
12
- export async function createLightningSDK() {
13
- const surface = getSurface();
13
+ export async function createLightningSDK(options) {
14
+ const surface = getSurface(options?.surface);
14
15
  switch (surface) {
15
16
  case Surface.OpenAI:
16
17
  return {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/sdk-lightning",
3
- "version": "1.40.0",
3
+ "version": "1.42.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -26,7 +26,7 @@
26
26
  "test:coverage": "vitest run --coverage"
27
27
  },
28
28
  "dependencies": {
29
- "@salesforce/sdk-core": "^1.40.0"
29
+ "@salesforce/sdk-core": "^1.42.0"
30
30
  },
31
31
  "devDependencies": {
32
32
  "vitest": "^4.0.6"
@@ -34,5 +34,5 @@
34
34
  "publishConfig": {
35
35
  "access": "public"
36
36
  },
37
- "gitHead": "fb08cea2853492f373c8267f2327f8c8085504ef"
37
+ "gitHead": "5bb3d5e71e337e5eacad83240b8e344fdfd1d6c7"
38
38
  }