alinea 0.9.1 → 0.9.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.
@@ -2,7 +2,7 @@
2
2
  var package_default = {
3
3
  bin: "./dist/cli.js",
4
4
  name: "alinea",
5
- version: "0.9.1",
5
+ version: "0.9.3",
6
6
  license: "MIT",
7
7
  type: "module",
8
8
  scripts: {
package/dist/cli/Serve.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  } from "../chunks/chunk-UJJSVROY.js";
4
4
  import {
5
5
  package_default
6
- } from "../chunks/chunk-C4PS2PAP.js";
6
+ } from "../chunks/chunk-YM2Q4PLN.js";
7
7
  import "../chunks/chunk-U5RRZUYZ.js";
8
8
 
9
9
  // src/cli/Serve.ts
package/dist/cli/bin.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  package_default
3
- } from "../chunks/chunk-C4PS2PAP.js";
3
+ } from "../chunks/chunk-YM2Q4PLN.js";
4
4
  import "../chunks/chunk-U5RRZUYZ.js";
5
5
 
6
6
  // node_modules/mri/lib/index.mjs
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  package_default
3
- } from "../../chunks/chunk-C4PS2PAP.js";
3
+ } from "../../chunks/chunk-YM2Q4PLN.js";
4
4
  import {
5
5
  __commonJS,
6
6
  __toESM
@@ -3,7 +3,7 @@ import {
3
3
  } from "../../chunks/chunk-IKINPSS5.js";
4
4
  import {
5
5
  package_default
6
- } from "../../chunks/chunk-C4PS2PAP.js";
6
+ } from "../../chunks/chunk-YM2Q4PLN.js";
7
7
  import "../../chunks/chunk-U5RRZUYZ.js";
8
8
 
9
9
  // src/cloud/server/CloudAuthServer.ts
@@ -9,11 +9,13 @@ var Node;
9
9
  }
10
10
  Node2.isText = isText;
11
11
  function isElement(node) {
12
- return node[Node2.type] !== "text" && node[Node2.type][0]?.toLowerCase() === node[Node2.type][0];
12
+ const typeName = node[Node2.type];
13
+ return typeof typeName === "string" && typeName !== "text" && typeName[0]?.toLowerCase() === typeName[0];
13
14
  }
14
15
  Node2.isElement = isElement;
15
16
  function isBlock(node) {
16
- return node[Node2.type] !== "text" && node[Node2.type][0]?.toUpperCase() === node[Node2.type][0];
17
+ const typeName = node[Node2.type];
18
+ return typeof typeName === "string" && typeName !== "text" && typeName[0]?.toUpperCase() === typeName[0];
17
19
  }
18
20
  Node2.isBlock = isBlock;
19
21
  })(Node || (Node = {}));
@@ -375,8 +375,14 @@ var RichTextShape = class {
375
375
  if (!this.blocks)
376
376
  throw new Error("No types defined");
377
377
  const shape = this.blocks[block];
378
- const row = { ...shape.create(), id, type: block };
379
- map.set(id, shape.toY(row));
378
+ map.set(
379
+ id,
380
+ shape.toY({
381
+ ...shape.create(),
382
+ [Node.type]: block,
383
+ [BlockNode.id]: id
384
+ })
385
+ );
380
386
  }
381
387
  };
382
388
  }
@@ -67,7 +67,7 @@ function entryUrl(type, meta) {
67
67
  return entryUrl2(meta);
68
68
  const segments = meta.locale ? [meta.locale] : [];
69
69
  return "/" + segments.concat(
70
- meta.parentPaths.concat(meta.path).filter((segment) => segment !== "index")
70
+ meta.parentPaths.concat(meta.path).filter((segment) => segment !== "index" && segment !== "")
71
71
  ).join("/");
72
72
  }
73
73
  function pathSuffix(path, conflictingPaths) {
@@ -3,7 +3,7 @@ import {
3
3
  } from "../../chunks/chunk-7YXWNKGS.js";
4
4
  import {
5
5
  package_default
6
- } from "../../chunks/chunk-C4PS2PAP.js";
6
+ } from "../../chunks/chunk-YM2Q4PLN.js";
7
7
  import {
8
8
  connect
9
9
  } from "../../chunks/chunk-LMUDRU2U.js";
@@ -1728,9 +1728,7 @@ function InsertMenu({ editor, schema, onInsert }) {
1728
1728
  onInsert(id, key);
1729
1729
  editor.chain().focus().insertContent({
1730
1730
  type: key,
1731
- attrs: {
1732
- [BlockNode.id]: id
1733
- }
1731
+ attrs: { [BlockNode.id]: id }
1734
1732
  }).run();
1735
1733
  },
1736
1734
  children: /* @__PURE__ */ jsxs(HStack, { center: true, gap: 8, children: [
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "bin": "./dist/cli.js",
3
3
  "name": "alinea",
4
- "version": "0.9.1",
4
+ "version": "0.9.3",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "scripts": {