@blokkli/editor 2.0.0-alpha.11 → 2.0.0-alpha.13

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.
@@ -3,3 +3,62 @@
3
3
  */
4
4
  export declare function cloneWithInlineStyles(node: Element): Element;
5
5
  export declare function cloneElementWithStyles(element: Element, isRoot?: boolean): string;
6
+ /**
7
+ * Possible values for the MouseEvent.buttons property.
8
+ *
9
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/buttons
10
+ */
11
+ export declare const MOUSE_BUTTONS: Readonly<{
12
+ /**
13
+ *No button or un-initialized.
14
+ */
15
+ NONE: 0;
16
+ /**
17
+ * Primary button (usually the left button).
18
+ */
19
+ PRIMARY: 1;
20
+ /**
21
+ * Secondary button (usually the right button).
22
+ */
23
+ SECONDARY: 2;
24
+ /**
25
+ * Auxiliary button (usually the mouse wheel button or middle button).
26
+ */
27
+ AUXILIARY: 4;
28
+ /**
29
+ * 4th button (typically the "Browser Back" button).
30
+ */
31
+ FOURTH: 8;
32
+ /**
33
+ * 5th button (typically the "Browser Forward" button).
34
+ */
35
+ FIFTH: 16;
36
+ }>;
37
+ /**
38
+ * Possible values for the MouseEvent.button property.
39
+ * (Yes, they are different from the "buttons" property...)
40
+ *
41
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/button
42
+ */
43
+ export declare const MOUSE_BUTTON: Readonly<{
44
+ /**
45
+ * Main button, usually the left button or the un-initialized state.
46
+ */
47
+ MAIN: 0;
48
+ /**
49
+ * Auxiliary button, usually the wheel button or the middle button (if present).
50
+ */
51
+ AUXILIARY: 1;
52
+ /**
53
+ * Secondary button, usually the right button.
54
+ */
55
+ SECONDARY: 2;
56
+ /**
57
+ * Fourth button, typically the Browser Back button.
58
+ */
59
+ FOURTH: 3;
60
+ /**
61
+ * Fifth button, typically the Browser Forward button.
62
+ */
63
+ FIFTH: 4;
64
+ }>;
@@ -35,3 +35,51 @@ export function cloneElementWithStyles(element, isRoot) {
35
35
  container.appendChild(clonedElement);
36
36
  return container.innerHTML;
37
37
  }
38
+ export const MOUSE_BUTTONS = Object.freeze({
39
+ /**
40
+ *No button or un-initialized.
41
+ */
42
+ NONE: 0,
43
+ /**
44
+ * Primary button (usually the left button).
45
+ */
46
+ PRIMARY: 1,
47
+ /**
48
+ * Secondary button (usually the right button).
49
+ */
50
+ SECONDARY: 2,
51
+ /**
52
+ * Auxiliary button (usually the mouse wheel button or middle button).
53
+ */
54
+ AUXILIARY: 4,
55
+ /**
56
+ * 4th button (typically the "Browser Back" button).
57
+ */
58
+ FOURTH: 8,
59
+ /**
60
+ * 5th button (typically the "Browser Forward" button).
61
+ */
62
+ FIFTH: 16
63
+ });
64
+ export const MOUSE_BUTTON = Object.freeze({
65
+ /**
66
+ * Main button, usually the left button or the un-initialized state.
67
+ */
68
+ MAIN: 0,
69
+ /**
70
+ * Auxiliary button, usually the wheel button or the middle button (if present).
71
+ */
72
+ AUXILIARY: 1,
73
+ /**
74
+ * Secondary button, usually the right button.
75
+ */
76
+ SECONDARY: 2,
77
+ /**
78
+ * Fourth button, typically the Browser Back button.
79
+ */
80
+ FOURTH: 3,
81
+ /**
82
+ * Fifth button, typically the Browser Forward button.
83
+ */
84
+ FIFTH: 4
85
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blokkli/editor",
3
- "version": "2.0.0-alpha.11",
3
+ "version": "2.0.0-alpha.13",
4
4
  "description": "Interactive page building experience for Nuxt",
5
5
  "repository": "blokkli/editor",
6
6
  "type": "module",
@@ -57,55 +57,57 @@
57
57
  "license": "MIT",
58
58
  "dependencies": {
59
59
  "@types/micromatch": "^4.0.9",
60
- "artboard-deluxe": "^0.1.0",
61
- "estree-walker-ts": "^1.0.1",
60
+ "artboard-deluxe": "^0.1.1",
61
+ "estree-walker-ts": "^1.1.0",
62
62
  "fzf": "^0.5.2",
63
63
  "get-video-id": "^4.1.7",
64
64
  "html-diff-ts": "^1.4.2",
65
65
  "mitt": "^3.0.1",
66
- "qrcode.vue": "^3.4.1",
67
- "twgl.js": "^5.5.4"
66
+ "qrcode.vue": "^3.6.0",
67
+ "twgl.js": "^7.0.0"
68
68
  },
69
69
  "devDependencies": {
70
- "@ckeditor/ckeditor5-build-classic": "^43.1.0",
71
- "@ckeditor/ckeditor5-vue": "^7.0.0",
70
+ "@ckeditor/ckeditor5-build-classic": "^44.3.0",
71
+ "@ckeditor/ckeditor5-vue": "^7.3.0",
72
72
  "@nuxt/devtools": "latest",
73
- "@nuxt/eslint-config": "^1.3.0",
74
- "@nuxt/kit": "^3.17.2",
75
- "@nuxt/module-builder": "^1.0.1",
76
- "@nuxt/schema": "^3.17.2",
77
- "@nuxt/test-utils": "^3.14.2",
78
- "@nuxtjs/tailwindcss": "^6.12.1",
79
- "@tailwindcss/forms": "^0.5.9",
80
- "@tailwindcss/typography": "^0.5.15",
73
+ "@nuxt/eslint-config": "^1.9.0",
74
+ "@nuxt/kit": "^4.0.3",
75
+ "@nuxt/module-builder": "^1.0.2",
76
+ "@nuxt/schema": "^4.0.3",
77
+ "@nuxt/test-utils": "^3.19.2",
78
+ "@nuxtjs/tailwindcss": "^6.14.0",
79
+ "@tailwindcss/forms": "^0.5.10",
80
+ "@tailwindcss/typography": "^0.5.16",
81
81
  "@thedutchcoder/postcss-rem-to-px": "^0.0.2",
82
- "@types/gettext-parser": "^4.0.4",
83
- "@types/node": "^22.5.4",
82
+ "@types/gettext-parser": "^8.0.0",
83
+ "@types/node": "^24.3.0",
84
84
  "@vue/test-utils": "^2.4.6",
85
- "changelogen": "^0.5.5",
86
- "cypress": "^13.14.2",
87
- "eslint": "^9.24.0",
88
- "eslint-plugin-sonarjs": "^3.0.2",
89
- "eslint-plugin-tailwindcss": "^3.18.0",
85
+ "changelogen": "^0.6.2",
86
+ "cypress": "^15.0.0",
87
+ "eslint": "^9.33.0",
88
+ "eslint-plugin-sonarjs": "^3.0.4",
89
+ "eslint-plugin-tailwindcss": "^3.18.2",
90
90
  "gettext-parser": "^8.0.0",
91
- "happy-dom": "^15.7.4",
92
- "nuxt": "^3.17.2",
93
- "nuxt-graphql-middleware": "^5.0.0-alpha.18",
94
- "nuxt-svg-icon-sprite": "^2.0.0-alpha.1",
95
- "openai": "^4.59.0",
96
- "playwright-core": "^1.47.0",
97
- "postcss": "^8.4.45",
98
- "postcss-cli": "^11.0.0",
99
- "postcss-import": "^16.1.0",
100
- "postcss-mixins": "^11.0.1",
91
+ "happy-dom": "^18.0.1",
92
+ "nuxt": "^4.0.3",
93
+ "nuxt-graphql-middleware": "^5.2.1",
94
+ "nuxt-svg-icon-sprite": "^2.0.2",
95
+ "openai": "^5.13.1",
96
+ "playwright-core": "^1.55.0",
97
+ "postcss": "^8.5.6",
98
+ "postcss-cli": "^11.0.1",
99
+ "postcss-import": "^16.1.1",
100
+ "postcss-mixins": "^12.1.2",
101
101
  "postcss-nested-import": "^1.3.0",
102
102
  "postcss-replace": "^2.0.1",
103
103
  "postcss-url": "^10.1.3",
104
- "prettier": "^3.3.3",
105
- "prettier-plugin-glsl": "^0.2.0",
106
- "tailwindcss": "^3.4.11",
107
- "vite-plugin-glsl": "^1.3.0",
108
- "vitepress": "^1.3.4",
109
- "vitest": "^2.0.5"
104
+ "prettier": "^3.6.2",
105
+ "prettier-plugin-glsl": "^0.2.2",
106
+ "tailwindcss": "^3.4.17",
107
+ "unbuild": "^3.6.1",
108
+ "vite-plugin-glsl": "^1.5.1",
109
+ "vitepress": "^1.6.4",
110
+ "vitest": "^3.2.4",
111
+ "vue-tsc": "^2.2.12"
110
112
  }
111
113
  }