@examind/block-editor 0.3.5 → 0.4.0

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
@@ -4243,7 +4243,8 @@ function FillInTheBlankSpaceSettings(props) {
4243
4243
  defaultValue: foundNode.__matches,
4244
4244
  resize: "auto",
4245
4245
  onChange: handleMatchesChange
4246
- }
4246
+ },
4247
+ `matches_${nodeKey}`
4247
4248
  ) }),
4248
4249
  /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4249
4250
  DropdownButton,
@@ -4314,7 +4315,8 @@ function FillInTheBlankSpaceSettings(props) {
4314
4315
  }
4315
4316
  );
4316
4317
  }
4317
- }
4318
+ },
4319
+ `use-regex_${nodeKey}`
4318
4320
  ) }),
4319
4321
  /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4320
4322
  Checkbox,
@@ -4331,7 +4333,8 @@ function FillInTheBlankSpaceSettings(props) {
4331
4333
  }
4332
4334
  });
4333
4335
  }
4334
- }
4336
+ },
4337
+ `case-sensitive_${nodeKey}`
4335
4338
  ) }),
4336
4339
  !foundNode.getUseRegex() && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4337
4340
  TextInput,
@@ -4353,7 +4356,8 @@ function FillInTheBlankSpaceSettings(props) {
4353
4356
  }
4354
4357
  });
4355
4358
  }
4356
- }
4359
+ },
4360
+ `errors-allowed_${nodeKey}`
4357
4361
  ) })
4358
4362
  ] }),
4359
4363
  foundNode.getSpaceType() === "Number" && /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(import_jsx_runtime41.Fragment, { children: [
@@ -4377,7 +4381,8 @@ function FillInTheBlankSpaceSettings(props) {
4377
4381
  }
4378
4382
  });
4379
4383
  }
4380
- }
4384
+ },
4385
+ `min-decimals_${nodeKey}`
4381
4386
  ) }),
4382
4387
  /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4383
4388
  TextInput,
@@ -4414,7 +4419,8 @@ function FillInTheBlankSpaceSettings(props) {
4414
4419
  }
4415
4420
  });
4416
4421
  }
4417
- }
4422
+ },
4423
+ `error-tolerance_${nodeKey}`
4418
4424
  ) })
4419
4425
  ] }),
4420
4426
  foundNode.getSpaceType() === "Dropdown" && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
@@ -4435,7 +4441,8 @@ function FillInTheBlankSpaceSettings(props) {
4435
4441
  }
4436
4442
  });
4437
4443
  }
4438
- }
4444
+ },
4445
+ `distractors_${nodeKey}`
4439
4446
  ) }),
4440
4447
  /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { style: { width: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4441
4448
  Button,
@@ -10449,10 +10456,11 @@ function ExcelQuestionComponent(props) {
10449
10456
  var import_jsx_runtime78 = require("react/jsx-runtime");
10450
10457
  var TYPE_NAME9 = "excel-question";
10451
10458
  var ExcelQuestionNode = class _ExcelQuestionNode extends import_lexical55.DecoratorNode {
10452
- constructor(points, data, active, id, key) {
10459
+ constructor(points, configId, data, active, id, key) {
10453
10460
  super(key);
10454
10461
  this.__id = id || (0, import_nanoid8.nanoid)();
10455
10462
  this.__points = points;
10463
+ this.__configId = configId;
10456
10464
  this.__data = data;
10457
10465
  if (active) {
10458
10466
  this.__active = active;
@@ -10468,6 +10476,7 @@ var ExcelQuestionNode = class _ExcelQuestionNode extends import_lexical55.Decora
10468
10476
  static clone(node) {
10469
10477
  return new _ExcelQuestionNode(
10470
10478
  node.__points,
10479
+ node.__configId,
10471
10480
  node.__data,
10472
10481
  node.__active,
10473
10482
  node.__id,
@@ -10572,6 +10581,7 @@ var ExcelQuestionNode = class _ExcelQuestionNode extends import_lexical55.Decora
10572
10581
  }
10573
10582
  return $createExcelQuestionNode(
10574
10583
  serializedNode.points,
10584
+ serializedNode.configId,
10575
10585
  {
10576
10586
  sourceFileName,
10577
10587
  transformations,
@@ -10631,6 +10641,7 @@ var ExcelQuestionNode = class _ExcelQuestionNode extends import_lexical55.Decora
10631
10641
  return {
10632
10642
  id: this.__id,
10633
10643
  points: this.__points,
10644
+ configId: this.__configId,
10634
10645
  data: exportedData,
10635
10646
  active: this.__active,
10636
10647
  type: TYPE_NAME9,
@@ -10683,9 +10694,9 @@ var ExcelQuestionNode = class _ExcelQuestionNode extends import_lexical55.Decora
10683
10694
  );
10684
10695
  }
10685
10696
  };
10686
- function $createExcelQuestionNode(points, data, active, id) {
10697
+ function $createExcelQuestionNode(points, configId, data, active, id) {
10687
10698
  return (0, import_lexical55.$applyNodeReplacement)(
10688
- new ExcelQuestionNode(points, data, active, id)
10699
+ new ExcelQuestionNode(points, configId, data, active, id)
10689
10700
  );
10690
10701
  }
10691
10702
  function $isExcelQuestionNode(node) {
@@ -11979,7 +11990,8 @@ function FillInTheBlankQuestionSettings(props) {
11979
11990
  }
11980
11991
  });
11981
11992
  }
11982
- }
11993
+ },
11994
+ `points-pre-space_${nodeKey}`
11983
11995
  ) });
11984
11996
  }
11985
11997
 
@@ -16296,7 +16308,8 @@ function JournalEntryQuestionSettings(props) {
16296
16308
  }
16297
16309
  });
16298
16310
  }
16299
- }
16311
+ },
16312
+ `points_${nodeKey}`
16300
16313
  ) }),
16301
16314
  /* @__PURE__ */ (0, import_jsx_runtime116.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
16302
16315
  TextInput,
@@ -16327,7 +16340,8 @@ function JournalEntryQuestionSettings(props) {
16327
16340
  }
16328
16341
  });
16329
16342
  }
16330
- }
16343
+ },
16344
+ `error-tolerance_${nodeKey}`
16331
16345
  ) }),
16332
16346
  /* @__PURE__ */ (0, import_jsx_runtime116.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
16333
16347
  Checkbox,
@@ -16345,7 +16359,8 @@ function JournalEntryQuestionSettings(props) {
16345
16359
  }
16346
16360
  });
16347
16361
  }
16348
- }
16362
+ },
16363
+ `no-entry-required_${nodeKey}`
16349
16364
  ) })
16350
16365
  ] });
16351
16366
  }
@@ -16551,7 +16566,8 @@ function MatchingQuestionSettings(props) {
16551
16566
  }
16552
16567
  });
16553
16568
  }
16554
- }
16569
+ },
16570
+ `points-per-match_${nodeKey}`
16555
16571
  ) });
16556
16572
  }
16557
16573
 
@@ -17345,7 +17361,8 @@ function ShortAnswerQuestionSettings(props) {
17345
17361
  }
17346
17362
  });
17347
17363
  }
17348
- }
17364
+ },
17365
+ `points_${nodeKey}`
17349
17366
  ) }),
17350
17367
  /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
17351
17368
  TextInput,
@@ -17372,7 +17389,8 @@ function ShortAnswerQuestionSettings(props) {
17372
17389
  }
17373
17390
  });
17374
17391
  }
17375
- }
17392
+ },
17393
+ `maxWords_${nodeKey}`
17376
17394
  ) })
17377
17395
  ] });
17378
17396
  }
@@ -21758,7 +21776,8 @@ function FinancialStatementQuestionSettings(props) {
21758
21776
  }
21759
21777
  });
21760
21778
  }
21761
- }
21779
+ },
21780
+ `points_${nodeKey}`
21762
21781
  ) });
21763
21782
  }
21764
21783
 
package/dist/index.mjs CHANGED
@@ -4342,7 +4342,8 @@ function FillInTheBlankSpaceSettings(props) {
4342
4342
  defaultValue: foundNode.__matches,
4343
4343
  resize: "auto",
4344
4344
  onChange: handleMatchesChange
4345
- }
4345
+ },
4346
+ `matches_${nodeKey}`
4346
4347
  ) }),
4347
4348
  /* @__PURE__ */ jsx41("div", { children: /* @__PURE__ */ jsx41(
4348
4349
  DropdownButton,
@@ -4413,7 +4414,8 @@ function FillInTheBlankSpaceSettings(props) {
4413
4414
  }
4414
4415
  );
4415
4416
  }
4416
- }
4417
+ },
4418
+ `use-regex_${nodeKey}`
4417
4419
  ) }),
4418
4420
  /* @__PURE__ */ jsx41("div", { children: /* @__PURE__ */ jsx41(
4419
4421
  Checkbox,
@@ -4430,7 +4432,8 @@ function FillInTheBlankSpaceSettings(props) {
4430
4432
  }
4431
4433
  });
4432
4434
  }
4433
- }
4435
+ },
4436
+ `case-sensitive_${nodeKey}`
4434
4437
  ) }),
4435
4438
  !foundNode.getUseRegex() && /* @__PURE__ */ jsx41("div", { children: /* @__PURE__ */ jsx41(
4436
4439
  TextInput,
@@ -4452,7 +4455,8 @@ function FillInTheBlankSpaceSettings(props) {
4452
4455
  }
4453
4456
  });
4454
4457
  }
4455
- }
4458
+ },
4459
+ `errors-allowed_${nodeKey}`
4456
4460
  ) })
4457
4461
  ] }),
4458
4462
  foundNode.getSpaceType() === "Number" && /* @__PURE__ */ jsxs10(Fragment16, { children: [
@@ -4476,7 +4480,8 @@ function FillInTheBlankSpaceSettings(props) {
4476
4480
  }
4477
4481
  });
4478
4482
  }
4479
- }
4483
+ },
4484
+ `min-decimals_${nodeKey}`
4480
4485
  ) }),
4481
4486
  /* @__PURE__ */ jsx41("div", { children: /* @__PURE__ */ jsx41(
4482
4487
  TextInput,
@@ -4513,7 +4518,8 @@ function FillInTheBlankSpaceSettings(props) {
4513
4518
  }
4514
4519
  });
4515
4520
  }
4516
- }
4521
+ },
4522
+ `error-tolerance_${nodeKey}`
4517
4523
  ) })
4518
4524
  ] }),
4519
4525
  foundNode.getSpaceType() === "Dropdown" && /* @__PURE__ */ jsx41("div", { children: /* @__PURE__ */ jsx41(
@@ -4534,7 +4540,8 @@ function FillInTheBlankSpaceSettings(props) {
4534
4540
  }
4535
4541
  });
4536
4542
  }
4537
- }
4543
+ },
4544
+ `distractors_${nodeKey}`
4538
4545
  ) }),
4539
4546
  /* @__PURE__ */ jsx41("div", { style: { width: "100%" }, children: /* @__PURE__ */ jsx41(
4540
4547
  Button,
@@ -10729,10 +10736,11 @@ function ExcelQuestionComponent(props) {
10729
10736
  import { jsx as jsx78 } from "react/jsx-runtime";
10730
10737
  var TYPE_NAME9 = "excel-question";
10731
10738
  var ExcelQuestionNode = class _ExcelQuestionNode extends DecoratorNode8 {
10732
- constructor(points, data, active, id, key) {
10739
+ constructor(points, configId, data, active, id, key) {
10733
10740
  super(key);
10734
10741
  this.__id = id || nanoid8();
10735
10742
  this.__points = points;
10743
+ this.__configId = configId;
10736
10744
  this.__data = data;
10737
10745
  if (active) {
10738
10746
  this.__active = active;
@@ -10748,6 +10756,7 @@ var ExcelQuestionNode = class _ExcelQuestionNode extends DecoratorNode8 {
10748
10756
  static clone(node) {
10749
10757
  return new _ExcelQuestionNode(
10750
10758
  node.__points,
10759
+ node.__configId,
10751
10760
  node.__data,
10752
10761
  node.__active,
10753
10762
  node.__id,
@@ -10852,6 +10861,7 @@ var ExcelQuestionNode = class _ExcelQuestionNode extends DecoratorNode8 {
10852
10861
  }
10853
10862
  return $createExcelQuestionNode(
10854
10863
  serializedNode.points,
10864
+ serializedNode.configId,
10855
10865
  {
10856
10866
  sourceFileName,
10857
10867
  transformations,
@@ -10911,6 +10921,7 @@ var ExcelQuestionNode = class _ExcelQuestionNode extends DecoratorNode8 {
10911
10921
  return {
10912
10922
  id: this.__id,
10913
10923
  points: this.__points,
10924
+ configId: this.__configId,
10914
10925
  data: exportedData,
10915
10926
  active: this.__active,
10916
10927
  type: TYPE_NAME9,
@@ -10963,9 +10974,9 @@ var ExcelQuestionNode = class _ExcelQuestionNode extends DecoratorNode8 {
10963
10974
  );
10964
10975
  }
10965
10976
  };
10966
- function $createExcelQuestionNode(points, data, active, id) {
10977
+ function $createExcelQuestionNode(points, configId, data, active, id) {
10967
10978
  return $applyNodeReplacement9(
10968
- new ExcelQuestionNode(points, data, active, id)
10979
+ new ExcelQuestionNode(points, configId, data, active, id)
10969
10980
  );
10970
10981
  }
10971
10982
  function $isExcelQuestionNode(node) {
@@ -12310,7 +12321,8 @@ function FillInTheBlankQuestionSettings(props) {
12310
12321
  }
12311
12322
  });
12312
12323
  }
12313
- }
12324
+ },
12325
+ `points-pre-space_${nodeKey}`
12314
12326
  ) });
12315
12327
  }
12316
12328
 
@@ -16818,7 +16830,8 @@ function JournalEntryQuestionSettings(props) {
16818
16830
  }
16819
16831
  });
16820
16832
  }
16821
- }
16833
+ },
16834
+ `points_${nodeKey}`
16822
16835
  ) }),
16823
16836
  /* @__PURE__ */ jsx116("div", { children: /* @__PURE__ */ jsx116(
16824
16837
  TextInput,
@@ -16849,7 +16862,8 @@ function JournalEntryQuestionSettings(props) {
16849
16862
  }
16850
16863
  });
16851
16864
  }
16852
- }
16865
+ },
16866
+ `error-tolerance_${nodeKey}`
16853
16867
  ) }),
16854
16868
  /* @__PURE__ */ jsx116("div", { children: /* @__PURE__ */ jsx116(
16855
16869
  Checkbox,
@@ -16867,7 +16881,8 @@ function JournalEntryQuestionSettings(props) {
16867
16881
  }
16868
16882
  });
16869
16883
  }
16870
- }
16884
+ },
16885
+ `no-entry-required_${nodeKey}`
16871
16886
  ) })
16872
16887
  ] });
16873
16888
  }
@@ -17073,7 +17088,8 @@ function MatchingQuestionSettings(props) {
17073
17088
  }
17074
17089
  });
17075
17090
  }
17076
- }
17091
+ },
17092
+ `points-per-match_${nodeKey}`
17077
17093
  ) });
17078
17094
  }
17079
17095
 
@@ -17894,7 +17910,8 @@ function ShortAnswerQuestionSettings(props) {
17894
17910
  }
17895
17911
  });
17896
17912
  }
17897
- }
17913
+ },
17914
+ `points_${nodeKey}`
17898
17915
  ) }),
17899
17916
  /* @__PURE__ */ jsx122("div", { children: /* @__PURE__ */ jsx122(
17900
17917
  TextInput,
@@ -17921,7 +17938,8 @@ function ShortAnswerQuestionSettings(props) {
17921
17938
  }
17922
17939
  });
17923
17940
  }
17924
- }
17941
+ },
17942
+ `maxWords_${nodeKey}`
17925
17943
  ) })
17926
17944
  ] });
17927
17945
  }
@@ -22446,7 +22464,8 @@ function FinancialStatementQuestionSettings(props) {
22446
22464
  }
22447
22465
  });
22448
22466
  }
22449
- }
22467
+ },
22468
+ `points_${nodeKey}`
22450
22469
  ) });
22451
22470
  }
22452
22471
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@examind/block-editor",
3
- "version": "0.3.5",
3
+ "version": "0.4.0",
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.3.5"
65
+ "@examind/block-types": "0.4.0"
66
66
  },
67
67
  "dependencies": {
68
68
  "@dnd-kit/core": "6.3.1",