open-ui icon indicating copy to clipboard operation
open-ui copied to clipboard

[invokers] Geolocation API?

Open adactio opened this issue 1 year ago • 3 comments
trafficstars

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:

  • ~~The Fullscreen API~~ already proposed.
  • The Geolocation API
  • ~~The Web Share API~~ moved to separate issue. https://github.com/openui/open-ui/issues/974

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?

adactio avatar Dec 05 '23 18:12 adactio

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.

lukewarlow avatar Dec 05 '23 18:12 lukewarlow

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.

github-actions[bot] avatar Jun 10 '24 00:06 github-actions[bot]

Another potential inclusion: Web Install API.

adactio avatar Jun 14 '24 10:06 adactio