Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

aprila-wizard

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aprila-wizard - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

2

dist/index.js

@@ -28,4 +28,4 @@ parcelRequire=function(e,r,t,n){var i,o="function"==typeof parcelRequire&&parcelRequire,u="function"==typeof require&&require;function f(t,n){if(!r[t]){if(!e[t]){var i="function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if(u&&"string"==typeof t)return u(t);var c=new Error("Cannot find module '"+t+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[t][1][r]||r},p.cache={};var l=r[t]=new f.Module(t);e[t][0].call(l.exports,p,l,l.exports,this)}return r[t].exports;function p(e){return f(p.resolve(e))}}f.isParcelRequire=!0,f.Module=function(e){this.id=e,this.bundle=f,this.exports={}},f.modules=e,f.cache=r,f.parent=o,f.register=function(r,t){e[r]=[function(e,r){r.exports=t},{}]};for(var c=0;c<t.length;c++)try{f(t[c])}catch(e){i||(i=e)}if(t.length){var l=f(t[t.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=l:"function"==typeof define&&define.amd?define(function(){return l}):n&&(this[n]=l)}if(parcelRequire=f,i)throw i;return f}({"uWh2":[function(require,module,exports) {

},{"./blocks.js":"X1ux"}],"Focm":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=d;var e=require("lit-html"),t=require("./utils.js");function r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){a(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i={};function o(e){return e.reduce(function(e,t){return"page"===t.type?n({},e,a({},t.id,!1)):e},{})}function c(e){var r=e.schema,a=e.initialState,c={el:e.el,schema:r,confirmedPages:o(r),validations:(0,t.schemaToFlatValidations)(r),currentPage:"/"===t.router.currentPath()?r[0].path:t.router.currentPath(),hadReachedSummary:!1,currentPageIsValidated:!1,state:n({},(0,t.schemaToFlatState)(r),{},a)};i=new t.ObservedObject(c)}function u(){window.addEventListener("rerender",function(){var r=(0,t.renderBlocks)({blocks:i.schema,store:i});(0,e.render)(r,document.querySelector(i.el))}),window.addEventListener("routechange",function(e){i.currentPage=e.detail,t.router.goTo(e.detail),(0,t.reRender)()}),window.addEventListener("checkpagevalidation",function(){var e=i.schema.find(function(e){return e.path===i.currentPage}),r=(0,t.getVisibleBlocks)(e,i),n=(0,t.validateBlocks)(r,i);i.currentPageIsValidated!==n&&(i.currentPageIsValidated=n)}),window.addEventListener("popstate",function(){(0,t.routeChange)(t.router.currentPath())},!1)}function d(e){var r=e.initialState,n=void 0===r?{}:r,a=e.schema,i=void 0===a?{}:a,o=e.el;c({schema:i,initialState:n,el:void 0===o?"#app":o}),u(),(0,t.checkPageValidation)(),(0,t.reRender)()}
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=s;var e=require("lit-html"),t=require("./utils.js");function r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){a(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i={};function o(e){return e.reduce(function(e,t){return"page"===t.type?n({},e,a({},t.id,!1)):e},{})}function c(e){var r=e.schema,a=e.initialState,c=e.el,u=(e.useRouter,{el:c,schema:r,confirmedPages:o(r),validations:(0,t.schemaToFlatValidations)(r),currentPage:r[0].path,hadReachedSummary:!1,currentPageIsValidated:!1,state:n({},(0,t.schemaToFlatState)(r),{},a)});i=new t.ObservedObject(u)}function u(r){var n=r.useRouter;window.addEventListener("rerender",function(){var r=(0,t.renderBlocks)({blocks:i.schema,store:i});(0,e.render)(r,document.querySelector(i.el))}),window.addEventListener("routechange",function(e){i.currentPage=e.detail,n&&t.router.goTo(e.detail),(0,t.reRender)()}),window.addEventListener("checkpagevalidation",function(){var e=i.schema.find(function(e){return e.path===i.currentPage}),r=(0,t.getVisibleBlocks)(e,i),n=(0,t.validateBlocks)(r,i);i.currentPageIsValidated!==n&&(i.currentPageIsValidated=n)}),window.addEventListener("popstate",function(){(0,t.routeChange)(t.router.currentPath())},!1)}function s(e){var r=e.initialState,n=void 0===r?{}:r,a=e.schema,i=void 0===a?{}:a,o=e.el,s=void 0===o?"#app":o,d=e.useRouter,l=void 0!==d&&d;c({schema:i,initialState:n,el:s,useRouter:l}),u({useRouter:l}),(0,t.checkPageValidation)(),(0,t.reRender)()}
},{"lit-html":"SPDu","./utils.js":"FOZT"}]},{},["Focm"], "AbWizard")
//# sourceMappingURL=/index.js.map
{
"name": "aprila-wizard",
"version": "0.0.4",
"version": "0.0.5",
"description": "",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc