copy_tuner_client 0.14.1 → 0.15.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.
@@ -1,6 +1,6 @@
1
1
  module CopyTunerClient
2
2
  # Client version
3
- VERSION = '0.14.1'.freeze
3
+ VERSION = '0.15.0'.freeze
4
4
 
5
5
  # API version being used to communicate with the server
6
6
  API_VERSION = '2.0'.freeze
data/package.json CHANGED
@@ -14,12 +14,12 @@
14
14
  },
15
15
  "dependencies": {},
16
16
  "devDependencies": {
17
- "@sonicgarden/eslint-plugin": "^0.4.11",
17
+ "@sonicgarden/eslint-plugin": "^0.5.2",
18
18
  "@sonicgarden/prettier-config": "^0.0.1",
19
19
  "eslint": "^8.16.0",
20
20
  "lodash.debounce": "^4.0.8",
21
- "typescript": "^4.7.2",
22
- "vite": "^2.9.9"
21
+ "typescript": "^5.0.2",
22
+ "vite": "^4.2.1"
23
23
  },
24
24
  "prettier": "@sonicgarden/prettier-config",
25
25
  "volta": {
data/src/main.ts CHANGED
@@ -6,6 +6,7 @@ declare global {
6
6
  interface Window {
7
7
  CopyTuner: {
8
8
  url: string
9
+ toggle?: () => void
9
10
  // TODO: type
10
11
  data: object
11
12
  }
@@ -33,6 +34,7 @@ const start = () => {
33
34
 
34
35
  appendCopyTunerBar(url)
35
36
  const copyray = new Copyray(url, data)
37
+ window.CopyTuner.toggle = () => copyray.toggle()
36
38
 
37
39
  document.addEventListener('keydown', (event) => {
38
40
  // @ts-expect-error TS2339