zendesk_apps_support 4.6.4 → 4.7.0

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
  SHA1:
3
- metadata.gz: 513c653a0a44ec4201b3683bec006c88a34f2950
4
- data.tar.gz: 7fc5b30973b7cb1b8c25d3a489b21d549785b516
3
+ metadata.gz: e5f380d93312cbad637e1308b61fd50c5ee5e99f
4
+ data.tar.gz: 735b32435835edbfb61f5fc9fefbf3dceef504bb
5
5
  SHA512:
6
- metadata.gz: b6eef964a47a771ed2247b0d4e8ab5dc5ab70ab4eb280c85618b2c272d2b534dd7db0c88d028ac8011c755cbbf4d527534448498f207f8689e01315ea4b7539b
7
- data.tar.gz: c1262f2ea2c41ad5c1d96280197a86d08fc603fef97fb439756766b7457708b55ab46b3b248654ba45c6185bc84c477e04d16591f0d9e03e2319b9090926e494
6
+ metadata.gz: 1b34a05f19120bc943742eeb50f59d6a13e2b92fd506225ed0bc6fb849c18218e75680f02d71bdbf94fa9a4daae2b206bf888eb7113d975e0239af66c5938c6e
7
+ data.tar.gz: 8d77191fd9e3ac310a255c45af6dc899070794f12edeeecf2f3038ea2123b73284b2c98589aafc18c3e5d74faa786ba0e6cabe15b3351da3b9cf1030409568c9
@@ -2,7 +2,7 @@
2
2
  module ZendeskAppsSupport
3
3
  class Location
4
4
  extend ZendeskAppsSupport::Finders
5
- attr_reader :id, :name, :orderable, :product_code, :v2_only
5
+ attr_reader :id, :name, :orderable, :collapsible, :product_code, :v2_only
6
6
 
7
7
  def self.unique_ids
8
8
  @ids ||= Set.new
@@ -13,7 +13,8 @@ module ZendeskAppsSupport
13
13
  raise 'Duplicate id' if Location.unique_ids.include? @id
14
14
  Location.unique_ids.add @id
15
15
  @name = attrs.fetch(:name)
16
- @orderable = attrs.fetch(:orderable)
16
+ @orderable = attrs.fetch(:orderable, false)
17
+ @collapsible = attrs.fetch(:collapsible, false)
17
18
  @product_code = attrs.fetch(:product_code)
18
19
  @v2_only = attrs.fetch(:v2_only, product != Product::SUPPORT)
19
20
  end
@@ -30,22 +31,24 @@ module ZendeskAppsSupport
30
31
  LOCATIONS_AVAILABLE = [
31
32
  Location.new(id: 1, orderable: true, name: 'top_bar', product_code: Product::SUPPORT.code),
32
33
  Location.new(id: 2, orderable: true, name: 'nav_bar', product_code: Product::SUPPORT.code),
33
- Location.new(id: 3, orderable: true, name: 'ticket_sidebar', product_code: Product::SUPPORT.code),
34
- Location.new(id: 4, orderable: true, name: 'new_ticket_sidebar', product_code: Product::SUPPORT.code),
35
- Location.new(id: 5, orderable: true, name: 'user_sidebar', product_code: Product::SUPPORT.code),
36
- Location.new(id: 6, orderable: true, name: 'organization_sidebar', product_code: Product::SUPPORT.code),
37
- Location.new(id: 7, orderable: false, name: 'background', product_code: Product::SUPPORT.code),
38
- Location.new(id: 8, orderable: true, name: 'chat_sidebar', product_code: Product::CHAT.code),
39
- Location.new(id: 9, orderable: false, name: 'modal', product_code: Product::SUPPORT.code,
40
- v2_only: true),
41
- Location.new(id: 10, orderable: false, name: 'ticket_editor', product_code: Product::SUPPORT.code,
42
- v2_only: true),
43
- Location.new(id: 11, orderable: false, name: 'nav_bar', product_code: Product::STANDALONE_CHAT.code,
44
- v2_only: false),
45
- Location.new(id: 12, orderable: false, name: 'system_top_bar', product_code: Product::SUPPORT.code),
46
- Location.new(id: 13, orderable: false, name: 'system_top_bar', product_code: Product::STANDALONE_CHAT.code,
47
- v2_only: false),
48
- Location.new(id: 14, orderable: false, name: 'background', product_code: Product::CHAT.code)
34
+ Location.new(id: 3, orderable: true, collapsible: true, name: 'ticket_sidebar',
35
+ product_code: Product::SUPPORT.code),
36
+ Location.new(id: 4, orderable: true, collapsible: true, name: 'new_ticket_sidebar',
37
+ product_code: Product::SUPPORT.code),
38
+ Location.new(id: 5, orderable: true, collapsible: true, name: 'user_sidebar',
39
+ product_code: Product::SUPPORT.code),
40
+ Location.new(id: 6, orderable: true, collapsible: true, name: 'organization_sidebar',
41
+ product_code: Product::SUPPORT.code),
42
+ Location.new(id: 7, name: 'background', product_code: Product::SUPPORT.code),
43
+ Location.new(id: 8, orderable: true, collapsible: true, name: 'chat_sidebar', product_code: Product::CHAT.code),
44
+ Location.new(id: 9, name: 'modal', product_code: Product::SUPPORT.code, v2_only: true),
45
+ Location.new(id: 10, name: 'ticket_editor', product_code: Product::SUPPORT.code, v2_only: true),
46
+ Location.new(id: 11, name: 'nav_bar', product_code: Product::STANDALONE_CHAT.code, v2_only: false),
47
+ Location.new(id: 12, name: 'system_top_bar', product_code: Product::SUPPORT.code),
48
+ Location.new(id: 13, name: 'system_top_bar',
49
+ product_code: Product::STANDALONE_CHAT.code, v2_only: false),
50
+ Location.new(id: 14, name: 'background',
51
+ product_code: Product::CHAT.code)
49
52
  ].freeze
50
53
  end
51
54
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zendesk_apps_support
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.6.4
4
+ version: 4.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - James A. Rosen
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2017-12-13 00:00:00.000000000 Z
14
+ date: 2018-01-09 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: i18n