testimonials 0.1.0 → 0.1.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c3a780f6ec2e1bfb53266936069312dc7821e8f1b28e437aa163e82bbf09bf9a
4
- data.tar.gz: bf1d9e6f2e44617937ebb35bb8cd3d56528ee5486243c9ce1ceba939bf982b44
3
+ metadata.gz: 309373c0011231499172ab20a6b84e8d399e396500bab2a084574868176592ab
4
+ data.tar.gz: 838980f3fab1d43dace344a2a37d82a25c87d670a16d16b8e2303516c5735c91
5
5
  SHA512:
6
- metadata.gz: 212b640b1254e063aa7db13385842072e432cd0130503fd0f379115ac146151b9e450aa6dd47e599895815a3298cd169ad7795d5db2ede32a5f0d1548fb3fde6
7
- data.tar.gz: 7b585a4caf94d6d70531e52eb0d0fca1d389ebcbe11a10638002b1a9eeee23ee0c976ee38392493719831da1bb30574cf8694151ca0199369c6901228706fd33
6
+ metadata.gz: 239c0d79748f8424c2e2fe063fcd541430e06fce52a7ae7b9bc18b35141c71889278c89a1fa9a602b3ae8a22675985d7fd12cc7dbb417e8aa1b5e3625046b27d
7
+ data.tar.gz: c407a4d0f78f5690aa8b1694236023869211a526e07cc1221949b6994fe73d09058b194739e654f8ecfe0b04a5d1541455dd5d203b6ecb40c4adc3f61360ce68
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.2
4
+
5
+ - The widget dialog goes full-screen on mobile (no bottom sheet, no animations):
6
+ inputs render at 16px to prevent iOS focus-zoom, the action row gains
7
+ safe-area padding, and the dialog's scroll is contained (no page rubber-banding).
8
+
9
+ ## 0.1.1
10
+
11
+ - Repository renamed to [yshmarov/testimonials](https://github.com/yshmarov/testimonials);
12
+ gemspec metadata URLs updated accordingly.
13
+ - First release published via RubyGems trusted publishing (tag-triggered CI).
14
+
3
15
  ## 0.1.0
4
16
 
5
17
  - Initial release: in-app testimonial widget (text + video), public collection
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # testimonials
2
2
 
3
3
  [![Gem Version](https://img.shields.io/gem/v/testimonials)](https://rubygems.org/gems/testimonials)
4
- [![CI](https://github.com/yshmarov/testimonials-engine/actions/workflows/ci.yml/badge.svg)](https://github.com/yshmarov/testimonials-engine/actions/workflows/ci.yml)
4
+ [![CI](https://github.com/yshmarov/testimonials/actions/workflows/ci.yml/badge.svg)](https://github.com/yshmarov/testimonials/actions/workflows/ci.yml)
5
5
  [![License: MIT](https://img.shields.io/badge/license-MIT-blue)](MIT-LICENSE)
6
6
 
7
7
  Testimonials, reviews and NPS for Rails. Self-hosted alternative to
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Testimonials
4
- VERSION = '0.1.0'
4
+ VERSION = '0.1.2'
5
5
  end
@@ -1035,6 +1035,22 @@
1035
1035
  ".tml-record-label,.tml-chip-remove{color:#3b82f6}",
1036
1036
  ".tml-chip{background:rgba(59,130,246,.12)}",
1037
1037
  ".tml-hint,.tml-nps-legend,.tml-record-hint{color:#9aa2ab}",
1038
+ "}",
1039
+ // The dialog is the scrollable region; keep its scroll from chaining
1040
+ // into the host page (rubber-banding through the backdrop on touch).
1041
+ "#tml-dialog{overscroll-behavior:contain}",
1042
+ // Full-screen on mobile — no bottom sheet, no animation. Placed last,
1043
+ // with selectors at least as specific as the desktop rules above, so
1044
+ // these declarations win the cascade at equal specificity.
1045
+ "@media (max-width:480px){",
1046
+ "#tml-overlay{padding:0;align-items:stretch;justify-content:stretch}",
1047
+ "#tml-dialog{left:0;right:0;top:0;bottom:0;width:100%;max-width:none;",
1048
+ "height:100vh;height:100dvh;max-height:100dvh;border-radius:0;margin:0}",
1049
+ // 16px stops iOS Safari's auto-zoom when a field gets focus.
1050
+ "#tml-dialog textarea,#tml-dialog input[type=text],#tml-dialog input[type=email],#tml-dialog select{font-size:16px}",
1051
+ // The action row has no padding of its own; give it the home-indicator
1052
+ // safe area so Submit/Cancel never sit under the bar.
1053
+ "#tml-dialog .tml-actions{padding-bottom:calc(0px + env(safe-area-inset-bottom))}",
1038
1054
  "}"
1039
1055
  ].join("");
1040
1056
  var style = document.createElement("style");
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testimonials
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yaroslav Shmarov
@@ -102,14 +102,14 @@ files:
102
102
  - lib/testimonials/version.rb
103
103
  - lib/testimonials/widget.js
104
104
  - lib/testimonials/widget.rb
105
- homepage: https://github.com/yshmarov/testimonials-engine
105
+ homepage: https://github.com/yshmarov/testimonials
106
106
  licenses:
107
107
  - MIT
108
108
  metadata:
109
- homepage_uri: https://github.com/yshmarov/testimonials-engine
110
- source_code_uri: https://github.com/yshmarov/testimonials-engine
111
- changelog_uri: https://github.com/yshmarov/testimonials-engine/blob/main/CHANGELOG.md
112
- bug_tracker_uri: https://github.com/yshmarov/testimonials-engine/issues
109
+ homepage_uri: https://github.com/yshmarov/testimonials
110
+ source_code_uri: https://github.com/yshmarov/testimonials
111
+ changelog_uri: https://github.com/yshmarov/testimonials/blob/main/CHANGELOG.md
112
+ bug_tracker_uri: https://github.com/yshmarov/testimonials/issues
113
113
  rubygems_mfa_required: 'true'
114
114
  rdoc_options: []
115
115
  require_paths:
@@ -125,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
125
125
  - !ruby/object:Gem::Version
126
126
  version: '0'
127
127
  requirements: []
128
- rubygems_version: 4.0.6
128
+ rubygems_version: 3.6.9
129
129
  specification_version: 4
130
130
  summary: 'Testimonials, reviews and NPS for Rails: in-app collection widget, public
131
131
  collection page, triage dashboard, and a read API.'