sanity-plugin-all-in-one-accessibility 1.0.4 → 1.0.6

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/README.md CHANGED
@@ -222,8 +222,8 @@ Enhance website accessibility and inclusivity with our Manual Accessibility Reme
222
222
  ### **[PDF/Document Accessibility Remediation](https://www.skynettechnologies.com/all-in-one-accessibility/addons#pdf-document-remediation)**
223
223
  The PDF / Document Remediation provides a list of inaccessible PDFs and remediated PDFs from where you can request PDF remediation service.
224
224
 
225
- ### **[VPAT Report/Accessibility Conformance Report(ACR)](https://www.skynettechnologies.com/all-in-one-accessibility/addons#vpat-acr-report)**
226
- The Voluntary Product Accessibility Template (VPAT), also known as an ACR (Accessibility Conformance Report) starts with an audit and provides current details for an accessible website, application, or any other digital assets.
225
+ ### **[VPAT Report/Accessibility Conformance Report(ACR)](https://www.skynettechnologies.com/all-in-one-accessibility/addons#vpat-acr-report)**
226
+ The Voluntary Product Accessibility Template (VPAT), also known as an ACR (Accessibility Conformance Report) starts with an audit and provides current details for an accessible website, application, or any other digital assets.
227
227
 
228
228
  ## Accessibility Widget Paid Add-ons
229
229
 
@@ -250,17 +250,17 @@ For more details, Please visit **[Partnership Opportunities Page](https://www.sk
250
250
 
251
251
  ## Screenshots
252
252
 
253
- ![App Screenshot](https://www.skynettechnologies.com/sites/default/files/screenshot-1-free.jpg?v=3)
253
+ ![App Screenshot](https://www.skynettechnologies.com/sites/default/files/screenshot-1-free.jpg?v=4)
254
254
 
255
- ![App Screenshot](https://www.skynettechnologies.com/sites/default/files/screenshot-2-free.jpg?v=3)
255
+ ![App Screenshot](https://www.skynettechnologies.com/sites/default/files/screenshot-2-free.jpg?v=4)
256
256
 
257
- ![App Screenshot](https://www.skynettechnologies.com/sites/default/files/screenshot-3-free.jpg?v=3)
257
+ ![App Screenshot](https://www.skynettechnologies.com/sites/default/files/screenshot-3-free.jpg?v=4)
258
258
 
259
- ![App Screenshot](https://www.skynettechnologies.com/sites/default/files/screenshot-4-free.jpg?v=3)
259
+ ![App Screenshot](https://www.skynettechnologies.com/sites/default/files/screenshot-4-free.jpg?v=4)
260
260
 
261
261
  ## Video
262
262
 
263
- [![All in One Accessibility](https://img.youtube.com/vi/X70XtvGyvSs/0.jpg)](https://www.youtube.com/watch?v=X70XtvGyvSs)
263
+ [![All in One Accessibility](https://img.youtube.com/vi/X70XtvGyvSs/0.jpg)](https://youtu.be/X70XtvGyvSs)
264
264
 
265
265
  ## Credits
266
266
 
package/dist/index.js CHANGED
@@ -26,7 +26,7 @@ const PluginIcon = () => /* @__PURE__ */ jsxRuntime.jsx("img", { src: "https://s
26
26
  icontype: settingList.Icon_Type,
27
27
  iconsize: settingList.Icon_Size,
28
28
  widget_size: "0"
29
- }), settingList.Icon_Type === "aioa-icon-type-2" ? setIconSize(aioaicontype2) : settingList.Icon_Type === "aioa-icon-type-3" ? setIconSize(aioaicontype3) : setIconSize(aioaicontype1)), getAPIData();
29
+ }), settingList.Icon_Type === "aioa-icon-type-2" ? setIconSize(aioaicontype2) : settingList.Icon_Type === "aioa-icon-type-3" ? setIconSize(aioaicontype3) : setIconSize(aioaicontype1)), fetchApiData();
30
30
  }, [settingList]), react.useEffect(() => {
31
31
  console.log(parameters), console.log("parameters.position : ", parameters.position === "bottom_center");
32
32
  }, [parameters]), react.useEffect(() => {
@@ -161,7 +161,60 @@ const PluginIcon = () => /* @__PURE__ */ jsxRuntime.jsx("img", { src: "https://s
161
161
  default:
162
162
  setIconSize(aioaicontype1);
163
163
  }
164
- }, elementStyle = {
164
+ };
165
+ function fetchApiData() {
166
+ const username = window.location.hostname, useremail = "no-reply@" + window.location.hostname + ".com", arrDetails = {
167
+ name: username,
168
+ email: useremail,
169
+ company_name: username,
170
+ website: btoa(window.location.hostname),
171
+ package_type: "free-widget",
172
+ start_date: (/* @__PURE__ */ new Date()).toISOString(),
173
+ end_date: "",
174
+ price: "",
175
+ discount_price: "0",
176
+ platform: "sanity",
177
+ api_key: "",
178
+ is_trial_period: "",
179
+ is_free_widget: "0",
180
+ bill_address: "",
181
+ country: "",
182
+ state: "",
183
+ city: "",
184
+ post_code: "",
185
+ transaction_id: "",
186
+ subscr_id: "",
187
+ payment_source: ""
188
+ };
189
+ fetch("https://ada.skynettechnologies.us/api/get-autologin-link", {
190
+ method: "POST",
191
+ headers: {
192
+ "Content-Type": "application/json"
193
+ },
194
+ body: JSON.stringify({ website: window.location.hostname })
195
+ }).then((response) => {
196
+ if (!response.ok)
197
+ throw new Error(`HTTP error! status: ${response.status}`);
198
+ return getAPIData(), response.json();
199
+ }).then((result) => {
200
+ result && result.link ? getAPIData() : fetch("https://ada.skynettechnologies.us/api/add-user-domain", {
201
+ method: "POST",
202
+ headers: {
203
+ "Content-Type": "application/json"
204
+ },
205
+ body: JSON.stringify(arrDetails)
206
+ }).then((response) => {
207
+ if (!response.ok)
208
+ throw new Error(`HTTP error! Status: ${response.status}`);
209
+ return getAPIData(), response.json();
210
+ }).then((data) => {
211
+ data.success && getAPIData();
212
+ }).catch((error) => {
213
+ });
214
+ }).catch((error) => {
215
+ });
216
+ }
217
+ const elementStyle = {
165
218
  marginTop: "0px",
166
219
  display: "flex",
167
220
  justifyContent: "center",