@examind/block-editor 0.3.6 → 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 +7 -3
- package/dist/index.mjs +7 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -10456,10 +10456,11 @@ function ExcelQuestionComponent(props) {
|
|
|
10456
10456
|
var import_jsx_runtime78 = require("react/jsx-runtime");
|
|
10457
10457
|
var TYPE_NAME9 = "excel-question";
|
|
10458
10458
|
var ExcelQuestionNode = class _ExcelQuestionNode extends import_lexical55.DecoratorNode {
|
|
10459
|
-
constructor(points, data, active, id, key) {
|
|
10459
|
+
constructor(points, configId, data, active, id, key) {
|
|
10460
10460
|
super(key);
|
|
10461
10461
|
this.__id = id || (0, import_nanoid8.nanoid)();
|
|
10462
10462
|
this.__points = points;
|
|
10463
|
+
this.__configId = configId;
|
|
10463
10464
|
this.__data = data;
|
|
10464
10465
|
if (active) {
|
|
10465
10466
|
this.__active = active;
|
|
@@ -10475,6 +10476,7 @@ var ExcelQuestionNode = class _ExcelQuestionNode extends import_lexical55.Decora
|
|
|
10475
10476
|
static clone(node) {
|
|
10476
10477
|
return new _ExcelQuestionNode(
|
|
10477
10478
|
node.__points,
|
|
10479
|
+
node.__configId,
|
|
10478
10480
|
node.__data,
|
|
10479
10481
|
node.__active,
|
|
10480
10482
|
node.__id,
|
|
@@ -10579,6 +10581,7 @@ var ExcelQuestionNode = class _ExcelQuestionNode extends import_lexical55.Decora
|
|
|
10579
10581
|
}
|
|
10580
10582
|
return $createExcelQuestionNode(
|
|
10581
10583
|
serializedNode.points,
|
|
10584
|
+
serializedNode.configId,
|
|
10582
10585
|
{
|
|
10583
10586
|
sourceFileName,
|
|
10584
10587
|
transformations,
|
|
@@ -10638,6 +10641,7 @@ var ExcelQuestionNode = class _ExcelQuestionNode extends import_lexical55.Decora
|
|
|
10638
10641
|
return {
|
|
10639
10642
|
id: this.__id,
|
|
10640
10643
|
points: this.__points,
|
|
10644
|
+
configId: this.__configId,
|
|
10641
10645
|
data: exportedData,
|
|
10642
10646
|
active: this.__active,
|
|
10643
10647
|
type: TYPE_NAME9,
|
|
@@ -10690,9 +10694,9 @@ var ExcelQuestionNode = class _ExcelQuestionNode extends import_lexical55.Decora
|
|
|
10690
10694
|
);
|
|
10691
10695
|
}
|
|
10692
10696
|
};
|
|
10693
|
-
function $createExcelQuestionNode(points, data, active, id) {
|
|
10697
|
+
function $createExcelQuestionNode(points, configId, data, active, id) {
|
|
10694
10698
|
return (0, import_lexical55.$applyNodeReplacement)(
|
|
10695
|
-
new ExcelQuestionNode(points, data, active, id)
|
|
10699
|
+
new ExcelQuestionNode(points, configId, data, active, id)
|
|
10696
10700
|
);
|
|
10697
10701
|
}
|
|
10698
10702
|
function $isExcelQuestionNode(node) {
|
package/dist/index.mjs
CHANGED
|
@@ -10736,10 +10736,11 @@ function ExcelQuestionComponent(props) {
|
|
|
10736
10736
|
import { jsx as jsx78 } from "react/jsx-runtime";
|
|
10737
10737
|
var TYPE_NAME9 = "excel-question";
|
|
10738
10738
|
var ExcelQuestionNode = class _ExcelQuestionNode extends DecoratorNode8 {
|
|
10739
|
-
constructor(points, data, active, id, key) {
|
|
10739
|
+
constructor(points, configId, data, active, id, key) {
|
|
10740
10740
|
super(key);
|
|
10741
10741
|
this.__id = id || nanoid8();
|
|
10742
10742
|
this.__points = points;
|
|
10743
|
+
this.__configId = configId;
|
|
10743
10744
|
this.__data = data;
|
|
10744
10745
|
if (active) {
|
|
10745
10746
|
this.__active = active;
|
|
@@ -10755,6 +10756,7 @@ var ExcelQuestionNode = class _ExcelQuestionNode extends DecoratorNode8 {
|
|
|
10755
10756
|
static clone(node) {
|
|
10756
10757
|
return new _ExcelQuestionNode(
|
|
10757
10758
|
node.__points,
|
|
10759
|
+
node.__configId,
|
|
10758
10760
|
node.__data,
|
|
10759
10761
|
node.__active,
|
|
10760
10762
|
node.__id,
|
|
@@ -10859,6 +10861,7 @@ var ExcelQuestionNode = class _ExcelQuestionNode extends DecoratorNode8 {
|
|
|
10859
10861
|
}
|
|
10860
10862
|
return $createExcelQuestionNode(
|
|
10861
10863
|
serializedNode.points,
|
|
10864
|
+
serializedNode.configId,
|
|
10862
10865
|
{
|
|
10863
10866
|
sourceFileName,
|
|
10864
10867
|
transformations,
|
|
@@ -10918,6 +10921,7 @@ var ExcelQuestionNode = class _ExcelQuestionNode extends DecoratorNode8 {
|
|
|
10918
10921
|
return {
|
|
10919
10922
|
id: this.__id,
|
|
10920
10923
|
points: this.__points,
|
|
10924
|
+
configId: this.__configId,
|
|
10921
10925
|
data: exportedData,
|
|
10922
10926
|
active: this.__active,
|
|
10923
10927
|
type: TYPE_NAME9,
|
|
@@ -10970,9 +10974,9 @@ var ExcelQuestionNode = class _ExcelQuestionNode extends DecoratorNode8 {
|
|
|
10970
10974
|
);
|
|
10971
10975
|
}
|
|
10972
10976
|
};
|
|
10973
|
-
function $createExcelQuestionNode(points, data, active, id) {
|
|
10977
|
+
function $createExcelQuestionNode(points, configId, data, active, id) {
|
|
10974
10978
|
return $applyNodeReplacement9(
|
|
10975
|
-
new ExcelQuestionNode(points, data, active, id)
|
|
10979
|
+
new ExcelQuestionNode(points, configId, data, active, id)
|
|
10976
10980
|
);
|
|
10977
10981
|
}
|
|
10978
10982
|
function $isExcelQuestionNode(node) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@examind/block-editor",
|
|
3
|
-
"version": "0.
|
|
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.
|
|
65
|
+
"@examind/block-types": "0.4.0"
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
68
|
"@dnd-kit/core": "6.3.1",
|