pdfjs_viewer 0.1.1 → 0.1.2

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: 303c59e21fb3f5296cee201dd908249346330da8e7f0c5d0dae6dafaeaec9623
4
- data.tar.gz: 384a29bfc0275723054a18a083c1af8f43fe887a043a7237fd900b03dcc537b2
3
+ metadata.gz: 70499460d3103b4775502e85198eb48916c8c319a3b942b17a45a6223e14b329
4
+ data.tar.gz: 61e6183bbee174cf530135e812c12de24a546c3d18de0e5f9ca817318254b057
5
5
  SHA512:
6
- metadata.gz: ba3884a9408dd07ad8b67ea7cd656a625994b91cbf62b88b6d1e8ecc5c059a74d97bc747d572b9ff7a6fbf05f31a32ca9be49373c184143ad37fc995e1bb26f6
7
- data.tar.gz: 525b99604b13604181d6254bfea05ba61efa23e7185a2e18d534d8df018690eba4668ce2bea46af3cafde2ebf6d61cda671852820d7f30ac0c22acee7a54eaaf
6
+ metadata.gz: 2861d2507cb24d4d55fcf945e17438218d93192059d80d62303818a9ad22ce18147a89584e473485d67eac2fcb43ceadddb2ef5bcb5cc779208161e7228024d5
7
+ data.tar.gz: 8187d7f115412fd0ce8ebddb52dcc1aeeea242250bf4d622480fb7e9c81da1c6809ed04069feee5000ca364f22ed4f11f35a665d190ae1e0bb29b3f5b55b3c46
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pdfjs_viewer (0.1.0)
4
+ pdfjs_viewer (0.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -7,7 +7,7 @@ module PdfjsViewer::ApplicationHelper
7
7
  def toggle_action(key = nil)
8
8
  return if PdfjsViewer.configuration.send(key)
9
9
 
10
- 'display: none'
10
+ 'hide'
11
11
  end
12
12
 
13
13
  def stylesheet_path
@@ -199,7 +199,7 @@ See https://github.com/adobe-type-tools/cmap-resources
199
199
  </div>
200
200
  </div>
201
201
  <div id="editorHighlight" class="toolbarButtonWithContainer">
202
- <button id="editorHighlightButton" style="<%= toggle_action(:show_highlight_button) %>" class="toolbarButton" type="button" disabled="disabled" role="radio" aria-expanded="false" aria-haspopup="true" aria-controls="editorHighlightParamsToolbar" tabindex="0" data-l10n-id="pdfjs-editor-highlight-button">
202
+ <button id="editorHighlightButton" class="toolbarButton <%= toggle_action(:show_highlight_button) %>" type="button" disabled="disabled" role="radio" aria-expanded="false" aria-haspopup="true" aria-controls="editorHighlightParamsToolbar" tabindex="0" data-l10n-id="pdfjs-editor-highlight-button">
203
203
  <span data-l10n-id="pdfjs-editor-highlight-button-label"></span>
204
204
  </button>
205
205
  <div class="editorParamsToolbar hidden doorHangerRight" id="editorHighlightParamsToolbar">
@@ -224,7 +224,7 @@ See https://github.com/adobe-type-tools/cmap-resources
224
224
  </div>
225
225
  </div>
226
226
  <div id="editorFreeText" class="toolbarButtonWithContainer">
227
- <button id="editorFreeTextButton" style="<%= toggle_action(:show_text_button) %>" class="toolbarButton" type="button" disabled="disabled" role="radio" aria-expanded="false" aria-haspopup="true" aria-controls="editorFreeTextParamsToolbar" tabindex="0" data-l10n-id="pdfjs-editor-free-text-button">
227
+ <button id="editorFreeTextButton" class="toolbarButton <%= toggle_action(:show_text_button) %>" type="button" disabled="disabled" role="radio" aria-expanded="false" aria-haspopup="true" aria-controls="editorFreeTextParamsToolbar" tabindex="0" data-l10n-id="pdfjs-editor-free-text-button">
228
228
  <span data-l10n-id="pdfjs-editor-free-text-button-label"></span>
229
229
  </button>
230
230
  <div class="editorParamsToolbar hidden doorHangerRight" id="editorFreeTextParamsToolbar">
@@ -241,7 +241,7 @@ See https://github.com/adobe-type-tools/cmap-resources
241
241
  </div>
242
242
  </div>
243
243
  <div id="editorInk" class="toolbarButtonWithContainer">
244
- <button id="editorInkButton" style="<%= toggle_action(:show_draw_button) %>" class="toolbarButton" type="button" disabled="disabled" role="radio" aria-expanded="false" aria-haspopup="true" aria-controls="editorInkParamsToolbar" tabindex="0" data-l10n-id="pdfjs-editor-ink-button">
244
+ <button id="editorInkButton" class="toolbarButton <%= toggle_action(:show_draw_button) %>" type="button" disabled="disabled" role="radio" aria-expanded="false" aria-haspopup="true" aria-controls="editorInkParamsToolbar" tabindex="0" data-l10n-id="pdfjs-editor-ink-button">
245
245
  <span data-l10n-id="pdfjs-editor-ink-button-label"></span>
246
246
  </button>
247
247
  <div class="editorParamsToolbar hidden doorHangerRight" id="editorInkParamsToolbar">
@@ -262,7 +262,7 @@ See https://github.com/adobe-type-tools/cmap-resources
262
262
  </div>
263
263
  </div>
264
264
  <div id="editorStamp" class="toolbarButtonWithContainer">
265
- <button id="editorStampButton" style="<%= toggle_action(:show_add_edit_image_button) %>" class="toolbarButton" type="button" disabled="disabled" role="radio" aria-expanded="false" aria-haspopup="true" aria-controls="editorStampParamsToolbar" tabindex="0" data-l10n-id="pdfjs-editor-stamp-button">
265
+ <button id="editorStampButton" class="toolbarButton <%= toggle_action(:show_add_edit_image_button) %>" type="button" disabled="disabled" role="radio" aria-expanded="false" aria-haspopup="true" aria-controls="editorStampParamsToolbar" tabindex="0" data-l10n-id="pdfjs-editor-stamp-button">
266
266
  <span data-l10n-id="pdfjs-editor-stamp-button-label"></span>
267
267
  </button>
268
268
  <div class="editorParamsToolbar hidden doorHangerRight menu" id="editorStampParamsToolbar">
@@ -278,10 +278,10 @@ See https://github.com/adobe-type-tools/cmap-resources
278
278
  <div id="editorModeSeparator" class="verticalToolbarSeparator"></div>
279
279
 
280
280
  <div class="toolbarHorizontalGroup hiddenMediumView">
281
- <button id="printButton" style="<%= toggle_action(:show_print_button) %>" class="toolbarButton" type="button" tabindex="0" data-l10n-id="pdfjs-print-button">
281
+ <button id="printButton" class="toolbarButton <%= toggle_action(:show_print_button) %>" type="button" tabindex="0" data-l10n-id="pdfjs-print-button">
282
282
  <span data-l10n-id="pdfjs-print-button-label"></span>
283
283
  </button>
284
- <button id="downloadButton" style="<%= toggle_action(:show_save_button) %>" class="toolbarButton" type="button" tabindex="0" data-l10n-id="pdfjs-save-button">
284
+ <button id="downloadButton" class="toolbarButton <%= toggle_action(:show_save_button) %>" type="button" tabindex="0" data-l10n-id="pdfjs-save-button">
285
285
  <span data-l10n-id="pdfjs-save-button-label"></span>
286
286
  </button>
287
287
  </div>
@@ -294,7 +294,7 @@ See https://github.com/adobe-type-tools/cmap-resources
294
294
  </button>
295
295
  <div id="secondaryToolbar" class="hidden doorHangerRight menu">
296
296
  <div id="secondaryToolbarButtonContainer" class="menuContainer">
297
- <button id="secondaryOpenFile" style="<%= toggle_action(:show_open_file_button) %>" class="toolbarButton labeled" type="button" tabindex="0" data-l10n-id="pdfjs-open-file-button">
297
+ <button id="secondaryOpenFile" class="toolbarButton labeled <%= toggle_action(:show_open_file_button) %>" type="button" tabindex="0" data-l10n-id="pdfjs-open-file-button">
298
298
  <span data-l10n-id="pdfjs-open-file-button-label"></span>
299
299
  </button>
300
300
 
@@ -309,7 +309,7 @@ See https://github.com/adobe-type-tools/cmap-resources
309
309
 
310
310
  </div>
311
311
 
312
- <div class="horizontalToolbarSeparator" style="<%= toggle_action(:show_open_file_button) %>"></div>
312
+ <div class="horizontalToolbarSeparator" class="<%= toggle_action(:show_open_file_button) %>"></div>
313
313
 
314
314
  <button id="presentationMode" class="toolbarButton labeled" type="button" tabindex="0" data-l10n-id="pdfjs-presentation-mode-button">
315
315
  <span data-l10n-id="pdfjs-presentation-mode-button-label"></span>
@@ -735,7 +735,7 @@ See https://github.com/adobe-type-tools/cmap-resources
735
735
  </div>
736
736
  </dialog>
737
737
 
738
- <dialog id="printServiceDialog" style="min-width: 200px;">
738
+ <dialog id="printServiceDialog" class="w-200">
739
739
  <div class="row">
740
740
  <span data-l10n-id="pdfjs-print-progress-message"></span>
741
741
  </div>
@@ -3,5 +3,5 @@
3
3
  # Copyright (c) 2014 - 2025 Salus. All rights reserved.
4
4
 
5
5
  module PdfjsViewer
6
- VERSION = '0.1.1'
6
+ VERSION = '0.1.2'
7
7
  end
@@ -13,6 +13,16 @@
13
13
  * limitations under the License.
14
14
  */
15
15
 
16
+ /* Added to satisfy csp, ensure this stays if pdf viewer package is updated */
17
+ .w-200 {
18
+ width: 200px
19
+ }
20
+
21
+ .hide {
22
+ display: none !important;
23
+ }
24
+ /* end */
25
+
16
26
  .messageBar{
17
27
  --closing-button-icon:url(images/messageBar_closingButton.svg);
18
28
  --message-bar-close-button-color:var(--text-primary-color);
@@ -734,7 +734,7 @@ See https://github.com/adobe-type-tools/cmap-resources
734
734
  </div>
735
735
  </dialog>
736
736
 
737
- <dialog id="printServiceDialog" style="min-width: 200px;">
737
+ <dialog id="printServiceDialog" class="w-200">
738
738
  <div class="row">
739
739
  <span data-l10n-id="pdfjs-print-progress-message"></span>
740
740
  </div>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pdfjs_viewer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Toliver
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-08-26 00:00:00.000000000 Z
11
+ date: 2025-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler