@rowslint/importer-js 0.0.19 → 0.0.20

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/dist/rowslint.js CHANGED
@@ -1,20 +1,17 @@
1
+ //#region src/main.ts
1
2
  (() => {
2
- const e = document.createElement("script");
3
- e.src = "https://cdn.jsdelivr.net/npm/@rowslint/importer@latest/browser/rowslint-element.js", e.type = "module", document.head.appendChild(e);
3
+ let e = document.createElement("script");
4
+ e.src = "https://cdn.jsdelivr.net/npm/@rowslint/importer@latest/browser/rowslint-element.js", e.type = "module", document.head.appendChild(e);
4
5
  })();
5
- const s = (e) => {
6
- if (!e.apiKey)
7
- throw new Error(
8
- "No API key provided to Rowslint. You may have forgotten to provide a valid API key to finish initializing Rowslint."
9
- );
10
- const t = document.createElement("rowslint-element");
11
- t.apiKey = e.apiKey, t.config = e.config, t.file = e.file ?? null, t.addEventListener("import", function n(o) {
12
- const i = o;
13
- e.onImport?.(i.detail), l(), window.removeEventListener("import", n, !1);
14
- }), document.body.appendChild(t);
15
- }, l = () => {
16
- document.querySelector("rowslint-element")?.remove();
17
- };
18
- export {
19
- s as launchRowslint
6
+ var e = (e) => {
7
+ if (!e.apiKey) throw Error("No API key provided to Rowslint. You may have forgotten to provide a valid API key to finish initializing Rowslint.");
8
+ let n = document.createElement("rowslint-element");
9
+ n.apiKey = e.apiKey, n.config = e.config, n.file = e.file ?? null, n.addEventListener("import", function n(r) {
10
+ let i = r;
11
+ e.onImport?.(i.detail), t(), window.removeEventListener("import", n, !1);
12
+ }), document.body.appendChild(n);
13
+ }, t = () => {
14
+ document.querySelector("rowslint-element")?.remove();
20
15
  };
16
+ //#endregion
17
+ export { e as launchRowslint };
@@ -0,0 +1 @@
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports):typeof define==`function`&&define.amd?define([`exports`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.rowslint={}))})(this,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),(()=>{let e=document.createElement(`script`);e.src=`https://cdn.jsdelivr.net/npm/@rowslint/importer@latest/browser/rowslint-element.js`,e.type=`module`,document.head.appendChild(e)})();var t=e=>{if(!e.apiKey)throw Error(`No API key provided to Rowslint. You may have forgotten to provide a valid API key to finish initializing Rowslint.`);let t=document.createElement(`rowslint-element`);t.apiKey=e.apiKey,t.config=e.config,t.file=e.file??null,t.addEventListener(`import`,function t(r){let i=r;e.onImport?.(i.detail),n(),window.removeEventListener(`import`,t,!1)}),document.body.appendChild(t)},n=()=>{document.querySelector(`rowslint-element`)?.remove()};e.launchRowslint=t});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rowslint/importer-js",
3
- "version": "0.0.19",
3
+ "version": "0.0.20",
4
4
  "author": "Mouad Ennaciri",
5
5
  "license": "UNLICENSED",
6
6
  "main": "./dist/rowslint.js",