oddbird / slide-deck

Web presentations, as a self-contained web component
MIT License
25 stars 0 forks source link

Clean up Public & Private API #14

Closed jamesnw closed 10 months ago

jamesnw commented 11 months ago

Describe the bug

Currently, most of the methods are public, meaning the host could call things like document.getElementsByTagName('slide-deck')[0].appendShadowTemplate(), which is not needed, and throws an error.

A limited number of methods and values could be useful to expose, for instance-

We probably want to move the majority to private, and then intentionally expose and document a select few.

mirisuzanne commented 11 months ago

I think I started changing this in one of the PRs…