@livetiles/reach-components-react 0.5.0-preview.950 → 0.5.0-preview.951

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
- import{A as e,E as r,N as t,D as i,B as o}from"./index.esm2.js";import"react/jsx-runtime";import"events";import"react";import"office-ui-fabric-react";import"react-router-dom";import"react-is";import"styled-components";import"react-dom";import"office-ui-fabric-core/dist/css/fabric.css";import"office-ui-fabric-react/lib/common/DirectionalHint";import"react-dom/server";function a(a,n,c){var s;return e(this,void 0,void 0,(function(){var m,l,u,d,f=this;return r(this,(function(p){switch(p.label){case 0:return t()?[2,[]]:(m=i(),l=null!==(s=n.enabledMiddleware)&&void 0!==s?s:{},u=Object.entries(l).filter((function(e){return e[0],e[1]})).map((function(e){return e[0]})),d=u.map((function(t){return e(f,void 0,void 0,(function(){var e,i,n,s;return r(this,(function(r){switch(r.label){case 0:e=t.replace("@segment/",""),i=e,c&&(i=btoa(e).replace(/=/g,"")),n="".concat(m,"/middleware/").concat(i,"/latest/").concat(i,".js.gz"),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,o(n)];case 2:return r.sent(),[2,window["".concat(e,"Middleware")]];case 3:return s=r.sent(),a.log("error",s),a.stats.increment("failed_remote_middleware"),[3,4];case 4:return[2]}}))}))})),[4,Promise.all(d)]);case 1:return[2,p.sent().filter(Boolean)]}}))}))}export{a as remoteMiddlewares};
1
+ import{z as e,E as r,L as t,B as i,A as o}from"./index.esm2.js";import"react/jsx-runtime";import"events";import"react";import"office-ui-fabric-react";import"react-router-dom";import"react-is";import"styled-components";import"react-dom";import"office-ui-fabric-core/dist/css/fabric.css";import"office-ui-fabric-react/lib/common/DirectionalHint";import"react-dom/server";function a(a,n,c){var s;return e(this,void 0,void 0,(function(){var m,l,u,d,f=this;return r(this,(function(p){switch(p.label){case 0:return t()?[2,[]]:(m=i(),l=null!==(s=n.enabledMiddleware)&&void 0!==s?s:{},u=Object.entries(l).filter((function(e){return e[0],e[1]})).map((function(e){return e[0]})),d=u.map((function(t){return e(f,void 0,void 0,(function(){var e,i,n,s;return r(this,(function(r){switch(r.label){case 0:e=t.replace("@segment/",""),i=e,c&&(i=btoa(e).replace(/=/g,"")),n="".concat(m,"/middleware/").concat(i,"/latest/").concat(i,".js.gz"),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,o(n)];case 2:return r.sent(),[2,window["".concat(e,"Middleware")]];case 3:return s=r.sent(),a.log("error",s),a.stats.increment("failed_remote_middleware"),[3,4];case 4:return[2]}}))}))})),[4,Promise.all(d)]);case 1:return[2,p.sent().filter(Boolean)]}}))}))}export{a as remoteMiddlewares};
@@ -1,4 +1,4 @@
1
- import{F as r,y as e,z as t}from"./index.esm2.js";import"react/jsx-runtime";import"events";import"react";import"office-ui-fabric-react";import"react-router-dom";import"react-is";import"styled-components";import"react-dom";import"office-ui-fabric-core/dist/css/fabric.css";import"office-ui-fabric-react/lib/common/DirectionalHint";import"react-dom/server";const n=Object.freeze(Object.defineProperty({__proto__:null,default:function(r,e,t,n,o){for(e=e.split?e.split("."):e,n=0;n<e.length;n++)r=r?r[e[n]]:o;return r===o?t:r}},Symbol.toStringTag,{value:"Module"}));for(var o={},a={},i=[],u=0;u<64;)i[u]=0|4294967296*Math.sin(++u%Math.PI);const c=Object.freeze(Object.defineProperty({__proto__:null,default:function(r){var e,t,n,o=[e=1732584193,t=4023233417,~e,~t],a=[],c=unescape(encodeURI(r))+"€",f=c.length;for(r=--f/4+2|15,a[--r]=8*f;~f;)a[f>>2]|=c.charCodeAt(f)<<8*f--;for(u=c=0;u<r;u+=16){for(f=o;c<64;f=[n=f[3],e+((n=f[0]+[e&t|~e&n,n&e|~n&t,e^t^n,t^(e|~n)][f=c>>4]+i[c]+~~a[u|15&[c,5*c+1,3*c+5,7*c][f]])<<(f=[7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21][4*f+c++%4])|n>>>-f),e,t])e=0|f[1],t=f[2];for(c=4;c;)o[--c]+=f[c]}for(r="";c<32;)r+=(o[c>>3]>>4*(1^c++)&15).toString(16);return r}},Symbol.toStringTag,{value:"Module"})),f=e(c),l=e(n);
1
+ import{F as r,x as e,y as t}from"./index.esm2.js";import"react/jsx-runtime";import"events";import"react";import"office-ui-fabric-react";import"react-router-dom";import"react-is";import"styled-components";import"react-dom";import"office-ui-fabric-core/dist/css/fabric.css";import"office-ui-fabric-react/lib/common/DirectionalHint";import"react-dom/server";const n=Object.freeze(Object.defineProperty({__proto__:null,default:function(r,e,t,n,o){for(e=e.split?e.split("."):e,n=0;n<e.length;n++)r=r?r[e[n]]:o;return r===o?t:r}},Symbol.toStringTag,{value:"Module"}));for(var o={},a={},i=[],u=0;u<64;)i[u]=0|4294967296*Math.sin(++u%Math.PI);const c=Object.freeze(Object.defineProperty({__proto__:null,default:function(r){var e,t,n,o=[e=1732584193,t=4023233417,~e,~t],a=[],c=unescape(encodeURI(r))+"€",f=c.length;for(r=--f/4+2|15,a[--r]=8*f;~f;)a[f>>2]|=c.charCodeAt(f)<<8*f--;for(u=c=0;u<r;u+=16){for(f=o;c<64;f=[n=f[3],e+((n=f[0]+[e&t|~e&n,n&e|~n&t,e^t^n,t^(e|~n)][f=c>>4]+i[c]+~~a[u|15&[c,5*c+1,3*c+5,7*c][f]])<<(f=[7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21][4*f+c++%4])|n>>>-f),e,t])e=0|f[1],t=f[2];for(c=4;c;)o[--c]+=f[c]}for(r="";c<32;)r+=(o[c>>3]>>4*(1^c++)&15).toString(16);return r}},Symbol.toStringTag,{value:"Module"})),f=e(c),l=e(n);
2
2
  /**
3
3
  * @license Apache-2.0
4
4
  *
@@ -187,7 +187,7 @@ function(){return"function"==typeof Symbol&&"symbol"==typeof Symbol("foo")}();
187
187
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
188
188
  * See the License for the specific language governing permissions and
189
189
  * limitations under the License.
190
- */var D=function(r){return J.call(r)},G=Object.prototype.hasOwnProperty;
190
+ */var x=function(r){return J.call(r)},D=Object.prototype.hasOwnProperty;
191
191
  /**
192
192
  * @license Apache-2.0
193
193
  *
@@ -204,7 +204,7 @@ function(){return"function"==typeof Symbol&&"symbol"==typeof Symbol("foo")}();
204
204
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
205
205
  * See the License for the specific language governing permissions and
206
206
  * limitations under the License.
207
- */var L=function(r,e){return null!=r&&G.call(r,e)},x=L,R="function"==typeof Symbol?Symbol.toStringTag:"",V=x,W=R,z=C;
207
+ */var G=function(r,e){return null!=r&&D.call(r,e)},L=G,R="function"==typeof Symbol?Symbol.toStringTag:"",V=L,W=R,z=C;
208
208
  /**
209
209
  * @license Apache-2.0
210
210
  *
@@ -221,7 +221,7 @@ function(){return"function"==typeof Symbol&&"symbol"==typeof Symbol("foo")}();
221
221
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
222
222
  * See the License for the specific language governing permissions and
223
223
  * limitations under the License.
224
- */var B=function(r){var e,t,n;if(null==r)return z.call(r);t=r[W],e=V(r,W);try{r[W]=void 0}catch(e){return z.call(r)}return n=z.call(r),e?r[W]=t:delete r[W],n},Q=D,Y=B,q=H()?Y:Q,K=q,X="function"==typeof Uint32Array;
224
+ */var B=function(r){var e,t,n;if(null==r)return z.call(r);t=r[W],e=V(r,W);try{r[W]=void 0}catch(e){return z.call(r)}return n=z.call(r),e?r[W]=t:delete r[W],n},Q=x,Y=B,q=H()?Y:Q,K=q,X="function"==typeof Uint32Array;
225
225
  /**
226
226
  * @license Apache-2.0
227
227
  *
@@ -497,7 +497,7 @@ function(){throw new Error("not implemented")},Sr=Ar()?Or:kr,Nr=q,Er="function"=
497
497
  * See the License for the specific language governing permissions and
498
498
  * limitations under the License.
499
499
  */
500
- function(){throw new Error("not implemented")},Dr={uint16:Tr()?Cr:Jr,uint8:Sr};
500
+ function(){throw new Error("not implemented")},xr={uint16:Tr()?Cr:Jr,uint8:Sr};
501
501
  /**
502
502
  * @license Apache-2.0
503
503
  *
@@ -514,7 +514,7 @@ function(){throw new Error("not implemented")},Dr={uint16:Tr()?Cr:Jr,uint8:Sr};
514
514
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
515
515
  * See the License for the specific language governing permissions and
516
516
  * limitations under the License.
517
- */(Hr=new Dr.uint16(1))[0]=4660;var Gr,Lr,xr=52===new Dr.uint8(Hr.buffer)[0];
517
+ */(Hr=new xr.uint16(1))[0]=4660;var Dr,Gr,Lr=52===new xr.uint8(Hr.buffer)[0];
518
518
  /**
519
519
  * @license Apache-2.0
520
520
  *
@@ -531,7 +531,7 @@ function(){throw new Error("not implemented")},Dr={uint16:Tr()?Cr:Jr,uint8:Sr};
531
531
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
532
532
  * See the License for the specific language governing permissions and
533
533
  * limitations under the License.
534
- */!0===xr?(Gr=1,Lr=0):(Gr=0,Lr=1);var Rr=ir,Vr={HIGH:Gr,LOW:Lr},Wr=new hr(1),zr=new Rr(Wr.buffer),Br=Vr.HIGH,Qr=Vr.LOW;
534
+ */!0===Lr?(Dr=1,Gr=0):(Dr=0,Gr=1);var Rr=ir,Vr={HIGH:Dr,LOW:Gr},Wr=new hr(1),zr=new Rr(Wr.buffer),Br=Vr.HIGH,Qr=Vr.LOW;
535
535
  /**
536
536
  * @license Apache-2.0
537
537
  *
@@ -582,7 +582,7 @@ function(){throw new Error("not implemented")},Dr={uint16:Tr()?Cr:Jr,uint8:Sr};
582
582
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
583
583
  * See the License for the specific language governing permissions and
584
584
  * limitations under the License.
585
- */F(Xr,"assign",Yr);var Zr=Xr,$r=ir,re=!0===xr?1:0,ee=new hr(1),te=new $r(ee.buffer);
585
+ */F(Xr,"assign",Yr);var Zr=Xr,$r=ir,re=!0===Lr?1:0,ee=new hr(1),te=new $r(ee.buffer);
586
586
  /**
587
587
  * @license Apache-2.0
588
588
  *
@@ -616,7 +616,7 @@ function(){throw new Error("not implemented")},Dr={uint16:Tr()?Cr:Jr,uint8:Sr};
616
616
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
617
617
  * See the License for the specific language governing permissions and
618
618
  * limitations under the License.
619
- */!0===xr?(ne=1,oe=0):(ne=0,oe=1);var ue=ir,ce={HIGH:ne,LOW:oe},fe=new hr(1),le=new ue(fe.buffer),se=ce.HIGH,pe=ce.LOW;
619
+ */!0===Lr?(ne=1,oe=0):(ne=0,oe=1);var ue=ir,ce={HIGH:ne,LOW:oe},fe=new hr(1),le=new ue(fe.buffer),se=ce.HIGH,pe=ce.LOW;
620
620
  /**
621
621
  * @license Apache-2.0
622
622
  *
@@ -753,7 +753,7 @@ function(r){return Math.abs(r)},je=b,Ae=v,Oe=we;
753
753
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
754
754
  * See the License for the specific language governing permissions and
755
755
  * limitations under the License.
756
- */var Ie=function(r){var e=Ue(r);return(e=(2146435072&e)>>>20)-1023|0},Pe=s,Me=p,Fe=v,Te=b,He=_e,Ce=Ee,Je=Ie,De=Zr,Ge=ve,Le=[0,0],xe=[0,0];
756
+ */var Ie=function(r){var e=Ue(r);return(e=(2146435072&e)>>>20)-1023|0},Pe=s,Me=p,Fe=v,Te=b,He=_e,Ce=Ee,Je=Ie,xe=Zr,De=ve,Ge=[0,0],Le=[0,0];
757
757
  /**
758
758
  * @license Apache-2.0
759
759
  *
@@ -770,7 +770,7 @@ function(r){return Math.abs(r)},je=b,Ae=v,Oe=we;
770
770
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
771
771
  * See the License for the specific language governing permissions and
772
772
  * limitations under the License.
773
- */var Re=function(r,e){var t,n;return 0===r||Fe(r)||Te(r)?r:(Ce(Le),e+=Le[1],(e+=Je(r=Le[0]))<-1074?He(0,r):e>1023?r<0?Me:Pe:(e<=-1023?(e+=52,n=2220446049250313e-31):n=1,De(xe),t=xe[0],t&=2148532223,n*Ge(t|=e+1023<<20,xe[1])))},Ve=Re;
773
+ */var Re=function(r,e){var t,n;return 0===r||Fe(r)||Te(r)?r:(Ce(Ge),e+=Ge[1],(e+=Je(r=Ge[0]))<-1074?He(0,r):e>1023?r<0?Me:Pe:(e<=-1023?(e+=52,n=2220446049250313e-31):n=1,xe(Le),t=Le[0],t&=2148532223,n*De(t|=e+1023<<20,Le[1])))},Ve=Re;
774
774
  /**
775
775
  * @license Apache-2.0
776
776
  *
@@ -1 +1 @@
1
- import{I as e}from"./index.esm2.js";import{l as t}from"./is-plan-event-enabled-d9660f36.esm.js";import"react/jsx-runtime";import"events";import"react";import"office-ui-fabric-react";import"react-router-dom";import"react-is";import"styled-components";import"react-dom";import"office-ui-fabric-core/dist/css/fabric.css";import"office-ui-fabric-react/lib/common/DirectionalHint";import"react-dom/server";function n(n,r){function i(i){var o=n,a=i.event.event;if(o&&a){var c=o[a];if(!t(o,c))return i.updateEvent("integrations",e(e({},i.event.integrations),{All:!1,"Segment.io":!0})),i;var s=function(e,t){var n,r;if(!e||!Object.keys(e))return{};var i=e.integrations?Object.keys(e.integrations).filter((function(t){return!1===e.integrations[t]})):[],o=[];return(null!==(n=t.remotePlugins)&&void 0!==n?n:[]).forEach((function(e){i.forEach((function(t){(e.name.includes(t)||t.includes(e.name))&&o.push(e.name)}))})),(null!==(r=t.remotePlugins)&&void 0!==r?r:[]).reduce((function(e,t){return t.settings.subscriptions&&o.includes(t.name)&&t.settings.subscriptions.forEach((function(n){return e["".concat(t.name," ").concat(n.partnerAction)]=!1})),e}),{})}(c,r);i.updateEvent("integrations",e(e(e({},i.event.integrations),null==c?void 0:c.integrations),s))}return i}return{name:"Schema Filter",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},type:"before",page:i,alias:i,track:i,identify:i,group:i}}export{n as schemaFilter};
1
+ import{G as e}from"./index.esm2.js";import{l as t}from"./is-plan-event-enabled-d9660f36.esm.js";import"react/jsx-runtime";import"events";import"react";import"office-ui-fabric-react";import"react-router-dom";import"react-is";import"styled-components";import"react-dom";import"office-ui-fabric-core/dist/css/fabric.css";import"office-ui-fabric-react/lib/common/DirectionalHint";import"react-dom/server";function n(n,r){function i(i){var o=n,a=i.event.event;if(o&&a){var c=o[a];if(!t(o,c))return i.updateEvent("integrations",e(e({},i.event.integrations),{All:!1,"Segment.io":!0})),i;var s=function(e,t){var n,r;if(!e||!Object.keys(e))return{};var i=e.integrations?Object.keys(e.integrations).filter((function(t){return!1===e.integrations[t]})):[],o=[];return(null!==(n=t.remotePlugins)&&void 0!==n?n:[]).forEach((function(e){i.forEach((function(t){(e.name.includes(t)||t.includes(e.name))&&o.push(e.name)}))})),(null!==(r=t.remotePlugins)&&void 0!==r?r:[]).reduce((function(e,t){return t.settings.subscriptions&&o.includes(t.name)&&t.settings.subscriptions.forEach((function(n){return e["".concat(t.name," ").concat(n.partnerAction)]=!1})),e}),{})}(c,r);i.updateEvent("integrations",e(e(e({},i.event.integrations),null==c?void 0:c.integrations),s))}return i}return{name:"Schema Filter",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},type:"before",page:i,alias:i,track:i,identify:i,group:i}}export{n as schemaFilter};
@@ -1 +1 @@
1
- import{A as i,E as r}from"./index.esm2.js";import"react/jsx-runtime";import"events";import"react";import"office-ui-fabric-react";import"react-router-dom";import"react-is";import"styled-components";import"react-dom";import"office-ui-fabric-core/dist/css/fabric.css";import"office-ui-fabric-react/lib/common/DirectionalHint";import"react-dom/server";function t(t){return i(this,void 0,void 0,(function(){var i;return r(this,(function(r){switch(r.label){case 0:return[4,import("./index.umd-c9cf1445.esm.js").then((i=>i.i))];case 1:return i=r.sent(),t._plugins=i,[2]}}))}))}export{t as loadLegacyVideoPlugins};
1
+ import{z as i,E as r}from"./index.esm2.js";import"react/jsx-runtime";import"events";import"react";import"office-ui-fabric-react";import"react-router-dom";import"react-is";import"styled-components";import"react-dom";import"office-ui-fabric-core/dist/css/fabric.css";import"office-ui-fabric-react/lib/common/DirectionalHint";import"react-dom/server";function t(t){return i(this,void 0,void 0,(function(){var i;return r(this,(function(r){switch(r.label){case 0:return[4,import("./index.umd-c9cf1445.esm.js").then((i=>i.i))];case 1:return i=r.sent(),t._plugins=i,[2]}}))}))}export{t as loadLegacyVideoPlugins};
@@ -1 +1 @@
1
- import{A as t,E as n,B as i,D as e,S as r,G as o,I as s,J as a,K as u,X as c,M as l,N as d,O as h,Q as f,H as v,R as p,T as g,U as m,V as y,W as b}from"./index.esm2.js";import{l as w}from"./is-plan-event-enabled-d9660f36.esm.js";import"react/jsx-runtime";import"events";import"react";import"office-ui-fabric-react";import"react-router-dom";import"react-is";import"styled-components";import"react-dom";import"office-ui-fabric-core/dist/css/fabric.css";import"office-ui-fabric-react/lib/common/DirectionalHint";import"react-dom/server";function _(t){return t.toLowerCase().replace(".","").replace(/\s+/g,"-")}function S(t,n){return void 0===n&&(n=!1),n?btoa(t).replace(/=/g,""):void 0}function k(r,o,s,a){return t(this,void 0,void 0,(function(){var t,u,c,l,d,h;return n(this,(function(n){switch(n.label){case 0:t=_(o),u=S(t,a),c=e(),l="".concat(c,"/integrations/").concat(null!=u?u:t,"/").concat(s,"/").concat(null!=u?u:t,".dynamic.js.gz"),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,i(l)];case 2:return n.sent(),function(t,n,i){var e,r;try{var o=(null!==(r=null===(e=null==window?void 0:window.performance)||void 0===e?void 0:e.getEntriesByName(t,"resource"))&&void 0!==r?r:[])[0];o&&n.stats.gauge("legacy_destination_time",Math.round(o.duration),f([i],o.duration<100?["cached"]:[],!0))}catch(t){}}(l,r,o),[3,4];case 3:throw d=n.sent(),r.stats.gauge("legacy_destination_time",-1,["plugin:".concat(o),"failed"]),d;case 4:return h=window["".concat(t,"Deps")],[4,Promise.all(h.map((function(t){return i(c+t+".gz")})))];case 5:return n.sent(),window["".concat(t,"Loader")](),[2,window["".concat(t,"Integration")]]}}))}))}function z(i,e){return t(this,void 0,void 0,(function(){var r,s=this;return n(this,(function(a){switch(a.label){case 0:return r=[],o()?[2,e]:[4,l((function(){return e.length>0&&g()}),(function(){return t(s,void 0,void 0,(function(){var t,o;return n(this,(function(n){switch(n.label){case 0:return(t=e.pop())?[4,p(t,i)]:[2];case 1:return o=n.sent(),o instanceof b||r.push(t),[2]}}))}))}))];case 1:return a.sent(),r.map((function(t){return e.pushWithBackoff(t)})),[2,e]}}))}))}var I=function(){function i(t,n,i,e,r,o){void 0===e&&(e={}),this.options={},this.type="destination",this.middleware=[],this._ready=!1,this._initialized=!1,this.flushing=!1,this.name=t,this.version=n,this.settings=s({},e),this.disableAutoISOConversion=r.disableAutoISOConversion||!1,this.integrationSource=o,this.settings.type&&"browser"===this.settings.type&&delete this.settings.type,this.options=r,this.buffer=r.disableClientPersistence?new m(4,[]):new y(4,"".concat(i,":dest-").concat(t)),this.scheduleFlush()}return i.prototype.isLoaded=function(){return this._ready},i.prototype.ready=function(){var t;return null!==(t=this.onReady)&&void 0!==t?t:Promise.resolve()},i.prototype.load=function(i,e){var r;return t(this,void 0,void 0,(function(){var t,o,s=this;return n(this,(function(n){switch(n.label){case 0:return this._ready||void 0!==this.onReady?[2]:null!==(r=this.integrationSource)&&void 0!==r?(o=r,[3,3]):[3,1];case 1:return[4,k(i,this.name,this.version,this.options.obfuscate)];case 2:o=n.sent(),n.label=3;case 3:t=o,this.integration=function(t,n,i){var e;"Integration"in t?(t({user:function(){return i.user()},addIntegration:function(){}}),e=t.Integration):e=t;var r=new e(n);return r.analytics=i,r}(t,this.settings,e),this.onReady=new Promise((function(t){s.integration.once("ready",(function(){s._ready=!0,t(!0)}))})),this.onInitialize=new Promise((function(t){s.integration.on("initialize",(function(){s._initialized=!0,t(!0)}))}));try{i.stats.increment("analytics_js.integration.invoke",1,["method:initialize","integration_name:".concat(this.name)]),this.integration.initialize()}catch(t){throw i.stats.increment("analytics_js.integration.invoke.error",1,["method:initialize","integration_name:".concat(this.name)]),t}return[2]}}))}))},i.prototype.unload=function(i,o){return function(i,o,s){return t(this,void 0,void 0,(function(){var t,a,u,c;return n(this,(function(n){return t=e(),a=_(i),u=S(i,s),c="".concat(t,"/integrations/").concat(null!=u?u:a,"/").concat(o,"/").concat(null!=u?u:a,".dynamic.js.gz"),[2,r(c)]}))}))}(this.name,this.version,this.options.obfuscate)},i.prototype.addMiddleware=function(){for(var t,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];this.middleware=(t=this.middleware).concat.apply(t,n)},i.prototype.shouldBuffer=function(t){return"page"!==t.event.type&&(o()||!1===this._ready||!1===this._initialized)},i.prototype.send=function(i,e,r){var o,c;return t(this,void 0,void 0,(function(){var t,l,d,h,f,v;return n(this,(function(n){switch(n.label){case 0:if(this.shouldBuffer(i))return this.buffer.push(i),this.scheduleFlush(),[2,i];if(t=null===(c=null===(o=this.options)||void 0===o?void 0:o.plan)||void 0===c?void 0:c.track,l=i.event.event,t&&l&&"Segment.io"!==this.name){if(d=t[l],!w(t,d))return i.updateEvent("integrations",s(s({},i.event.integrations),{All:!1,"Segment.io":!0})),i.cancel(new a({retry:!1,reason:"Event ".concat(l," disabled for integration ").concat(this.name," in tracking plan"),type:"Dropped by plan"})),[2,i];if(i.updateEvent("integrations",s(s({},i.event.integrations),null==d?void 0:d.integrations)),null!=d&&d.enabled&&!1===(null==d?void 0:d.integrations[this.name]))return i.cancel(new a({retry:!1,reason:"Event ".concat(l," disabled for integration ").concat(this.name," in tracking plan"),type:"Dropped by plan"})),[2,i]}return[4,u(this.name,i.event,this.middleware)];case 1:if(null===(h=n.sent()))return[2,i];f=new e(h,{traverse:!this.disableAutoISOConversion}),i.stats.increment("analytics_js.integration.invoke",1,["method:".concat(r),"integration_name:".concat(this.name)]),n.label=2;case 2:return n.trys.push([2,5,,6]),this.integration?[4,this.integration.invoke.call(this.integration,r,f)]:[3,4];case 3:n.sent(),n.label=4;case 4:return[3,6];case 5:throw v=n.sent(),i.stats.increment("analytics_js.integration.invoke.error",1,["method:".concat(r),"integration_name:".concat(this.name)]),v;case 6:return[2,i]}}))}))},i.prototype.track=function(i){return t(this,void 0,void 0,(function(){return n(this,(function(t){return[2,this.send(i,c.Track,"track")]}))}))},i.prototype.page=function(i){var e;return t(this,void 0,void 0,(function(){var t=this;return n(this,(function(n){return!(null===(e=this.integration)||void 0===e)&&e._assumesPageview&&!this._initialized&&this.integration.initialize(),[2,this.onInitialize.then((function(){return t.send(i,c.Page,"page")}))]}))}))},i.prototype.identify=function(i){return t(this,void 0,void 0,(function(){return n(this,(function(t){return[2,this.send(i,c.Identify,"identify")]}))}))},i.prototype.alias=function(i){return t(this,void 0,void 0,(function(){return n(this,(function(t){return[2,this.send(i,c.Alias,"alias")]}))}))},i.prototype.group=function(i){return t(this,void 0,void 0,(function(){return n(this,(function(t){return[2,this.send(i,c.Group,"group")]}))}))},i.prototype.scheduleFlush=function(){var i=this;this.flushing||setTimeout((function(){return t(i,void 0,void 0,(function(){var t;return n(this,(function(n){switch(n.label){case 0:return this.flushing=!0,t=this,[4,z(this,this.buffer)];case 1:return t.buffer=n.sent(),this.flushing=!1,this.buffer.todo>0&&this.scheduleFlush(),[2]}}))}))}),5e3*Math.random())},i}();function j(t,n,i,e,r,o){var a,u;if(void 0===i&&(i={}),void 0===e&&(e={}),d())return[];n.plan&&((e=null!=e?e:{}).plan=n.plan);var c=null!==(u=null===(a=n.middlewareSettings)||void 0===a?void 0:a.routingRules)&&void 0!==u?u:[],l=n.integrations,p=e.integrations,g=h(n,null!=e?e:{}),m=null==o?void 0:o.reduce((function(t,n){var i;return s(s({},t),((i={})[function(t){return("Integration"in t?t.Integration:t).prototype.name}(n)]=n,i))}),{}),y=new Set(f(f([],Object.keys(l).filter((function(t){return function(t,n){var i,e=n.type,r=n.bundlingStatus,o=n.versionSettings,s="unbundled"!==r&&("browser"===e||(null===(i=null==o?void 0:o.componentTypes)||void 0===i?void 0:i.includes("browser")));return!t.startsWith("Segment")&&"Iterable"!==t&&s}(t,l[t])})),!0),Object.keys(m||{}).filter((function(t){return v(l[t])||v(null==p?void 0:p[t])})),!0));return Array.from(y).filter((function(t){return!function(t,n){var i=!1===n.All&&void 0===n[t];return!1===n[t]||i}(t,i)})).map((function(n){var i=function(t){var n,i,e,r;return null!==(r=null!==(i=null===(n=null==t?void 0:t.versionSettings)||void 0===n?void 0:n.override)&&void 0!==i?i:null===(e=null==t?void 0:t.versionSettings)||void 0===e?void 0:e.version)&&void 0!==r?r:"latest"}(l[n]),o=new I(n,i,t,g[n],e,null==m?void 0:m[n]);return c.filter((function(t){return t.destinationName===n})).length>0&&r&&o.addMiddleware(r),o}))}export{I as LegacyDestination,j as ajsDestinations};
1
+ import{z as t,E as n,A as i,B as e,S as r,D as o,G as s,I as a,J as u,X as c,K as l,L as d,M as h,N as f,H as v,O as p,Q as g,R as m,U as y,V as b}from"./index.esm2.js";import{l as w}from"./is-plan-event-enabled-d9660f36.esm.js";import"react/jsx-runtime";import"events";import"react";import"office-ui-fabric-react";import"react-router-dom";import"react-is";import"styled-components";import"react-dom";import"office-ui-fabric-core/dist/css/fabric.css";import"office-ui-fabric-react/lib/common/DirectionalHint";import"react-dom/server";function _(t){return t.toLowerCase().replace(".","").replace(/\s+/g,"-")}function z(t,n){return void 0===n&&(n=!1),n?btoa(t).replace(/=/g,""):void 0}function S(r,o,s,a){return t(this,void 0,void 0,(function(){var t,u,c,l,d,h;return n(this,(function(n){switch(n.label){case 0:t=_(o),u=z(t,a),c=e(),l="".concat(c,"/integrations/").concat(null!=u?u:t,"/").concat(s,"/").concat(null!=u?u:t,".dynamic.js.gz"),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,i(l)];case 2:return n.sent(),function(t,n,i){var e,r;try{var o=(null!==(r=null===(e=null==window?void 0:window.performance)||void 0===e?void 0:e.getEntriesByName(t,"resource"))&&void 0!==r?r:[])[0];o&&n.stats.gauge("legacy_destination_time",Math.round(o.duration),f([i],o.duration<100?["cached"]:[],!0))}catch(t){}}(l,r,o),[3,4];case 3:throw d=n.sent(),r.stats.gauge("legacy_destination_time",-1,["plugin:".concat(o),"failed"]),d;case 4:return h=window["".concat(t,"Deps")],[4,Promise.all(h.map((function(t){return i(c+t+".gz")})))];case 5:return n.sent(),window["".concat(t,"Loader")](),[2,window["".concat(t,"Integration")]]}}))}))}function k(i,e){return t(this,void 0,void 0,(function(){var r,s=this;return n(this,(function(a){switch(a.label){case 0:return r=[],o()?[2,e]:[4,l((function(){return e.length>0&&g()}),(function(){return t(s,void 0,void 0,(function(){var t,o;return n(this,(function(n){switch(n.label){case 0:return(t=e.pop())?[4,p(t,i)]:[2];case 1:return o=n.sent(),o instanceof b||r.push(t),[2]}}))}))}))];case 1:return a.sent(),r.map((function(t){return e.pushWithBackoff(t)})),[2,e]}}))}))}var I=function(){function i(t,n,i,e,r,o){void 0===e&&(e={}),this.options={},this.type="destination",this.middleware=[],this._ready=!1,this._initialized=!1,this.flushing=!1,this.name=t,this.version=n,this.settings=s({},e),this.disableAutoISOConversion=r.disableAutoISOConversion||!1,this.integrationSource=o,this.settings.type&&"browser"===this.settings.type&&delete this.settings.type,this.options=r,this.buffer=r.disableClientPersistence?new m(4,[]):new y(4,"".concat(i,":dest-").concat(t)),this.scheduleFlush()}return i.prototype.isLoaded=function(){return this._ready},i.prototype.ready=function(){var t;return null!==(t=this.onReady)&&void 0!==t?t:Promise.resolve()},i.prototype.load=function(i,e){var r;return t(this,void 0,void 0,(function(){var t,o,s=this;return n(this,(function(n){switch(n.label){case 0:return this._ready||void 0!==this.onReady?[2]:null!==(r=this.integrationSource)&&void 0!==r?(o=r,[3,3]):[3,1];case 1:return[4,S(i,this.name,this.version,this.options.obfuscate)];case 2:o=n.sent(),n.label=3;case 3:t=o,this.integration=function(t,n,i){var e;"Integration"in t?(t({user:function(){return i.user()},addIntegration:function(){}}),e=t.Integration):e=t;var r=new e(n);return r.analytics=i,r}(t,this.settings,e),this.onReady=new Promise((function(t){s.integration.once("ready",(function(){s._ready=!0,t(!0)}))})),this.onInitialize=new Promise((function(t){s.integration.on("initialize",(function(){s._initialized=!0,t(!0)}))}));try{i.stats.increment("analytics_js.integration.invoke",1,["method:initialize","integration_name:".concat(this.name)]),this.integration.initialize()}catch(t){throw i.stats.increment("analytics_js.integration.invoke.error",1,["method:initialize","integration_name:".concat(this.name)]),t}return[2]}}))}))},i.prototype.unload=function(i,o){return function(i,o,s){return t(this,void 0,void 0,(function(){var t,a,u,c;return n(this,(function(n){return t=e(),a=_(i),u=z(i,s),c="".concat(t,"/integrations/").concat(null!=u?u:a,"/").concat(o,"/").concat(null!=u?u:a,".dynamic.js.gz"),[2,r(c)]}))}))}(this.name,this.version,this.options.obfuscate)},i.prototype.addMiddleware=function(){for(var t,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];this.middleware=(t=this.middleware).concat.apply(t,n)},i.prototype.shouldBuffer=function(t){return"page"!==t.event.type&&(o()||!1===this._ready||!1===this._initialized)},i.prototype.send=function(i,e,r){var o,c;return t(this,void 0,void 0,(function(){var t,l,d,h,f,v;return n(this,(function(n){switch(n.label){case 0:if(this.shouldBuffer(i))return this.buffer.push(i),this.scheduleFlush(),[2,i];if(t=null===(c=null===(o=this.options)||void 0===o?void 0:o.plan)||void 0===c?void 0:c.track,l=i.event.event,t&&l&&"Segment.io"!==this.name){if(d=t[l],!w(t,d))return i.updateEvent("integrations",s(s({},i.event.integrations),{All:!1,"Segment.io":!0})),i.cancel(new a({retry:!1,reason:"Event ".concat(l," disabled for integration ").concat(this.name," in tracking plan"),type:"Dropped by plan"})),[2,i];if(i.updateEvent("integrations",s(s({},i.event.integrations),null==d?void 0:d.integrations)),null!=d&&d.enabled&&!1===(null==d?void 0:d.integrations[this.name]))return i.cancel(new a({retry:!1,reason:"Event ".concat(l," disabled for integration ").concat(this.name," in tracking plan"),type:"Dropped by plan"})),[2,i]}return[4,u(this.name,i.event,this.middleware)];case 1:if(null===(h=n.sent()))return[2,i];f=new e(h,{traverse:!this.disableAutoISOConversion}),i.stats.increment("analytics_js.integration.invoke",1,["method:".concat(r),"integration_name:".concat(this.name)]),n.label=2;case 2:return n.trys.push([2,5,,6]),this.integration?[4,this.integration.invoke.call(this.integration,r,f)]:[3,4];case 3:n.sent(),n.label=4;case 4:return[3,6];case 5:throw v=n.sent(),i.stats.increment("analytics_js.integration.invoke.error",1,["method:".concat(r),"integration_name:".concat(this.name)]),v;case 6:return[2,i]}}))}))},i.prototype.track=function(i){return t(this,void 0,void 0,(function(){return n(this,(function(t){return[2,this.send(i,c.Track,"track")]}))}))},i.prototype.page=function(i){var e;return t(this,void 0,void 0,(function(){var t=this;return n(this,(function(n){return!(null===(e=this.integration)||void 0===e)&&e._assumesPageview&&!this._initialized&&this.integration.initialize(),[2,this.onInitialize.then((function(){return t.send(i,c.Page,"page")}))]}))}))},i.prototype.identify=function(i){return t(this,void 0,void 0,(function(){return n(this,(function(t){return[2,this.send(i,c.Identify,"identify")]}))}))},i.prototype.alias=function(i){return t(this,void 0,void 0,(function(){return n(this,(function(t){return[2,this.send(i,c.Alias,"alias")]}))}))},i.prototype.group=function(i){return t(this,void 0,void 0,(function(){return n(this,(function(t){return[2,this.send(i,c.Group,"group")]}))}))},i.prototype.scheduleFlush=function(){var i=this;this.flushing||setTimeout((function(){return t(i,void 0,void 0,(function(){var t;return n(this,(function(n){switch(n.label){case 0:return this.flushing=!0,t=this,[4,k(this,this.buffer)];case 1:return t.buffer=n.sent(),this.flushing=!1,this.buffer.todo>0&&this.scheduleFlush(),[2]}}))}))}),5e3*Math.random())},i}();function j(t,n,i,e,r,o){var a,u;if(void 0===i&&(i={}),void 0===e&&(e={}),d())return[];n.plan&&((e=null!=e?e:{}).plan=n.plan);var c=null!==(u=null===(a=n.middlewareSettings)||void 0===a?void 0:a.routingRules)&&void 0!==u?u:[],l=n.integrations,p=e.integrations,g=h(n,null!=e?e:{}),m=null==o?void 0:o.reduce((function(t,n){var i;return s(s({},t),((i={})[function(t){return("Integration"in t?t.Integration:t).prototype.name}(n)]=n,i))}),{}),y=new Set(f(f([],Object.keys(l).filter((function(t){return function(t,n){var i,e=n.type,r=n.bundlingStatus,o=n.versionSettings,s="unbundled"!==r&&("browser"===e||(null===(i=null==o?void 0:o.componentTypes)||void 0===i?void 0:i.includes("browser")));return!t.startsWith("Segment")&&"Iterable"!==t&&s}(t,l[t])})),!0),Object.keys(m||{}).filter((function(t){return v(l[t])||v(null==p?void 0:p[t])})),!0));return Array.from(y).filter((function(t){return!function(t,n){var i=!1===n.All&&void 0===n[t];return!1===n[t]||i}(t,i)})).map((function(n){var i=function(t){var n,i,e,r;return null!==(r=null!==(i=null===(n=null==t?void 0:t.versionSettings)||void 0===n?void 0:n.override)&&void 0!==i?i:null===(e=null==t?void 0:t.versionSettings)||void 0===e?void 0:e.version)&&void 0!==r?r:"latest"}(l[n]),o=new I(n,i,t,g[n],e,null==m?void 0:m[n]);return c.filter((function(t){return t.destinationName===n})).length>0&&r&&o.addMiddleware(r),o}))}export{I as LegacyDestination,j as ajsDestinations};
package/index.d.ts CHANGED
@@ -76,6 +76,10 @@ interface PaginatedList<TItem> {
76
76
  hasNextPage?: boolean;
77
77
  }
78
78
 
79
+ interface Resources {
80
+ [language: string]: Record<string, string>;
81
+ }
82
+
79
83
  interface BasicUserInformation {
80
84
  displayName?: string;
81
85
  userPrincipalName?: string;
@@ -95,8 +99,120 @@ interface Account extends BasicUserInformation {
95
99
  tenantId?: string;
96
100
  }
97
101
 
98
- interface Resources {
99
- [language: string]: Record<string, string>;
102
+ interface UserChannelSubscription {
103
+ id: string;
104
+ name: string;
105
+ sendNotifications?: boolean;
106
+ isPinnedToNavigation?: boolean;
107
+ isMandatory?: boolean;
108
+ }
109
+
110
+ interface PublishableItemNotificationSummary {
111
+ itemId: string;
112
+ title?: string;
113
+ channelIds?: string[];
114
+ publishingDate?: string;
115
+ }
116
+ declare enum GroupRoleNames {
117
+ Admin = "Admin",
118
+ Editor = "Editor",
119
+ Author = "Author",
120
+ Reader = "Reader",
121
+ LimitedReader = "LimitedReader",
122
+ None = "None"
123
+ }
124
+ declare enum GroupRoles {
125
+ None = 0,
126
+ LimitedReader = 5,
127
+ Reader = 10,
128
+ Author = 20,
129
+ Editor = 30,
130
+ Admin = 40
131
+ }
132
+ declare enum NotificationType {
133
+ None = 0,
134
+ MobilePush = 1,
135
+ Email = 2,
136
+ Teams = 4,
137
+ BrowserPush = 8
138
+ }
139
+ interface NotificationTypeSettings {
140
+ news: NotificationType;
141
+ posts: NotificationType;
142
+ comments: NotificationType;
143
+ mentions: NotificationType;
144
+ events: NotificationType;
145
+ chat: NotificationType;
146
+ pluginNotifications: {
147
+ [key: string]: NotificationType;
148
+ };
149
+ newsEditor: NotificationType;
150
+ eventEditor: NotificationType;
151
+ }
152
+ interface CurrentUser extends Account {
153
+ isEmailVerificationPending?: boolean;
154
+ isSubscriptionOwner: boolean;
155
+ givenName: string;
156
+ surname: string;
157
+ preferredUiLanguage: string;
158
+ preferredContentLanguage?: string;
159
+ preferredLocale?: string;
160
+ bookmarks: string[];
161
+ groups: UserGroup[];
162
+ subscription: SubscriptionSummary;
163
+ availableSubscriptions: SubscriptionSummary[];
164
+ channels: UserChannelSubscription[];
165
+ userHash: string;
166
+ unreadNews: PublishableItemNotificationSummary[];
167
+ unreadEvents: PublishableItemNotificationSummary[];
168
+ unreadPosts: {
169
+ groupId: string;
170
+ itemId: string;
171
+ }[];
172
+ unreadFeedItemsCount?: number;
173
+ mostRecentPostGroups: string[];
174
+ notificationTypeSettings: NotificationTypeSettings;
175
+ hasPendingRegistration?: boolean;
176
+ minRoles: UserMinRoles;
177
+ hasDirectory: boolean;
178
+ contacts: UserContact[];
179
+ termsAndConditionsApprovedHash: string;
180
+ isPublicUser?: boolean;
181
+ hasUnreadChats?: boolean;
182
+ publicSubscriptionIds?: string[];
183
+ }
184
+ interface UserContact {
185
+ tokenUniqueId: string;
186
+ tenantId: string;
187
+ }
188
+ interface GroupBase {
189
+ id: string;
190
+ name: string;
191
+ translations?: {
192
+ [key: string]: string;
193
+ };
194
+ }
195
+ interface UserGroup extends GroupBase {
196
+ allowPosts: boolean;
197
+ disablePostComments: boolean;
198
+ availableChannelIds: string[];
199
+ defaultChannelIds: string[];
200
+ mandatoryChannelIds: string[];
201
+ availableKeywordIds: string[];
202
+ defaultKeywordIds: string[];
203
+ mandatoryKeywordIds: string[];
204
+ role: UserGroupRole;
205
+ }
206
+ interface UserMinRoles {
207
+ isEditor: boolean;
208
+ isAuthor: boolean;
209
+ isAdmin: boolean;
210
+ isReader: boolean;
211
+ isSubscriptionOwner: boolean;
212
+ }
213
+ interface UserGroupRole {
214
+ roleValue: GroupRoles;
215
+ displayName: GroupRoleNames;
100
216
  }
101
217
 
102
218
  interface LanguageBase {
@@ -296,122 +412,6 @@ declare enum FieldMode {
296
412
  Hidden = 3
297
413
  }
298
414
 
299
- interface UserChannelSubscription {
300
- id: string;
301
- name: string;
302
- sendNotifications?: boolean;
303
- isPinnedToNavigation?: boolean;
304
- isMandatory?: boolean;
305
- }
306
-
307
- interface PublishableItemNotificationSummary {
308
- itemId: string;
309
- title?: string;
310
- channelIds?: string[];
311
- publishingDate?: string;
312
- }
313
- declare enum GroupRoleNames {
314
- Admin = "Admin",
315
- Editor = "Editor",
316
- Author = "Author",
317
- Reader = "Reader",
318
- LimitedReader = "LimitedReader",
319
- None = "None"
320
- }
321
- declare enum GroupRoles {
322
- None = 0,
323
- LimitedReader = 5,
324
- Reader = 10,
325
- Author = 20,
326
- Editor = 30,
327
- Admin = 40
328
- }
329
- declare enum NotificationType {
330
- None = 0,
331
- MobilePush = 1,
332
- Email = 2,
333
- Teams = 4,
334
- BrowserPush = 8
335
- }
336
- interface NotificationTypeSettings {
337
- news: NotificationType;
338
- posts: NotificationType;
339
- comments: NotificationType;
340
- mentions: NotificationType;
341
- events: NotificationType;
342
- chat: NotificationType;
343
- pluginNotifications: {
344
- [key: string]: NotificationType;
345
- };
346
- newsEditor: NotificationType;
347
- eventEditor: NotificationType;
348
- }
349
- interface CurrentUser extends Account {
350
- isEmailVerificationPending?: boolean;
351
- isSubscriptionOwner: boolean;
352
- givenName: string;
353
- surname: string;
354
- preferredUiLanguage: string;
355
- preferredContentLanguage?: string;
356
- preferredLocale?: string;
357
- bookmarks: string[];
358
- groups: UserGroup[];
359
- subscription: SubscriptionSummary;
360
- availableSubscriptions: SubscriptionSummary[];
361
- channels: UserChannelSubscription[];
362
- userHash: string;
363
- unreadNews: PublishableItemNotificationSummary[];
364
- unreadEvents: PublishableItemNotificationSummary[];
365
- unreadPosts: {
366
- groupId: string;
367
- itemId: string;
368
- }[];
369
- unreadFeedItemsCount?: number;
370
- mostRecentPostGroups: string[];
371
- notificationTypeSettings: NotificationTypeSettings;
372
- hasPendingRegistration?: boolean;
373
- minRoles: UserMinRoles;
374
- hasDirectory: boolean;
375
- contacts: UserContact[];
376
- termsAndConditionsApprovedHash: string;
377
- isPublicUser?: boolean;
378
- hasUnreadChats?: boolean;
379
- publicSubscriptionIds?: string[];
380
- }
381
- interface UserContact {
382
- tokenUniqueId: string;
383
- tenantId: string;
384
- }
385
- interface GroupBase {
386
- id: string;
387
- name: string;
388
- translations?: {
389
- [key: string]: string;
390
- };
391
- }
392
- interface UserGroup extends GroupBase {
393
- allowPosts: boolean;
394
- disablePostComments: boolean;
395
- availableChannelIds: string[];
396
- defaultChannelIds: string[];
397
- mandatoryChannelIds: string[];
398
- availableKeywordIds: string[];
399
- defaultKeywordIds: string[];
400
- mandatoryKeywordIds: string[];
401
- role: UserGroupRole;
402
- }
403
- interface UserMinRoles {
404
- isEditor: boolean;
405
- isAuthor: boolean;
406
- isAdmin: boolean;
407
- isReader: boolean;
408
- isSubscriptionOwner: boolean;
409
- }
410
- interface UserGroupRole {
411
- roleValue: GroupRoles;
412
- displayName: GroupRoleNames;
413
- }
414
-
415
415
  interface ItemStatistics {
416
416
  commentCount?: number;
417
417
  likeCount?: number;
@@ -454,6 +454,7 @@ interface NewsItem extends SchedulableItem {
454
454
  expiryDate?: string;
455
455
  knownState: KnownNewsState;
456
456
  hasNewComments?: boolean;
457
+ isLiked?: boolean;
457
458
  }
458
459
  interface NewsItemAlertOptions {
459
460
  duration?: string;
@@ -473,19 +474,6 @@ interface BaseItem {
473
474
  id?: string;
474
475
  statistics?: ItemStatistics;
475
476
  poll?: Poll;
476
- searchHighlights?: SearchHighlightSummary;
477
- }
478
- interface SearchHighlightSummary {
479
- title: SearchHighlight[];
480
- content: SearchHighlight[];
481
- }
482
- interface SearchHighlight {
483
- language: string;
484
- texts: {
485
- value: string;
486
- type: 'text' | 'hit';
487
- }[];
488
- score: number;
489
477
  }
490
478
  interface Poll {
491
479
  questions: PollQuestion[];
@@ -520,6 +508,7 @@ interface PublishableItemContent extends ContentDefinition {
520
508
  headline?: string;
521
509
  intro?: string;
522
510
  body?: string;
511
+ bodyRaw?: string;
523
512
  customProperties?: {
524
513
  [key: string]: any;
525
514
  };
@@ -584,7 +573,6 @@ interface PublishableItem extends BaseItem {
584
573
  statistics?: ItemStatistics;
585
574
  useExternalContent?: boolean;
586
575
  isDemoContent?: boolean;
587
- isLiked?: boolean;
588
576
  }
589
577
  interface PollTranslation {
590
578
  questions: QuestionTranslations[];
@@ -650,7 +638,6 @@ interface Comment extends ItemWithAttachments {
650
638
  id: string;
651
639
  parentItemId: string;
652
640
  content: string;
653
- formattedContent?: string;
654
641
  contentLanguageCode?: string;
655
642
  receivedDateTime: string;
656
643
  sender: Account;
@@ -878,7 +865,7 @@ interface PostDetailProps {
878
865
  }
879
866
  declare const PostDetail: FC<PostDetailProps>;
880
867
 
881
- declare const LegacyDialog: FC<IDialogProps>;
868
+ declare const Dialog: FC<IDialogProps>;
882
869
 
883
870
  interface ToolbarProps {
884
871
  leftSide?: ReactNode;
@@ -1667,4 +1654,4 @@ declare const ToolbarBookmarkButton: FC<{
1667
1654
  onClick?: () => unknown;
1668
1655
  }>;
1669
1656
 
1670
- export { AuthorFilter, AuthorToolbarFilter, Avatar, Props as AvatarProps, ChannelFilter, ChannelFilterProps, ChannelSelectorWrapper as ChannelSelector, ChannelSelectorWrapperProps as ChannelSelectorProps, ChannelToolbarFilter, ClearAllFiltersButton, ClearAllFiltersButtonProps, ContactToolbarFilter, EditorToolbarIndicators, EditorToolbarIndicatorsProps, ErrorType, ErrorWrapper, ErrorWrapperProps, EventDatesToolbarFilter, EventDatesToolbarFilterProps, EventDetail, EventDetailPreview, EventDetailProps, EventEditor, EventEditorContextProvider, EventEditorContextProviderProps, EventEditorPanel, EventEditorPanelProps, EventEditorProps, EventEditorToolbarRecurringControls, EventEditorToolbarRecurringControlsProps, EventEditorToolbarStateActions, EventGridProps, EventItemContextProvider, EventItemPreviewContextProvider, EventStreamItem, EventView, EventsEditorDashboard, EventsEditorDashboardProps, EventsGrid, EventsList, EventsListProps, FilterProps, FilterSearch, FilterWithLogicalOperator, GroupNotificationsSettings, GroupNotificationsSettingsProps, HeroPagingType, ItemLayoutMode, ItemLoader, ItemResourceTypes, Keyword, ScrollableKeywordPicker as KeywordPicker, KeywordPickerProps, KeywordsFilter, KeywordsToolbarFilter, LibNewsFilterDefinition, LogicalOperator, ManageChannels, ManageChannelsProps, NewsDetail, NewsDetailPreview, NewsDetailProps, NewsEditor, NewsEditorContextProvider, NewsEditorContextProviderProps, NewsEditorDashboard, NewsEditorDashboardProps, NewsEditorPanel, NewsEditorPanelProps, NewsEditorProps, NewsEditorToolbarStateActions, NewsGrid, NewsGridProps, NewsHero, NewsHeroProps, NewsItemContextProvider, NewsItemPreviewContextProvider, NewsList, NewsListProps, NewsStreamItem, PageDetail, PageDetailPreview, PageDetailProps, PageEditor, PageEditorContextProvider, PageEditorContextProviderProps, PageEditorPanel, PageEditorPanelProps, PageEditorProps, PageEditorToolbarStateActions, PageItemContextProvider, PageItemPreviewContextProvider, PageStreamItem, PageType, PageViewTrackerSettings, PageViewTrackerSettingsContextProvider, PagesGrid, PagesGridProps, PagesList, PagesListProps, PostDetail, PostDetailProps, PostGroupSelector, PostGroupSelectorButton, PostGroupSelectorProps, PostGroupsPicker, PostGroupsPickerProps, PostInputBox, PostInputBoxProps, PostList, PostListContextProvider, PostListContextProviderProps, PostListProps, PostStreamItem, PublishableItem, PublishingDateFilter, PublishingDateToolbarFilter, ReachContextProps, ReachContextProvider, LegacyDialog as ReachDialog, SharedItemDetailPreviewProps, TargetLinkOverrideContextProvider, Toolbar, ToolbarBookmarkButton, ToolbarChannelSelector, ToolbarChannelSelectorOption, ToolbarChannelSelectorProps, ToolbarCloseButton, ToolbarCloseButtonProps, ToolbarEventViewSelector, ToolbarEventViewSelectorProps, ToolbarFilterModal, ToolbarFilterModalButton, ToolbarFilterModalProps, ToolbarFilterPanel, ToolbarFilterSearch, ToolbarFilterToggleButton, ToolbarIconButton, ToolbarIconButtonProps, ToolbarLanguageSelector, ToolbarManageButton, ToolbarManageItemButton, ToolbarManageNewsItemButton, ToolbarMarkAllEventsAsReadButton, ToolbarMarkAllNewsAsReadButton, ToolbarMarkEventsItemsAsReadButtonProps, ToolbarMarkNewsItemsAsReadButtonProps, ToolbarLanguageSelector as ToolbarNewsLanguageSelector, ToolbarPostNotificationButton, ToolbarProps, ToolbarSearchProps, ToolbarUnreadItemsButton, UserDetails, UserDetailsProps, VerticalFilterPanel, VerticalFilterPanelProps, VideoSource$1 as VideoSource, isFilterActive, useCurrentUser, useEventsStreamDataLoader, useLazySubscriptionContext, useNewsStreamDataLoader, usePagesStreamDataLoader, usePostsStreamDataLoader };
1657
+ export { AuthorFilter, AuthorToolbarFilter, Avatar, Props as AvatarProps, ChannelFilter, ChannelFilterProps, ChannelSelectorWrapper as ChannelSelector, ChannelSelectorWrapperProps as ChannelSelectorProps, ChannelToolbarFilter, ClearAllFiltersButton, ClearAllFiltersButtonProps, ContactToolbarFilter, EditorToolbarIndicators, EditorToolbarIndicatorsProps, ErrorType, ErrorWrapper, ErrorWrapperProps, EventDatesToolbarFilter, EventDatesToolbarFilterProps, EventDetail, EventDetailPreview, EventDetailProps, EventEditor, EventEditorContextProvider, EventEditorContextProviderProps, EventEditorPanel, EventEditorPanelProps, EventEditorProps, EventEditorToolbarRecurringControls, EventEditorToolbarRecurringControlsProps, EventEditorToolbarStateActions, EventGridProps, EventItemContextProvider, EventItemPreviewContextProvider, EventStreamItem, EventView, EventsEditorDashboard, EventsEditorDashboardProps, EventsGrid, EventsList, EventsListProps, FilterProps, FilterSearch, FilterWithLogicalOperator, GroupNotificationsSettings, GroupNotificationsSettingsProps, HeroPagingType, ItemLayoutMode, ItemLoader, ItemResourceTypes, Keyword, ScrollableKeywordPicker as KeywordPicker, KeywordPickerProps, KeywordsFilter, KeywordsToolbarFilter, LibNewsFilterDefinition, LogicalOperator, ManageChannels, ManageChannelsProps, NewsDetail, NewsDetailPreview, NewsDetailProps, NewsEditor, NewsEditorContextProvider, NewsEditorContextProviderProps, NewsEditorDashboard, NewsEditorDashboardProps, NewsEditorPanel, NewsEditorPanelProps, NewsEditorProps, NewsEditorToolbarStateActions, NewsGrid, NewsGridProps, NewsHero, NewsHeroProps, NewsItemContextProvider, NewsItemPreviewContextProvider, NewsList, NewsListProps, NewsStreamItem, PageDetail, PageDetailPreview, PageDetailProps, PageEditor, PageEditorContextProvider, PageEditorContextProviderProps, PageEditorPanel, PageEditorPanelProps, PageEditorProps, PageEditorToolbarStateActions, PageItemContextProvider, PageItemPreviewContextProvider, PageStreamItem, PageType, PageViewTrackerSettings, PageViewTrackerSettingsContextProvider, PagesGrid, PagesGridProps, PagesList, PagesListProps, PostDetail, PostDetailProps, PostGroupSelector, PostGroupSelectorButton, PostGroupSelectorProps, PostGroupsPicker, PostGroupsPickerProps, PostInputBox, PostInputBoxProps, PostList, PostListContextProvider, PostListContextProviderProps, PostListProps, PostStreamItem, PublishableItem, PublishingDateFilter, PublishingDateToolbarFilter, ReachContextProps, ReachContextProvider, Dialog as ReachDialog, SharedItemDetailPreviewProps, TargetLinkOverrideContextProvider, Toolbar, ToolbarBookmarkButton, ToolbarChannelSelector, ToolbarChannelSelectorOption, ToolbarChannelSelectorProps, ToolbarCloseButton, ToolbarCloseButtonProps, ToolbarEventViewSelector, ToolbarEventViewSelectorProps, ToolbarFilterModal, ToolbarFilterModalButton, ToolbarFilterModalProps, ToolbarFilterPanel, ToolbarFilterSearch, ToolbarFilterToggleButton, ToolbarIconButton, ToolbarIconButtonProps, ToolbarLanguageSelector, ToolbarManageButton, ToolbarManageItemButton, ToolbarManageNewsItemButton, ToolbarMarkAllEventsAsReadButton, ToolbarMarkAllNewsAsReadButton, ToolbarMarkEventsItemsAsReadButtonProps, ToolbarMarkNewsItemsAsReadButtonProps, ToolbarLanguageSelector as ToolbarNewsLanguageSelector, ToolbarPostNotificationButton, ToolbarProps, ToolbarSearchProps, ToolbarUnreadItemsButton, UserDetails, UserDetailsProps, VerticalFilterPanel, VerticalFilterPanelProps, VideoSource$1 as VideoSource, isFilterActive, useCurrentUser, useEventsStreamDataLoader, useLazySubscriptionContext, useNewsStreamDataLoader, usePagesStreamDataLoader, usePostsStreamDataLoader };
package/index.esm.js CHANGED
@@ -1 +1 @@
1
- export{b3 as AuthorFilter,b2 as AuthorToolbarFilter,au as Avatar,aX as ChannelFilter,b8 as ChannelSelector,aY as ChannelToolbarFilter,a$ as ClearAllFiltersButton,bs as ContactToolbarFilter,bg as EditorToolbarIndicators,bI as ErrorType,bH as ErrorWrapper,bt as EventDatesToolbarFilter,aj as EventDetail,aP as EventDetailPreview,by as EventEditor,bz as EventEditorContextProvider,bA as EventEditorPanel,bC as EventEditorToolbarRecurringControls,bB as EventEditorToolbarStateActions,aI as EventItemContextProvider,aS as EventItemPreviewContextProvider,b7 as EventView,ax as EventsEditorDashboard,ao as EventsGrid,ap as EventsList,b4 as FilterSearch,bn as GroupNotificationsSettings,bN as HeroPagingType,am as ItemLayoutMode,bd as ItemResourceTypes,be as KeywordPicker,b0 as KeywordsFilter,b1 as KeywordsToolbarFilter,bu as LogicalOperator,aq as ManageChannels,ah as NewsDetail,aN as NewsDetailPreview,b9 as NewsEditor,ba as NewsEditorContextProvider,aw as NewsEditorDashboard,bi as NewsEditorPanel,bh as NewsEditorToolbarStateActions,an as NewsGrid,av as NewsHero,aG as NewsItemContextProvider,aQ as NewsItemPreviewContextProvider,al as NewsList,ai as PageDetail,aO as PageDetailPreview,bE as PageEditor,bD as PageEditorContextProvider,bG as PageEditorPanel,bF as PageEditorToolbarStateActions,aH as PageItemContextProvider,aR as PageItemPreviewContextProvider,bx as PageType,bb as PageViewTrackerSettingsContextProvider,bv as PagesGrid,bw as PagesList,ak as PostDetail,bm as PostGroupSelector,bp as PostGroupSelectorButton,bl as PostGroupsPicker,bj as PostInputBox,bk as PostList,ag as PostListContextProvider,a_ as PublishingDateFilter,aZ as PublishingDateToolbarFilter,af as ReachContextProvider,bf as ReachDialog,bc as TargetLinkOverrideContextProvider,ay as Toolbar,aB as ToolbarBookmarkButton,aC as ToolbarChannelSelector,aF as ToolbarCloseButton,b6 as ToolbarEventViewSelector,aU as ToolbarFilterModal,aV as ToolbarFilterModalButton,aT as ToolbarFilterPanel,b5 as ToolbarFilterSearch,bq as ToolbarFilterToggleButton,az as ToolbarIconButton,aJ as ToolbarLanguageSelector,aK as ToolbarManageButton,aM as ToolbarManageItemButton,aL as ToolbarManageNewsItemButton,aD as ToolbarMarkAllEventsAsReadButton,aE as ToolbarMarkAllNewsAsReadButton,aJ as ToolbarNewsLanguageSelector,bo as ToolbarPostNotificationButton,aA as ToolbarUnreadItemsButton,at as UserDetails,aW as VerticalFilterPanel,br as isFilterActive,ar as useCurrentUser,bL as useEventsStreamDataLoader,as as useLazySubscriptionContext,bM as useNewsStreamDataLoader,bJ as usePagesStreamDataLoader,bK as usePostsStreamDataLoader}from"./index.esm2.js";import"react/jsx-runtime";import"events";import"react";import"office-ui-fabric-react";import"react-router-dom";import"react-is";import"styled-components";import"react-dom";import"office-ui-fabric-core/dist/css/fabric.css";import"office-ui-fabric-react/lib/common/DirectionalHint";import"react-dom/server";
1
+ export{aN as AuthorFilter,aM as AuthorToolbarFilter,ac as Avatar,aF as ChannelFilter,aS as ChannelSelector,aG as ChannelToolbarFilter,aJ as ClearAllFiltersButton,ba as ContactToolbarFilter,b0 as EditorToolbarIndicators,bq as ErrorType,bp as ErrorWrapper,bb as EventDatesToolbarFilter,a1 as EventDetail,ax as EventDetailPreview,bg as EventEditor,bh as EventEditorContextProvider,bi as EventEditorPanel,bk as EventEditorToolbarRecurringControls,bj as EventEditorToolbarStateActions,aq as EventItemContextProvider,aA as EventItemPreviewContextProvider,aR as EventView,af as EventsEditorDashboard,a6 as EventsGrid,a7 as EventsList,aO as FilterSearch,b5 as GroupNotificationsSettings,bv as HeroPagingType,a4 as ItemLayoutMode,aX as ItemResourceTypes,a_ as KeywordPicker,aK as KeywordsFilter,aL as KeywordsToolbarFilter,bc as LogicalOperator,a8 as ManageChannels,$ as NewsDetail,av as NewsDetailPreview,aT as NewsEditor,aU as NewsEditorContextProvider,ae as NewsEditorDashboard,aZ as NewsEditorPanel,aY as NewsEditorToolbarStateActions,a5 as NewsGrid,ad as NewsHero,ao as NewsItemContextProvider,ay as NewsItemPreviewContextProvider,a3 as NewsList,a0 as PageDetail,aw as PageDetailPreview,bm as PageEditor,bl as PageEditorContextProvider,bo as PageEditorPanel,bn as PageEditorToolbarStateActions,ap as PageItemContextProvider,az as PageItemPreviewContextProvider,bf as PageType,aV as PageViewTrackerSettingsContextProvider,bd as PagesGrid,be as PagesList,a2 as PostDetail,b4 as PostGroupSelector,b7 as PostGroupSelectorButton,b3 as PostGroupsPicker,b1 as PostInputBox,b2 as PostList,Z as PostListContextProvider,aI as PublishingDateFilter,aH as PublishingDateToolbarFilter,Y as ReachContextProvider,a$ as ReachDialog,aW as TargetLinkOverrideContextProvider,ag as Toolbar,aj as ToolbarBookmarkButton,ak as ToolbarChannelSelector,an as ToolbarCloseButton,aQ as ToolbarEventViewSelector,aC as ToolbarFilterModal,aD as ToolbarFilterModalButton,aB as ToolbarFilterPanel,aP as ToolbarFilterSearch,b8 as ToolbarFilterToggleButton,ah as ToolbarIconButton,ar as ToolbarLanguageSelector,as as ToolbarManageButton,au as ToolbarManageItemButton,at as ToolbarManageNewsItemButton,al as ToolbarMarkAllEventsAsReadButton,am as ToolbarMarkAllNewsAsReadButton,ar as ToolbarNewsLanguageSelector,b6 as ToolbarPostNotificationButton,ai as ToolbarUnreadItemsButton,ab as UserDetails,aE as VerticalFilterPanel,b9 as isFilterActive,a9 as useCurrentUser,bt as useEventsStreamDataLoader,aa as useLazySubscriptionContext,bu as useNewsStreamDataLoader,br as usePagesStreamDataLoader,bs as usePostsStreamDataLoader}from"./index.esm2.js";import"react/jsx-runtime";import"events";import"react";import"office-ui-fabric-react";import"react-router-dom";import"react-is";import"styled-components";import"react-dom";import"office-ui-fabric-core/dist/css/fabric.css";import"office-ui-fabric-react/lib/common/DirectionalHint";import"react-dom/server";