aprog 2.1.1 → 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.
package/README.md CHANGED
@@ -139,6 +139,16 @@ onInput: (event) => {
139
139
  <input value="4">
140
140
  ```
141
141
 
142
+ Завантаження `Constructs`
143
+ ```shell
144
+ node node_modules/aprog/publish.js
145
+ ```
146
+
147
+ Завантаження `Constructs` з перезаписом
148
+ ```shell
149
+ node node_modules/aprog/publish.js --force
150
+ ```
151
+
142
152
  ########## ########## ########## ########## ##########
143
153
 
144
154
  Загальний список методів:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aprog",
3
- "version": "2.1.1",
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;