mobile_workflow 0.7.9 → 0.8.9

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: 59170ad3bd79a19bd9865679525edafce2bcef6e408249f16dd6fc4ed2cdd1e7
4
- data.tar.gz: 8d083bbcea39395ec6d990ea88f592c27aa28a53a1888a22b947ff71a99f3f44
3
+ metadata.gz: 229a8fe990726594fdb6036508c678da2c53f8488309874627f743130400cb5b
4
+ data.tar.gz: 3922375cd7e5e56448780d033f5e7a24e2e2afa1a4169fb651e2ecd5430b48d4
5
5
  SHA512:
6
- metadata.gz: 3c89026173ff3cf6b735bbc0d01ffb6e905cd1cf99509d6fe436aee5f4dc2cd327cf1fd9f613cdb8fc6a4804166152ba6c5cb56827bdb812f09e527f389f95fc
7
- data.tar.gz: 9c55da0efbcfac7a749d4ec7c4702946de29a255a5a5ec6b641dbf8f880b32b358f0e90952c72befbadd002c1b4c89bd2d59a5c06bd8b2f9426f9d7e37c8224c
6
+ metadata.gz: dd63ea333db40bcbed5e72dbce3ed2488c64433245bea45779a50c0373c01c381dd0635c85070ec11083cce855d88894a9ce5ece9112316b69a7d5330c955c15
7
+ data.tar.gz: 87a0fa463d22dc0e78abf0f3ddd3c96a6f89c6f70a092179845a1d2ca1df328766aeb706e2b75ba6a04cb7ebf093ea1ccd0b2e398bfc11cca6a0a4249f30b4dd
@@ -56,7 +56,15 @@ module MobileWorkflow
56
56
  {type: :button, label: label, appleSystemURL: apple_system_url, androidDeepLink: android_deep_link, style: style, sfSymbolName: sf_symbol_name, materialIconName: material_icon_name}.compact
57
57
  end
58
58
  alias_method :mw_display_button_for_system_url, :mw_display_system_url_button
59
-
59
+
60
+ def mw_display_link_button(label:, link_id:, style: :primary, on_success: :none, sf_symbol_name: nil, material_icon_name: nil)
61
+ validate_on_success!(on_success)
62
+ validate_button_style!(style)
63
+
64
+ {type: :button, label: label, linkId: link_id, style: style, onSuccess: on_success, sfSymbolName: sf_symbol_name, materialIconName: material_icon_name}.compact
65
+ end
66
+
67
+ # Remove this method once V1 is no longer being used
60
68
  def mw_display_modal_workflow_button(label:, modal_workflow_name:, style: :primary, on_success: :none, sf_symbol_name: nil, material_icon_name: nil)
61
69
  validate_on_success!(on_success)
62
70
  validate_button_style!(style)
@@ -23,15 +23,16 @@ module MobileWorkflow
23
23
 
24
24
  { id: id.to_s, text: text, detailText: detail_text, type: :listItem, imageURL: preview_url }.compact
25
25
  end
26
-
27
- def mw_stack_button(id:, label:, url: nil, method: :nil, on_success: :none, style: :primary, modal_workflow_name: nil, link_url: nil, sf_symbol_name: nil, apple_system_url: nil, android_deep_link: nil, confirm_title: nil, confirm_text: nil, share_text: nil, share_image_url: nil)
26
+
27
+ # Remove `modal_workflow_name` argument once V1 is no longer being used
28
+ def mw_stack_button(id:, label:, url: nil, method: :nil, on_success: :none, style: :primary, modal_workflow_name: nil, link_id: nil, link_url: nil, sf_symbol_name: nil, apple_system_url: nil, android_deep_link: nil, confirm_title: nil, confirm_text: nil, share_text: nil, share_image_url: nil)
28
29
  raise 'Missing id' if id.nil?
29
30
  raise 'Missing label' if label.nil?
30
31
 
31
32
  validate_on_success!(on_success)
32
33
  validate_button_style!(style)
33
34
 
34
- { id: id, type: :button, label: label, url: url, method: method, onSuccess: on_success, style: style, modalWorkflow: modal_workflow_name, linkURL: link_url, sfSymbolName: sf_symbol_name, appleSystemURL: apple_system_url, androidDeepLink: android_deep_link, confirmTitle: confirm_title, confirmText: confirm_text, shareText: share_text, shareImageURL: share_image_url }.compact
35
+ { id: id, type: :button, label: label, url: url, method: method, onSuccess: on_success, style: style, modalWorkflow: modal_workflow_name, linkId: link_id, linkURL: link_url, sfSymbolName: sf_symbol_name, appleSystemURL: apple_system_url, androidDeepLink: android_deep_link, confirmTitle: confirm_title, confirmText: confirm_text, shareText: share_text, shareImageURL: share_image_url }.compact
35
36
  end
36
37
  end
37
38
  end
@@ -1,5 +1,5 @@
1
1
  module MobileWorkflow
2
- VERSION = '0.7.9'
2
+ VERSION = '0.8.9'
3
3
  RUBY_VERSION = '2.7.3'
4
4
  RAILS_VERSION = '6.1.3.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mobile_workflow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.9
4
+ version: 0.8.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Brooke-Smith
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-24 00:00:00.000000000 Z
11
+ date: 2022-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-s3
@@ -114,7 +114,7 @@ dependencies:
114
114
  - - ">="
115
115
  - !ruby/object:Gem::Version
116
116
  version: '0'
117
- description:
117
+ description:
118
118
  email:
119
119
  - matt@futureworkshops.com
120
120
  executables:
@@ -192,7 +192,7 @@ homepage: https://github.com/futureworkshops/mobile_workflow
192
192
  licenses:
193
193
  - MIT
194
194
  metadata: {}
195
- post_install_message:
195
+ post_install_message:
196
196
  rdoc_options: []
197
197
  require_paths:
198
198
  - lib
@@ -207,8 +207,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
207
207
  - !ruby/object:Gem::Version
208
208
  version: '0'
209
209
  requirements: []
210
- rubygems_version: 3.3.5
211
- signing_key:
210
+ rubygems_version: 3.3.6
211
+ signing_key:
212
212
  specification_version: 4
213
213
  summary: A Rails engine to provide API support for Mobile Workflow Apps.
214
214
  test_files: []