Skip to content

Commit

Permalink
fix: fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-warner committed Apr 24, 2024
1 parent b86495d commit 700dadc
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export interface ContentEditorContextObject<ParamType extends Params = Params>
visualisation: string;
readOnly: boolean;
hub: Hub;
collaspseByDefault: boolean;
collapseByDefault: boolean;
}

export function isContentEditorContextObject(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ describe('ContentEditorExtension', () => {
visualisation: 'test-visualization',
readOnly: true,
hub: { id: 'hubId', name: 'hubName' },
collaspseByDefault: false,
collapseByDefault: false,
};

const options = {
Expand Down
8 changes: 4 additions & 4 deletions src/lib/extensions/content-editor/ContentEditorExtension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ export class ContentEditorExtension<ParamType extends Params = Params> extends E
public applicationNavigator!: ContentEditorApplicationNavigator;

/**
* CollaspseByDefault - global setting for whether or not form fields should be open or closed by default
* collapseByDefault - global setting for whether or not form fields should be open or closed by default
*/
public collaspseByDefault!: boolean;
public collapseByDefault!: boolean;

constructor(options: ExtensionOptions, context: ContentEditorContextObject<ParamType>) {
super(options, context);
Expand All @@ -121,7 +121,7 @@ export class ContentEditorExtension<ParamType extends Params = Params> extends E
readOnly,
visualisation,
hub,
collaspseByDefault,
collapseByDefault,
} = context;

this.assets = new Assets(this.connection);
Expand All @@ -132,7 +132,7 @@ export class ContentEditorExtension<ParamType extends Params = Params> extends E
this.locales = locales;
this.visualisation = visualisation;
this.stagingEnvironment = stagingEnvironment;
this.collaspseByDefault = collaspseByDefault;
this.collapseByDefault = collapseByDefault;
this.hub = hub;

this.applicationNavigator = new ContentEditorApplicationNavigator(this.connection);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export interface ContentFieldContextObject<ParamType extends Params = Params>
visualisation: string;
readOnly: boolean;
hub: Hub;
collaspseByDefault: boolean;
collapseByDefault: boolean;
}

export function isContentFieldContextObject(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ describe('ContentFieldExtension', () => {
visualisation: 'test-visualization',
readOnly: true,
hub: { id: 'hubId', name: 'hubName' },
collaspseByDefault: false,
collapseByDefault: false,
};
it('should create a new instance of ContentFieldExtension', () => {
const connection = new ClientConnection(options);
Expand Down
8 changes: 4 additions & 4 deletions src/lib/extensions/content-field/ContentFieldExtension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ export class ContentFieldExtension<
*/
public hub!: Hub;
/**
* CollaspseByDefault - global setting for whether or not form fields should be open or closed by default
* collapseByDefault - global setting for whether or not form fields should be open or closed by default
*/
public collaspseByDefault!: boolean;
public collapseByDefault!: boolean;

/**
* ApplicationNavigator - used to navigate within the form
Expand All @@ -111,7 +111,7 @@ export class ContentFieldExtension<
readOnly,
visualisation,
hub,
collaspseByDefault,
collapseByDefault,
} = context;

this.assets = new Assets(this.connection);
Expand All @@ -123,7 +123,7 @@ export class ContentFieldExtension<
this.locales = locales;
this.visualisation = visualisation;
this.stagingEnvironment = stagingEnvironment;
this.collaspseByDefault = collaspseByDefault;
this.collapseByDefault = collapseByDefault;
this.hub = hub;
}
}

0 comments on commit 700dadc

Please sign in to comment.