@salesforce/sdk-lightning 1.81.0 → 1.82.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,4 +1,4 @@
1
- import type { LightningSDK, SDKOptions } from "@salesforce/sdk-core";
1
+ import { LightningSDK, SDKOptions } from '@salesforce/sdk-core';
2
2
  /**
3
3
  * Options for creating a LightningSDK instance.
4
4
  */
@@ -11,5 +11,5 @@ export interface LightningSDKOptions extends SDKOptions {
11
11
  * @returns Promise resolving to an initialized LightningSDK instance
12
12
  */
13
13
  export declare function createLightningSDK(options?: LightningSDKOptions): Promise<LightningSDK>;
14
- export type { LightningSDK, SDKOptions } from "@salesforce/sdk-core";
14
+ export type { LightningSDK, SDKOptions } from '@salesforce/sdk-core';
15
15
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -1,29 +1,20 @@
1
- /**
2
- * Copyright (c) 2026, Salesforce, Inc.,
3
- * All rights reserved.
4
- * For full license text, see the LICENSE.txt file
5
- */
6
- import { getSurface, Surface } from "@salesforce/sdk-core";
7
- /**
8
- * Create and initialize a LightningSDK instance based on the detected surface
9
- *
10
- * @param options - Optional configuration including surface override
11
- * @returns Promise resolving to an initialized LightningSDK instance
12
- */
13
- export async function createLightningSDK(options) {
14
- const surface = getSurface(options?.surface);
15
- switch (surface) {
16
- case Surface.OpenAI:
17
- return {};
18
- case Surface.WebApp:
19
- return {};
20
- case Surface.MicroFrontend:
21
- return {};
22
- case Surface.SalesforceACC:
23
- return {};
24
- case Surface.MCPApps:
25
- return {};
26
- default:
27
- return {};
28
- }
1
+ import { getSurface as c, Surface as e } from "@salesforce/sdk-core";
2
+ async function a(r) {
3
+ switch (c(r?.surface)) {
4
+ case e.OpenAI:
5
+ return {};
6
+ case e.WebApp:
7
+ return {};
8
+ case e.MicroFrontend:
9
+ return {};
10
+ case e.SalesforceACC:
11
+ return {};
12
+ case e.MCPApps:
13
+ return {};
14
+ default:
15
+ return {};
16
+ }
29
17
  }
18
+ export {
19
+ a as createLightningSDK
20
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/sdk-lightning",
3
- "version": "1.81.0",
3
+ "version": "1.82.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -18,17 +18,19 @@
18
18
  "dist"
19
19
  ],
20
20
  "scripts": {
21
- "build": "tsc --build",
22
- "clean": "rm -rf dist tsconfig.tsbuildinfo",
23
- "dev": "tsc --build --watch",
21
+ "build": "vite build",
22
+ "clean": "rm -rf dist",
23
+ "dev": "vite build --watch",
24
24
  "test": "vitest run",
25
25
  "test:watch": "vitest",
26
26
  "test:coverage": "vitest run --coverage"
27
27
  },
28
28
  "dependencies": {
29
- "@salesforce/sdk-core": "^1.81.0"
29
+ "@salesforce/sdk-core": "^1.82.0"
30
30
  },
31
31
  "devDependencies": {
32
+ "vite": "^7.3.1",
33
+ "vite-plugin-dts": "^4.5.4",
32
34
  "vitest": "^4.0.6"
33
35
  },
34
36
  "publishConfig": {