@blokkli/editor 2.0.0-alpha.21 → 2.0.0-alpha.22

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/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@blokkli/editor",
3
3
  "configKey": "blokkli",
4
- "version": "2.0.0-alpha.21",
4
+ "version": "2.0.0-alpha.22",
5
5
  "compatibility": {
6
6
  "nuxt": ">=3.15.0"
7
7
  },
package/dist/module.mjs CHANGED
@@ -15,7 +15,7 @@ import fs from 'node:fs';
15
15
  import { defu, createDefu } from 'defu';
16
16
 
17
17
  const name = "@blokkli/editor";
18
- const version = "2.0.0-alpha.21";
18
+ const version = "2.0.0-alpha.22";
19
19
 
20
20
  function sortObjectKeys(obj) {
21
21
  if (Array.isArray(obj)) {
@@ -64,6 +64,9 @@ const traverse = (element, results) => {
64
64
  if (element.tagName === "SCRIPT" || element.tagName === "STYLE") {
65
65
  return;
66
66
  }
67
+ if (element.classList.contains("bk-skip-analyze")) {
68
+ return;
69
+ }
67
70
  if (isBlockElement(element)) {
68
71
  if (!containsBlockElements(element)) {
69
72
  const text = getCleanText(element);
@@ -387,7 +387,7 @@ export default function(ui, debug, definitions, state, element) {
387
387
  logger.log("registerBlock: " + uuid);
388
388
  blockUuidCurrentKey[uuid] = key;
389
389
  doInitTimeout();
390
- if (!el) {
390
+ if (!(el instanceof HTMLElement)) {
391
391
  logger.log("registerBlock call unregisterBlock because no element", uuid);
392
392
  unregisterBlock(key, uuid);
393
393
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blokkli/editor",
3
- "version": "2.0.0-alpha.21",
3
+ "version": "2.0.0-alpha.22",
4
4
  "description": "Interactive page building experience for Nuxt",
5
5
  "repository": "blokkli/editor",
6
6
  "type": "module",