pixflow-upgrade-planning 1.1.8 → 1.2.0

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/index.js CHANGED
@@ -110,14 +110,7 @@ class PixflowUpgradePlanning extends HTMLElement {
110
110
  el_plan.querySelector("div > p").textContent = plan;
111
111
  }
112
112
  self.querySelector("div.pixflow div.activate-code-block button").addEventListener("click", function(){
113
- const plan = self.querySelector("div.plan > div > div.active").parentNode;
114
- const license = plan.className.split(" ")[0];
115
- let link;
116
- if(license == "pixflow-full-access")
117
- link = plan.getAttribute("data-url");
118
- else
119
- link = `https://pixflow.net/product/${cep_manifest.get_link()}/?active-license=${license}`;
120
- window.cep.util.openURLInDefaultBrowser(link);
113
+ window.cep.util.openURLInDefaultBrowser(`https://pixflow.net/product/${cep_manifest.get_link()}/`);
121
114
  })
122
115
  self.querySelectorAll("div.plan > div > div").forEach(function(element){
123
116
  element.addEventListener("click", function(){
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pixflow-upgrade-planning",
3
- "version": "1.1.8",
3
+ "version": "1.2.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -29,7 +29,7 @@ pixflow-upgrade-planning > div.pixflow {
29
29
  background-color: #0C0C0C;
30
30
  top: calc(100vh + 10px);
31
31
  left: 20px;
32
- z-index: 3;
32
+ z-index: 4;
33
33
  transition: top 300ms ease-in;
34
34
  font-family: Inter;
35
35
  font-size: 15px;
@@ -74,7 +74,7 @@ pixflow-upgrade-planning > div.pixflow > p {
74
74
  }
75
75
 
76
76
  pixflow-upgrade-planning > div.pixflow > div.plan {
77
- display: flex;
77
+ display: none;
78
78
  justify-content: space-evenly;
79
79
  }
80
80
 
@@ -111,12 +111,11 @@ pixflow-upgrade-planning > div.pixflow > div.plan > div > div.active {
111
111
  div.activate-code-block {
112
112
  display: flex;
113
113
  flex-direction: column;
114
- position: absolute;
115
- top: calc(100vh - 100px);
116
114
  height: 100px;
117
115
  width: 100%;
118
116
  align-items: center;
119
117
  background: linear-gradient(180deg, rgba(12,12,12,0) 0%, rgba(12,12,12,1) 34%, rgba(12,12,12,1) 100%);
118
+ margin: 5em;
120
119
  }
121
120
 
122
121
  pixflow-upgrade-planning > div.pixflow button, pixflow-upgrade-planning > div.purchase-code > form > button {