@examind/block-editor 0.1.39 → 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
@@ -6133,6 +6133,7 @@ function FinancialStatementQuestionComponent(props) {
6133
6133
  className: "financial-statement-question-header",
6134
6134
  colSpan: 2,
6135
6135
  "data-selectable": "true",
6136
+ style: columnHeaders.length >= 2 ? {} : { textAlign: "center" },
6136
6137
  children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_LexicalNestedComposer2.LexicalNestedComposer, { initialEditor: header, children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(NestedEditor, { nodeKey, children: [
6137
6138
  /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(SettingsPanelNestedAgentPlugin, {}),
6138
6139
  /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
@@ -6445,7 +6446,7 @@ var FinancialStatementQuestionNode = class _FinancialStatementQuestionNode exten
6445
6446
  }
6446
6447
  setPoints(points) {
6447
6448
  const writable = this.getWritable();
6448
- writable.__points = points <= 0 ? 1 : points;
6449
+ writable.__points = points < 0 ? 1 : points;
6449
6450
  }
6450
6451
  decorate() {
6451
6452
  return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
@@ -6910,7 +6911,7 @@ var MatchingQuestionNode = class _MatchingQuestionNode extends import_lexical35.
6910
6911
  constructor(pointsPerMatch, items, id, key) {
6911
6912
  super(key);
6912
6913
  this.__id = id || (0, import_nanoid3.nanoid)();
6913
- this.__pointsPerMatch = pointsPerMatch <= 0 ? 1 : pointsPerMatch;
6914
+ this.__pointsPerMatch = pointsPerMatch < 0 ? 1 : pointsPerMatch;
6914
6915
  this.__items = [];
6915
6916
  if (items) {
6916
6917
  for (const item of items) {
@@ -7864,7 +7865,7 @@ var ShortAnswerQuestionNode = class _ShortAnswerQuestionNode extends import_lexi
7864
7865
  constructor(points, maxWords, id, notes, key) {
7865
7866
  super(key);
7866
7867
  this.__id = id || (0, import_nanoid5.nanoid)();
7867
- this.__points = points <= 0 ? 1 : points;
7868
+ this.__points = points < 0 ? 1 : points;
7868
7869
  this.__maxWords = maxWords;
7869
7870
  this.__notes = notes || initNewContentEditor3();
7870
7871
  }
@@ -7937,7 +7938,7 @@ var ShortAnswerQuestionNode = class _ShortAnswerQuestionNode extends import_lexi
7937
7938
  }
7938
7939
  setPoints(points) {
7939
7940
  const writable = this.getWritable();
7940
- writable.__points = points <= 0 ? 1 : points;
7941
+ writable.__points = points < 0 ? 1 : points;
7941
7942
  }
7942
7943
  setMaxWords(maxWords) {
7943
7944
  const writable = this.getWritable();
@@ -10104,7 +10105,7 @@ var EssayQuestionNode = class _EssayQuestionNode extends import_lexical64.Decora
10104
10105
  }
10105
10106
  setPoints(points) {
10106
10107
  const writable = this.getWritable();
10107
- writable.__points = points <= 0 ? 1 : points;
10108
+ writable.__points = points < 0 ? 1 : points;
10108
10109
  }
10109
10110
  setMaxWords(maxWords) {
10110
10111
  const writable = this.getWritable();
@@ -10414,7 +10415,7 @@ var SimulationQuestionNode = class _SimulationQuestionNode extends import_lexica
10414
10415
  }
10415
10416
  setPoints(points) {
10416
10417
  const writable = this.getWritable();
10417
- writable.__points = points <= 0 ? 1 : points;
10418
+ writable.__points = points < 0 ? 1 : points;
10418
10419
  }
10419
10420
  decorate() {
10420
10421
  return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
package/dist/index.mjs CHANGED
@@ -6295,6 +6295,7 @@ function FinancialStatementQuestionComponent(props) {
6295
6295
  className: "financial-statement-question-header",
6296
6296
  colSpan: 2,
6297
6297
  "data-selectable": "true",
6298
+ style: columnHeaders.length >= 2 ? {} : { textAlign: "center" },
6298
6299
  children: /* @__PURE__ */ jsx54(LexicalNestedComposer2, { initialEditor: header, children: /* @__PURE__ */ jsxs15(NestedEditor, { nodeKey, children: [
6299
6300
  /* @__PURE__ */ jsx54(SettingsPanelNestedAgentPlugin, {}),
6300
6301
  /* @__PURE__ */ jsx54(
@@ -6607,7 +6608,7 @@ var FinancialStatementQuestionNode = class _FinancialStatementQuestionNode exten
6607
6608
  }
6608
6609
  setPoints(points) {
6609
6610
  const writable = this.getWritable();
6610
- writable.__points = points <= 0 ? 1 : points;
6611
+ writable.__points = points < 0 ? 1 : points;
6611
6612
  }
6612
6613
  decorate() {
6613
6614
  return /* @__PURE__ */ jsx55(
@@ -7088,7 +7089,7 @@ var MatchingQuestionNode = class _MatchingQuestionNode extends DecoratorNode6 {
7088
7089
  constructor(pointsPerMatch, items, id, key) {
7089
7090
  super(key);
7090
7091
  this.__id = id || nanoid3();
7091
- this.__pointsPerMatch = pointsPerMatch <= 0 ? 1 : pointsPerMatch;
7092
+ this.__pointsPerMatch = pointsPerMatch < 0 ? 1 : pointsPerMatch;
7092
7093
  this.__items = [];
7093
7094
  if (items) {
7094
7095
  for (const item of items) {
@@ -8066,7 +8067,7 @@ var ShortAnswerQuestionNode = class _ShortAnswerQuestionNode extends DecoratorNo
8066
8067
  constructor(points, maxWords, id, notes, key) {
8067
8068
  super(key);
8068
8069
  this.__id = id || nanoid5();
8069
- this.__points = points <= 0 ? 1 : points;
8070
+ this.__points = points < 0 ? 1 : points;
8070
8071
  this.__maxWords = maxWords;
8071
8072
  this.__notes = notes || initNewContentEditor3();
8072
8073
  }
@@ -8139,7 +8140,7 @@ var ShortAnswerQuestionNode = class _ShortAnswerQuestionNode extends DecoratorNo
8139
8140
  }
8140
8141
  setPoints(points) {
8141
8142
  const writable = this.getWritable();
8142
- writable.__points = points <= 0 ? 1 : points;
8143
+ writable.__points = points < 0 ? 1 : points;
8143
8144
  }
8144
8145
  setMaxWords(maxWords) {
8145
8146
  const writable = this.getWritable();
@@ -10370,7 +10371,7 @@ var EssayQuestionNode = class _EssayQuestionNode extends DecoratorNode13 {
10370
10371
  }
10371
10372
  setPoints(points) {
10372
10373
  const writable = this.getWritable();
10373
- writable.__points = points <= 0 ? 1 : points;
10374
+ writable.__points = points < 0 ? 1 : points;
10374
10375
  }
10375
10376
  setMaxWords(maxWords) {
10376
10377
  const writable = this.getWritable();
@@ -10703,7 +10704,7 @@ var SimulationQuestionNode = class _SimulationQuestionNode extends DecoratorNode
10703
10704
  }
10704
10705
  setPoints(points) {
10705
10706
  const writable = this.getWritable();
10706
- writable.__points = points <= 0 ? 1 : points;
10707
+ writable.__points = points < 0 ? 1 : points;
10707
10708
  }
10708
10709
  decorate() {
10709
10710
  return /* @__PURE__ */ jsx91(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@examind/block-editor",
3
- "version": "0.1.39",
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.39"
65
+ "@examind/block-types": "0.1.41"
66
66
  },
67
67
  "dependencies": {
68
68
  "@dnd-kit/core": "6.3.1",