@release0/nextjs 0.2.4 → 0.3.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/README.md CHANGED
@@ -120,7 +120,7 @@ toggle();
120
120
 
121
121
  ## Additional configuration
122
122
 
123
- You can prefill the agent variable values in your embed code by adding the `prefilledVariables` option. Here is an example:
123
+ You can prefill the agent variable values in your embed code by adding the `initialContext` option. Here is an example:
124
124
 
125
125
  ```tsx
126
126
  import { Standard } from "@release0/nextjs";
@@ -130,7 +130,7 @@ const App = () => {
130
130
  <Standard
131
131
  agent="ag_herexisxyourxagentxid"
132
132
  style={{ width: "100%", height: "600px" }}
133
- prefilledVariables={{
133
+ initialContext={{
134
134
  "Account URL": "https://my-site.com/account",
135
135
  "User name": "My username",
136
136
  }}
@@ -46,7 +46,7 @@ var h = ({ id: t } = {}) => {
46
46
  var m = (t) => {
47
47
  let e = c(null);
48
48
  return l(() => {
49
- t.theme?.position !== "static" && (e.current || (e.current = document.createElement("agent-bubble"), document.body.prepend(e.current)), import("./web-DTA6A66J-AQODIQ47.js").then(() => {
49
+ t.theme?.position !== "static" && (e.current || (e.current = document.createElement("agent-bubble"), document.body.prepend(e.current)), import("./web-53BLTPE3-WYQIGRDC.js").then(() => {
50
50
  let { agent: n, ...r } = t;
51
51
  Object.assign(e.current ?? document.createElement("agent-bubble"), r, { agent: n });
52
52
  }));
@@ -69,7 +69,7 @@ var g = (t) => {
69
69
  n.current?.remove(), n.current = null;
70
70
  }, []);
71
71
  let o = (s, a) => {
72
- import("./web-DTA6A66J-AQODIQ47.js").then(() => {
72
+ import("./web-53BLTPE3-WYQIGRDC.js").then(() => {
73
73
  Object.assign(s, a);
74
74
  });
75
75
  };
@@ -78,7 +78,7 @@ var g = (t) => {
78
78
  var E = ({ style: t, className: e, ...n }) => {
79
79
  let r = P(null);
80
80
  return b(() => {
81
- import("./web-DTA6A66J-AQODIQ47.js").then(() => {
81
+ import("./web-53BLTPE3-WYQIGRDC.js").then(() => {
82
82
  let { agent: o, ...s } = n;
83
83
  Object.assign(r.current, s, { agent: o });
84
84
  });
package/dist/index.js CHANGED
@@ -15,13 +15,13 @@ import {
15
15
  function isClient() {
16
16
  return typeof window !== "undefined";
17
17
  }
18
- var Standard = isClient() ? dynamic(() => import("./dist-XHSD27EH.js").then((mod) => mod.Standard), {
18
+ var Standard = isClient() ? dynamic(() => import("./dist-4V5VSPZX.js").then((mod) => mod.Standard), {
19
19
  ssr: false
20
20
  }) : () => null;
21
- var Bubble = isClient() ? dynamic(() => import("./dist-XHSD27EH.js").then((mod) => mod.Bubble), {
21
+ var Bubble = isClient() ? dynamic(() => import("./dist-4V5VSPZX.js").then((mod) => mod.Bubble), {
22
22
  ssr: false
23
23
  }) : () => null;
24
- var Popup = isClient() ? dynamic(() => import("./dist-XHSD27EH.js").then((mod) => mod.Popup), {
24
+ var Popup = isClient() ? dynamic(() => import("./dist-4V5VSPZX.js").then((mod) => mod.Popup), {
25
25
  ssr: false
26
26
  }) : () => null;
27
27
  export {