upjs-rails 0.12.1 → 0.12.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +27 -12
- data/dist/up.js +376 -201
- data/dist/up.min.js +2 -2
- data/lib/assets/javascripts/up/boot.js.coffee +2 -2
- data/lib/assets/javascripts/up/browser.js.coffee +9 -0
- data/lib/assets/javascripts/up/bus.js.coffee +26 -8
- data/lib/assets/javascripts/up/flow.js.coffee +77 -23
- data/lib/assets/javascripts/up/form.js.coffee +15 -12
- data/lib/assets/javascripts/up/history.js.coffee +2 -2
- data/lib/assets/javascripts/up/layout.js.coffee +27 -17
- data/lib/assets/javascripts/up/link.js.coffee +23 -15
- data/lib/assets/javascripts/up/magic.js.coffee +72 -32
- data/lib/assets/javascripts/up/modal.js.coffee +47 -37
- data/lib/assets/javascripts/up/motion.js.coffee +7 -7
- data/lib/assets/javascripts/up/navigation.js.coffee +6 -5
- data/lib/assets/javascripts/up/popup.js.coffee +36 -27
- data/lib/assets/javascripts/up/proxy.js.coffee +7 -7
- data/lib/assets/javascripts/up/tooltip.js.coffee +1 -1
- data/lib/assets/javascripts/up/util.js.coffee +1 -1
- data/lib/upjs/rails/version.rb +1 -1
- data/spec_app/Gemfile.lock +1 -1
- data/spec_app/spec/javascripts/up/bus_spec.js.coffee +4 -4
- data/spec_app/spec/javascripts/up/modal_spec.js.coffee +20 -0
- data/spec_app/spec/javascripts/up/navigation_spec.js.coffee +41 -3
- data/spec_app/spec/javascripts/up/popup_spec.js.coffee +20 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ac926c02b81da3c61c247b6657a4849b98f317e
|
4
|
+
data.tar.gz: bbd3180804f3fc221d15bbea1ed1f018807f472b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9569a9e5ddf7f4895cb33db0cd1f2dd458259ab685e78b78d5575e20122537c9dab2eaa67677fe540801eda4a80df501344a9db9c1289ff3e28dd3ce723957ed
|
7
|
+
data.tar.gz: cec466a2165adfefbdf3f5e21a16cde88f749a6c3479376c28ef7de0d5d67eec896b571d4cdd26042612cec9ea44bf83500ed032209b7ca28093f6483998ddc7
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,21 @@ All notable changes to this project will be documented in this file.
|
|
5
5
|
This project mostly adheres to [Semantic Versioning](http://semver.org/).
|
6
6
|
|
7
7
|
|
8
|
+
0.12.2
|
9
|
+
------
|
10
|
+
|
11
|
+
### Compatible changes
|
12
|
+
|
13
|
+
- When marking links as `.up-current`, also consider the URL behind a current modal or popup to
|
14
|
+
be the "current" URL.
|
15
|
+
|
16
|
+
|
17
|
+
### Incompatible changes
|
18
|
+
|
19
|
+
- `up.bus.emit` is now [`up.emit`](http://upjs.io/up.emit/)
|
20
|
+
- When `up.first` finds no match, return `undefined` instead of `null`.
|
21
|
+
|
22
|
+
|
8
23
|
0.12.1
|
9
24
|
------
|
10
25
|
|
@@ -138,17 +153,17 @@ This project mostly adheres to [Semantic Versioning](http://semver.org/).
|
|
138
153
|
### Breaking changes
|
139
154
|
|
140
155
|
- While following links and submitting forms will still reveal elements by default,
|
141
|
-
direct calls of [`up.replace`](
|
156
|
+
direct calls of [`up.replace`](/up.replace) no longer do.
|
142
157
|
This behavior can be activated using the `{ reveal: true }` option.
|
143
158
|
|
144
159
|
### Compatible changes
|
145
160
|
|
146
161
|
- Options to control scrolling and cache use for
|
147
|
-
[`up.submit`](
|
148
|
-
[`up.follow`](
|
149
|
-
[`up.visit`](
|
150
|
-
[`form[up-target]`](
|
151
|
-
[`a[up-target]`](
|
162
|
+
[`up.submit`](/up.submit),
|
163
|
+
[`up.follow`](/up.follow),
|
164
|
+
[`up.visit`](/up.visit),
|
165
|
+
[`form[up-target]`](/form-up-target) and
|
166
|
+
[`a[up-target]`](/a-up-target).
|
152
167
|
|
153
168
|
|
154
169
|
0.10.1
|
@@ -156,7 +171,7 @@ This project mostly adheres to [Semantic Versioning](http://semver.org/).
|
|
156
171
|
|
157
172
|
### Breaking changes
|
158
173
|
|
159
|
-
- [`up.reveal`](
|
174
|
+
- [`up.reveal`](/up.reveal) now only reveals the first 150 pixels of an element.
|
160
175
|
|
161
176
|
|
162
177
|
0.10.0
|
@@ -165,8 +180,8 @@ This project mostly adheres to [Semantic Versioning](http://semver.org/).
|
|
165
180
|
### Compatible changes
|
166
181
|
|
167
182
|
- Viewport scroll positions are saved when the URL changes and restored when the user hits the back/forward button
|
168
|
-
- Allow to link to the previous page using [`[up-back]`](
|
169
|
-
- Allow to restore previous scroll state using [`[up-restore-scroll]`](
|
183
|
+
- Allow to link to the previous page using [`[up-back]`](/up-back)
|
184
|
+
- Allow to restore previous scroll state using [`[up-restore-scroll]`](/a-up-target)
|
170
185
|
- Instead of saying `<tag up-something="true">` you can now simply say `<tag up-something>`.
|
171
186
|
- Create this Changelog.
|
172
187
|
|
@@ -191,10 +206,10 @@ This project mostly adheres to [Semantic Versioning](http://semver.org/).
|
|
191
206
|
|
192
207
|
### Compatible changes
|
193
208
|
|
194
|
-
- Elements are now being [revealed](
|
209
|
+
- Elements are now being [revealed](/up.reveal) within their viewport before they are updated
|
195
210
|
- Elements that are prepended or appended using `:before` or `:after` pseudo-selectors are now scrolled into view after insertion.
|
196
211
|
- New option `up.layout.defaults('snap')` lets you define a number of pixels under which Up.js will snap to the top edge of the viewport when revealing an element
|
197
|
-
- You can now make [`up.reveal`](
|
212
|
+
- You can now make [`up.reveal`](/up.reveal) aware of fixed navigation bars blocking the viewport by setting new options `up.layout.defaults('fixedTop')` and `up.layout.defaults('fixedBottom')`.
|
198
213
|
|
199
214
|
|
200
215
|
0.8.2
|
@@ -202,7 +217,7 @@ This project mostly adheres to [Semantic Versioning](http://semver.org/).
|
|
202
217
|
|
203
218
|
### Compatible changes
|
204
219
|
|
205
|
-
- [`up.reveal`](
|
220
|
+
- [`up.reveal`](/up.reveal) can now reveal content in modals and containers with `overflow-y: scroll`.
|
206
221
|
- Changing the default configuration of an Up.js module now raises an error if a config key is unknown.
|
207
222
|
- Links linking to `"#"` are now never marked as `.up-current`.
|
208
223
|
|