openui / open-ui

Maintain an open standard for UI and promote its adherence and adoption.
https://open-ui.org
Other
3.39k stars 182 forks source link

[invokers] Geolocation API? #972

Open adactio opened 6 months ago

adactio commented 6 months ago

Could invokeTarget be used to provide a declarative option for some JavaScript APIs? I'm thinking specifcally of JavaScript APIs that require a user interaction (and so most demos involve the creation of a button element anyway) and that don't currently have an equivalent HTML element.

For example:

I'm not sure how the button invoketarget="geolocation" would work other than perhaps populating an input element using invoketarget.

Are there are other JavaScript APIs that match the same criteria?

lukewarlow commented 6 months ago

So to copy across from the other issue we've actually already got fullscreen API covered in the proposal, we've also resolved to look into a clipboard copy action. So something like web share could fit in.

I am wary of trying to overload invokers for everything but that's not to say these aren't worth looking into.

Just as an fyi v1 of invokers is planned to be just dialog and popover actions.

These additional ones will be proposed as follow ups allowing us to discuss each of them on their own merit without holding up the core idea.

github-actions[bot] commented 2 weeks ago

There hasn't been any discussion on this issue for a while, so we're marking it as stale. If you choose to kick off the discussion again, we'll remove the 'stale' label.

adactio commented 2 weeks ago

Another potential inclusion: Web Install API.