@examind/block-editor 0.1.33 → 0.1.35
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 +15 -10
- package/dist/index.mjs +15 -10
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -10166,7 +10166,7 @@ var import_lexical65 = require("lexical");
|
|
|
10166
10166
|
var import_react68 = require("react");
|
|
10167
10167
|
var import_jsx_runtime90 = require("react/jsx-runtime");
|
|
10168
10168
|
function SimulationQuestionComponent(props) {
|
|
10169
|
-
const { nodeKey, id, aiSystemMessage,
|
|
10169
|
+
const { nodeKey, id, aiSystemMessage, commentInstructions } = props;
|
|
10170
10170
|
const [editor] = (0, import_LexicalComposerContext49.useLexicalComposerContext)();
|
|
10171
10171
|
const rootElementRef = (0, import_react68.useRef)(null);
|
|
10172
10172
|
(0, import_react68.useEffect)(() => {
|
|
@@ -10212,7 +10212,7 @@ function SimulationQuestionComponent(props) {
|
|
|
10212
10212
|
"data-selectable": "true",
|
|
10213
10213
|
children: [
|
|
10214
10214
|
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: "title", "data-selectable": "true", children: aiSystemMessage }),
|
|
10215
|
-
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { children:
|
|
10215
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { children: commentInstructions })
|
|
10216
10216
|
]
|
|
10217
10217
|
}
|
|
10218
10218
|
)
|
|
@@ -10225,13 +10225,14 @@ function SimulationQuestionComponent(props) {
|
|
|
10225
10225
|
var import_jsx_runtime91 = require("react/jsx-runtime");
|
|
10226
10226
|
var TYPE_NAME13 = "simulation-question";
|
|
10227
10227
|
var SimulationQuestionNode = class _SimulationQuestionNode extends import_lexical66.DecoratorNode {
|
|
10228
|
-
constructor(points, aiSystemMessage, aiChatModel,
|
|
10228
|
+
constructor(points, aiSystemMessage, aiChatModel, disableChat, commentInstructions, id, key) {
|
|
10229
10229
|
super(key);
|
|
10230
10230
|
this.__id = id || (0, import_nanoid10.nanoid)();
|
|
10231
10231
|
this.__points = points < 0 ? 1 : points;
|
|
10232
10232
|
this.__aiSystemMessage = aiSystemMessage || null;
|
|
10233
10233
|
this.__aiChatModel = aiChatModel || null;
|
|
10234
|
-
this.
|
|
10234
|
+
this.__disableChat = disableChat || false;
|
|
10235
|
+
this.__commentInstructions = commentInstructions || null;
|
|
10235
10236
|
}
|
|
10236
10237
|
static getType() {
|
|
10237
10238
|
return TYPE_NAME13;
|
|
@@ -10241,7 +10242,8 @@ var SimulationQuestionNode = class _SimulationQuestionNode extends import_lexica
|
|
|
10241
10242
|
node.__points,
|
|
10242
10243
|
node.__aiSystemMessage,
|
|
10243
10244
|
node.__aiChatModel,
|
|
10244
|
-
node.
|
|
10245
|
+
node.__disableChat,
|
|
10246
|
+
node.__commentInstructions,
|
|
10245
10247
|
node.__id,
|
|
10246
10248
|
node.__key
|
|
10247
10249
|
);
|
|
@@ -10269,7 +10271,8 @@ var SimulationQuestionNode = class _SimulationQuestionNode extends import_lexica
|
|
|
10269
10271
|
serializedNode.points,
|
|
10270
10272
|
serializedNode.aiSystemMessage,
|
|
10271
10273
|
serializedNode.aiChatModel,
|
|
10272
|
-
serializedNode.
|
|
10274
|
+
serializedNode.disableChat,
|
|
10275
|
+
serializedNode.commentInstructions,
|
|
10273
10276
|
serializedNode.id
|
|
10274
10277
|
);
|
|
10275
10278
|
}
|
|
@@ -10279,7 +10282,8 @@ var SimulationQuestionNode = class _SimulationQuestionNode extends import_lexica
|
|
|
10279
10282
|
points: this.__points,
|
|
10280
10283
|
aiSystemMessage: this.__aiSystemMessage,
|
|
10281
10284
|
aiChatModel: this.__aiChatModel,
|
|
10282
|
-
|
|
10285
|
+
disableChat: this.__disableChat,
|
|
10286
|
+
commentInstructions: this.__commentInstructions,
|
|
10283
10287
|
type: TYPE_NAME13,
|
|
10284
10288
|
version: 1
|
|
10285
10289
|
};
|
|
@@ -10307,18 +10311,19 @@ var SimulationQuestionNode = class _SimulationQuestionNode extends import_lexica
|
|
|
10307
10311
|
nodeKey: this.__key,
|
|
10308
10312
|
id: this.__id,
|
|
10309
10313
|
aiSystemMessage: this.__aiSystemMessage,
|
|
10310
|
-
|
|
10314
|
+
commentInstructions: this.__commentInstructions
|
|
10311
10315
|
}
|
|
10312
10316
|
);
|
|
10313
10317
|
}
|
|
10314
10318
|
};
|
|
10315
|
-
function $createSimulationQuestionNode(points, aiSystemMessage, aiChatModel,
|
|
10319
|
+
function $createSimulationQuestionNode(points, aiSystemMessage, aiChatModel, disableChat, commentInstructions, id) {
|
|
10316
10320
|
return (0, import_lexical66.$applyNodeReplacement)(
|
|
10317
10321
|
new SimulationQuestionNode(
|
|
10318
10322
|
points,
|
|
10319
10323
|
aiSystemMessage,
|
|
10320
10324
|
aiChatModel,
|
|
10321
|
-
|
|
10325
|
+
disableChat,
|
|
10326
|
+
commentInstructions,
|
|
10322
10327
|
id
|
|
10323
10328
|
)
|
|
10324
10329
|
);
|
package/dist/index.mjs
CHANGED
|
@@ -10448,7 +10448,7 @@ import {
|
|
|
10448
10448
|
import { useEffect as useEffect58, useRef as useRef33 } from "react";
|
|
10449
10449
|
import { jsx as jsx90, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
10450
10450
|
function SimulationQuestionComponent(props) {
|
|
10451
|
-
const { nodeKey, id, aiSystemMessage,
|
|
10451
|
+
const { nodeKey, id, aiSystemMessage, commentInstructions } = props;
|
|
10452
10452
|
const [editor] = useLexicalComposerContext49();
|
|
10453
10453
|
const rootElementRef = useRef33(null);
|
|
10454
10454
|
useEffect58(() => {
|
|
@@ -10494,7 +10494,7 @@ function SimulationQuestionComponent(props) {
|
|
|
10494
10494
|
"data-selectable": "true",
|
|
10495
10495
|
children: [
|
|
10496
10496
|
/* @__PURE__ */ jsx90("div", { className: "title", "data-selectable": "true", children: aiSystemMessage }),
|
|
10497
|
-
/* @__PURE__ */ jsx90("div", { children:
|
|
10497
|
+
/* @__PURE__ */ jsx90("div", { children: commentInstructions })
|
|
10498
10498
|
]
|
|
10499
10499
|
}
|
|
10500
10500
|
)
|
|
@@ -10507,13 +10507,14 @@ function SimulationQuestionComponent(props) {
|
|
|
10507
10507
|
import { jsx as jsx91 } from "react/jsx-runtime";
|
|
10508
10508
|
var TYPE_NAME13 = "simulation-question";
|
|
10509
10509
|
var SimulationQuestionNode = class _SimulationQuestionNode extends DecoratorNode15 {
|
|
10510
|
-
constructor(points, aiSystemMessage, aiChatModel,
|
|
10510
|
+
constructor(points, aiSystemMessage, aiChatModel, disableChat, commentInstructions, id, key) {
|
|
10511
10511
|
super(key);
|
|
10512
10512
|
this.__id = id || nanoid10();
|
|
10513
10513
|
this.__points = points < 0 ? 1 : points;
|
|
10514
10514
|
this.__aiSystemMessage = aiSystemMessage || null;
|
|
10515
10515
|
this.__aiChatModel = aiChatModel || null;
|
|
10516
|
-
this.
|
|
10516
|
+
this.__disableChat = disableChat || false;
|
|
10517
|
+
this.__commentInstructions = commentInstructions || null;
|
|
10517
10518
|
}
|
|
10518
10519
|
static getType() {
|
|
10519
10520
|
return TYPE_NAME13;
|
|
@@ -10523,7 +10524,8 @@ var SimulationQuestionNode = class _SimulationQuestionNode extends DecoratorNode
|
|
|
10523
10524
|
node.__points,
|
|
10524
10525
|
node.__aiSystemMessage,
|
|
10525
10526
|
node.__aiChatModel,
|
|
10526
|
-
node.
|
|
10527
|
+
node.__disableChat,
|
|
10528
|
+
node.__commentInstructions,
|
|
10527
10529
|
node.__id,
|
|
10528
10530
|
node.__key
|
|
10529
10531
|
);
|
|
@@ -10551,7 +10553,8 @@ var SimulationQuestionNode = class _SimulationQuestionNode extends DecoratorNode
|
|
|
10551
10553
|
serializedNode.points,
|
|
10552
10554
|
serializedNode.aiSystemMessage,
|
|
10553
10555
|
serializedNode.aiChatModel,
|
|
10554
|
-
serializedNode.
|
|
10556
|
+
serializedNode.disableChat,
|
|
10557
|
+
serializedNode.commentInstructions,
|
|
10555
10558
|
serializedNode.id
|
|
10556
10559
|
);
|
|
10557
10560
|
}
|
|
@@ -10561,7 +10564,8 @@ var SimulationQuestionNode = class _SimulationQuestionNode extends DecoratorNode
|
|
|
10561
10564
|
points: this.__points,
|
|
10562
10565
|
aiSystemMessage: this.__aiSystemMessage,
|
|
10563
10566
|
aiChatModel: this.__aiChatModel,
|
|
10564
|
-
|
|
10567
|
+
disableChat: this.__disableChat,
|
|
10568
|
+
commentInstructions: this.__commentInstructions,
|
|
10565
10569
|
type: TYPE_NAME13,
|
|
10566
10570
|
version: 1
|
|
10567
10571
|
};
|
|
@@ -10589,18 +10593,19 @@ var SimulationQuestionNode = class _SimulationQuestionNode extends DecoratorNode
|
|
|
10589
10593
|
nodeKey: this.__key,
|
|
10590
10594
|
id: this.__id,
|
|
10591
10595
|
aiSystemMessage: this.__aiSystemMessage,
|
|
10592
|
-
|
|
10596
|
+
commentInstructions: this.__commentInstructions
|
|
10593
10597
|
}
|
|
10594
10598
|
);
|
|
10595
10599
|
}
|
|
10596
10600
|
};
|
|
10597
|
-
function $createSimulationQuestionNode(points, aiSystemMessage, aiChatModel,
|
|
10601
|
+
function $createSimulationQuestionNode(points, aiSystemMessage, aiChatModel, disableChat, commentInstructions, id) {
|
|
10598
10602
|
return $applyNodeReplacement15(
|
|
10599
10603
|
new SimulationQuestionNode(
|
|
10600
10604
|
points,
|
|
10601
10605
|
aiSystemMessage,
|
|
10602
10606
|
aiChatModel,
|
|
10603
|
-
|
|
10607
|
+
disableChat,
|
|
10608
|
+
commentInstructions,
|
|
10604
10609
|
id
|
|
10605
10610
|
)
|
|
10606
10611
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@examind/block-editor",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.35",
|
|
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.
|
|
65
|
+
"@examind/block-types": "0.1.35"
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
68
|
"@dnd-kit/core": "6.3.1",
|