pageflow 14.5.2 → 15.0.0.beta1

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 (77) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +44 -39
  3. data/admins/pageflow/membership.rb +1 -5
  4. data/app/assets/javascripts/pageflow/dist/react-client.js +62 -179
  5. data/app/assets/javascripts/pageflow/dist/react-server.js +62 -179
  6. data/app/assets/javascripts/pageflow/editor/api/widget_type.js +1 -0
  7. data/app/assets/javascripts/pageflow/editor/base.js +2 -2
  8. data/app/assets/javascripts/pageflow/editor/collections/files_collection.js +4 -0
  9. data/app/assets/javascripts/pageflow/editor/collections/nested_files_collection.js +4 -0
  10. data/app/assets/javascripts/pageflow/editor/initializers/setup_audio.js +1 -1
  11. data/app/assets/javascripts/pageflow/editor/models/encoded_file.js +1 -1
  12. data/app/assets/javascripts/pageflow/editor/models/image_file.js +1 -1
  13. data/app/assets/javascripts/pageflow/editor/models/mixins/transient_references.js +7 -7
  14. data/app/assets/javascripts/pageflow/editor/models/preview_entry_data.js +2 -2
  15. data/app/assets/javascripts/pageflow/editor/models/{uploaded_file.js → reusable_file.js} +1 -1
  16. data/app/assets/javascripts/pageflow/editor/models/text_track_file.js +2 -2
  17. data/app/assets/javascripts/pageflow/editor/models/{hosted_file.js → uploadable_file.js} +1 -1
  18. data/app/assets/javascripts/pageflow/editor/views/widget_types/title_loading_spinner.js +0 -3
  19. data/app/assets/stylesheets/pageflow/mixins/pageflow.scss +1 -1
  20. data/app/assets/stylesheets/pageflow/themes/default/base.scss +1 -1
  21. data/app/assets/stylesheets/pageflow/themes/default/loading_spinner/title.scss +50 -10
  22. data/app/assets/stylesheets/pageflow/themes/default/loading_spinner.scss +0 -2
  23. data/app/assets/stylesheets/pageflow/themes/default/player_controls/classic/info_box.scss +0 -5
  24. data/app/assets/stylesheets/pageflow/themes/default/player_controls/slim/info_box.scss +0 -4
  25. data/app/controllers/pageflow/files_controller.rb +3 -3
  26. data/app/helpers/pageflow/audio_files_helper.rb +18 -16
  27. data/app/helpers/pageflow/background_image_helper.rb +22 -17
  28. data/app/helpers/pageflow/entry_json_seed_helper.rb +3 -3
  29. data/app/helpers/pageflow/file_thumbnails_helper.rb +1 -1
  30. data/app/helpers/pageflow/meta_tags_helper.rb +3 -3
  31. data/app/helpers/pageflow/pages_helper.rb +10 -1
  32. data/app/helpers/pageflow/revision_file_helper.rb +27 -0
  33. data/app/helpers/pageflow/social_share_helper.rb +5 -3
  34. data/app/helpers/pageflow/social_share_links_helper.rb +1 -1
  35. data/app/helpers/pageflow/video_files_helper.rb +18 -13
  36. data/app/jobs/pageflow/{process_file_job.rb → process_image_or_text_track_job.rb} +1 -1
  37. data/app/models/concerns/pageflow/{uploaded_file.rb → reusable_file.rb} +59 -5
  38. data/app/models/concerns/pageflow/{hosted_file.rb → uploadable_file.rb} +26 -15
  39. data/app/models/pageflow/audio_file.rb +2 -2
  40. data/app/models/pageflow/draft_entry.rb +1 -1
  41. data/app/models/pageflow/entry.rb +0 -8
  42. data/app/models/pageflow/file_usage.rb +3 -1
  43. data/app/models/pageflow/image_file.rb +31 -29
  44. data/app/models/pageflow/membership.rb +4 -3
  45. data/app/models/pageflow/page.rb +0 -8
  46. data/app/models/pageflow/positioned_file.rb +3 -2
  47. data/app/models/pageflow/published_entry.rb +9 -3
  48. data/app/models/pageflow/revision.rb +6 -12
  49. data/app/models/pageflow/text_track_file.rb +13 -12
  50. data/app/models/pageflow/thumbnail_file_resolver.rb +3 -3
  51. data/app/models/pageflow/used_file.rb +4 -0
  52. data/app/models/pageflow/video_file.rb +2 -2
  53. data/app/models/pageflow/widget.rb +6 -12
  54. data/app/state_machines/pageflow/{processed_file_state_machine.rb → image_and_text_track_processing_state_machine.rb} +3 -2
  55. data/app/state_machines/pageflow/{encoded_file_state_machine.rb → media_encoding_state_machine.rb} +27 -19
  56. data/app/views/pageflow/editor/files/_file.json.jbuilder +1 -1
  57. data/app/views/pageflow/entries/mobile_navigation/_page.html.erb +1 -1
  58. data/app/views/pageflow/entries/navigation/_page.html.erb +2 -2
  59. data/app/views/pageflow/entries/overview/_page.html.erb +1 -1
  60. data/app/views/pageflow/files/_file.json.jbuilder +1 -0
  61. data/app/views/pageflow/social_share/_page_meta_tags.html.erb +1 -1
  62. data/config/locales/de.yml +0 -24
  63. data/config/locales/en.yml +0 -24
  64. data/db/migrate/20190306161431_copy_file_attributes_of_failed_uploads.rb +4 -4
  65. data/db/migrate/20190523151140_add_perma_id_to_file_usages.rb +13 -0
  66. data/lib/pageflow/built_in_widget_type.rb +0 -7
  67. data/lib/pageflow/built_in_widget_types_plugin.rb +0 -6
  68. data/lib/pageflow/user_mixin.rb +0 -6
  69. data/lib/pageflow/version.rb +1 -1
  70. data/lib/pageflow/widget_types.rb +1 -9
  71. data/spec/factories/{hosted_files.rb → uploadable_files.rb} +3 -3
  72. metadata +16 -32
  73. data/app/assets/javascripts/pageflow/dist/editor.js +0 -11890
  74. data/app/assets/javascripts/pageflow/dist/frontend.js +0 -5800
  75. data/app/assets/javascripts/pageflow/dist/ui.js +0 -3114
  76. data/app/assets/javascripts/pageflow/editor/views/widget_types/media_loading_spinner.js +0 -18
  77. data/app/assets/stylesheets/pageflow/themes/default/loading_spinner/media.scss +0 -56
@@ -9,18 +9,12 @@ module Pageflow
9
9
  .phone_horizontal_slideshow_mode)
10
10
  end
11
11
 
12
- config.widget_types.register_widget_defaults('loading_spinner',
13
- 'blur_strength' => 50,
14
- 'remove_logo' => false,
15
- 'invert' => false)
16
12
  config.widget_types.register(Pageflow::BuiltInWidgetType.classic_loading_spinner,
17
13
  default: true)
18
14
 
19
15
  config.features.register('title_loading_spinner') do |feature_config|
20
- feature_config.widget_types.register(Pageflow::BuiltInWidgetType.media_loading_spinner)
21
16
  feature_config.widget_types.register(Pageflow::BuiltInWidgetType.title_loading_spinner)
22
17
  end
23
- config.features.enable_by_default('title_loading_spinner')
24
18
 
25
19
  config.widget_types.register(Pageflow::BuiltInWidgetType.navigation, default: true)
26
20
  config.widget_types.register(Pageflow::BuiltInWidgetType.mobile_navigation, default: true)
@@ -69,12 +69,6 @@ module Pageflow
69
69
  devise_mailer.send(notification, self, *args).deliver_later
70
70
  end
71
71
 
72
- module ClassMethods
73
- def ransackable_attributes(_auth_object)
74
- %w[first_name last_name email]
75
- end
76
- end
77
-
78
72
  private
79
73
 
80
74
  def needs_password?(attributes)
@@ -1,3 +1,3 @@
1
1
  module Pageflow
2
- VERSION = '14.5.2'.freeze
2
+ VERSION = '15.0.0.beta1'.freeze
3
3
  end
@@ -10,6 +10,7 @@ module Pageflow
10
10
 
11
11
  def register(widget_type, options = {})
12
12
  @widget_types[widget_type.name] = widget_type
13
+
13
14
  if options[:default]
14
15
  widget_type.roles.each do |role|
15
16
  defaults_by_role[role] = widget_type
@@ -17,14 +18,9 @@ module Pageflow
17
18
  end
18
19
  end
19
20
 
20
- def register_widget_defaults(widget_role, default_configurations)
21
- @default_configurations[widget_role] = default_configurations
22
- end
23
-
24
21
  def clear
25
22
  @widget_types = {}
26
23
  @defaults_by_role = {}
27
- @default_configurations = {}
28
24
  end
29
25
 
30
26
  def each(&block)
@@ -41,10 +37,6 @@ module Pageflow
41
37
  @widget_types.fetch(name, &block)
42
38
  end
43
39
 
44
- def default_configuration(name)
45
- @default_configurations[name]
46
- end
47
-
48
40
  def find_all_by_role(role)
49
41
  select do |widget_type|
50
42
  widget_type.roles.include?(role)
@@ -1,6 +1,6 @@
1
1
  module Pageflow
2
2
  FactoryBot.define do
3
- factory :hosted_file, class: 'Pageflow::TestHostedFile' do
3
+ factory :uploadable_file, class: 'Pageflow::TestUploadableFile' do
4
4
  attachment { File.open(Engine.root.join('spec', 'fixtures', 'image.png')) }
5
5
  state { 'uploaded' }
6
6
 
@@ -17,8 +17,8 @@ module Pageflow
17
17
  file_name { 'image.jpg' }
18
18
  state { 'uploading' }
19
19
 
20
- after :create do |hosted_file|
21
- simulate_direct_upload(hosted_file)
20
+ after :create do |uploadable_file|
21
+ simulate_direct_upload(uploadable_file)
22
22
  end
23
23
  end
24
24
 
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: 14.5.2
4
+ version: 15.0.0.beta1
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: 2022-09-14 00:00:00.000000000 Z
11
+ date: 2019-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -346,20 +346,6 @@ dependencies:
346
346
  - - "~>"
347
347
  - !ruby/object:Gem::Version
348
348
  version: '3.4'
349
- - !ruby/object:Gem::Dependency
350
- name: sprockets
351
- requirement: !ruby/object:Gem::Requirement
352
- requirements:
353
- - - "<"
354
- - !ruby/object:Gem::Version
355
- version: '4'
356
- type: :runtime
357
- prerelease: false
358
- version_requirements: !ruby/object:Gem::Requirement
359
- requirements:
360
- - - "<"
361
- - !ruby/object:Gem::Version
362
- version: '4'
363
349
  - !ruby/object:Gem::Dependency
364
350
  name: i18n-js
365
351
  requirement: !ruby/object:Gem::Requirement
@@ -1000,11 +986,8 @@ files:
1000
986
  - app/assets/javascripts/pageflow/cookie_notice.js
1001
987
  - app/assets/javascripts/pageflow/cookies.js
1002
988
  - app/assets/javascripts/pageflow/delayed_start.js
1003
- - app/assets/javascripts/pageflow/dist/editor.js
1004
- - app/assets/javascripts/pageflow/dist/frontend.js
1005
989
  - app/assets/javascripts/pageflow/dist/react-client.js
1006
990
  - app/assets/javascripts/pageflow/dist/react-server.js
1007
- - app/assets/javascripts/pageflow/dist/ui.js
1008
991
  - app/assets/javascripts/pageflow/editor/api.js
1009
992
  - app/assets/javascripts/pageflow/editor/api/common_page_configuration_tabs.js
1010
993
  - app/assets/javascripts/pageflow/editor/api/errors.js
@@ -1073,7 +1056,6 @@ files:
1073
1056
  - app/assets/javascripts/pageflow/editor/models/file_reuse.js
1074
1057
  - app/assets/javascripts/pageflow/editor/models/file_stage.js
1075
1058
  - app/assets/javascripts/pageflow/editor/models/file_uploader.js
1076
- - app/assets/javascripts/pageflow/editor/models/hosted_file.js
1077
1059
  - app/assets/javascripts/pageflow/editor/models/image_file.js
1078
1060
  - app/assets/javascripts/pageflow/editor/models/mixins/delayed_destroying.js
1079
1061
  - app/assets/javascripts/pageflow/editor/models/mixins/failure_tracking.js
@@ -1090,6 +1072,7 @@ files:
1090
1072
  - app/assets/javascripts/pageflow/editor/models/page_link.js
1091
1073
  - app/assets/javascripts/pageflow/editor/models/page_link_file_selection_handler.js
1092
1074
  - app/assets/javascripts/pageflow/editor/models/preview_entry_data.js
1075
+ - app/assets/javascripts/pageflow/editor/models/reusable_file.js
1093
1076
  - app/assets/javascripts/pageflow/editor/models/scaffold.js
1094
1077
  - app/assets/javascripts/pageflow/editor/models/storyline.js
1095
1078
  - app/assets/javascripts/pageflow/editor/models/storyline_configuration.js
@@ -1099,7 +1082,7 @@ files:
1099
1082
  - app/assets/javascripts/pageflow/editor/models/text_track_file.js
1100
1083
  - app/assets/javascripts/pageflow/editor/models/theme.js
1101
1084
  - app/assets/javascripts/pageflow/editor/models/theming.js
1102
- - app/assets/javascripts/pageflow/editor/models/uploaded_file.js
1085
+ - app/assets/javascripts/pageflow/editor/models/uploadable_file.js
1103
1086
  - app/assets/javascripts/pageflow/editor/models/video_file.js
1104
1087
  - app/assets/javascripts/pageflow/editor/models/widget.js
1105
1088
  - app/assets/javascripts/pageflow/editor/models/widget_configuration.js
@@ -1267,7 +1250,6 @@ files:
1267
1250
  - app/assets/javascripts/pageflow/editor/views/widget_item_view.js
1268
1251
  - app/assets/javascripts/pageflow/editor/views/widget_types/classic_loading_spinner.js
1269
1252
  - app/assets/javascripts/pageflow/editor/views/widget_types/cookie_notice_bar.js
1270
- - app/assets/javascripts/pageflow/editor/views/widget_types/media_loading_spinner.js
1271
1253
  - app/assets/javascripts/pageflow/editor/views/widget_types/phone_horizontal_slideshow_mode.js
1272
1254
  - app/assets/javascripts/pageflow/editor/views/widget_types/title_loading_spinner.js
1273
1255
  - app/assets/javascripts/pageflow/entry_data.js
@@ -1558,7 +1540,6 @@ files:
1558
1540
  - app/assets/stylesheets/pageflow/themes/default/indicators/typography.scss
1559
1541
  - app/assets/stylesheets/pageflow/themes/default/indicators/widget_margins.scss
1560
1542
  - app/assets/stylesheets/pageflow/themes/default/loading_spinner.scss
1561
- - app/assets/stylesheets/pageflow/themes/default/loading_spinner/media.scss
1562
1543
  - app/assets/stylesheets/pageflow/themes/default/loading_spinner/title.scss
1563
1544
  - app/assets/stylesheets/pageflow/themes/default/logo.scss
1564
1545
  - app/assets/stylesheets/pageflow/themes/default/logo/alignment.scss
@@ -1701,6 +1682,7 @@ files:
1701
1682
  - app/helpers/pageflow/quota_helper.rb
1702
1683
  - app/helpers/pageflow/react_server_side_rendering_helper.rb
1703
1684
  - app/helpers/pageflow/render_json_helper.rb
1685
+ - app/helpers/pageflow/revision_file_helper.rb
1704
1686
  - app/helpers/pageflow/social_share_helper.rb
1705
1687
  - app/helpers/pageflow/social_share_links_helper.rb
1706
1688
  - app/helpers/pageflow/structured_data_helper.rb
@@ -1713,20 +1695,20 @@ files:
1713
1695
  - app/jobs/pageflow/application_job.rb
1714
1696
  - app/jobs/pageflow/poll_meta_data_from_zencoder_job.rb
1715
1697
  - app/jobs/pageflow/poll_zencoder_job.rb
1716
- - app/jobs/pageflow/process_file_job.rb
1698
+ - app/jobs/pageflow/process_image_or_text_track_job.rb
1717
1699
  - app/jobs/pageflow/prune_auto_snapshots_job.rb
1718
1700
  - app/jobs/pageflow/request_meta_data_from_zencoder_job.rb
1719
1701
  - app/jobs/pageflow/submit_file_to_zencoder_job.rb
1720
1702
  - app/mailers/pageflow/user_mailer.rb
1721
1703
  - app/models/concerns/pageflow/entry_publication_states.rb
1722
1704
  - app/models/concerns/pageflow/feature_target.rb
1723
- - app/models/concerns/pageflow/hosted_file.rb
1724
1705
  - app/models/concerns/pageflow/output_source.rb
1706
+ - app/models/concerns/pageflow/reusable_file.rb
1725
1707
  - app/models/concerns/pageflow/serialization_blacklist.rb
1726
1708
  - app/models/concerns/pageflow/serialized_configuration.rb
1727
1709
  - app/models/concerns/pageflow/suspendable.rb
1728
1710
  - app/models/concerns/pageflow/theme_referencer.rb
1729
- - app/models/concerns/pageflow/uploaded_file.rb
1711
+ - app/models/concerns/pageflow/uploadable_file.rb
1730
1712
  - app/models/pageflow/account.rb
1731
1713
  - app/models/pageflow/account_member_query.rb
1732
1714
  - app/models/pageflow/account_role_query.rb
@@ -1790,8 +1772,8 @@ files:
1790
1772
  - app/policies/pageflow/membership_policy.rb
1791
1773
  - app/policies/pageflow/theming_policy.rb
1792
1774
  - app/policies/pageflow/user_policy.rb
1793
- - app/state_machines/pageflow/encoded_file_state_machine.rb
1794
- - app/state_machines/pageflow/processed_file_state_machine.rb
1775
+ - app/state_machines/pageflow/image_and_text_track_processing_state_machine.rb
1776
+ - app/state_machines/pageflow/media_encoding_state_machine.rb
1795
1777
  - app/views/admin/accounts/_account_details.html.arb
1796
1778
  - app/views/admin/accounts/_form.html.erb
1797
1779
  - app/views/admin/accounts/_theming_defaults_inline_help.html.erb
@@ -1954,6 +1936,7 @@ files:
1954
1936
  - db/migrate/20190404075934_copy_filenames_of_processing_failed_images.rb
1955
1937
  - db/migrate/20190408144136_add_default_share_providers_to_themings.rb
1956
1938
  - db/migrate/20190408161315_add_share_providers_to_revisions.rb
1939
+ - db/migrate/20190523151140_add_perma_id_to_file_usages.rb
1957
1940
  - lib/generators/pageflow/active_admin_initializer/active_admin_initializer_generator.rb
1958
1941
  - lib/generators/pageflow/assets/assets_generator.rb
1959
1942
  - lib/generators/pageflow/assets/templates/application.js
@@ -2057,7 +2040,6 @@ files:
2057
2040
  - spec/factories/feature_targets.rb
2058
2041
  - spec/factories/file_usages.rb
2059
2042
  - spec/factories/folders.rb
2060
- - spec/factories/hosted_files.rb
2061
2043
  - spec/factories/image_files.rb
2062
2044
  - spec/factories/invited_user.rb
2063
2045
  - spec/factories/memberships.rb
@@ -2066,6 +2048,7 @@ files:
2066
2048
  - spec/factories/storylines.rb
2067
2049
  - spec/factories/text_track_files.rb
2068
2050
  - spec/factories/themings.rb
2051
+ - spec/factories/uploadable_files.rb
2069
2052
  - spec/factories/users.rb
2070
2053
  - spec/factories/video_files.rb
2071
2054
  - spec/factories/widgets.rb
@@ -2108,11 +2091,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
2108
2091
  version: '0'
2109
2092
  required_rubygems_version: !ruby/object:Gem::Requirement
2110
2093
  requirements:
2111
- - - ">="
2094
+ - - ">"
2112
2095
  - !ruby/object:Gem::Version
2113
- version: '0'
2096
+ version: 1.3.1
2114
2097
  requirements: []
2115
- rubygems_version: 3.0.3
2098
+ rubyforge_project:
2099
+ rubygems_version: 2.7.10
2116
2100
  signing_key:
2117
2101
  specification_version: 4
2118
2102
  summary: Multimedia story telling for the web.