diff --git a/internal/cli/data/branding/storybook/iframe.html b/internal/cli/data/branding/storybook/iframe.html index 22181d05d..517d0f27e 100644 --- a/internal/cli/data/branding/storybook/iframe.html +++ b/internal/cli/data/branding/storybook/iframe.html @@ -132,4 +132,4 @@ - window['FRAMEWORK_OPTIONS'] = {}; + window['FRAMEWORK_OPTIONS'] = {}; diff --git a/internal/cli/data/branding/storybook/main.3c3e278a.iframe.bundle.js b/internal/cli/data/branding/storybook/main.3c3e278a.iframe.bundle.js new file mode 100644 index 000000000..8356b75ee --- /dev/null +++ b/internal/cli/data/branding/storybook/main.3c3e278a.iframe.bundle.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{320:function(module,exports,__webpack_require__){__webpack_require__(321),__webpack_require__(476),__webpack_require__(477),__webpack_require__(690),__webpack_require__(691),module.exports=__webpack_require__(632)},388:function(module,exports){},477:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);__webpack_require__(246)},632:function(module,exports,__webpack_require__){"use strict";(function(module){(0,__webpack_require__(246).configure)([__webpack_require__(633),__webpack_require__(634)],module,!1)}).call(this,__webpack_require__(194)(module))},633:function(module,exports){function webpackEmptyContext(req){var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}webpackEmptyContext.keys=function(){return[]},webpackEmptyContext.resolve=webpackEmptyContext,module.exports=webpackEmptyContext,webpackEmptyContext.id=633},634:function(module,exports,__webpack_require__){var map={"./stories/ul.stories.js":635};function webpackContext(req){var id=webpackContextResolve(req);return __webpack_require__(id)}function webpackContextResolve(req){if(!__webpack_require__.o(map,req)){var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}return map[req]}webpackContext.keys=function webpackContextKeys(){return Object.keys(map)},webpackContext.resolve=webpackContextResolve,module.exports=webpackContext,webpackContext.id=634},635:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"prompts",(function(){return prompts}));__webpack_require__(78),__webpack_require__(60),__webpack_require__(35),__webpack_require__(28),__webpack_require__(636),__webpack_require__(29),__webpack_require__(80),__webpack_require__(21),__webpack_require__(128),__webpack_require__(637),__webpack_require__(134);function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise((function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(void 0)}))}}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}var Liquid=__webpack_require__(638).Liquid,axios=__webpack_require__(639),auth0Plugin=__webpack_require__(657).auth0Plugin,FakeFileSystem=__webpack_require__(658),headTemplate=__webpack_require__(659),widgets=__webpack_require__(660),clients=window.CLIENTS,applicationOptions=clients.map((function(client){return _defineProperty({},client.name,client.id)})).reduce((function(accum,value){return accum=Object.assign({},accum,value)}),{});applicationOptions=Object.keys(applicationOptions).sort().reduce((function(acc,key){return Object.assign({},acc,_defineProperty({},key,applicationOptions[key]))}),{}),__webpack_exports__.default={title:"Universal Login",argTypes:{Application:{control:{type:"select",options:applicationOptions}},PromptName:{control:{type:"select",options:{Login:"login","Login Id":"loginId","Login Password":"loginPassword","Login Email Verification":"loginEmailVerification",Signup:"signup","Signup Id":"signupId","Signup Password":"signupPassword","Reset Password":"resetPassword","Reset Password Email":"resetPasswordEmail","Reset Password Error":"resetPasswordError","Reset Password Request":"resetPasswordRequest","Reset Password Success":"resetPasswordSuccess",Consent:"consent","Email Otp Challenge":"emailOtpChallenge","Mfa Push Welcome":"mfa","Mfa Email Challenge":"mfaEmail","Mfa Otp Challenge":"mfaOtp","Mfa Phone Challenge":"mfaPhone","Mfa Push Challenge":"mfaPush","Mfa Recovery Code Challenge":"mfaRecoveryCode","Mfa Sms Challenge":"mfaSms","Mfa Voice Challenge":"mfaVoice","Device Code Activation":"deviceFlow","Device Code Activation Allowed":"deviceFlowAllowed","Device Code Confirmation":"deviceFlowConfirmation","Device Code Activation Denied":"deviceFlowDenied","Email Verification Result":"emailVerification",Organization:"organization",Invitation:"invitation"}}},PrimaryColor:{control:{type:"color",presetColors:["#7600d6","#F3F4F6"]}},PageBackgroundColor:{control:{type:"color",presetColors:["#F3F4F6","#7600d6"]}},LogoURL:{control:{type:"text"}}},loaders:[function(){var _ref3=_asyncToGenerator(regeneratorRuntime.mark((function _callee2(_ref2){var args;return regeneratorRuntime.wrap((function _callee2$(_context2){for(;;)switch(_context2.prev=_context2.next){case 0:return args=_ref2.args,_ref2.argTypes,_context2.next=3,new Promise(function(){var _ref4=_asyncToGenerator(regeneratorRuntime.mark((function _callee(resolve){var template,ffs,engine,tpl;return regeneratorRuntime.wrap((function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:return _context.next=2,axios.get("/dynamic/template");case 2:template=_context.sent,ffs=new FakeFileSystem,engine=new Liquid({extname:".liquid",dynamicPartials:!1,fs:ffs}),ffs.addFiles({head:headTemplate,widget:widgets[args.PromptName||"login"]}),engine.plugin(auth0Plugin),tpl=engine.parse(template.data),engine.render(tpl,{prompt:{name:args.PromptName||"login"},branding:{colors:{page_background:args.PageBackgroundColor,primary:args.PrimaryColor},logo_url:args.LogoURL},application:clients.find((function(client){return client.id===args.Application})),tenantName:window.TENANT_NAME}).then((function(result){console.log(result);var html='