@examind/block-editor 0.1.40 → 0.1.41

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/index.js CHANGED
@@ -6446,7 +6446,7 @@ var FinancialStatementQuestionNode = class _FinancialStatementQuestionNode exten
6446
6446
  }
6447
6447
  setPoints(points) {
6448
6448
  const writable = this.getWritable();
6449
- writable.__points = points <= 0 ? 1 : points;
6449
+ writable.__points = points < 0 ? 1 : points;
6450
6450
  }
6451
6451
  decorate() {
6452
6452
  return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
@@ -6911,7 +6911,7 @@ var MatchingQuestionNode = class _MatchingQuestionNode extends import_lexical35.
6911
6911
  constructor(pointsPerMatch, items, id, key) {
6912
6912
  super(key);
6913
6913
  this.__id = id || (0, import_nanoid3.nanoid)();
6914
- this.__pointsPerMatch = pointsPerMatch <= 0 ? 1 : pointsPerMatch;
6914
+ this.__pointsPerMatch = pointsPerMatch < 0 ? 1 : pointsPerMatch;
6915
6915
  this.__items = [];
6916
6916
  if (items) {
6917
6917
  for (const item of items) {
@@ -7865,7 +7865,7 @@ var ShortAnswerQuestionNode = class _ShortAnswerQuestionNode extends import_lexi
7865
7865
  constructor(points, maxWords, id, notes, key) {
7866
7866
  super(key);
7867
7867
  this.__id = id || (0, import_nanoid5.nanoid)();
7868
- this.__points = points <= 0 ? 1 : points;
7868
+ this.__points = points < 0 ? 1 : points;
7869
7869
  this.__maxWords = maxWords;
7870
7870
  this.__notes = notes || initNewContentEditor3();
7871
7871
  }
@@ -7938,7 +7938,7 @@ var ShortAnswerQuestionNode = class _ShortAnswerQuestionNode extends import_lexi
7938
7938
  }
7939
7939
  setPoints(points) {
7940
7940
  const writable = this.getWritable();
7941
- writable.__points = points <= 0 ? 1 : points;
7941
+ writable.__points = points < 0 ? 1 : points;
7942
7942
  }
7943
7943
  setMaxWords(maxWords) {
7944
7944
  const writable = this.getWritable();
@@ -10105,7 +10105,7 @@ var EssayQuestionNode = class _EssayQuestionNode extends import_lexical64.Decora
10105
10105
  }
10106
10106
  setPoints(points) {
10107
10107
  const writable = this.getWritable();
10108
- writable.__points = points <= 0 ? 1 : points;
10108
+ writable.__points = points < 0 ? 1 : points;
10109
10109
  }
10110
10110
  setMaxWords(maxWords) {
10111
10111
  const writable = this.getWritable();
@@ -10415,7 +10415,7 @@ var SimulationQuestionNode = class _SimulationQuestionNode extends import_lexica
10415
10415
  }
10416
10416
  setPoints(points) {
10417
10417
  const writable = this.getWritable();
10418
- writable.__points = points <= 0 ? 1 : points;
10418
+ writable.__points = points < 0 ? 1 : points;
10419
10419
  }
10420
10420
  decorate() {
10421
10421
  return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
package/dist/index.mjs CHANGED
@@ -6608,7 +6608,7 @@ var FinancialStatementQuestionNode = class _FinancialStatementQuestionNode exten
6608
6608
  }
6609
6609
  setPoints(points) {
6610
6610
  const writable = this.getWritable();
6611
- writable.__points = points <= 0 ? 1 : points;
6611
+ writable.__points = points < 0 ? 1 : points;
6612
6612
  }
6613
6613
  decorate() {
6614
6614
  return /* @__PURE__ */ jsx55(
@@ -7089,7 +7089,7 @@ var MatchingQuestionNode = class _MatchingQuestionNode extends DecoratorNode6 {
7089
7089
  constructor(pointsPerMatch, items, id, key) {
7090
7090
  super(key);
7091
7091
  this.__id = id || nanoid3();
7092
- this.__pointsPerMatch = pointsPerMatch <= 0 ? 1 : pointsPerMatch;
7092
+ this.__pointsPerMatch = pointsPerMatch < 0 ? 1 : pointsPerMatch;
7093
7093
  this.__items = [];
7094
7094
  if (items) {
7095
7095
  for (const item of items) {
@@ -8067,7 +8067,7 @@ var ShortAnswerQuestionNode = class _ShortAnswerQuestionNode extends DecoratorNo
8067
8067
  constructor(points, maxWords, id, notes, key) {
8068
8068
  super(key);
8069
8069
  this.__id = id || nanoid5();
8070
- this.__points = points <= 0 ? 1 : points;
8070
+ this.__points = points < 0 ? 1 : points;
8071
8071
  this.__maxWords = maxWords;
8072
8072
  this.__notes = notes || initNewContentEditor3();
8073
8073
  }
@@ -8140,7 +8140,7 @@ var ShortAnswerQuestionNode = class _ShortAnswerQuestionNode extends DecoratorNo
8140
8140
  }
8141
8141
  setPoints(points) {
8142
8142
  const writable = this.getWritable();
8143
- writable.__points = points <= 0 ? 1 : points;
8143
+ writable.__points = points < 0 ? 1 : points;
8144
8144
  }
8145
8145
  setMaxWords(maxWords) {
8146
8146
  const writable = this.getWritable();
@@ -10371,7 +10371,7 @@ var EssayQuestionNode = class _EssayQuestionNode extends DecoratorNode13 {
10371
10371
  }
10372
10372
  setPoints(points) {
10373
10373
  const writable = this.getWritable();
10374
- writable.__points = points <= 0 ? 1 : points;
10374
+ writable.__points = points < 0 ? 1 : points;
10375
10375
  }
10376
10376
  setMaxWords(maxWords) {
10377
10377
  const writable = this.getWritable();
@@ -10704,7 +10704,7 @@ var SimulationQuestionNode = class _SimulationQuestionNode extends DecoratorNode
10704
10704
  }
10705
10705
  setPoints(points) {
10706
10706
  const writable = this.getWritable();
10707
- writable.__points = points <= 0 ? 1 : points;
10707
+ writable.__points = points < 0 ? 1 : points;
10708
10708
  }
10709
10709
  decorate() {
10710
10710
  return /* @__PURE__ */ jsx91(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@examind/block-editor",
3
- "version": "0.1.40",
3
+ "version": "0.1.41",
4
4
  "@comment version": [
5
5
  "Don't specify package version here. It will be injected by publish workflow."
6
6
  ],
@@ -62,7 +62,7 @@
62
62
  "tsup": "^8.3.5",
63
63
  "typescript": "^5.7.2",
64
64
  "typescript-eslint": "^8.18.2",
65
- "@examind/block-types": "0.1.40"
65
+ "@examind/block-types": "0.1.41"
66
66
  },
67
67
  "dependencies": {
68
68
  "@dnd-kit/core": "6.3.1",