@clickview/lite 0.49.0-dev.1 → 0.49.0-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundles.json +1 -1
- package/dist/scripts/7017-77b57dfe34-lite.chunk.js +3 -0
- package/dist/scripts/7017-77b57dfe34-lite.chunk.js.LICENSE.txt +1 -0
- package/dist/scripts/7017-77b57dfe34-lite.chunk.js.map +1 -0
- package/dist/scripts/bundle-c5bea5f681.min.js +3 -0
- package/dist/scripts/bundle-c5bea5f681.min.js.LICENSE.txt +97 -0
- package/dist/scripts/bundle-c5bea5f681.min.js.map +1 -0
- package/package.json +1 -1
package/dist/bundles.json
CHANGED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! For license information please see 7017-77b57dfe34-lite.chunk.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[7017],{17017:(t,e,r)=>{r.r(e),r.d(e,{EmbedLoginSuccessView:()=>g});var n=r(32735),o=r(39202),i=r(20354),a=r(31949),c=r(51855),u=r(2786),s=r(83345),l=r(99742);const f={logo:"EtNtX"};var h="embed.embedLoginSuccess";function p(){return n.createElement("div",{className:"mt-5"},n.createElement("div",{className:"".concat(f.logo," mx-auto")},n.createElement(u.$S,null)),n.createElement("img",{className:"img-fluid mx-auto d-block mt-4",alt:"Success",src:l.W.SUCCESS,style:{maxWidth:"18rem"}}),n.createElement("p",{className:"text-center mb-4 mt-2"},n.createElement(s.x,{namespace:h,phrase:"success"})))}var y=r(84998);function v(t){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v(t)}function d(){d=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof w?e:w,a=Object.create(i.prototype),c=new F(n||[]);return o(a,"_invoke",{value:O(t,r,c)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var h="suspendedStart",p="suspendedYield",y="executing",m="completed",g={};function w(){}function b(){}function E(){}var x={};s(x,a,(function(){return this}));var L=Object.getPrototypeOf,k=L&&L(L(G([])));k&&k!==r&&n.call(k,a)&&(x=k);var S=E.prototype=w.prototype=Object.create(x);function _(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function N(t,e){function r(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==v(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=h;return function(i,a){if(o===y)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=j(c,n);if(u){if(u===g)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var s=f(e,r,n);if("normal"===s.type){if(o=n.done?m:p,s.arg===g)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function F(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function G(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(v(e)+" is not iterable")}return b.prototype=E,o(S,"constructor",{value:E,configurable:!0}),o(E,"constructor",{value:b,configurable:!0}),b.displayName=s(E,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,E):(t.__proto__=E,s(t,u,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},_(N.prototype),s(N.prototype,c,(function(){return this})),e.AsyncIterator=N,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new N(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},_(S),s(S,u,"Generator"),s(S,a,(function(){return this})),s(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=G,F.prototype={constructor:F,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:G(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}var m=function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function c(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,c)}u((n=n.apply(t,e||[])).next())}))};function g(t){var e=i.a.useBasicFetch(a.N.token());return n.useEffect((function(){var n,i;if(e.data){var a={type:y._.TOKEN,data:{embedToken:e.data}},u=JSON.stringify(a);if(t.consumerKey!==c.A.MicrosoftTeams)return null===(n=window.parent)||void 0===n||n.postMessage(u,"*"),null===(i=window.opener)||void 0===i||i.postMessage(u,"*"),window.setTimeout((function(){return window.close()}),1e3),void(t.popupCloseFallbackUrl&&window.setTimeout((function(){return o.Ab.PageLoad(t.popupCloseFallbackUrl)}),2e3));!function(){m(this,void 0,void 0,d().mark((function t(){var e;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,r.e(4777).then(r.t.bind(r,94777,23));case 3:return e=t.sent,t.next=6,e.app.initialize();case 6:e.authentication.notifySuccess(u);case 7:return t.prev=7,window.setTimeout((function(){return window.close()}),1e3),t.finish(7);case 10:case"end":return t.stop()}}),t,null,[[0,,7,10]])})))}()}}),[e.data]),n.createElement(p,null)}}}]);
|
|
3
|
+
//# sourceMappingURL=7017-77b57dfe34-lite.chunk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scripts/7017-77b57dfe34-lite.chunk.js","mappings":";0PACA,SAAgB,KAAO,SCQvB,IAAMA,EAAY,0BAEZ,SAAUC,IACd,OACE,uBAAKC,UAAU,QACb,uBAAKA,UAAS,UAAK,OAAW,aAC5B,gBAACC,EAAA,GAAa,OAGhB,uBACED,UAAU,iCACVE,IAAI,UACJC,IAAKC,EAAA,UACLC,MAAO,CAAEC,SAAU,WAGrB,qBAAGN,UAAU,yBACX,gBAACO,EAAA,EAAI,CAACT,UAAWA,EAAWU,OAAO,aAI3C,83NCZM,SAAUC,EAAsBC,GACpC,IAAMC,EAAQ,kBAAgCC,EAAA,WAuC9C,OArCA,aAAgB,mBACd,GAAKD,EAAME,KAAX,CAEA,IAAMC,EAAU,CACdC,KAAMC,EAAA,QACNH,KAAM,CAAEI,WAAYN,EAAME,OAEtBK,EAAOC,KAAKC,UAAUN,GAE5B,GAAIJ,EAAMW,cAAgB,mBAYxB,OAXa,QAAb,EAAAC,OAAOC,cAAM,SAAEC,YAAYN,EAAM,KACpB,QAAb,EAAAI,OAAOG,cAAM,SAAED,YAAYN,EAAM,KAEjCI,OAAOI,YAAW,kBAAMJ,OAAOK,OAAO,GAAE,UAKpCjB,EAAMkB,uBACRN,OAAOI,YAAW,kBAAM,cAAuBhB,EAAMkB,sBAAsB,GAAE,OAKjF,8HAE2B,yBAAM,qCAA6B,OAC1D,OADMC,EAAiB,EAAH,cACdA,EAAeC,IAAIC,aAAY,OACrCF,EAAeG,eAAeC,cAAcf,GAAM,OAEJ,OAFI,SAElDI,OAAOI,YAAW,kBAAMJ,OAAOK,OAAO,GAAE,KAAM,wEAEjD,CAEDO,EAjCuB,CAkCzB,GAAG,CAACvB,EAAME,OAEH,gBAACd,EAAY,KACtB","sources":["file://C:/ClickView Projects/clickview/packages/projects/lite/src/apps/embed/components/login-success/login-success.scss","file://C:/ClickView Projects/clickview/packages/projects/lite/src/apps/embed/components/login-success/LoginSuccess.tsx","file://C:/ClickView Projects/clickview/packages/projects/lite/src/apps/embed/views/embed-login-success/EmbedLoginSuccessView.tsx"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport default {\"logo\":\"EtNtX\"};","import React from 'react';\r\n\r\nimport { ClickViewLogo } from 'libs/shared/components/svgs/clickview-logo/ClickViewLogo';\r\nimport { Text } from 'libs/shared/components/text/Text';\r\n\r\nimport { ImageUrls } from 'shared/constants/ImageUrls';\r\n\r\nimport styles from './login-success.scss';\r\n\r\nconst namespace = 'embed.embedLoginSuccess';\r\n\r\nexport function LoginSuccess(): React.ReactElement {\r\n return (\r\n <div className='mt-5'>\r\n <div className={`${styles.logo} mx-auto`}>\r\n <ClickViewLogo />\r\n </div>\r\n\r\n <img\r\n className='img-fluid mx-auto d-block mt-4'\r\n alt='Success'\r\n src={ImageUrls.SUCCESS}\r\n style={{ maxWidth: '18rem' }} /* Half the @2x image size */\r\n />\r\n\r\n <p className='text-center mb-4 mt-2'>\r\n <Text namespace={namespace} phrase='success' />\r\n </p>\r\n </div>\r\n );\r\n}","import React from 'react';\r\n\r\nimport { LocationUtils } from 'libs/common/backbone/core';\r\nimport { Flight } from 'libs/common/react/index';\r\n\r\nimport { UserRequests } from 'libs/shared/flight-requests/UserRequests';\r\nimport { AuthToken } from 'libs/shared/interfaces/models/AuthToken';\r\n\r\nimport { PluginConsumers } from 'shared/hooks/use-plugin-helper/usePluginHelper';\r\n\r\nimport { LoginSuccess } from 'apps/embed/components/login-success/LoginSuccess';\r\nimport { PostMessageEvents } from 'apps/embed/utils/PostMessageEvents';\r\n\r\ninterface EmbedLoginSuccessProps {\r\n consumerKey: string;\r\n popupCloseFallbackUrl: string;\r\n}\r\n\r\nexport function EmbedLoginSuccessView(props: EmbedLoginSuccessProps): JSX.Element {\r\n const token = Flight.useBasicFetch<AuthToken>(UserRequests.token());\r\n\r\n React.useEffect(() => {\r\n if (!token.data) return;\r\n \r\n const message = {\r\n type: PostMessageEvents.TOKEN,\r\n data: { embedToken: token.data }\r\n };\r\n const json = JSON.stringify(message);\r\n \r\n if (props.consumerKey !== PluginConsumers.MicrosoftTeams) {\r\n window.parent?.postMessage(json, '*');\r\n window.opener?.postMessage(json, '*');\r\n\r\n window.setTimeout(() => window.close(), 1000);\r\n\r\n /**\r\n * If window.close() fails. Lets go to our video.\r\n */\r\n if (props.popupCloseFallbackUrl)\r\n window.setTimeout(() => LocationUtils.PageLoad(props.popupCloseFallbackUrl), 2000);\r\n\r\n return;\r\n }\r\n\r\n async function handleMsTeams() {\r\n try {\r\n const microsoftTeams = await import('@microsoft/teams-js');\r\n await microsoftTeams.app.initialize();\r\n microsoftTeams.authentication.notifySuccess(json);\r\n } finally {\r\n window.setTimeout(() => window.close(), 1000);\r\n }\r\n }\r\n \r\n handleMsTeams();\r\n }, [token.data]);\r\n\r\n return <LoginSuccess />;\r\n}"],"names":["namespace","LoginSuccess","className","ClickViewLogo","alt","src","ImageUrls","style","maxWidth","Text","phrase","EmbedLoginSuccessView","props","token","UserRequests","data","message","type","PostMessageEvents","embedToken","json","JSON","stringify","consumerKey","window","parent","postMessage","opener","setTimeout","close","popupCloseFallbackUrl","microsoftTeams","app","initialize","authentication","notifySuccess","handleMsTeams"],"sourceRoot":""}
|