ably-ui 4.5.0 → 5.0.0.dev.bf26560

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +13 -17
  4. data/lib/ably_ui/core/code/component.css +2 -0
  5. data/lib/ably_ui/core/code/component.js +7468 -1
  6. data/lib/ably_ui/core/connect_state_wrapper/component.js +22 -1
  7. data/lib/ably_ui/core/contact_footer/component.css +2 -0
  8. data/lib/ably_ui/core/contact_footer/component.js +211 -1
  9. data/lib/ably_ui/core/cookie_message/component.css +2 -0
  10. data/lib/ably_ui/core/cookie_message/component.js +82 -1
  11. data/lib/ably_ui/core/core.base.css +1 -0
  12. data/lib/ably_ui/core/core.components.css +49 -0
  13. data/lib/ably_ui/core/feature_footer/component.css +2 -0
  14. data/lib/ably_ui/core/feature_footer/component.js +211 -1
  15. data/lib/ably_ui/core/featured_link/component.css +2 -0
  16. data/lib/ably_ui/core/featured_link/component.js +82 -1
  17. data/lib/ably_ui/core/flash/component.css +2 -0
  18. data/lib/ably_ui/core/flash/component.js +82 -1
  19. data/lib/ably_ui/core/footer/component.css +2 -0
  20. data/lib/ably_ui/core/footer/component.js +82 -1
  21. data/lib/ably_ui/core/icon/component.css +1 -0
  22. data/lib/ably_ui/core/icon/component.js +22 -1
  23. data/lib/ably_ui/core/logo/component.js +22 -1
  24. data/lib/ably_ui/core/meganav/component.css +2 -0
  25. data/lib/ably_ui/core/meganav/component.js +1857 -1
  26. data/lib/ably_ui/core/meganav_blog_posts_list/component.js +1934 -1
  27. data/lib/ably_ui/core/meganav_content_developers/component.js +22 -1
  28. data/lib/ably_ui/core/meganav_content_platform/component.js +22 -1
  29. data/lib/ably_ui/core/meganav_content_use_cases/component.js +22 -1
  30. data/lib/ably_ui/core/meganav_content_why_ably/component.js +22 -1
  31. data/lib/ably_ui/core/meganav_control/component.js +208 -1
  32. data/lib/ably_ui/core/meganav_control_mobile_dropdown/component.js +975 -1
  33. data/lib/ably_ui/core/meganav_control_mobile_panel_close/component.js +142 -1
  34. data/lib/ably_ui/core/meganav_control_mobile_panel_open/component.js +170 -1
  35. data/lib/ably_ui/core/meganav_items_desktop/component.js +22 -1
  36. data/lib/ably_ui/core/meganav_items_mobile/component.js +22 -1
  37. data/lib/ably_ui/core/meganav_items_signed_in/component.js +22 -1
  38. data/lib/ably_ui/core/notice/component.css +2 -0
  39. data/lib/ably_ui/core/notice/component.js +4613 -2
  40. data/lib/ably_ui/core/scripts.js +1 -1
  41. data/lib/ably_ui/core/showcase/component.css +2 -0
  42. data/lib/ably_ui/core/showcase/component.js +343 -1
  43. data/lib/ably_ui/core/sign_out_link/component.js +22 -1
  44. data/lib/ably_ui/core/slider/component.css +2 -0
  45. data/lib/ably_ui/core/slider/component.js +38 -1
  46. data/lib/ably_ui/core/slider/slider.html.erb +1 -1
  47. data/lib/ably_ui/core/styles.base.css +1 -0
  48. data/lib/ably_ui/core/styles.components.css +49 -0
  49. data/lib/ably_ui/core/uptime/component.css +2 -0
  50. data/lib/ably_ui/core/uptime/component.js +82 -1
  51. data/lib/ably_ui/react/connect_state_wrapper/component.js +1 -0
  52. data/lib/ably_ui/react/scripts.js +1 -0
  53. data/lib/ably_ui/version.rb +1 -1
  54. metadata +15 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3d09ee8f8796e44d622482646a875cf7fb254f826bc91c1a75e34790765a9003
4
- data.tar.gz: b10b98323ef77ee04454093abec157f846e52ea979c7f68998d5c9f35766adf9
3
+ metadata.gz: 0665de8dd412a7f436a71a7943ee6c2bc218f2313a717914e5c82695803e0b42
4
+ data.tar.gz: 98cae3185b7567da3812ae210ea658f92dabdbe25876433ff652a4c0dad08d85
5
5
  SHA512:
6
- metadata.gz: 832c80f2e5c416b1e441b480644f33ddcb4d0aed873a52cf1349494965de5828f94a1d1ff59a67a1e7147438a24f6c211fd506dde0d7170cf2ebe26ff428237b
7
- data.tar.gz: 4c44b03aed8c0463461fffcda4d0c6c71013a1724a2db088b2e36a346d6f8b363692e7737613d1e24c1772f6e4b1d1b2dba3543c4c4ca4595759437fc668cd57
6
+ metadata.gz: df760efebbc7d5553649428e789dfc4c828f4b946776f017fa96d3f9595b43b147f670cdf4e724157c5072a99594de4e914d6baf12e354f2711888809e0dad15
7
+ data.tar.gz: 44a8a115c69e8cc7a744311add3661061f4315bcaa0b64455ba35494e5978ca4d0c1b916859559b0c75c79a55cf72550e0bef3f5d4dc69e6fee98374e384f9de
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ably-ui (4.2.0.dev.f1eb220)
4
+ ably-ui (5.0.0)
5
5
  view_component (~> 2.33.0)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -34,8 +34,6 @@ Each module, apart from components, exposes a `scripts.js`, `styles.css` and `MO
34
34
 
35
35
  This type of installation gives you access to module/components assets as well as React components.
36
36
 
37
- Note, the package is currently hosted in our private GitHub registry, so you will need a `GITHUB_REGISTRY_TOKEN` environment variable in your shell to be able to install it. See [here](https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/creating-a-personal-access-token) for instructions on obtaining one.
38
-
39
37
  ```bash
40
38
  npm install @ably/ui
41
39
 
@@ -123,18 +121,9 @@ To use `ably-ui` with [Ruby on Rails](https://rubyonrails.org/) add the `ably-ui
123
121
  ```ruby
124
122
  gem 'ably-ui',
125
123
  '1.0.0',
126
- require: 'ably_ui',
127
- source: 'https://rubygems.pkg.github.com/ably'
128
- ```
129
-
130
- And then run:
131
-
132
- ```bash
133
- bundle config https://rubygems.pkg.github.com/ably USERNAME:TOKEN
124
+ require: 'ably_ui'
134
125
  ```
135
126
 
136
- Where `USERNAME` is your GitHub username (without the `@`) and TOKEN is your [GitHub access token](https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/creating-a-personal-access-token). This is required because the gem is downloaded from a private gem registry on GitHub.
137
-
138
127
  Components are exposed as [View Components](https://github.com/github/view_component) and should be available in any view:
139
128
 
140
129
  ```erb
@@ -268,13 +257,20 @@ Then change back `path` to source `source` in the `Gemfile`. If you need to upda
268
257
 
269
258
  Make sure you commit & push your work and remove the [development-specific config](#using-the-development-build-of-ably-ui-in-the-preview-app) before doing this.
270
259
 
271
- You will need to authenticate with the GitHub [NPM registry](https://docs.github.com/en/free-pro-team@latest/packages/using-github-packages-with-your-projects-ecosystem/configuring-npm-for-use-with-github-packages#authenticating-to-github-packages) and [gem registry](https://docs.github.com/en/free-pro-team@latest/packages/using-github-packages-with-your-projects-ecosystem/configuring-rubygems-for-use-with-github-packages#authenticating-with-a-personal-access-token) to publish.
260
+ You will need to authenticate with [npmjs](https://docs.npmjs.com/creating-and-viewing-access-tokens) and [Ruby Gems](https://guides.rubygems.org/api-key-scopes/) to publish.
272
261
 
273
262
  After the above, you should have:
274
263
 
275
- - GITHUB_REGISTRY_TOKEN set in your environment (`.npmrc` will read from it)
276
- - you should do registry login as described in the above docs with your GitHub username and password
277
- - a `~/.gem/credentials` file with a `:github: Bearer TOKEN` (replace GITHUB_REGISTRY_TOKEN with your token - interpolation does not work here)
264
+ - NPM_TOKEN set in your environment
265
+ - `.npmrc` file to read NPM_TOKEN from your environment like this:
266
+ ```
267
+ //registry.npmjs.org/:_authToken=${NPM_TOKEN}
268
+ ```
269
+ - a `~/.gem/credentials` file that has your Rubygems API key:
270
+ ```
271
+ ---
272
+ :rubygems_api_key: REPLACE_THIS_WITH_YOUR_OWN_API_KEY
273
+ ```
278
274
 
279
275
  To deploy a review app with your in-progress code, you can use the `pre-release` script:
280
276
 
@@ -389,7 +385,7 @@ This will trigger GitHub actions in supported apps (currently [Voltaire](http://
389
385
  **To trigger a release:**
390
386
 
391
387
  - Merge your PR into `main`.
392
- - On the Github [Ably-UI](http://github.com/ably/ui) repo, [create a new release](https://github.com/ably/ui/releases/new) tag.
388
+ - On the Github [Ably-UI](http://github.com/ably/ably-ui) repo, [create a new release](https://github.com/ably/ably-ui/releases/new) tag.
393
389
  - Create a new tag with the new version number for the release.
394
390
  - _Do not prefix the tag with a `v`_
395
391
  - Add a meaningful title for the Release.
@@ -68,3 +68,5 @@
68
68
  }
69
69
  }
70
70
 
71
+
72
+ /*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9BYmx5VWkuQ29yZS5bbmFtZV0vLi9zcmMvY29yZS9Db2RlL2NvbXBvbmVudC5jc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSxvRkFBb0Y7QUFDdEY7O0FBRUE7RUFDRTtJQUNFLCtCQUErQjtJQUMvQiwrQkFBK0I7RUFDakM7O0VBRUE7SUFDRSxrQkFBa0I7RUFDcEI7O0VBRUE7SUFDRSxpQkFBaUI7RUFDbkI7O0VBRUE7O0lBRUUsOEJBQThCO0VBQ2hDOztFQUVBOzs7Ozs7OztJQVFFLHdCQUF3QjtFQUMxQjs7RUFFQTs7Ozs7OztJQU9FLDJCQUEyQjtFQUM3Qjs7RUFFQTtJQUNFLDJCQUEyQjtFQUM3Qjs7RUFFQTs7OztJQUlFLDBCQUEwQjtFQUM1Qjs7RUFFQTs7SUFFRSx5QkFBeUI7RUFDM0I7O0VBRUE7O0lBRUUsMEJBQTBCO0VBQzVCOztFQUVBO0lBQ0UsNkJBQTZCO0VBQy9CO0FBQ0YiLCJmaWxlIjoiY29yZS9Db2RlL2NvbXBvbmVudC5jc3MiLCJzb3VyY2VzQ29udGVudCI6WyJAbGF5ZXIgYmFzZSB7XG4gIEBpbXBvcnQgdXJsKFwiaHR0cHM6Ly9mb250cy5nb29nbGVhcGlzLmNvbS9jc3MyP2ZhbWlseT1Tb3VyY2UrQ29kZStQcm8mZGlzcGxheT1zd2FwXCIpO1xufVxuXG5AbGF5ZXIgY29tcG9uZW50cyB7XG4gIC5obGpzIHtcbiAgICBiYWNrZ3JvdW5kOiB2YXIoLS1zeW50YXgtYmxhY2spO1xuIC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