Skip to content

Conversation

@ca-d
Copy link
Contributor

@ca-d ca-d commented Jun 17, 2025

Also, add OpenEvent.
Also, add some documentation.
Also, remove wizards from the markdown API doc.
Also, move utils to a separate module.
Also, expose the module members that were still missing.

Sorry for the big pull request.

);
}

export type EditEvent<E extends Edit = Edit> = CustomEvent<E>;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why have you removed this? As I understand it, the only way we will see EditV1 objects is if they come from Plugins which have not yet made the switch, they will therefore come as events. If we're removing event support for EditV1, then everything else v1 related is probably superflous.

Would you consider restoring this and adding the associated:

declare global {
  interface ElementEventMap {
    ['oscd-edit']: EditEvent;
  }
}

I would very much like to support EditV1 in the shell for now. I'm all on for plastering depricated notices everywhere on this and adding console.warn()'s, but I'd very much like to make the adoption of oscd-shell, as friendly as is practical.

Copy link
Collaborator

@stee-re stee-re left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!!

@stee-re stee-re merged commit 07230e3 into main Jun 18, 2025
2 of 3 checks passed
@ca-d ca-d deleted the fix-type-guards branch June 18, 2025 11:06
@ca-d ca-d mentioned this pull request Jun 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants