@throwbo/timelayer-client 3.4.3 → 3.4.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@throwbo/timelayer-client",
3
- "version": "3.4.3",
3
+ "version": "3.4.4",
4
4
  "description": "A calendar SDK with Vue 3, TypeScript, and TailwindCSS.",
5
5
  "main": "dist/timelayer.es.js",
6
6
  "module": "dist/timelayer.es.js",
@@ -10,16 +10,13 @@
10
10
  "types": "./dist/index.d.ts",
11
11
  "import": "./dist/timelayer.es.js"
12
12
  },
13
- "./embed": {
14
- "import": "./dist/embed.es.js"
15
- },
16
13
  "./style": "./dist/assets/timelayer.css"
17
14
  },
18
15
  "scripts": {
19
16
  "dev": "vite",
20
17
  "build": "vite build",
21
18
  "prepack": "npm run build",
22
- "lint": "eslint . --ext .ts,.vue --fix",
19
+ "lint": "eslint . --fix",
23
20
  "format": "prettier --write .",
24
21
  "type-check": "tsc --noEmit",
25
22
  "test": "vitest"
@@ -34,30 +31,33 @@
34
31
  "author": "Throwing Boulders",
35
32
  "license": "MIT",
36
33
  "devDependencies": {
34
+ "@eslint/js": "^9.39.4",
37
35
  "@types/lodash": "^4.17.24",
38
36
  "@types/sortablejs": "^1.15.9",
39
- "@typescript-eslint/eslint-plugin": "^6.0.0",
40
- "@typescript-eslint/parser": "^6.0.0",
41
- "@vitejs/plugin-vue": "^5.2.4",
37
+ "@typescript-eslint/eslint-plugin": "^8.58.1",
38
+ "@typescript-eslint/parser": "^8.58.1",
39
+ "@vitejs/plugin-vue": "^6.0.5",
42
40
  "autoprefixer": "^10.4.27",
43
- "eslint": "8.57.1",
44
- "eslint-config-prettier": "^9.1.0",
41
+ "eslint": "^9.39.4",
42
+ "eslint-config-prettier": "^10.1.8",
45
43
  "eslint-plugin-prettier": "^5.5.5",
46
44
  "eslint-plugin-tailwindcss": "^3.18.0",
47
- "eslint-plugin-vue": "^9.33.0",
48
- "jsdom": "^26.1.0",
49
- "postcss": "^8.5.8",
45
+ "eslint-plugin-vue": "^10.8.0",
46
+ "globals": "^17.4.0",
47
+ "jsdom": "^29.0.2",
48
+ "pinia": "^3.0.4",
49
+ "postcss": "^8.5.9",
50
50
  "prettier": "^3.8.1",
51
51
  "tailwindcss": "^3.4.19",
52
52
  "typescript": "5.3.3",
53
- "vite": "^6.4.1",
53
+ "vite": "^7.3.2",
54
54
  "vite-plugin-dts": "^4.5.4",
55
55
  "vite-plugin-eslint": "^1.0.0",
56
- "vitest": "^2.1.9",
56
+ "vitest": "^4.1.4",
57
57
  "vue": "^3.5.32",
58
- "vue-router": "^4.6.4",
59
- "pinia": "^3.0.4",
60
- "vue-i18n": "^11.3.1"
58
+ "vue-eslint-parser": "^10.4.0",
59
+ "vue-i18n": "^11.3.2",
60
+ "vue-router": "^4.6.4"
61
61
  },
62
62
  "peerDependencies": {
63
63
  "vue": "^3.3.0",
@@ -65,7 +65,6 @@
65
65
  },
66
66
  "files": [
67
67
  "dist/timelayer.es.js",
68
- "dist/embed.es.js",
69
68
  "dist/assets/timelayer.css",
70
69
  "dist/index.d.ts",
71
70
  "README.md",
@@ -76,14 +75,14 @@
76
75
  "url": "https://gitlab.com/throwbo/timelayer-client.git"
77
76
  },
78
77
  "dependencies": {
79
- "axios": "1.13.6",
80
- "date-fns": "^4.1.0",
81
- "date-fns-tz": "^3.2.0",
82
78
  "@headlessui/vue": "^1.7.23",
83
79
  "@heroicons/vue": "^2.2.0",
84
80
  "@tailwindcss/forms": "^0.5.11",
85
81
  "@vuelidate/core": "^2.0.3",
86
82
  "@vuelidate/validators": "^2.0.4",
83
+ "axios": "1.15.0",
84
+ "date-fns": "^4.1.0",
85
+ "date-fns-tz": "^3.2.0",
87
86
  "lodash": "^4.18.1",
88
87
  "vue-draggable-next": "^2.3.0"
89
88
  },
@@ -91,6 +90,6 @@
91
90
  "access": "public"
92
91
  },
93
92
  "engines": {
94
- "node": ">=16.0.0"
93
+ "node": ">=20.19.0"
95
94
  }
96
95
  }
package/dist/embed.es.js DELETED
@@ -1 +0,0 @@
1
- var m=Object.defineProperty;var d=(a,e,t)=>e in a?m(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var s=(a,e,t)=>d(a,typeof e!="symbol"?e+"":e,t);const r="https://app.timelayer.io";class h{constructor({token:e,container:t,events:i={},settings:n={}}){s(this,"token");s(this,"container");s(this,"events");s(this,"settings");s(this,"iframe");s(this,"updateEventField",e=>this.sendMessageToIframe("updateEventFields",[e]));s(this,"updateEvent",e=>this.sendMessageToIframe("updateEvent",e));s(this,"createEvent",e=>this.sendMessageToIframe("createEvent",e));s(this,"removeEvent",e=>this.sendMessageToIframe("removeEvent",e));this.token=e,this.container=t,this.events=i,this.settings=n,this.iframe=null,this.createIframe(),this.setupEventListener()}getCalendarUrl(){const e=r,t=new URLSearchParams({token:this.token,settings:JSON.stringify(this.settings)});return`${e}/public?${t.toString()}`}createIframe(){this.iframe=document.createElement("iframe"),this.iframe.src=this.getCalendarUrl(),this.iframe.className="embed-iframe",this.container.appendChild(this.iframe)}setupEventListener(){window.addEventListener("message",e=>{var n,o;if(e.origin!==r)return;const{eventName:t,data:i}=e.data;t in this.events&&((o=(n=this.events)[t])==null||o.call(n,i))})}sendMessageToIframe(e,t){var i,n;(n=(i=this.iframe)==null?void 0:i.contentWindow)==null||n.postMessage({type:e,data:t},r)}openModal(){return!1}}window.Embed=h;