proto-float-wc 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +37 -0
  3. package/dist/cjs/index-95c398a6.js +1762 -0
  4. package/dist/cjs/index.cjs.js +2 -0
  5. package/dist/cjs/loader.cjs.js +13 -0
  6. package/dist/cjs/proto-float-wc.cjs.js +23 -0
  7. package/dist/cjs/proto-floater-demo_2.cjs.entry.js +146 -0
  8. package/dist/collection/collection-manifest.json +13 -0
  9. package/dist/collection/components/proto-floater-demo/proto-360.js +10 -0
  10. package/dist/collection/components/proto-floater-demo/proto-floater-demo.css +60 -0
  11. package/dist/collection/components/proto-floater-demo/proto-floater-demo.js +67 -0
  12. package/dist/collection/components/proto-player/proto-player.css +60 -0
  13. package/dist/collection/components/proto-player/proto-player.js +166 -0
  14. package/dist/collection/index.js +1 -0
  15. package/dist/collection/utils/index.js +1 -0
  16. package/dist/collection/utils/types.js +1 -0
  17. package/dist/components/index.d.ts +33 -0
  18. package/dist/components/index.js +1 -0
  19. package/dist/components/proto-floater-demo.d.ts +11 -0
  20. package/dist/components/proto-floater-demo.js +53 -0
  21. package/dist/components/proto-player.d.ts +11 -0
  22. package/dist/components/proto-player.js +138 -0
  23. package/dist/esm/index-6a814d4f.js +1736 -0
  24. package/dist/esm/index.js +1 -0
  25. package/dist/esm/loader.js +9 -0
  26. package/dist/esm/polyfills/core-js.js +11 -0
  27. package/dist/esm/polyfills/dom.js +79 -0
  28. package/dist/esm/polyfills/es5-html-element.js +1 -0
  29. package/dist/esm/polyfills/index.js +34 -0
  30. package/dist/esm/polyfills/system.js +6 -0
  31. package/dist/esm/proto-float-wc.js +18 -0
  32. package/dist/esm/proto-floater-demo_2.entry.js +141 -0
  33. package/dist/index.cjs.js +1 -0
  34. package/dist/index.js +1 -0
  35. package/dist/proto-float-wc/index.esm.js +0 -0
  36. package/dist/proto-float-wc/p-5ef8cd91.js +2 -0
  37. package/dist/proto-float-wc/p-e4a96884.entry.js +1 -0
  38. package/dist/proto-float-wc/proto-float-wc.esm.js +1 -0
  39. package/dist/types/components/proto-floater-demo/proto-360.d.ts +5 -0
  40. package/dist/types/components/proto-floater-demo/proto-floater-demo.d.ts +7 -0
  41. package/dist/types/components/proto-player/proto-player.d.ts +24 -0
  42. package/dist/types/components.d.ts +58 -0
  43. package/dist/types/index.d.ts +1 -0
  44. package/dist/types/stencil-public-runtime.d.ts +1681 -0
  45. package/dist/types/utils/index.d.ts +1 -0
  46. package/dist/types/utils/types.d.ts +8 -0
  47. package/loader/cdn.js +3 -0
  48. package/loader/index.cjs.js +3 -0
  49. package/loader/index.d.ts +21 -0
  50. package/loader/index.es2017.js +3 -0
  51. package/loader/index.js +4 -0
  52. package/loader/package.json +11 -0
  53. package/package.json +41 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2018
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,37 @@
1
+ # proto-float-wc
2
+
3
+ a technology POC...
4
+
5
+ ## usage
6
+
7
+ ```
8
+ yarn install
9
+ yarn demo
10
+ ```
11
+
12
+ ## features
13
+
14
+ - stencil based web component
15
+ - uses mitt for an eventbus
16
+ - uses nanoid to generate internal id in web component
17
+ - uses floating-ui to create the popover which holds the iframe
18
+ - uses postMessage to communicate to/from iframe
19
+ - uses a `resize-iframe` message to pass size back to the web component
20
+
21
+
22
+ ## articles
23
+
24
+ - [The ultimate guide to iframes][u-iframes] - _LogRocket_
25
+ - [Why is NanoID Replacing UUID?][nano-uuid] - _Bits and Pieces_
26
+
27
+ ## references
28
+
29
+ - [floating-ui][float-ui] - _low-level library for positioning "floating" elements._
30
+ - [mitt][mitt-io] - _tiny 200 byte functional event emitter / pubsub._
31
+ - [nanoid][nano-id] - _tiny (130 bytes), secure, URL-friendly, unique string ID generator for JavaScript._
32
+
33
+ [float-ui]: https://github.com/floating-ui/floating-ui
34
+ [mitt-io]: https://github.com/developit/mitt
35
+ [nano-id]: https://github.com/ai/nanoid
36
+ [nano-uuid]: https://blog.bitsrc.io/why-is-nanoid-replacing-uuid-1b5100e62ed2
37
+ [u-iframes]: https://blog.logrocket.com/the-ultimate-guide-to-iframes/