pageflow 13.0.0.beta7 → 13.0.0.rc1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of pageflow might be problematic. Click here for more details.

Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +65 -0
  3. data/Rakefile +1 -1
  4. data/admins/pageflow/entry.rb +1 -1
  5. data/admins/pageflow/revisions.rb +3 -4
  6. data/app/assets/javascripts/pageflow/admin/accounts.js +1 -1
  7. data/app/assets/javascripts/pageflow/background_media.js +1 -1
  8. data/app/assets/javascripts/pageflow/base.js +1 -1
  9. data/app/assets/javascripts/pageflow/dist/react.js +1166 -982
  10. data/app/assets/javascripts/pageflow/media_player/volume_binding.js +2 -1
  11. data/app/assets/javascripts/pageflow/media_player/volume_fading/web_audio.js +60 -37
  12. data/app/assets/javascripts/pageflow/slideshow.js +15 -8
  13. data/app/assets/javascripts/pageflow/slideshow/adjacent_pages.js +9 -4
  14. data/app/assets/javascripts/pageflow/slideshow/adjacent_preloader.js +26 -0
  15. data/app/assets/javascripts/pageflow/slideshow/lazy_page_widget.js +2 -2
  16. data/app/assets/javascripts/pageflow/slideshow/successor_preparer.js +49 -0
  17. data/app/assets/javascripts/pageflow/ui/views/inputs/text_input_view.js +29 -5
  18. data/app/assets/javascripts/pageflow/ui/views/mixins/input_view.js +1 -1
  19. data/app/assets/javascripts/pageflow/widgets/multimedia_alert.js +2 -1
  20. data/app/assets/stylesheets/pageflow/admin/tabs_view.scss +3 -3
  21. data/app/assets/stylesheets/pageflow/navigation_mobile.scss +1 -1
  22. data/app/assets/stylesheets/pageflow/page_types/background-image.scss +1 -1
  23. data/app/assets/stylesheets/pageflow/themes/default/anchors.scss +5 -0
  24. data/app/assets/stylesheets/pageflow/themes/default/background_media_unmute_button.scss +45 -36
  25. data/app/assets/stylesheets/pageflow/themes/default/overview/icons/icon_font.scss +4 -1
  26. data/app/assets/stylesheets/pageflow/themes/default/page/anchors.scss +4 -0
  27. data/app/controllers/concerns/pageflow/public_https_mode.rb +5 -1
  28. data/app/controllers/pageflow/entries_controller.rb +10 -4
  29. data/app/jobs/pageflow/upload_file_to_s3_job.rb +1 -1
  30. data/app/models/concerns/pageflow/hosted_file.rb +0 -25
  31. data/app/models/pageflow/widget.rb +20 -9
  32. data/app/views/components/pageflow/admin/revisions_tab.rb +2 -2
  33. data/app/views/components/pageflow/admin/tabs_view.rb +3 -3
  34. data/app/views/pageflow/entries/_entry.html.erb +1 -1
  35. data/app/views/pageflow/entries/show.html.erb +1 -0
  36. data/config/locales/de.yml +2 -0
  37. data/config/locales/en.yml +2 -0
  38. data/lib/pageflow/configuration.rb +10 -0
  39. data/lib/pageflow/primary_domain_entry_redirect.rb +25 -0
  40. data/lib/pageflow/react/widget_type.rb +7 -2
  41. data/lib/pageflow/version.rb +1 -1
  42. data/lib/pageflow/widget_type.rb +8 -0
  43. data/spec/factories/hosted_files.rb +0 -8
  44. metadata +6 -5
  45. data/app/assets/javascripts/pageflow/slideshow/adjacent_preparer.js +0 -53
  46. data/app/assets/javascripts/pageflow/slideshow/progressive_preload.js +0 -42
@@ -1,3 +1,3 @@
1
1
  module Pageflow
2
- VERSION = '13.0.0.beta7'.freeze
2
+ VERSION = '13.0.0.rc1'.freeze
3
3
  end
@@ -25,6 +25,14 @@ module Pageflow
25
25
  true
26
26
  end
27
27
 
28
+ # Point in DOM where widget should be inserted. Possible values
29
+ # are `:bottom_of_entry` (default) or `:before_entry`.
30
+ #
31
+ # @since 13.0
32
+ def insert_point
33
+ :bottom_of_entry
34
+ end
35
+
28
36
  # Override instead of render to use the widget
29
37
  # configuration. Return html as string.
30
38
  def render_with_configuration(template, entry, _configuration)
@@ -26,14 +26,6 @@ module Pageflow
26
26
 
27
27
  trait :uploaded_to_s3 do
28
28
  end
29
-
30
- trait :with_overridden_keep_on_filesystem do
31
- after(:build) do |hosted_file|
32
- def hosted_file.keep_on_filesystem_after_upload_to_s3?
33
- true
34
- end
35
- end
36
- end
37
29
  end
38
30
  end
39
31
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pageflow
3
3
  version: !ruby/object:Gem::Version
4
- version: 13.0.0.beta7
4
+ version: 13.0.0.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Codevise Solutions Ltd
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-23 00:00:00.000000000 Z
11
+ date: 2018-12-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -1290,7 +1290,7 @@ files:
1290
1290
  - app/assets/javascripts/pageflow/settings.js
1291
1291
  - app/assets/javascripts/pageflow/slideshow.js
1292
1292
  - app/assets/javascripts/pageflow/slideshow/adjacent_pages.js
1293
- - app/assets/javascripts/pageflow/slideshow/adjacent_preparer.js
1293
+ - app/assets/javascripts/pageflow/slideshow/adjacent_preloader.js
1294
1294
  - app/assets/javascripts/pageflow/slideshow/atmo.js
1295
1295
  - app/assets/javascripts/pageflow/slideshow/dom_order_scroll_navigator.js
1296
1296
  - app/assets/javascripts/pageflow/slideshow/hidden_text_indicator_widget.js
@@ -1300,10 +1300,10 @@ files:
1300
1300
  - app/assets/javascripts/pageflow/slideshow/navigation_direction.js
1301
1301
  - app/assets/javascripts/pageflow/slideshow/page_split_layout.js
1302
1302
  - app/assets/javascripts/pageflow/slideshow/page_widget.js
1303
- - app/assets/javascripts/pageflow/slideshow/progressive_preload.js
1304
1303
  - app/assets/javascripts/pageflow/slideshow/scroll_indicator.js
1305
1304
  - app/assets/javascripts/pageflow/slideshow/scroll_indicator_widget.js
1306
1305
  - app/assets/javascripts/pageflow/slideshow/scroller_widget.js
1306
+ - app/assets/javascripts/pageflow/slideshow/successor_preparer.js
1307
1307
  - app/assets/javascripts/pageflow/slideshow/swipe_gesture.js
1308
1308
  - app/assets/javascripts/pageflow/ui.js
1309
1309
  - app/assets/javascripts/pageflow/ui/object.js
@@ -1969,6 +1969,7 @@ files:
1969
1969
  - lib/pageflow/paperclip_interpolations/support.rb
1970
1970
  - lib/pageflow/paperclip_processors/vtt.rb
1971
1971
  - lib/pageflow/plugin.rb
1972
+ - lib/pageflow/primary_domain_entry_redirect.rb
1972
1973
  - lib/pageflow/quota.rb
1973
1974
  - lib/pageflow/quotas.rb
1974
1975
  - lib/pageflow/react.rb
@@ -2053,7 +2054,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
2053
2054
  version: 1.3.1
2054
2055
  requirements: []
2055
2056
  rubyforge_project:
2056
- rubygems_version: 2.7.5
2057
+ rubygems_version: 2.7.3
2057
2058
  signing_key:
2058
2059
  specification_version: 4
2059
2060
  summary: Multimedia story telling for the web.
@@ -1,53 +0,0 @@
1
- //= require ./adjacent_pages
2
-
3
- pageflow.AdjacentPreparer = pageflow.Object.extend({
4
- initialize: function(adjacentPages, settings, debugMode) {
5
- this.adjacentPages = adjacentPages;
6
- this.settings = settings || new Backbone.Model();
7
- this.debugMode = debugMode;
8
- },
9
-
10
- attach: function(events) {
11
- this.listenTo(events, 'page:change', this.schedule);
12
- },
13
-
14
- schedule: function(page) {
15
- clearTimeout(this.scheduleTimeout);
16
-
17
- var prepare = _.bind(this.prepareAdjacent, this, page.element.page('instance'));
18
- this.scheduleTimeout = setTimeout(prepare, page.prepareNextPageTimeout());
19
- },
20
-
21
- prepareAdjacent: function(page) {
22
- var max = this.settings.has('max_prepared_adjacent_pages') && this.debugMode ?
23
- this.settings.get('max_prepared_adjacent_pages') :
24
- 5;
25
- var adjacentPages = _.first(this.adjacentPages.of(page), max);
26
- var noLongerPreparedPages = _.difference(this.lastPreparedPages, adjacentPages, [page]);
27
- var newAdjacentPages = _.difference(adjacentPages, this.lastPreparedPages);
28
-
29
- _(noLongerPreparedPages).each(function(page) {
30
- if (!page.isDestroyed) {
31
- page.unprepare();
32
- }
33
- });
34
-
35
- _(newAdjacentPages).each(function(adjacentPage) {
36
- adjacentPage.prepare();
37
- adjacentPage.preload();
38
- });
39
-
40
- this.lastPreparedPages = adjacentPages.concat([page]);
41
- }
42
- });
43
-
44
- pageflow.AdjacentPreparer.create = function(pages, scrollNavigator) {
45
- return new pageflow.AdjacentPreparer(
46
- new pageflow.AdjacentPages(
47
- pages,
48
- scrollNavigator
49
- ),
50
- pageflow.settings,
51
- pageflow.debugMode()
52
- );
53
- };
@@ -1,42 +0,0 @@
1
- pageflow.ProgressivePreload = function() {
2
- var run = null;
3
-
4
- function Run(page, maxPreloadedPages) {
5
- var cancelled = false;
6
-
7
- this.cancel = function() {
8
- cancelled = true;
9
- };
10
-
11
- this.start = function() {
12
- preload(page, 0);
13
- };
14
-
15
- function preload(page, counter) {
16
- $.when(page.page('preload'), tick()).then(function() {
17
- var nextPage = page.next('.page');
18
- if (!cancelled && nextPage.length && counter < maxPreloadedPages) {
19
- preload(nextPage, counter + 1);
20
- }
21
- });
22
- }
23
-
24
- // prevent stack level from becoming to deep
25
- function tick() {
26
- return new $.Deferred(function(deferred) {
27
- setTimeout(function() {
28
- deferred.resolve();
29
- }, 1);
30
- }).promise();
31
- }
32
- }
33
-
34
- this.start = function(page) {
35
- if (run) {
36
- run.cancel();
37
- }
38
-
39
- run = new Run(page, 10);
40
- run.start();
41
- };
42
- };