@livetiles/reach-components-react 0.5.0-preview.875 → 0.5.0-preview.877

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
@@ -72,6 +72,10 @@ interface PaginatedList<TItem> {
72
72
  hasNextPage?: boolean;
73
73
  }
74
74
 
75
+ interface Resources {
76
+ [language: string]: Record<string, string>;
77
+ }
78
+
75
79
  interface BasicUserInformation {
76
80
  displayName?: string;
77
81
  userPrincipalName?: string;
@@ -91,8 +95,120 @@ interface Account extends BasicUserInformation {
91
95
  tenantId?: string;
92
96
  }
93
97
 
94
- interface Resources {
95
- [language: string]: Record<string, string>;
98
+ interface UserChannelSubscription {
99
+ id: string;
100
+ name: string;
101
+ sendNotifications?: boolean;
102
+ isPinnedToNavigation?: boolean;
103
+ isMandatory?: boolean;
104
+ }
105
+
106
+ interface PublishableItemNotificationSummary {
107
+ itemId: string;
108
+ title?: string;
109
+ channelIds?: string[];
110
+ publishingDate?: string;
111
+ }
112
+ declare enum GroupRoleNames {
113
+ Admin = "Admin",
114
+ Editor = "Editor",
115
+ Author = "Author",
116
+ Reader = "Reader",
117
+ LimitedReader = "LimitedReader",
118
+ None = "None"
119
+ }
120
+ declare enum GroupRoles {
121
+ None = 0,
122
+ LimitedReader = 5,
123
+ Reader = 10,
124
+ Author = 20,
125
+ Editor = 30,
126
+ Admin = 40
127
+ }
128
+ declare enum NotificationType {
129
+ None = 0,
130
+ MobilePush = 1,
131
+ Email = 2,
132
+ Teams = 4,
133
+ BrowserPush = 8
134
+ }
135
+ interface NotificationTypeSettings {
136
+ news: NotificationType;
137
+ posts: NotificationType;
138
+ comments: NotificationType;
139
+ mentions: NotificationType;
140
+ events: NotificationType;
141
+ chat: NotificationType;
142
+ pluginNotifications: {
143
+ [key: string]: NotificationType;
144
+ };
145
+ newsEditor: NotificationType;
146
+ eventEditor: NotificationType;
147
+ }
148
+ interface CurrentUser extends Account {
149
+ isEmailVerificationPending?: boolean;
150
+ isSubscriptionOwner: boolean;
151
+ givenName: string;
152
+ surname: string;
153
+ preferredUiLanguage: string;
154
+ preferredContentLanguage?: string;
155
+ preferredLocale?: string;
156
+ bookmarks: string[];
157
+ groups: UserGroup[];
158
+ subscription: SubscriptionSummary;
159
+ availableSubscriptions: SubscriptionSummary[];
160
+ channels: UserChannelSubscription[];
161
+ userHash: string;
162
+ unreadNews: PublishableItemNotificationSummary[];
163
+ unreadEvents: PublishableItemNotificationSummary[];
164
+ unreadPosts: {
165
+ groupId: string;
166
+ itemId: string;
167
+ }[];
168
+ unreadFeedItemsCount?: number;
169
+ mostRecentPostGroups: string[];
170
+ notificationTypeSettings: NotificationTypeSettings;
171
+ hasPendingRegistration?: boolean;
172
+ minRoles: UserMinRoles;
173
+ hasDirectory: boolean;
174
+ contacts: UserContact[];
175
+ termsAndConditionsApprovedHash: string;
176
+ isPublicUser?: boolean;
177
+ hasUnreadChats?: boolean;
178
+ publicSubscriptionIds?: string[];
179
+ }
180
+ interface UserContact {
181
+ tokenUniqueId: string;
182
+ tenantId: string;
183
+ }
184
+ interface GroupBase {
185
+ id: string;
186
+ name: string;
187
+ translations?: {
188
+ [key: string]: string;
189
+ };
190
+ }
191
+ interface UserGroup extends GroupBase {
192
+ allowPosts: boolean;
193
+ disablePostComments: boolean;
194
+ availableChannelIds: string[];
195
+ defaultChannelIds: string[];
196
+ mandatoryChannelIds: string[];
197
+ availableKeywordIds: string[];
198
+ defaultKeywordIds: string[];
199
+ mandatoryKeywordIds: string[];
200
+ role: UserGroupRole;
201
+ }
202
+ interface UserMinRoles {
203
+ isEditor: boolean;
204
+ isAuthor: boolean;
205
+ isAdmin: boolean;
206
+ isReader: boolean;
207
+ isSubscriptionOwner: boolean;
208
+ }
209
+ interface UserGroupRole {
210
+ roleValue: GroupRoles;
211
+ displayName: GroupRoleNames;
96
212
  }
97
213
 
98
214
  interface LanguageBase {
@@ -292,122 +408,6 @@ declare enum FieldMode {
292
408
  Hidden = 3
293
409
  }
294
410
 
295
- interface UserChannelSubscription {
296
- id: string;
297
- name: string;
298
- sendNotifications?: boolean;
299
- isPinnedToNavigation?: boolean;
300
- isMandatory?: boolean;
301
- }
302
-
303
- interface PublishableItemNotificationSummary {
304
- itemId: string;
305
- title?: string;
306
- channelIds?: string[];
307
- publishingDate?: string;
308
- }
309
- declare enum GroupRoleNames {
310
- Admin = "Admin",
311
- Editor = "Editor",
312
- Author = "Author",
313
- Reader = "Reader",
314
- LimitedReader = "LimitedReader",
315
- None = "None"
316
- }
317
- declare enum GroupRoles {
318
- None = 0,
319
- LimitedReader = 5,
320
- Reader = 10,
321
- Author = 20,
322
- Editor = 30,
323
- Admin = 40
324
- }
325
- declare enum NotificationType {
326
- None = 0,
327
- MobilePush = 1,
328
- Email = 2,
329
- Teams = 4,
330
- BrowserPush = 8
331
- }
332
- interface NotificationTypeSettings {
333
- news: NotificationType;
334
- posts: NotificationType;
335
- comments: NotificationType;
336
- mentions: NotificationType;
337
- events: NotificationType;
338
- chat: NotificationType;
339
- pluginNotifications: {
340
- [key: string]: NotificationType;
341
- };
342
- newsEditor: NotificationType;
343
- eventEditor: NotificationType;
344
- }
345
- interface CurrentUser extends Account {
346
- isEmailVerificationPending?: boolean;
347
- isSubscriptionOwner: boolean;
348
- givenName: string;
349
- surname: string;
350
- preferredUiLanguage: string;
351
- preferredContentLanguage?: string;
352
- preferredLocale?: string;
353
- bookmarks: string[];
354
- groups: UserGroup[];
355
- subscription: SubscriptionSummary;
356
- availableSubscriptions: SubscriptionSummary[];
357
- channels: UserChannelSubscription[];
358
- userHash: string;
359
- unreadNews: PublishableItemNotificationSummary[];
360
- unreadEvents: PublishableItemNotificationSummary[];
361
- unreadPosts: {
362
- groupId: string;
363
- itemId: string;
364
- }[];
365
- unreadFeedItemsCount?: number;
366
- mostRecentPostGroups: string[];
367
- notificationTypeSettings: NotificationTypeSettings;
368
- hasPendingRegistration?: boolean;
369
- minRoles: UserMinRoles;
370
- hasDirectory: boolean;
371
- contacts: UserContact[];
372
- termsAndConditionsApprovedHash: string;
373
- isPublicUser?: boolean;
374
- hasUnreadChats?: boolean;
375
- publicSubscriptionIds?: string[];
376
- }
377
- interface UserContact {
378
- tokenUniqueId: string;
379
- tenantId: string;
380
- }
381
- interface GroupBase {
382
- id: string;
383
- name: string;
384
- translations?: {
385
- [key: string]: string;
386
- };
387
- }
388
- interface UserGroup extends GroupBase {
389
- allowPosts: boolean;
390
- disablePostComments: boolean;
391
- availableChannelIds: string[];
392
- defaultChannelIds: string[];
393
- mandatoryChannelIds: string[];
394
- availableKeywordIds: string[];
395
- defaultKeywordIds: string[];
396
- mandatoryKeywordIds: string[];
397
- role: UserGroupRole;
398
- }
399
- interface UserMinRoles {
400
- isEditor: boolean;
401
- isAuthor: boolean;
402
- isAdmin: boolean;
403
- isReader: boolean;
404
- isSubscriptionOwner: boolean;
405
- }
406
- interface UserGroupRole {
407
- roleValue: GroupRoles;
408
- displayName: GroupRoleNames;
409
- }
410
-
411
411
  interface ItemStatistics {
412
412
  commentCount?: number;
413
413
  likeCount?: number;
@@ -450,6 +450,7 @@ interface NewsItem extends SchedulableItem {
450
450
  expiryDate?: string;
451
451
  knownState: KnownNewsState;
452
452
  hasNewComments?: boolean;
453
+ isLiked?: boolean;
453
454
  }
454
455
  interface NewsItemAlertOptions {
455
456
  duration?: string;
@@ -469,19 +470,6 @@ interface BaseItem {
469
470
  id?: string;
470
471
  statistics?: ItemStatistics;
471
472
  poll?: Poll;
472
- searchHighlights?: SearchHighlightSummary;
473
- }
474
- interface SearchHighlightSummary {
475
- title: SearchHighlight[];
476
- content: SearchHighlight[];
477
- }
478
- interface SearchHighlight {
479
- language: string;
480
- texts: {
481
- value: string;
482
- type: 'text' | 'hit';
483
- }[];
484
- score: number;
485
473
  }
486
474
  interface Poll {
487
475
  questions: PollQuestion[];
@@ -516,6 +504,7 @@ interface PublishableItemContent extends ContentDefinition {
516
504
  headline?: string;
517
505
  intro?: string;
518
506
  body?: string;
507
+ bodyRaw?: string;
519
508
  customProperties?: {
520
509
  [key: string]: any;
521
510
  };
@@ -580,7 +569,6 @@ interface PublishableItem extends BaseItem {
580
569
  statistics?: ItemStatistics;
581
570
  useExternalContent?: boolean;
582
571
  isDemoContent?: boolean;
583
- isLiked?: boolean;
584
572
  }
585
573
  interface PollTranslation {
586
574
  questions: QuestionTranslations[];
@@ -646,7 +634,6 @@ interface Comment extends ItemWithAttachments {
646
634
  id: string;
647
635
  parentItemId: string;
648
636
  content: string;
649
- formattedContent?: string;
650
637
  contentLanguageCode?: string;
651
638
  receivedDateTime: string;
652
639
  sender: Account;
@@ -874,7 +861,7 @@ interface PostDetailProps {
874
861
  }
875
862
  declare const PostDetail: FC<PostDetailProps>;
876
863
 
877
- declare const LegacyDialog: FC<IDialogProps>;
864
+ declare const Dialog: FC<IDialogProps>;
878
865
 
879
866
  interface ToolbarProps {
880
867
  leftSide?: ReactNode;
@@ -1318,8 +1305,8 @@ interface EventsListProps {
1318
1305
  declare const EventsList: FC<EventsListProps>;
1319
1306
 
1320
1307
  declare enum HeroPagingType {
1321
- page = 0,
1322
- item = 1
1308
+ page = "page",
1309
+ item = "item"
1323
1310
  }
1324
1311
 
1325
1312
  interface NewsHeroFilterProps {
@@ -1658,4 +1645,4 @@ declare const ToolbarBookmarkButton: FC<{
1658
1645
  onClick?: () => unknown;
1659
1646
  }>;
1660
1647
 
1661
- 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 };
1648
+ 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";