@memberjunction/realtime-widget 6.2.0 → 6.2.2
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/embed/chunks/{UserViewEngine-ELH6XPEL.js → UserViewEngine-GC7MTS7M.js} +1 -1
- package/dist/embed/chunks/{chunk-DAGQZKVY.js → chunk-FSUYQQ6X.js} +22 -0
- package/dist/embed/chunks/{chunk-LAKO46S5.js → chunk-FUTOBCKH.js} +4 -4
- package/dist/embed/chunks/{chunk-CLSWXKRZ.js → chunk-K7W2OS56.js} +2 -2
- package/dist/embed/chunks/{dist-FCDQGP67.js → dist-RKESSSYW.js} +3 -3
- package/dist/embed/chunks/{guest-tool-relay-6VPMNSBN.js → guest-tool-relay-QBLI73YQ.js} +2 -2
- package/dist/embed/chunks/{guest-voice-mint-A4TEME65.js → guest-voice-mint-LCZSOULT.js} +2 -2
- package/dist/embed/chunks/{runtime-widget-transport-KJRO54TC.js → runtime-widget-transport-PVQLLTW3.js} +3 -3
- package/dist/embed/mj-widget.js +4 -4
- package/package.json +9 -9
|
@@ -38621,10 +38621,17 @@ var BaseEngine = class _BaseEngine extends BaseSingleton {
|
|
|
38621
38621
|
* path performs, and enforces in this direction the same type-homogeneity invariant
|
|
38622
38622
|
* {@link canUseImmediateMutation} enforces for the sibling mutation path.
|
|
38623
38623
|
*
|
|
38624
|
+
* Server caches hold encrypted fields as ciphertext at rest, and only the provider's cache-read
|
|
38625
|
+
* path decrypts them. A payload carrying ciphertext is therefore never assigned: the reload it
|
|
38626
|
+
* falls back to reads the same slot through that path and gets the decrypted values.
|
|
38627
|
+
*
|
|
38624
38628
|
* @returns the rows to assign, or null when they cannot be safely materialized (caller should
|
|
38625
38629
|
* fall back to a full reload).
|
|
38626
38630
|
*/
|
|
38627
38631
|
async materializeCacheEventRows(config, rows) {
|
|
38632
|
+
if (this.cacheEventRowsCarryCiphertext(config, rows)) {
|
|
38633
|
+
return null;
|
|
38634
|
+
}
|
|
38628
38635
|
const effectiveResultType = config.ResultType || this.EngineDefaultResultType;
|
|
38629
38636
|
if (effectiveResultType === "simple") {
|
|
38630
38637
|
return rows;
|
|
@@ -38634,6 +38641,21 @@ var BaseEngine = class _BaseEngine extends BaseSingleton {
|
|
|
38634
38641
|
}
|
|
38635
38642
|
return TransformSimpleObjectToEntityObject(this.ProviderToUse, config.EntityName, rows, this._contextUser);
|
|
38636
38643
|
}
|
|
38644
|
+
/**
|
|
38645
|
+
* True when any payload row holds ciphertext (`$ENC$…`) on one of the entity's encrypted
|
|
38646
|
+
* fields. Applying such a row would hand consumers the stored ciphertext as the field's value.
|
|
38647
|
+
*/
|
|
38648
|
+
cacheEventRowsCarryCiphertext(config, rows) {
|
|
38649
|
+
const entityInfo = config.EntityName ? this.ProviderToUse?.EntityByName?.(config.EntityName) : void 0;
|
|
38650
|
+
const encryptedFields = entityInfo?.EncryptedFields ?? [];
|
|
38651
|
+
if (encryptedFields.length === 0) {
|
|
38652
|
+
return false;
|
|
38653
|
+
}
|
|
38654
|
+
return rows.some((row) => encryptedFields.some((field) => {
|
|
38655
|
+
const value = row[field.Name];
|
|
38656
|
+
return typeof value === "string" && IsValueEncrypted(value);
|
|
38657
|
+
}));
|
|
38658
|
+
}
|
|
38637
38659
|
/**
|
|
38638
38660
|
* Sets an expiration timer for a metadata property.
|
|
38639
38661
|
* @param propertyName - The name of the property
|
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
ValidateUserViewProperties,
|
|
62
62
|
WellKnownUserSource,
|
|
63
63
|
getGraphQLTypeNameBase
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-FSUYQQ6X.js";
|
|
65
65
|
import {
|
|
66
66
|
BehaviorSubject,
|
|
67
67
|
CleanAndParseJSON,
|
|
@@ -143211,7 +143211,7 @@ var ViewInfo = class {
|
|
|
143211
143211
|
* @async
|
|
143212
143212
|
*/
|
|
143213
143213
|
static async GetViewEntity(viewId, contextUser) {
|
|
143214
|
-
const { UserViewEngine } = await import("./UserViewEngine-
|
|
143214
|
+
const { UserViewEngine } = await import("./UserViewEngine-GC7MTS7M.js");
|
|
143215
143215
|
await UserViewEngine.Instance.Config(false, contextUser);
|
|
143216
143216
|
const view = UserViewEngine.Instance.GetViewById(viewId);
|
|
143217
143217
|
if (view) {
|
|
@@ -143230,7 +143230,7 @@ var ViewInfo = class {
|
|
|
143230
143230
|
* @async
|
|
143231
143231
|
*/
|
|
143232
143232
|
static async GetViewEntityByName(viewName, contextUser) {
|
|
143233
|
-
const { UserViewEngine } = await import("./UserViewEngine-
|
|
143233
|
+
const { UserViewEngine } = await import("./UserViewEngine-GC7MTS7M.js");
|
|
143234
143234
|
await UserViewEngine.Instance.Config(false, contextUser);
|
|
143235
143235
|
const view = UserViewEngine.Instance.GetViewByName(viewName);
|
|
143236
143236
|
if (view) {
|
|
@@ -163309,7 +163309,7 @@ var Fe = class {
|
|
|
163309
163309
|
return LogError(`Error checking for a duplicate entry: ${t}`), { Status: "Failed", ErrorMessage: t || "Unknown error occurred", Candidates: [] };
|
|
163310
163310
|
}
|
|
163311
163311
|
};
|
|
163312
|
-
var H = "6.2.
|
|
163312
|
+
var H = "6.2.2";
|
|
163313
163313
|
var F = "default";
|
|
163314
163314
|
var _e = class {
|
|
163315
163315
|
static {
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
S,
|
|
12
12
|
TemplateEngineBase,
|
|
13
13
|
coerceFailedExecuteAgentResult
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-FUTOBCKH.js";
|
|
15
15
|
import {
|
|
16
16
|
BaseEngine,
|
|
17
17
|
BaseEntity,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
PermissionConstrainedError,
|
|
23
23
|
RegisterForStartup,
|
|
24
24
|
RunView
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-FSUYQQ6X.js";
|
|
26
26
|
import {
|
|
27
27
|
ParseModelConfiguration,
|
|
28
28
|
ParseVendorConfiguration,
|
|
@@ -28,9 +28,9 @@ import {
|
|
|
28
28
|
SessionCardStatusChip,
|
|
29
29
|
SessionCardTitle,
|
|
30
30
|
SessionsObserver
|
|
31
|
-
} from "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
31
|
+
} from "./chunk-K7W2OS56.js";
|
|
32
|
+
import "./chunk-FUTOBCKH.js";
|
|
33
|
+
import "./chunk-FSUYQQ6X.js";
|
|
34
34
|
import "./chunk-JOGHPRST.js";
|
|
35
35
|
import "./chunk-DIDGGUK7.js";
|
|
36
36
|
export {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ConversationsRuntime
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-K7W2OS56.js";
|
|
4
4
|
import {
|
|
5
5
|
Bt,
|
|
6
6
|
ConversationEngine,
|
|
7
7
|
Ot,
|
|
8
8
|
agentFailureMessage
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-FUTOBCKH.js";
|
|
10
10
|
import {
|
|
11
11
|
RunView
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-FSUYQQ6X.js";
|
|
13
13
|
import "./chunk-JOGHPRST.js";
|
|
14
14
|
import "./chunk-DIDGGUK7.js";
|
|
15
15
|
|
package/dist/embed/mj-widget.js
CHANGED
|
@@ -960,14 +960,14 @@ function defaultSessionClient(apiUrl, widgetKey) {
|
|
|
960
960
|
return new WidgetSessionClient(apiUrl, widgetKey);
|
|
961
961
|
}
|
|
962
962
|
async function defaultTransport(apiUrl) {
|
|
963
|
-
const { RuntimeWidgetTransport } = await import("./chunks/runtime-widget-transport-
|
|
963
|
+
const { RuntimeWidgetTransport } = await import("./chunks/runtime-widget-transport-PVQLLTW3.js");
|
|
964
964
|
return new RuntimeWidgetTransport(apiUrl);
|
|
965
965
|
}
|
|
966
966
|
async function defaultVoiceController(session) {
|
|
967
967
|
const [{ RealtimeVoiceController }, { createGuestVoiceMint }, { createGuestToolRelay }] = await Promise.all([
|
|
968
968
|
import("./chunks/realtime-voice-controller-76SVXCXJ.js"),
|
|
969
|
-
import("./chunks/guest-voice-mint-
|
|
970
|
-
import("./chunks/guest-tool-relay-
|
|
969
|
+
import("./chunks/guest-voice-mint-LCZSOULT.js"),
|
|
970
|
+
import("./chunks/guest-tool-relay-QBLI73YQ.js")
|
|
971
971
|
]);
|
|
972
972
|
return new RealtimeVoiceController(
|
|
973
973
|
createGuestVoiceMint(session),
|
|
@@ -998,7 +998,7 @@ function resolveMountTarget(target) {
|
|
|
998
998
|
return document.body;
|
|
999
999
|
}
|
|
1000
1000
|
function registerNotificationAdapter(element) {
|
|
1001
|
-
void import("./chunks/dist-
|
|
1001
|
+
void import("./chunks/dist-RKESSSYW.js").then(({ ConversationsRuntime }) => {
|
|
1002
1002
|
ConversationsRuntime.Instance.UseNotificationAdapter({
|
|
1003
1003
|
Notify: (level, message) => {
|
|
1004
1004
|
if (level === "error" || level === "warning") {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/realtime-widget",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "6.2.
|
|
4
|
+
"version": "6.2.2",
|
|
5
5
|
"description": "MemberJunction: Droppable, embeddable public customer-support widget (text + voice). A shadow-DOM web component that reuses ConversationsRuntime + the realtime client stack against MJAPI with a guest session JWT. No MJ login required.",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -11,14 +11,14 @@
|
|
|
11
11
|
"author": "MemberJunction.com",
|
|
12
12
|
"license": "BUSL-1.1",
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@memberjunction/global": "6.2.
|
|
15
|
-
"@memberjunction/core": "6.2.
|
|
16
|
-
"@memberjunction/core-entities": "6.2.
|
|
17
|
-
"@memberjunction/ai": "6.2.
|
|
18
|
-
"@memberjunction/ai-core-plus": "6.2.
|
|
19
|
-
"@memberjunction/ai-realtime-client": "6.2.
|
|
20
|
-
"@memberjunction/conversations-runtime": "6.2.
|
|
21
|
-
"@memberjunction/graphql-dataprovider": "6.2.
|
|
14
|
+
"@memberjunction/global": "6.2.2",
|
|
15
|
+
"@memberjunction/core": "6.2.2",
|
|
16
|
+
"@memberjunction/core-entities": "6.2.2",
|
|
17
|
+
"@memberjunction/ai": "6.2.2",
|
|
18
|
+
"@memberjunction/ai-core-plus": "6.2.2",
|
|
19
|
+
"@memberjunction/ai-realtime-client": "6.2.2",
|
|
20
|
+
"@memberjunction/conversations-runtime": "6.2.2",
|
|
21
|
+
"@memberjunction/graphql-dataprovider": "6.2.2"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@types/node": "24.10.11",
|