chore: Removed @internal annotation from public Field methods. (#8426)

* chore: Removed @internal annotation from public Field methods.

* chore: make forceRerender non-internal.
This commit is contained in:
Aaron Dodson
2024-07-25 10:07:48 -07:00
committed by GitHub
parent 2619fb803c
commit 5d825f0a60

View File

@@ -408,7 +408,6 @@ export abstract class Field<T = any>
* called by Blockly.Xml.
*
* @param fieldElement The element containing info about the field's state.
* @internal
*/
fromXml(fieldElement: Element) {
// Any because gremlins live here. No touchie!
@@ -421,7 +420,6 @@ export abstract class Field<T = any>
* @param fieldElement The element to populate with info about the field's
* state.
* @returns The element containing info about the field's state.
* @internal
*/
toXml(fieldElement: Element): Element {
// Any because gremlins live here. No touchie!
@@ -440,7 +438,6 @@ export abstract class Field<T = any>
* {@link https://developers.devsite.google.com/blockly/guides/create-custom-blocks/fields/customizing-fields/creating#full_serialization_and_backing_data | field serialization docs}
* for more information.
* @returns JSON serializable state.
* @internal
*/
saveState(_doFullSerialization?: boolean): AnyDuringMigration {
const legacyState = this.saveLegacyState(Field);
@@ -455,7 +452,6 @@ export abstract class Field<T = any>
* called by the serialization system.
*
* @param state The state we want to apply to the field.
* @internal
*/
loadState(state: AnyDuringMigration) {
if (this.loadLegacyState(Field, state)) {
@@ -518,8 +514,6 @@ export abstract class Field<T = any>
/**
* Dispose of all DOM objects and events belonging to this editable field.
*
* @internal
*/
dispose() {
dropDownDiv.hideIfOwner(this);
@@ -1054,8 +1048,6 @@ export abstract class Field<T = any>
* rerender this field and adjust for any sizing changes.
* Other fields on the same block will not rerender, because their sizes have
* already been recorded.
*
* @internal
*/
forceRerender() {
this.isDirty_ = true;
@@ -1303,7 +1295,6 @@ export abstract class Field<T = any>
* Subclasses may override this.
*
* @returns True if this field has any variable references.
* @internal
*/
referencesVariables(): boolean {
return false;
@@ -1312,8 +1303,6 @@ export abstract class Field<T = any>
/**
* Refresh the variable name referenced by this field if this field references
* variables.
*
* @internal
*/
refreshVariableName() {}
// NOP