Skip to content

Commit

Permalink
fix(types): add missing LR_CLOUD_MODIFICATION JSX type (#542)
Browse files Browse the repository at this point in the history
  • Loading branch information
nd0ut authored Oct 19, 2023
1 parent d695c44 commit 3307b25
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion abstract/EventManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const EVENT_TYPES = {
UPLOAD_FINISH: 'UPLOAD_FINISH',
UPLOAD_ERROR: 'UPLOAD_ERROR',
VALIDATION_ERROR: 'VALIDATION_ERROR',
CDN_MODIFICATION: 'CLOUD_MODIFICATION',
CLOUD_MODIFICATION: 'CLOUD_MODIFICATION',
DATA_OUTPUT: 'DATA_OUTPUT',
DONE_FLOW: 'DONE_FLOW',
INIT_FLOW: 'INIT_FLOW',
Expand Down
4 changes: 2 additions & 2 deletions abstract/UploaderBlock.js
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ export class UploaderBlock extends ActivityBlock {
items.forEach((id) => {
EventManager.emit(
new EventData({
type: EVENT_TYPES.CDN_MODIFICATION,
type: EVENT_TYPES.CLOUD_MODIFICATION,
ctx: this.ctxName,
data: Data.getCtx(id).store,
}),
Expand Down Expand Up @@ -666,7 +666,7 @@ Object.values(EVENT_TYPES).forEach((eType) => {
const cb = debounce(
/** @param {CustomEvent} e */
(e) => {
let outputTypes = [EVENT_TYPES.UPLOAD_FINISH, EVENT_TYPES.REMOVE, EVENT_TYPES.CDN_MODIFICATION];
let outputTypes = [EVENT_TYPES.UPLOAD_FINISH, EVENT_TYPES.REMOVE, EVENT_TYPES.CLOUD_MODIFICATION];
// @ts-ignore TODO: fix this
if (outputTypes.includes(e.detail.type)) {
// @ts-ignore TODO: fix this
Expand Down
2 changes: 1 addition & 1 deletion types/events.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ interface CustomEventMap {
UPLOAD_FINISH: CustomEvent<any>;
UPLOAD_ERROR: CustomEvent<any>;
VALIDATION_ERROR: CustomEvent<any>;
CDN_MODIFICATION: CustomEvent<any>;
CLOUD_MODIFICATION: CustomEvent<any>;
DATA_OUTPUT: CustomEvent<any>;
DONE_FLOW: CustomEvent<any>;
INIT_FLOW: CustomEvent<any>;
Expand Down

0 comments on commit 3307b25

Please sign in to comment.