@convocraft/launcher 0.1.0 → 0.1.1

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.
@@ -0,0 +1 @@
1
+ export { };
package/dist/bubble.js ADDED
@@ -0,0 +1 @@
1
+ import{t as e}from"./utils-nsEt2YOh.js";async function t(){console.log(`Bubble init running`),await e(3e3),console.log(`Bubble init finished`)}await t();
package/dist/init.d.ts ADDED
@@ -0,0 +1 @@
1
+ export { };
package/dist/init.js ADDED
@@ -0,0 +1 @@
1
+ (e=>{if(![`bubble`,`popup`].includes(e.type))return console.error(`ConvoCraft: Invalid type [${e.type}]`),!1;let t=`https://cdn.jsdelivr.net/npm/@convocraft/launcher@0/dist/${e.type}.js`,n=document.querySelector(`script[src="${t}"]`);n&&n.remove();let r=document.getElementsByTagName(`body`)[0],i=document.createElement(`script`);return i.async=!0,i.src=t,r.appendChild(i),!0})({type:`___TYPE___`,id:`___ID___`});
@@ -0,0 +1 @@
1
+ export { };
package/dist/popup.js ADDED
@@ -0,0 +1 @@
1
+ import{t as e}from"./utils-nsEt2YOh.js";async function t(){console.log(`Popup init running`),await e(3e3),console.log(`Popup init finished`)}await t();
@@ -0,0 +1 @@
1
+ const e=e=>new Promise(t=>setTimeout(t,e));export{e as t};
package/package.json CHANGED
@@ -1,18 +1,21 @@
1
1
  {
2
2
  "name": "@convocraft/launcher",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
7
7
  ],
8
- "main": "./dist/index.mjs",
9
- "module": "./dist/index.mjs",
10
- "types": "./dist/index.d.mts",
8
+ "main": "./dist/index.js",
9
+ "module": "./dist/index.js",
10
+ "types": "./dist/index.d.ts",
11
11
  "exports": {
12
- ".": "./dist/index.mjs",
12
+ ".": "./dist/index.js",
13
+ "./popup": "./dist/popup.js",
14
+ "./bubble": "./dist/bubble.js",
13
15
  "./package.json": "./package.json"
14
16
  },
15
17
  "devDependencies": {
18
+ "@types/node": "^24.10.0",
16
19
  "tsdown": "^0.16.0"
17
20
  },
18
21
  "publishConfig": {
@@ -22,7 +25,7 @@
22
25
  "build": "tsdown",
23
26
  "release": "pnpm publish",
24
27
  "_dev": "tsdown --watch",
25
- "popup": "node ./dist/popup.mjs",
26
- "bubble": "node ./dist/bubble.mjs"
28
+ "popup": "node ./dist/popup.js",
29
+ "bubble": "node ./dist/bubble.js"
27
30
  }
28
31
  }
package/dist/index.d.mts DELETED
@@ -1,7 +0,0 @@
1
- //#region src/bubble.d.ts
2
- declare function initBubble(): Promise<void>;
3
- //#endregion
4
- //#region src/popup.d.ts
5
- declare function initPopup(): Promise<void>;
6
- //#endregion
7
- export { initBubble, initPopup };
package/dist/index.mjs DELETED
@@ -1 +0,0 @@
1
- const e=e=>new Promise(t=>setTimeout(t,e));async function t(){await e(3e3),console.log(`Hello ConvoCraft Chatbot Bubble Launcher`)}async function n(){await e(3e3),console.log(`Hello ConvoCraft Chatbot Popup Launcher`)}export{t as initBubble,n as initPopup};