aprog 2.1.2 → 2.1.3

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/prism.js +5 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aprog",
3
- "version": "2.1.2",
3
+ "version": "2.1.3",
4
4
  "description": "Допоміжна JavaScript-бібліотека для проєктів",
5
5
  "main": "index.js",
6
6
  "exports": {
package/src/prism.js CHANGED
@@ -26,7 +26,8 @@ export const prism = (text) => {
26
26
 
27
27
  const container = pre({
28
28
  class: "token block",
29
- value: style
29
+ value: style,
30
+ title: ""
30
31
  })
31
32
  const stack = [];
32
33
  let counter = 1;
@@ -58,7 +59,8 @@ export const prism = (text) => {
58
59
  if (isEmpty) {
59
60
  container.appendChild(span({
60
61
  class: "token punctuation",
61
- value: token
62
+ value: token,
63
+ title: ""
62
64
  }));
63
65
  continue;
64
66
  }
@@ -68,6 +70,7 @@ export const prism = (text) => {
68
70
  style: isEmpty ? {} : { cursor: "pointer" },
69
71
  dataStart: "m",
70
72
  value: isEmpty ? token : `<span class="token editor">-</span> ${token}`,
73
+ title: "",
71
74
  onClick: isEmpty ? null : (event) => {
72
75
  const el = event.target.closest(`.start-${index}`);
73
76
  const tokenType = token;