open-chat-studio-widget 0.4.4 → 0.4.6
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 +118 -94
- package/dist/cjs/{index-bcb28089.js → index-c9203be6.js} +29 -3
- package/dist/cjs/index-c9203be6.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/open-chat-studio-widget.cjs.entry.js +500 -79
- package/dist/cjs/open-chat-studio-widget.cjs.entry.js.map +1 -1
- package/dist/cjs/open-chat-studio-widget.cjs.js +2 -2
- package/dist/collection/components/ocs-chat/heroicons.js +11 -2
- package/dist/collection/components/ocs-chat/heroicons.js.map +1 -1
- package/dist/collection/components/ocs-chat/ocs-chat.css +1042 -129
- package/dist/collection/components/ocs-chat/ocs-chat.js +380 -84
- package/dist/collection/components/ocs-chat/ocs-chat.js.map +1 -1
- package/dist/collection/utils/cookies.js +28 -0
- package/dist/collection/utils/cookies.js.map +1 -0
- package/dist/components/open-chat-studio-widget.js +509 -84
- package/dist/components/open-chat-studio-widget.js.map +1 -1
- package/dist/esm/{index-205c77bc.js → index-0349ca51.js} +29 -3
- package/dist/esm/index-0349ca51.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/open-chat-studio-widget.entry.js +500 -79
- package/dist/esm/open-chat-studio-widget.entry.js.map +1 -1
- package/dist/esm/open-chat-studio-widget.js +3 -3
- package/dist/open-chat-studio-widget/open-chat-studio-widget.esm.js +1 -1
- package/dist/open-chat-studio-widget/open-chat-studio-widget.esm.js.map +1 -1
- package/dist/open-chat-studio-widget/p-16df1b20.entry.js +4 -0
- package/dist/open-chat-studio-widget/p-16df1b20.entry.js.map +1 -0
- package/dist/open-chat-studio-widget/{p-78d09c6b.js → p-3dc66a9a.js} +3 -3
- package/dist/open-chat-studio-widget/p-3dc66a9a.js.map +1 -0
- package/dist/types/components/ocs-chat/heroicons.d.ts +4 -1
- package/dist/types/components/ocs-chat/ocs-chat.d.ts +52 -9
- package/dist/types/components.d.ts +24 -0
- package/dist/types/utils/cookies.d.ts +4 -0
- package/package.json +3 -2
- package/dist/cjs/index-bcb28089.js.map +0 -1
- package/dist/esm/index-205c77bc.js.map +0 -1
- package/dist/open-chat-studio-widget/p-19d45fe5.entry.js +0 -3
- package/dist/open-chat-studio-widget/p-19d45fe5.entry.js.map +0 -1
- package/dist/open-chat-studio-widget/p-78d09c6b.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const NAMESPACE = 'open-chat-studio-widget';
|
|
2
|
-
const BUILD = /* open-chat-studio-widget */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback:
|
|
2
|
+
const BUILD = /* open-chat-studio-widget */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
5
|
Stencil Client Platform v4.26.0 | MIT Licensed | https://stenciljs.com
|
|
@@ -954,6 +954,7 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
954
954
|
`Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`
|
|
955
955
|
);
|
|
956
956
|
}
|
|
957
|
+
const elm = hostRef.$hostElement$ ;
|
|
957
958
|
const oldVal = hostRef.$instanceValues$.get(propName);
|
|
958
959
|
const flags = hostRef.$flags$;
|
|
959
960
|
const instance = hostRef.$lazyInstance$ ;
|
|
@@ -963,6 +964,18 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
963
964
|
if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
|
|
964
965
|
hostRef.$instanceValues$.set(propName, newVal);
|
|
965
966
|
if (instance) {
|
|
967
|
+
if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
|
|
968
|
+
const watchMethods = cmpMeta.$watchers$[propName];
|
|
969
|
+
if (watchMethods) {
|
|
970
|
+
watchMethods.map((watchMethodName) => {
|
|
971
|
+
try {
|
|
972
|
+
instance[watchMethodName](newVal, oldVal, propName);
|
|
973
|
+
} catch (e) {
|
|
974
|
+
consoleError(e, elm);
|
|
975
|
+
}
|
|
976
|
+
});
|
|
977
|
+
}
|
|
978
|
+
}
|
|
966
979
|
if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
967
980
|
scheduleUpdate(hostRef, false);
|
|
968
981
|
}
|
|
@@ -974,7 +987,10 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
974
987
|
var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
975
988
|
var _a, _b;
|
|
976
989
|
const prototype = Cstr.prototype;
|
|
977
|
-
if (cmpMeta.$members$ ||
|
|
990
|
+
if (cmpMeta.$members$ || (cmpMeta.$watchers$ || Cstr.watchers)) {
|
|
991
|
+
if (Cstr.watchers && !cmpMeta.$watchers$) {
|
|
992
|
+
cmpMeta.$watchers$ = Cstr.watchers;
|
|
993
|
+
}
|
|
978
994
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
979
995
|
members.map(([memberName, [memberFlags]]) => {
|
|
980
996
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
@@ -1110,6 +1126,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1110
1126
|
throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
|
|
1111
1127
|
}
|
|
1112
1128
|
if (!Cstr.isProxied) {
|
|
1129
|
+
{
|
|
1130
|
+
cmpMeta.$watchers$ = Cstr.watchers;
|
|
1131
|
+
}
|
|
1113
1132
|
proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
|
|
1114
1133
|
Cstr.isProxied = true;
|
|
1115
1134
|
}
|
|
@@ -1125,6 +1144,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1125
1144
|
{
|
|
1126
1145
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
1127
1146
|
}
|
|
1147
|
+
{
|
|
1148
|
+
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1149
|
+
}
|
|
1128
1150
|
endNewInstance();
|
|
1129
1151
|
} else {
|
|
1130
1152
|
Cstr = elm.constructor;
|
|
@@ -1232,6 +1254,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1232
1254
|
let hasSlotRelocation = false;
|
|
1233
1255
|
lazyBundles.map((lazyBundle) => {
|
|
1234
1256
|
lazyBundle[1].map((compactMeta) => {
|
|
1257
|
+
var _a2;
|
|
1235
1258
|
const cmpMeta = {
|
|
1236
1259
|
$flags$: compactMeta[0],
|
|
1237
1260
|
$tagName$: compactMeta[1],
|
|
@@ -1244,6 +1267,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1244
1267
|
{
|
|
1245
1268
|
cmpMeta.$members$ = compactMeta[2];
|
|
1246
1269
|
}
|
|
1270
|
+
{
|
|
1271
|
+
cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
|
|
1272
|
+
}
|
|
1247
1273
|
const tagName = cmpMeta.$tagName$;
|
|
1248
1274
|
const HostElement = class extends HTMLElement {
|
|
1249
1275
|
// StencilLazyHost
|
|
@@ -1343,4 +1369,4 @@ var setNonce = (nonce) => plt.$nonce$ = nonce;
|
|
|
1343
1369
|
|
|
1344
1370
|
export { Host as H, bootstrapLazy as b, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
|
|
1345
1371
|
|
|
1346
|
-
//# sourceMappingURL=index-
|
|
1372
|
+
//# sourceMappingURL=index-0349ca51.js.map
|