@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.
package/dist/index.cjs CHANGED
@@ -93,6 +93,7 @@ var BitType = (0, import_superenum.superenum)({
93
93
  appAiPrompt: "app-ai-prompt",
94
94
  appBitmarkFromEditor: "app-bitmark-from-editor",
95
95
  appBitmarkFromJavascript: "app-bitmark-from-javascript",
96
+ appCalculatorLatex: "app-calculator-latex",
96
97
  appCodeCell: "app-code-cell",
97
98
  appCodeEditor: "app-code-editor",
98
99
  appCodeIde: "app-code-ide",
@@ -512,6 +513,10 @@ var BitType = (0, import_superenum.superenum)({
512
513
  reviewRequestForReviewNote: "review-request-for-review-note",
513
514
  reviewReviewerNote: "review-reviewer-note",
514
515
  sampleSolution: "sample-solution",
516
+ sandbox: "sandbox",
517
+ sandboxOutputJson: "sandbox-output-json",
518
+ sandboxOutputMarkup: "sandbox-output-markup",
519
+ sandboxOutputRender: "sandbox-output-render",
515
520
  scorm: "scorm",
516
521
  screenshot: "screenshot",
517
522
  selfAssessment: "self-assessment",
@@ -1213,6 +1218,7 @@ var propertyKeys = {
1213
1218
  property_focusX: "@focusX",
1214
1219
  property_focusY: "@focusY",
1215
1220
  property_format: "@format",
1221
+ property_formula: "@formula",
1216
1222
  property_fullName: "@fullName",
1217
1223
  property_groupTag: "@groupTag",
1218
1224
  property_handInAcceptFileType: "@handInAcceptFileType",
@@ -5137,6 +5143,26 @@ var BITS = {
5137
5143
  baseBitType: BitType.code,
5138
5144
  description: "Standard output bit, used to display standard output from code snippets"
5139
5145
  },
5146
+ [BitType.sandbox]: {
5147
+ since: "4.10.0",
5148
+ baseBitType: BitType.code,
5149
+ description: "A sandbox bit, used to create a sandboxed environment for code execution"
5150
+ },
5151
+ [BitType.sandboxOutputJson]: {
5152
+ since: "4.10.0",
5153
+ baseBitType: BitType.code,
5154
+ description: "A sandbox output JSON bit, used to display JSON output from sandboxed code"
5155
+ },
5156
+ [BitType.sandboxOutputMarkup]: {
5157
+ since: "4.10.0",
5158
+ baseBitType: BitType.code,
5159
+ description: "A sandbox output markup bit, used to display markup output from sandboxed code"
5160
+ },
5161
+ [BitType.sandboxOutputRender]: {
5162
+ since: "4.10.0",
5163
+ baseBitType: BitType.code,
5164
+ description: "A sandbox output render bit, used to display rendered output from sandboxed code"
5165
+ },
5140
5166
  [BitType.step]: {
5141
5167
  since: "1.5.1",
5142
5168
  baseBitType: BitType.article,
@@ -6132,6 +6158,18 @@ var BITS = {
6132
6158
  }
6133
6159
  ]
6134
6160
  },
6161
+ [BitType.appCalculatorLatex]: {
6162
+ since: "4.10.0",
6163
+ baseBitType: BitType.article,
6164
+ description: "A LaTeX calculator bit, used to create a calculator that can interpret LaTeX expressions",
6165
+ tags: [
6166
+ {
6167
+ key: ConfigKey.property_formula,
6168
+ description: "The LaTeX formula for the calculator, used to define the calculation logic",
6169
+ format: TagFormat.plainText
6170
+ }
6171
+ ]
6172
+ },
6135
6173
  [BitType.container]: {
6136
6174
  since: "1.9.0",
6137
6175
  baseBitType: BitType.article,
@@ -9147,7 +9185,7 @@ var instance2 = new Config();
9147
9185
  // src/generated/package_info.ts
9148
9186
  var PACKAGE_INFO = {
9149
9187
  "name": "@gmb/bitmark-parser-generator",
9150
- "version": "4.9.0",
9188
+ "version": "4.10.0",
9151
9189
  "author": "Get More Brain Ltd",
9152
9190
  "license": "ISC",
9153
9191
  "description": "A bitmark parser and generator using Peggy.js"
@@ -9673,6 +9711,8 @@ var NodeType = (0, import_superenum20.superenum)({
9673
9711
  footerText: "footerText",
9674
9712
  forKeys: "forKeys",
9675
9713
  format: "format",
9714
+ formula: "formula",
9715
+ formulaValue: "formulaValue",
9676
9716
  forValues: "forValues",
9677
9717
  forValuesValue: "forValuesValue",
9678
9718
  fullName: "fullName",
@@ -22993,6 +23033,7 @@ var Builder = class extends BaseBuilder {
22993
23033
  data.ratingLevelSelected,
22994
23034
  options
22995
23035
  ),
23036
+ formula: this.toAstProperty(bitType, ConfigKey.property_formula, data.formula, options),
22996
23037
  markConfig: this.buildMarkConfigs(context, data.markConfig),
22997
23038
  imageSource: this.buildImageSource(context, data.imageSource),
22998
23039
  person: this.buildPerson(context, data.person),