@gmb/bitmark-parser-generator 4.9.0 → 4.10.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.
@@ -29,6 +29,7 @@ declare const BitType: Readonly<{
29
29
  appAiPrompt: "app-ai-prompt";
30
30
  appBitmarkFromEditor: "app-bitmark-from-editor";
31
31
  appBitmarkFromJavascript: "app-bitmark-from-javascript";
32
+ appCalculatorLatex: "app-calculator-latex";
32
33
  appCodeCell: "app-code-cell";
33
34
  appCodeEditor: "app-code-editor";
34
35
  appCodeIde: "app-code-ide";
@@ -448,6 +449,10 @@ declare const BitType: Readonly<{
448
449
  reviewRequestForReviewNote: "review-request-for-review-note";
449
450
  reviewReviewerNote: "review-reviewer-note";
450
451
  sampleSolution: "sample-solution";
452
+ sandbox: "sandbox";
453
+ sandboxOutputJson: "sandbox-output-json";
454
+ sandboxOutputMarkup: "sandbox-output-markup";
455
+ sandboxOutputRender: "sandbox-output-render";
451
456
  scorm: "scorm";
452
457
  screenshot: "screenshot";
453
458
  selfAssessment: "self-assessment";
@@ -622,6 +627,7 @@ declare const BitType: Readonly<{
622
627
  appAiPrompt: "app-ai-prompt";
623
628
  appBitmarkFromEditor: "app-bitmark-from-editor";
624
629
  appBitmarkFromJavascript: "app-bitmark-from-javascript";
630
+ appCalculatorLatex: "app-calculator-latex";
625
631
  appCodeCell: "app-code-cell";
626
632
  appCodeEditor: "app-code-editor";
627
633
  appCodeIde: "app-code-ide";
@@ -1041,6 +1047,10 @@ declare const BitType: Readonly<{
1041
1047
  reviewRequestForReviewNote: "review-request-for-review-note";
1042
1048
  reviewReviewerNote: "review-reviewer-note";
1043
1049
  sampleSolution: "sample-solution";
1050
+ sandbox: "sandbox";
1051
+ sandboxOutputJson: "sandbox-output-json";
1052
+ sandboxOutputMarkup: "sandbox-output-markup";
1053
+ sandboxOutputRender: "sandbox-output-render";
1044
1054
  scorm: "scorm";
1045
1055
  screenshot: "screenshot";
1046
1056
  selfAssessment: "self-assessment";
@@ -1338,6 +1348,7 @@ declare const ConfigKey: Readonly<{
1338
1348
  property_focusX: "@focusX";
1339
1349
  property_focusY: "@focusY";
1340
1350
  property_format: "@format";
1351
+ property_formula: "@formula";
1341
1352
  property_fullName: "@fullName";
1342
1353
  property_groupTag: "@groupTag";
1343
1354
  property_handInAcceptFileType: "@handInAcceptFileType";
@@ -1631,6 +1642,7 @@ declare const ConfigKey: Readonly<{
1631
1642
  property_focusX: "@focusX";
1632
1643
  property_focusY: "@focusY";
1633
1644
  property_format: "@format";
1645
+ property_formula: "@formula";
1634
1646
  property_fullName: "@fullName";
1635
1647
  property_groupTag: "@groupTag";
1636
1648
  property_handInAcceptFileType: "@handInAcceptFileType";
@@ -3176,6 +3188,7 @@ interface Bit {
3176
3188
  ratingLevelStart?: RatingLevelStartEndJson;
3177
3189
  ratingLevelEnd?: RatingLevelStartEndJson;
3178
3190
  ratingLevelSelected?: Property;
3191
+ formula?: Property;
3179
3192
  markConfig?: MarkConfigJson[];
3180
3193
  extraProperties?: ExtraProperties;
3181
3194
  book?: string | BookJson[];
@@ -3450,6 +3463,8 @@ declare const NodeType: Readonly<{
3450
3463
  footerText: "footerText";
3451
3464
  forKeys: "forKeys";
3452
3465
  format: "format";
3466
+ formula: "formula";
3467
+ formulaValue: "formulaValue";
3453
3468
  forValues: "forValues";
3454
3469
  forValuesValue: "forValuesValue";
3455
3470
  fullName: "fullName";
@@ -4009,6 +4024,8 @@ declare const NodeType: Readonly<{
4009
4024
  footerText: "footerText";
4010
4025
  forKeys: "forKeys";
4011
4026
  format: "format";
4027
+ formula: "formula";
4028
+ formulaValue: "formulaValue";
4012
4029
  forValues: "forValues";
4013
4030
  forValuesValue: "forValuesValue";
4014
4031
  fullName: "fullName";
@@ -5405,6 +5422,7 @@ declare class Builder extends BaseBuilder {
5405
5422
  ratingLevelStart?: Partial<RatingLevelStartEndJson>;
5406
5423
  ratingLevelEnd?: Partial<RatingLevelStartEndJson>;
5407
5424
  ratingLevelSelected?: number;
5425
+ formula?: string;
5408
5426
  partialAnswer?: string;
5409
5427
  book?: string | BookJson[];
5410
5428
  title?: JsonText;
@@ -29,6 +29,7 @@ declare const BitType: Readonly<{
29
29
  appAiPrompt: "app-ai-prompt";
30
30
  appBitmarkFromEditor: "app-bitmark-from-editor";
31
31
  appBitmarkFromJavascript: "app-bitmark-from-javascript";
32
+ appCalculatorLatex: "app-calculator-latex";
32
33
  appCodeCell: "app-code-cell";
33
34
  appCodeEditor: "app-code-editor";
34
35
  appCodeIde: "app-code-ide";
@@ -448,6 +449,10 @@ declare const BitType: Readonly<{
448
449
  reviewRequestForReviewNote: "review-request-for-review-note";
449
450
  reviewReviewerNote: "review-reviewer-note";
450
451
  sampleSolution: "sample-solution";
452
+ sandbox: "sandbox";
453
+ sandboxOutputJson: "sandbox-output-json";
454
+ sandboxOutputMarkup: "sandbox-output-markup";
455
+ sandboxOutputRender: "sandbox-output-render";
451
456
  scorm: "scorm";
452
457
  screenshot: "screenshot";
453
458
  selfAssessment: "self-assessment";
@@ -622,6 +627,7 @@ declare const BitType: Readonly<{
622
627
  appAiPrompt: "app-ai-prompt";
623
628
  appBitmarkFromEditor: "app-bitmark-from-editor";
624
629
  appBitmarkFromJavascript: "app-bitmark-from-javascript";
630
+ appCalculatorLatex: "app-calculator-latex";
625
631
  appCodeCell: "app-code-cell";
626
632
  appCodeEditor: "app-code-editor";
627
633
  appCodeIde: "app-code-ide";
@@ -1041,6 +1047,10 @@ declare const BitType: Readonly<{
1041
1047
  reviewRequestForReviewNote: "review-request-for-review-note";
1042
1048
  reviewReviewerNote: "review-reviewer-note";
1043
1049
  sampleSolution: "sample-solution";
1050
+ sandbox: "sandbox";
1051
+ sandboxOutputJson: "sandbox-output-json";
1052
+ sandboxOutputMarkup: "sandbox-output-markup";
1053
+ sandboxOutputRender: "sandbox-output-render";
1044
1054
  scorm: "scorm";
1045
1055
  screenshot: "screenshot";
1046
1056
  selfAssessment: "self-assessment";
@@ -1338,6 +1348,7 @@ declare const ConfigKey: Readonly<{
1338
1348
  property_focusX: "@focusX";
1339
1349
  property_focusY: "@focusY";
1340
1350
  property_format: "@format";
1351
+ property_formula: "@formula";
1341
1352
  property_fullName: "@fullName";
1342
1353
  property_groupTag: "@groupTag";
1343
1354
  property_handInAcceptFileType: "@handInAcceptFileType";
@@ -1631,6 +1642,7 @@ declare const ConfigKey: Readonly<{
1631
1642
  property_focusX: "@focusX";
1632
1643
  property_focusY: "@focusY";
1633
1644
  property_format: "@format";
1645
+ property_formula: "@formula";
1634
1646
  property_fullName: "@fullName";
1635
1647
  property_groupTag: "@groupTag";
1636
1648
  property_handInAcceptFileType: "@handInAcceptFileType";
@@ -3176,6 +3188,7 @@ interface Bit {
3176
3188
  ratingLevelStart?: RatingLevelStartEndJson;
3177
3189
  ratingLevelEnd?: RatingLevelStartEndJson;
3178
3190
  ratingLevelSelected?: Property;
3191
+ formula?: Property;
3179
3192
  markConfig?: MarkConfigJson[];
3180
3193
  extraProperties?: ExtraProperties;
3181
3194
  book?: string | BookJson[];
@@ -3450,6 +3463,8 @@ declare const NodeType: Readonly<{
3450
3463
  footerText: "footerText";
3451
3464
  forKeys: "forKeys";
3452
3465
  format: "format";
3466
+ formula: "formula";
3467
+ formulaValue: "formulaValue";
3453
3468
  forValues: "forValues";
3454
3469
  forValuesValue: "forValuesValue";
3455
3470
  fullName: "fullName";
@@ -4009,6 +4024,8 @@ declare const NodeType: Readonly<{
4009
4024
  footerText: "footerText";
4010
4025
  forKeys: "forKeys";
4011
4026
  format: "format";
4027
+ formula: "formula";
4028
+ formulaValue: "formulaValue";
4012
4029
  forValues: "forValues";
4013
4030
  forValuesValue: "forValuesValue";
4014
4031
  fullName: "fullName";
@@ -5405,6 +5422,7 @@ declare class Builder extends BaseBuilder {
5405
5422
  ratingLevelStart?: Partial<RatingLevelStartEndJson>;
5406
5423
  ratingLevelEnd?: Partial<RatingLevelStartEndJson>;
5407
5424
  ratingLevelSelected?: number;
5425
+ formula?: string;
5408
5426
  partialAnswer?: string;
5409
5427
  book?: string | BookJson[];
5410
5428
  title?: JsonText;
@@ -34,6 +34,7 @@ var BitType = superenum({
34
34
  appAiPrompt: "app-ai-prompt",
35
35
  appBitmarkFromEditor: "app-bitmark-from-editor",
36
36
  appBitmarkFromJavascript: "app-bitmark-from-javascript",
37
+ appCalculatorLatex: "app-calculator-latex",
37
38
  appCodeCell: "app-code-cell",
38
39
  appCodeEditor: "app-code-editor",
39
40
  appCodeIde: "app-code-ide",
@@ -453,6 +454,10 @@ var BitType = superenum({
453
454
  reviewRequestForReviewNote: "review-request-for-review-note",
454
455
  reviewReviewerNote: "review-reviewer-note",
455
456
  sampleSolution: "sample-solution",
457
+ sandbox: "sandbox",
458
+ sandboxOutputJson: "sandbox-output-json",
459
+ sandboxOutputMarkup: "sandbox-output-markup",
460
+ sandboxOutputRender: "sandbox-output-render",
456
461
  scorm: "scorm",
457
462
  screenshot: "screenshot",
458
463
  selfAssessment: "self-assessment",
@@ -1154,6 +1159,7 @@ var propertyKeys = {
1154
1159
  property_focusX: "@focusX",
1155
1160
  property_focusY: "@focusY",
1156
1161
  property_format: "@format",
1162
+ property_formula: "@formula",
1157
1163
  property_fullName: "@fullName",
1158
1164
  property_groupTag: "@groupTag",
1159
1165
  property_handInAcceptFileType: "@handInAcceptFileType",
@@ -5078,6 +5084,26 @@ var BITS = {
5078
5084
  baseBitType: BitType.code,
5079
5085
  description: "Standard output bit, used to display standard output from code snippets"
5080
5086
  },
5087
+ [BitType.sandbox]: {
5088
+ since: "4.10.0",
5089
+ baseBitType: BitType.code,
5090
+ description: "A sandbox bit, used to create a sandboxed environment for code execution"
5091
+ },
5092
+ [BitType.sandboxOutputJson]: {
5093
+ since: "4.10.0",
5094
+ baseBitType: BitType.code,
5095
+ description: "A sandbox output JSON bit, used to display JSON output from sandboxed code"
5096
+ },
5097
+ [BitType.sandboxOutputMarkup]: {
5098
+ since: "4.10.0",
5099
+ baseBitType: BitType.code,
5100
+ description: "A sandbox output markup bit, used to display markup output from sandboxed code"
5101
+ },
5102
+ [BitType.sandboxOutputRender]: {
5103
+ since: "4.10.0",
5104
+ baseBitType: BitType.code,
5105
+ description: "A sandbox output render bit, used to display rendered output from sandboxed code"
5106
+ },
5081
5107
  [BitType.step]: {
5082
5108
  since: "1.5.1",
5083
5109
  baseBitType: BitType.article,
@@ -6073,6 +6099,18 @@ var BITS = {
6073
6099
  }
6074
6100
  ]
6075
6101
  },
6102
+ [BitType.appCalculatorLatex]: {
6103
+ since: "4.10.0",
6104
+ baseBitType: BitType.article,
6105
+ description: "A LaTeX calculator bit, used to create a calculator that can interpret LaTeX expressions",
6106
+ tags: [
6107
+ {
6108
+ key: ConfigKey.property_formula,
6109
+ description: "The LaTeX formula for the calculator, used to define the calculation logic",
6110
+ format: TagFormat.plainText
6111
+ }
6112
+ ]
6113
+ },
6076
6114
  [BitType.container]: {
6077
6115
  since: "1.9.0",
6078
6116
  baseBitType: BitType.article,
@@ -9088,7 +9126,7 @@ var instance2 = new Config();
9088
9126
  // src/generated/package_info.ts
9089
9127
  var PACKAGE_INFO = {
9090
9128
  "name": "@gmb/bitmark-parser-generator",
9091
- "version": "4.9.0",
9129
+ "version": "4.10.0",
9092
9130
  "author": "Get More Brain Ltd",
9093
9131
  "license": "ISC",
9094
9132
  "description": "A bitmark parser and generator using Peggy.js"
@@ -9614,6 +9652,8 @@ var NodeType = superenum20({
9614
9652
  footerText: "footerText",
9615
9653
  forKeys: "forKeys",
9616
9654
  format: "format",
9655
+ formula: "formula",
9656
+ formulaValue: "formulaValue",
9617
9657
  forValues: "forValues",
9618
9658
  forValuesValue: "forValuesValue",
9619
9659
  fullName: "fullName",
@@ -22934,6 +22974,7 @@ var Builder = class extends BaseBuilder {
22934
22974
  data.ratingLevelSelected,
22935
22975
  options
22936
22976
  ),
22977
+ formula: this.toAstProperty(bitType, ConfigKey.property_formula, data.formula, options),
22937
22978
  markConfig: this.buildMarkConfigs(context, data.markConfig),
22938
22979
  imageSource: this.buildImageSource(context, data.imageSource),
22939
22980
  person: this.buildPerson(context, data.person),