Skip to content

Commit

Permalink
chore: add exports/imports needed for variable support (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
gonfunko authored Aug 2, 2024
1 parent 7c891e3 commit 28ad076
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,13 @@ export { PROCEDURES_CALL_BLOCK_TYPE };

const OUTPUT_SHAPE_ROUND = 2;
export { OUTPUT_SHAPE_ROUND };

/**
* String for use in the dropdown created in field_variable,
* specifically for broadcast messages.
* This string indicates that this option in the dropdown is 'New message...'
* and if selected, should trigger the prompt to create a new message.
* @const {string}
*/
const NEW_BROADCAST_MESSAGE_ID = "NEW_BROADCAST_MESSAGE_ID";
export { NEW_BROADCAST_MESSAGE_ID };
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ import "./events_block_comment_move.js";
import "./events_block_comment_resize.js";
import "./events_scratch_variable_create.js";
import "./field_variable.js";
import "./field_variable_getter.js";
import { buildShadowFilter } from "./shadows.js";

export * from "blockly";
Expand All @@ -57,6 +58,7 @@ export * from "../core/field_matrix.js";
export * from "../core/field_note.js";
export * from "../core/field_number.js";
export * from "../msg/scratch_msgs.js";
export * from "./constants.js";
export { glowStack };
export { scratchBlocksUtils };
export { CheckableContinuousFlyout };
Expand Down
2 changes: 2 additions & 0 deletions src/variables.js
Original file line number Diff line number Diff line change
Expand Up @@ -345,3 +345,5 @@ export function renameVariable(workspace, variable, opt_callback) {
varType
);
}

export { getVariablesCategory } from "./data_category.js";

0 comments on commit 28ad076

Please sign in to comment.