From 6b05639f15a0acce93cc0ad815bb95ab30cf807d Mon Sep 17 00:00:00 2001 From: Jean Machuca Date: Sat, 6 May 2023 13:45:59 -0400 Subject: [PATCH] upgrade sdk --- package-lock.json | 66 +++++++++++++++++++++++------------------------ package.json | 2 +- src/QCObjects.js | 38 +++++++++++++++++++++------ 3 files changed, 64 insertions(+), 42 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0e940ad..0deb3e6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -30,7 +30,7 @@ "peerDependencies": { "@types/qcobjects": "github:QCObjects/-types-qcobjects", "@types/qcobjects-sdk": "github:QCObjects/-types-qcobjects-sdk", - "qcobjects-sdk": "^2.4.38" + "qcobjects-sdk": "^2.4.49" } }, "node_modules/@adobe/css-tools": { @@ -65,14 +65,14 @@ } }, "node_modules/@eslint/eslintrc": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.0.2.tgz", - "integrity": "sha512-3W4f5tDUra+pA+FzgugqL2pRimUTDJWKr7BINqOpkZrC0uYI0NIc0/JFgBROCU07HR6GieA5m3/rsPIhDmCXTQ==", + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.0.3.tgz", + "integrity": "sha512-+5gy6OQfk+xx3q0d6jGZZC3f3KzAkXc/IanVxd1is/VIIziRqqt3ongQz0FiTUXqTk0c7aDB3OaFuKnuSoJicQ==", "dev": true, "dependencies": { "ajv": "^6.12.4", "debug": "^4.3.2", - "espree": "^9.5.1", + "espree": "^9.5.2", "globals": "^13.19.0", "ignore": "^5.2.0", "import-fresh": "^3.2.1", @@ -88,9 +88,9 @@ } }, "node_modules/@eslint/js": { - "version": "8.39.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.39.0.tgz", - "integrity": "sha512-kf9RB0Fg7NZfap83B3QOqOGg9QmD9yBudqQXzzOtn3i4y7ZUXe5ONeW34Gwi+TxhH4mvj72R1Zc300KUMa9Bng==", + "version": "8.40.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.40.0.tgz", + "integrity": "sha512-ElyB54bJIhXQYVKjDSvCkPO1iU1tSAeVQJbllWJq1XQSmmA4dgFk8CbiBGpiOPxleE48vDogxCtmMYku4HSVLA==", "dev": true, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -177,9 +177,9 @@ "dev": true }, "node_modules/@types/node": { - "version": "18.16.3", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.16.3.tgz", - "integrity": "sha512-OPs5WnnT1xkCBiuQrZA4+YAV4HEJejmHneyraIaxsbev5yCEr6KMwINNFP9wQeFIw8FWcoTqF3vQsa5CDaI+8Q==", + "version": "18.16.5", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.16.5.tgz", + "integrity": "sha512-seOA34WMo9KB+UA78qaJoCO20RJzZGVXQ5Sh6FWu0g/hfT44nKXnej3/tCQl7FL97idFpBhisLYCTB50S0EirA==", "peer": true }, "node_modules/@types/qcobjects": { @@ -824,15 +824,15 @@ } }, "node_modules/eslint": { - "version": "8.39.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.39.0.tgz", - "integrity": "sha512-mwiok6cy7KTW7rBpo05k6+p4YVZByLNjAZ/ACB9DRCu4YDRwjXI01tWHp6KAUWelsBetTxKK/2sHB0vdS8Z2Og==", + "version": "8.40.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.40.0.tgz", + "integrity": "sha512-bvR+TsP9EHL3TqNtj9sCNJVAFK3fBN8Q7g5waghxyRsPLIMwL73XSKnZFK0hk/O2ANC+iAoq6PWMQ+IfBAJIiQ==", "dev": true, "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.4.0", - "@eslint/eslintrc": "^2.0.2", - "@eslint/js": "8.39.0", + "@eslint/eslintrc": "^2.0.3", + "@eslint/js": "8.40.0", "@humanwhocodes/config-array": "^0.11.8", "@humanwhocodes/module-importer": "^1.0.1", "@nodelib/fs.walk": "^1.2.8", @@ -843,8 +843,8 @@ "doctrine": "^3.0.0", "escape-string-regexp": "^4.0.0", "eslint-scope": "^7.2.0", - "eslint-visitor-keys": "^3.4.0", - "espree": "^9.5.1", + "eslint-visitor-keys": "^3.4.1", + "espree": "^9.5.2", "esquery": "^1.4.2", "esutils": "^2.0.2", "fast-deep-equal": "^3.1.3", @@ -1167,9 +1167,9 @@ } }, "node_modules/eslint-visitor-keys": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.0.tgz", - "integrity": "sha512-HPpKPUBQcAsZOsHAFwTtIKcYlCje62XB7SEAcxjtmW6TD1WVpkS6i6/hOVtTZIl4zGj/mBqpFVGvaDneik+VoQ==", + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz", + "integrity": "sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==", "dev": true, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -1204,14 +1204,14 @@ } }, "node_modules/espree": { - "version": "9.5.1", - "resolved": "https://registry.npmjs.org/espree/-/espree-9.5.1.tgz", - "integrity": "sha512-5yxtHSZXRSW5pvv3hAlXM5+/Oswi1AUFqBmbibKb5s6bp3rGIDkyXU6xCoyuuLhijr4SFwPrXRoZjz0AZDN9tg==", + "version": "9.5.2", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.5.2.tgz", + "integrity": "sha512-7OASN1Wma5fum5SrNhFMAMJxOUAbhyfQ8dQ//PJaJbNw0URTPWqIghHWt1MmAANKhHZIYOHruW4Kw4ruUWOdGw==", "dev": true, "dependencies": { "acorn": "^8.8.0", "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^3.4.0" + "eslint-visitor-keys": "^3.4.1" }, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -2354,9 +2354,9 @@ } }, "node_modules/qcobjects": { - "version": "2.4.72", - "resolved": "https://registry.npmjs.org/qcobjects/-/qcobjects-2.4.72.tgz", - "integrity": "sha512-VUS+/l6HmTQzG4AuJrzrXWYm6DJ+AHVl6GIpo2mCkVVxV4W65sBmCGfWUppZ9RXP7SGtSuOopzUI6eZFHp62lQ==", + "version": "2.4.84", + "resolved": "https://registry.npmjs.org/qcobjects/-/qcobjects-2.4.84.tgz", + "integrity": "sha512-9gHFzTwpl77tKn71RBkG2J0P37eNAG+NswSOQ6T2aZWYLmKF89ZaQl4k/BR6aah57OTWNva7bM32HHgs846GaQ==", "peer": true, "engines": { "node": ">=18", @@ -2365,16 +2365,16 @@ "peerDependencies": { "@types/qcobjects": "github:QCObjects/-types-qcobjects", "@types/qcobjects-sdk": "github:QCObjects/-types-qcobjects-sdk", - "qcobjects-sdk": "^2.3.30" + "qcobjects-sdk": "^2.4.38" } }, "node_modules/qcobjects-sdk": { - "version": "2.4.38", - "resolved": "https://registry.npmjs.org/qcobjects-sdk/-/qcobjects-sdk-2.4.38.tgz", - "integrity": "sha512-N79P5r71DmwCrepZVR7E97Iy9fyJincfXqKrQvuwTeRIHr0BYJ8Xl8+V1LT5X4nPdhc1Pd+PStsvNI1cVgeVeg==", + "version": "2.4.49", + "resolved": "https://registry.npmjs.org/qcobjects-sdk/-/qcobjects-sdk-2.4.49.tgz", + "integrity": "sha512-jdYO/er43Yfja8p9Sq8aQIwe1pD70IN1Xre43GQNHuIM8PVV9AGjnmkThw7VSLhWSJ7ysAW76tta7vZ+nK8rHw==", "peer": true, "peerDependencies": { - "qcobjects": "^2.4.67" + "qcobjects": "^2.4.78" } }, "node_modules/queue-microtask": { diff --git a/package.json b/package.json index feff547..a573f06 100644 --- a/package.json +++ b/package.json @@ -103,7 +103,7 @@ "peerDependencies": { "@types/qcobjects": "github:QCObjects/-types-qcobjects", "@types/qcobjects-sdk": "github:QCObjects/-types-qcobjects-sdk", - "qcobjects-sdk": "^2.4.38" + "qcobjects-sdk": "^2.4.49" }, "engines": { "npm": ">=9", diff --git a/src/QCObjects.js b/src/QCObjects.js index 7c5822f..116c372 100644 --- a/src/QCObjects.js +++ b/src/QCObjects.js @@ -1433,7 +1433,7 @@ _config_settings._CONFIG = { "relativeImportPath": "", "remoteImportsPath": "", - "remoteSDKPath": "https://sdk.qcobjects.dev/v2.4/", + "remoteSDKPath": "https://sdk.qcobjects.dev/v2.4/src/", "asynchronousImportsLoad": false, "removePackageScriptAfterLoading": true, "componentsBasePath": "", @@ -2168,13 +2168,35 @@ _body=_DOMCreateElement("div"), __promise__= null, __shadowRoot, - body, - shadowRoot, - splashScreenComponent, - controller, - view + body, + shadowRoot, + splashScreenComponent, + controller, + view }){ - super(...arguments); + if (arguments.length<1){ + throw Error(`No arguments in component. You must at least give one argument.`); + } + super({ + templateURI, + template, + tplsource, + url, + name, + method, + data, + reload, + shadowed, + cached, + _body, + __promise__, + __shadowRoot, + body, + shadowRoot, + splashScreenComponent, + controller, + view + }); var self = this; if (typeof self.name === "undefined") { @@ -4602,7 +4624,7 @@ componentRoot.style.display = "block"; _transition_.effects.map(function (effectClassName, eff) { var __effectClass__ = ClassFactory(effectClassName); - var effectObj = new __effectClass__(); + var effectObj = new __effectClass__({}); var effectClassMethod = effectObj.apply; var args = [componentRoot].concat(Object.values({ alphaFrom,