@salesforce/sdk-view 1.122.2 → 1.126.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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAIvF;;GAEG;AACH,MAAM,WAAW,cAAe,SAAQ,UAAU;IACjD,iEAAiE;IACjE,OAAO,CAAC,EAAE,qBAAqB,CAAC;CAChC;AAED;;;;;;;;GAQG;AACH,wBAAsB,aAAa,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC,CAuB9E;AAED,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEvE,YAAY,EACX,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,KAAK,EACL,SAAS,EACT,YAAY,EACZ,OAAO,GACP,MAAM,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAIvF;;GAEG;AACH,MAAM,WAAW,cAAe,SAAQ,UAAU;IACjD,iEAAiE;IACjE,OAAO,CAAC,EAAE,qBAAqB,CAAC;CAChC;AAED;;;;;;;;GAQG;AACH,wBAAsB,aAAa,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC,CAwB9E;AAED,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEvE,YAAY,EACX,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,KAAK,EACL,SAAS,EACT,YAAY,EACZ,OAAO,GACP,MAAM,sBAAsB,CAAC"}
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { getSurface as d, Surface as a, McpAppsSession as m } from "@salesforce/sdk-core";
2
- function p(s) {
1
+ import { getSurface as d, Surface as a, McpAppsSession as p } from "@salesforce/sdk-core";
2
+ function m(s) {
3
3
  switch (s) {
4
4
  case "info":
5
5
  return "ℹ️";
@@ -14,7 +14,7 @@ function p(s) {
14
14
  }
15
15
  }
16
16
  function c(s, e) {
17
- return `${p(e)} ${s}`;
17
+ return `${m(e)} ${s}`;
18
18
  }
19
19
  function l(s, e) {
20
20
  const t = s.trim();
@@ -111,13 +111,14 @@ async function h(s) {
111
111
  switch (d(s?.surface)) {
112
112
  case a.OpenAI:
113
113
  return new w();
114
- case a.UIBundle:
114
+ case a.WebApp:
115
+ case a.Mosaic:
115
116
  return {};
116
117
  case a.SalesforceACC:
117
118
  return {};
118
119
  case a.MicroFrontend:
119
120
  case a.MCPApps: {
120
- const t = await m.getInstance(s?.mcpApps);
121
+ const t = await p.getInstance(s?.mcpApps);
121
122
  return t.handshakeSucceeded ? new f(t) : {};
122
123
  }
123
124
  default:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/sdk-view",
3
- "version": "1.122.2",
3
+ "version": "1.126.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.122.2"
29
+ "@salesforce/sdk-core": "^1.126.0"
30
30
  },
31
31
  "devDependencies": {
32
32
  "vite": "^7.3.1",