Page Links To - Version 3.1.0

Version Description

  • Support for the Block Editor (Gutenberg)
Download this release

Release Info

Developer markjaquith
Plugin Icon wp plugin Page Links To
Version 3.1.0
Comparing to
See all releases

Code changes from version 3.0.1 to 3.1.0

classes/plugin.php CHANGED
@@ -1,4 +1,10 @@
1
<?php
2
defined( 'WPINC' ) or die;
3
4
/**
@@ -25,7 +31,7 @@ class CWS_PageLinksTo {
25
const DISMISSED_NOTICES = 'page_links_dismissed_options';
26
const MESSAGE_ID = 4;
27
const NEWSLETTER_URL = 'https://pages.convertkit.com/8eb23c1339/1ce4614706';
28
- const CSS_JS_VERSION = '3.0.0-beta.1';
29
30
/**
31
* Whether to replace WP links with their specified URLs.
@@ -58,6 +64,12 @@ class CWS_PageLinksTo {
58
return self::$instance;
59
}
60
61
public function get_file() {
62
return $this->file;
63
}
@@ -69,9 +81,9 @@ class CWS_PageLinksTo {
69
* @return true Will always return true.
70
*/
71
public function hook( $hook ) {
72
$priority = 10;
73
$method = self::sanitize_method( $hook );
74
- $args = func_get_args();
75
unset( $args[0] );
76
foreach ( (array) $args as $arg ) {
77
if ( is_int( $arg ) ) {
@@ -133,9 +145,9 @@ class CWS_PageLinksTo {
133
*/
134
function register_hooks() {
135
// Hook in to URL generation.
136
- $this->hook( 'page_link', 'link', 20 );
137
- $this->hook( 'post_link', 'link', 20 );
138
- $this->hook( 'post_type_link', 'link', 20 );
139
$this->hook( 'attachment_link', 'link', 20 );
140
141
// Non-standard priority hooks.
@@ -165,15 +177,55 @@ class CWS_PageLinksTo {
165
$this->hook( 'page_row_actions' );
166
$this->hook( 'post_row_actions', 'page_row_actions' );
167
168
-
169
// Notices.
170
if ( self::should_display_message() ) {
171
$this->hook( 'admin_notices', 'notify_generic' );
172
}
173
174
- // Metadata validation grants users editing privileges for our custom fields.
175
- register_meta( 'post', self::LINK_META_KEY, null, '__return_true' );
176
- register_meta( 'post', self::TARGET_META_KEY, null, '__return_true' );
177
}
178
179
/**
@@ -230,14 +282,21 @@ class CWS_PageLinksTo {
230
*/
231
public function admin_enqueue_scripts() {
232
wp_register_script( 'plt-clipboard', $this->get_url() . 'js/clipboard.min.js', array(), self::CSS_JS_VERSION, true );
233
- wp_register_script( 'plt-quick-add', $this->get_url() . 'js/quick-add.min.js', array( 'plt-clipboard' ), self::CSS_JS_VERSION, true );
234
- wp_register_style( 'plt-quick-add', $this->get_url() . '/css/quick-add.css', array(), self::CSS_JS_VERSION );
235
}
236
237
/**
238
* Adds our items to the admin bar.
239
*
240
- * @return WP_Admin_Bar The admin bar object.
241
*/
242
public function admin_bar_menu( $bar ) {
243
if ( is_admin() ) {
@@ -253,7 +312,7 @@ class CWS_PageLinksTo {
253
/**
254
* Filters the page row actions.
255
*
256
- * @param array $actions The current array of actions.
257
* @param WP_Post $post The current post row being processed.
258
* @return array The updated array of actions.
259
*/
@@ -265,16 +324,16 @@ class CWS_PageLinksTo {
265
$original_key = 'plt_original';
266
267
foreach ( $actions as $key => $html ) {
268
- $new_actions[$key] = $html;
269
270
if ( 'view' === $key ) {
271
$inserted = true;
272
- $new_actions[$original_key] = $original_html;
273
}
274
}
275
276
if ( ! $inserted ) {
277
- $new_actions[$original_key] = $original_html;
278
}
279
280
$actions = $new_actions;
@@ -306,8 +365,8 @@ class CWS_PageLinksTo {
306
/**
307
* Returns a single piece of post meta.
308
*
309
- * @param int $post_id a post ID.
310
- * @param string $key a post meta key.
311
* @return string|false the post meta, or false, if it doesn't exist.
312
*/
313
public static function get_post_meta( $post_id, $key ) {
@@ -354,7 +413,7 @@ class CWS_PageLinksTo {
354
* @return void
355
*/
356
public function do_meta_boxes( $page, $context ) {
357
- if ( self::is_supported_post_type( $page ) && 'advanced' === $context ) {
358
add_meta_box( 'page-links-to', _x( 'Page Links To', 'Meta box title', 'page-links-to' ), array( $this, 'meta_box' ), $page, 'advanced', 'low' );
359
}
360
}
@@ -366,6 +425,12 @@ class CWS_PageLinksTo {
366
* @return bool Whether this post type supports custom links.
367
*/
368
public static function is_supported_post_type( $type ) {
369
/*
370
Plugins that use custom post types can use this filter to hide the
371
PLT UI in their post type.
@@ -397,7 +462,7 @@ class CWS_PageLinksTo {
397
} else {
398
$linked = true;
399
}
400
- ?>
401
<p><?php _e( 'Point this content to:', 'page-links-to' ); ?></p>
402
<p><label><input type="radio" id="cws-links-to-choose-wp" name="cws_links_to_choice" value="wp" <?php checked( ! $linked ); ?> /> <?php _e( 'Its normal WordPress URL', 'page-links-to' ); ?></label></p>
403
<p><label><input type="radio" id="cws-links-to-choose-custom" name="cws_links_to_choice" value="custom" <?php checked( $linked ); ?> /> <?php _e( 'A custom URL', 'page-links-to' ); ?></label></p>
@@ -408,7 +473,7 @@ class CWS_PageLinksTo {
408
</div>
409
410
<script src="<?php echo esc_url( $this->get_url() ) . 'js/meta-box.min.js?v=' . self::CSS_JS_VERSION; ?>"></script>
411
- <?php
412
}
413
414
/**
@@ -526,7 +591,7 @@ class CWS_PageLinksTo {
526
if ( $meta_link ) {
527
$link = apply_filters( 'page_links_to_link', $meta_link, $post, $link );
528
$link = esc_url( $link );
529
- if ( ! is_admin() && self::get_target( $post->ID ) ) {
530
$link .= '#new_tab';
531
}
532
}
@@ -567,6 +632,7 @@ class CWS_PageLinksTo {
567
/**
568
* Retrieves all posts that have a specified custom URL.
569
*
570
* @return array Array of post objects.
571
*/
572
public static function get_custom_url_posts( $url ) {
@@ -607,9 +673,7 @@ class CWS_PageLinksTo {
607
return false;
608
}
609
610
- $link = self::get_link( get_queried_object_id() );
611
-
612
- $link = self::absolute_url( $link );
613
614
return $link;
615
}
@@ -617,7 +681,7 @@ class CWS_PageLinksTo {
617
/**
618
* Makes a relative URL into an absolute one.
619
*
620
- * @param string $link The relative URL.
621
* @return string The absolute URL.
622
*/
623
public static function absolute_url( $url ) {
@@ -643,19 +707,19 @@ class CWS_PageLinksTo {
643
* Filters the list of pages to alter the links and targets.
644
*
645
* @param string $output the wp_list_pages() HTML block from WordPress.
646
- * @param array $_args (Unused) the arguments passed to `wp_list_pages()`.
647
- * @param array $pages Array of WP_Post objects.
648
* @return string the modified HTML block.
649
*/
650
function wp_list_pages( $output, $_args = array(), $pages = array() ) {
651
$highlight = false;
652
653
- $this_url = esc_url_raw( set_url_scheme( 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']));
654
655
foreach ( (array) $pages as $page ) {
656
$page_url = self::get_link( $page->ID );
657
658
- if ( $page_url && $this_url === $page_url ) {
659
$highlight = true;
660
$current_page = esc_url( $page_url );
661
$current_page_id = $page->ID;
@@ -761,7 +825,6 @@ class CWS_PageLinksTo {
761
*/
762
public static function should_display_message() {
763
return false;
764
- // return ! self::has_dismissed_notice( self::MESSAGE_ID ) && current_user_can( 'manage_options' );
765
}
766
767
/**
@@ -805,29 +868,68 @@ class CWS_PageLinksTo {
805
* @return void
806
*/
807
public static function notify_generic() {
808
- ?>
809
- <div id="page-links-to-notification" class="notice updated is-dismissible"><h3><?php _e( 'Page Links To', 'page-links-to' ); ?></h3>
810
- <p><a class="button plt-dismiss" target="_blank" href="<?php echo esc_url( self::NEWSLETTER_URL ); ?>"><?php _e( 'Give Me Updates', 'page-links-to' ); ?></a>&nbsp;&nbsp;<small><a href="javascript:void(0)" class="plt-dismiss"><?php _e( 'No thanks', 'page-links-to' ); ?></a></small></p>
811
- </div>
812
- <script>
813
- (function($){
814
- var $plt = $('#page-links-to-notification');
815
- $plt
816
- .on('click', '.notice-dismiss', function(e){
817
- $.ajax( ajaxurl, {
818
- type: 'GET',
819
- data: {
820
- action: 'plt_dismiss_notice',
821
- plt_notice: <?php echo json_encode( self::MESSAGE_ID ); ?>
822
- }
823
});
824
- })
825
- .on('click', '.plt-dismiss', function(e){
826
- e.preventDefault();
827
- $(this).parents('.notice').first().find('.notice-dismiss').click();
828
- });
829
- })(jQuery);
830
- </script>
831
<?php
832
}
833
@@ -837,11 +939,21 @@ class CWS_PageLinksTo {
837
* @return void
838
*/
839
public static function notify_of_external_link() {
840
- ?>
841
- <div class="notice updated"><p><?php _e( '<strong>Note</strong>: This content is pointing to a custom URL. Use the &#8220;Page Links To&#8221; box to change this behavior.', 'page-links-to' ); ?></p></div>
842
- <?php
843
}
844
845
public function edit_form_after_title() {
846
$this->replace = true;
847
$post = get_post();
@@ -875,7 +987,7 @@ class CWS_PageLinksTo {
875
/**
876
* Filter the post states to indicate which ones are linked using this plugin.
877
*
878
- * @param array $states The existing post states.
879
* @param WP_Post $post The current post object being displayed.
880
* @return array The modified post states array.
881
*/
1
<?php
2
+ /**
3
+ * The Page Links To plugin.
4
+ *
5
+ * @package PageLinksTo
6
+ */
7
+
8
defined( 'WPINC' ) or die;
9
10
/**
31
const DISMISSED_NOTICES = 'page_links_dismissed_options';
32
const MESSAGE_ID = 4;
33
const NEWSLETTER_URL = 'https://pages.convertkit.com/8eb23c1339/1ce4614706';
34
+ const CSS_JS_VERSION = '3.1.0';
35
36
/**
37
* Whether to replace WP links with their specified URLs.
64
return self::$instance;
65
}
66
67
+
68
+ /**
69
+ * Returns the main plugin file path.
70
+ *
71
+ * @return string The main plugin file path.
72
+ */
73
public function get_file() {
74
return $this->file;
75
}
81
* @return true Will always return true.
82
*/
83
public function hook( $hook ) {
84
+ $args = func_get_args();
85
$priority = 10;
86
$method = self::sanitize_method( $hook );
87
unset( $args[0] );
88
foreach ( (array) $args as $arg ) {
89
if ( is_int( $arg ) ) {
145
*/
146
function register_hooks() {
147
// Hook in to URL generation.
148
+ $this->hook( 'page_link', 'link', 20 );
149
+ $this->hook( 'post_link', 'link', 20 );
150
+ $this->hook( 'post_type_link', 'link', 20 );
151
$this->hook( 'attachment_link', 'link', 20 );
152
153
// Non-standard priority hooks.
177
$this->hook( 'page_row_actions' );
178
$this->hook( 'post_row_actions', 'page_row_actions' );
179
180
// Notices.
181
if ( self::should_display_message() ) {
182
$this->hook( 'admin_notices', 'notify_generic' );
183
}
184
185
+ $post_type_names = array_keys( get_post_types() );
186
+
187
+ foreach ( $post_type_names as $type ) {
188
+ if ( self::is_supported_post_type( $type ) ) {
189
+ $this->register_meta( self::LINK_META_KEY, $type );
190
+ $this->register_meta( self::TARGET_META_KEY, $type );
191
+ }
192
+ }
193
+ }
194
+
195
+ /**
196
+ * Registers a post meta key for a given post type.
197
+ *
198
+ * @param string $key The key name.
199
+ * @param string $post_type The post type.
200
+ * @return boolean Whether the meta key was registered.
201
+ */
202
+ public function register_meta( $key, $post_type ) {
203
+ return register_meta(
204
+ 'post',
205
+ $key,
206
+ array(
207
+ 'object_type' => $post_type,
208
+ 'type' => 'string',
209
+ 'single' => true,
210
+ 'show_in_rest' => true,
211
+ 'auth_callback' => array( $this, 'rest_auth' ),
212
+ )
213
+ );
214
+ }
215
+
216
+ /**
217
+ * Determines REST API authentication.
218
+ *
219
+ * @param bool $allowed Whether it is allowed.
220
+ * @param string $meta_key The meta key being checked.
221
+ * @param int $post_id The post ID being checked.
222
+ * @param int $user_id The user ID being checked.
223
+ * @param string $cap The current capability.
224
+ * @param array $caps All capabilities.
225
+ * @return bool Whether the user can do it.
226
+ */
227
+ public function rest_auth( $allowed, $meta_key, $post_id, $user_id, $cap, $caps ) {
228
+ return user_can( $user_id, 'edit_post', $post_id );
229
}
230
231
/**
282
*/
283
public function admin_enqueue_scripts() {
284
wp_register_script( 'plt-clipboard', $this->get_url() . 'js/clipboard.min.js', array(), self::CSS_JS_VERSION, true );
285
+
286
+ if ( current_user_can( 'edit_posts' ) ) {
287
+ wp_enqueue_script( 'plt-quick-add', $this->get_url() . 'js/quick-add.min.js', array( 'plt-clipboard', 'jquery-ui-dialog' ), self::CSS_JS_VERSION, true );
288
+ wp_enqueue_style( 'plt-quick-add', $this->get_url() . 'css/quick-add.css', array( 'wp-jquery-ui-dialog' ), self::CSS_JS_VERSION );
289
+ }
290
+
291
+ // Gutenberg.
292
+ wp_enqueue_script( 'plt-gutenberg', $this->get_url() . 'js/gutenberg.min.js', array( 'wp-edit-post', 'wp-element', 'wp-plugins' ), self::CSS_JS_VERSION, true );
293
}
294
295
/**
296
* Adds our items to the admin bar.
297
*
298
+ * @param WP_Admin_Bar $bar The admin bar object.
299
+ * @return void
300
*/
301
public function admin_bar_menu( $bar ) {
302
if ( is_admin() ) {
312
/**
313
* Filters the page row actions.
314
*
315
+ * @param array $actions The current array of actions.
316
* @param WP_Post $post The current post row being processed.
317
* @return array The updated array of actions.
318
*/
324
$original_key = 'plt_original';
325
326
foreach ( $actions as $key => $html ) {
327
+ $new_actions[ $key ] = $html;
328
329
if ( 'view' === $key ) {
330
$inserted = true;
331
+ $new_actions[ $original_key ] = $original_html;
332
}
333
}
334
335
if ( ! $inserted ) {
336
+ $new_actions[ $original_key ] = $original_html;
337
}
338
339
$actions = $new_actions;
365
/**
366
* Returns a single piece of post meta.
367
*
368
+ * @param int $post_id a post ID.
369
+ * @param string $key a post meta key.
370
* @return string|false the post meta, or false, if it doesn't exist.
371
*/
372
public static function get_post_meta( $post_id, $key ) {
413
* @return void
414
*/
415
public function do_meta_boxes( $page, $context ) {
416
+ if ( ! self::is_block_editor() && self::is_supported_post_type( $page ) && 'advanced' === $context ) {
417
add_meta_box( 'page-links-to', _x( 'Page Links To', 'Meta box title', 'page-links-to' ), array( $this, 'meta_box' ), $page, 'advanced', 'low' );
418
}
419
}
425
* @return bool Whether this post type supports custom links.
426
*/
427
public static function is_supported_post_type( $type ) {
428
+ if ( is_object( $type ) ) {
429
+ if ( isset( $type->id ) ) {
430
+ $type = $type->id;
431
+ }
432
+ }
433
+
434
/*
435
Plugins that use custom post types can use this filter to hide the
436
PLT UI in their post type.
462
} else {
463
$linked = true;
464
}
465
+ ?>
466
<p><?php _e( 'Point this content to:', 'page-links-to' ); ?></p>
467
<p><label><input type="radio" id="cws-links-to-choose-wp" name="cws_links_to_choice" value="wp" <?php checked( ! $linked ); ?> /> <?php _e( 'Its normal WordPress URL', 'page-links-to' ); ?></label></p>
468
<p><label><input type="radio" id="cws-links-to-choose-custom" name="cws_links_to_choice" value="custom" <?php checked( $linked ); ?> /> <?php _e( 'A custom URL', 'page-links-to' ); ?></label></p>
473
</div>
474
475
<script src="<?php echo esc_url( $this->get_url() ) . 'js/meta-box.min.js?v=' . self::CSS_JS_VERSION; ?>"></script>
476
+ <?php
477
}
478
479
/**
591
if ( $meta_link ) {
592
$link = apply_filters( 'page_links_to_link', $meta_link, $post, $link );
593
$link = esc_url( $link );
594
+ if ( ! is_admin() && ! (defined( 'REST_REQUEST' ) && REST_REQUEST ) && self::get_target( $post->ID ) ) {
595
$link .= '#new_tab';
596
}
597
}
632
/**
633
* Retrieves all posts that have a specified custom URL.
634
*
635
+ * @param string $url The URL to check.
636
* @return array Array of post objects.
637
*/
638
public static function get_custom_url_posts( $url ) {
673
return false;
674
}
675
676
+ $link = self::absolute_url( self::get_link( get_queried_object_id() ) );
677
678
return $link;
679
}
681
/**
682
* Makes a relative URL into an absolute one.
683
*
684
+ * @param string $url The relative URL.
685
* @return string The absolute URL.
686
*/
687
public static function absolute_url( $url ) {
707
* Filters the list of pages to alter the links and targets.
708
*
709
* @param string $output the wp_list_pages() HTML block from WordPress.
710
+ * @param array $_args (Unused) the arguments passed to `wp_list_pages()`.
711
+ * @param array $pages Array of WP_Post objects.
712
* @return string the modified HTML block.
713
*/
714
function wp_list_pages( $output, $_args = array(), $pages = array() ) {
715
$highlight = false;
716
717
+ $this_url = esc_url_raw( set_url_scheme( 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] ) );
718
719
foreach ( (array) $pages as $page ) {
720
$page_url = self::get_link( $page->ID );
721
722
+ if ( $page_url && $this_url === $page_url ) {
723
$highlight = true;
724
$current_page = esc_url( $page_url );
725
$current_page_id = $page->ID;
825
*/
826
public static function should_display_message() {
827
return false;
828
}
829
830
/**
868
* @return void
869
*/
870
public static function notify_generic() {
871
+ if ( self::is_block_editor() ) {
872
+ // Nothing right now.
873
+ } else {
874
+ ?>
875
+ <div id="page-links-to-notification" class="notice updated is-dismissible"><h3><?php _e( 'Page Links To', 'page-links-to' ); ?></h3>
876
+ <p><a class="button plt-dismiss" target="_blank" href="<?php echo esc_url( self::NEWSLETTER_URL ); ?>"><?php _e( 'Give Me Updates', 'page-links-to' ); ?></a>&nbsp;&nbsp;<small><a href="javascript:void(0)" class="plt-dismiss"><?php _e( 'No thanks', 'page-links-to' ); ?></a></small></p>
877
+ </div>
878
+ <script>
879
+ (function($){
880
+ var $plt = $('#page-links-to-notification');
881
+ $plt
882
+ .on('click', '.notice-dismiss', function(e){
883
+ $.ajax( ajaxurl, {
884
+ type: 'GET',
885
+ data: {
886
+ action: 'plt_dismiss_notice',
887
+ plt_notice: <?php echo json_encode( self::MESSAGE_ID ); ?>
888
+ }
889
+ });
890
+ })
891
+ .on('click', '.plt-dismiss', function(e){
892
+ e.preventDefault();
893
+ $(this).parents('.notice').first().find('.notice-dismiss').click();
894
});
895
+ })(jQuery);
896
+ </script>
897
+ <?php
898
+ }
899
+ }
900
+
901
+ /**
902
+ * Whether the user is using the block editor (Gutenberg).
903
+ *
904
+ * @return bool
905
+ */
906
+ public static function is_block_editor() {
907
+ $current_screen = get_current_screen();
908
+ return method_exists( $current_screen, 'is_block_editor' ) && $current_screen->is_block_editor();
909
+ }
910
+
911
+ /**
912
+ * Create a block editor notification.
913
+ *
914
+ * @param string $text The notification.
915
+ * @param string $type The type of notification.
916
+ * @return void
917
+ */
918
+ public static function block_editor_notification( $text, $type = 'info' ) {
919
+ if ( ! in_array( $type, array( 'error', 'warning', 'info' ) ) ) {
920
+ return;
921
+ }
922
+
923
+ $type = ucfirst( $type );
924
+ $method = "create{$type}Notice";
925
+ ?>
926
+ <script>
927
+ document.addEventListener('DOMContentLoaded', function() {
928
+ if (wp.data !== undefined) {
929
+ wp.data.dispatch('core/notices').<?php echo $method; ?>(<?php echo json_encode( $text ); ?>, {isDismissible: true, id: 'page-links-to-notice'});
930
+ }
931
+ });
932
+ </script>
933
<?php
934
}
935
939
* @return void
940
*/
941
public static function notify_of_external_link() {
942
+ if ( self::is_block_editor() ) {
943
+ // Disabled, currently, because these notifications can block the title, which is annoying.
944
+ false && self::block_editor_notification( 'Note: This content is pointing to a custom URL. Use the “Custom Link” area in “Status and Visibility” to control this.', 'info' );
945
+ } else {
946
+ ?>
947
+ <div class="notice updated"><p><?php _e( '<strong>Note</strong>: This content is pointing to a custom URL. Use the &#8220;Page Links To&#8221; box to change this behavior.', 'page-links-to' ); ?></p></div>
948
+ <?php
949
+ }
950
}
951
952
+ /**
953
+ * Inserts an Edit link after the title.
954
+ *
955
+ * @return void
956
+ */
957
public function edit_form_after_title() {
958
$this->replace = true;
959
$post = get_post();
987
/**
988
* Filter the post states to indicate which ones are linked using this plugin.
989
*
990
+ * @param array $states The existing post states.
991
* @param WP_Post $post The current post object being displayed.
992
* @return array The modified post states array.
993
*/
css/quick-add.css CHANGED
@@ -1,2 +1,2 @@
1
- #plt-quick-add .footer{border-top:1px solid #dfdfdf;display:flex;margin:0 -15px -15px;padding:15px;text-align:right}#plt-quick-add .footer a{text-decoration:none}#plt-quick-add .footer div.messages{margin-right:auto;text-align:left}#plt-quick-add .footer div.messages p{line-height:2em;margin:0}#plt-quick-add .footer input[type=submit]{margin-left:15px}#plt-quick-add .footer input[name=plt-quick-add-publish]{order:2}#plt-quick-add .content{padding-bottom:20px;text-align:right}#plt-quick-add p.short-url-message{background:#f5f5f5;box-shadow:0 5px 15px 0 rgba(0,0,0,.1);font-style:italic;margin:15px auto 0;max-width:300px;padding:5px;text-align:center}#plt-quick-add label{align-items:center;display:flex;font-size:14px;justify-content:space-between;text-align:left}#plt-quick-add label>span{font-weight:600;margin-right:15px}#plt-quick-add label>*{font-weight:400}#plt-quick-add code{margin-left:20px}.plt-post-info{opacity:.3}.wp-list-table tr:hover .plt-post-info{opacity:1}a.plt-post-state-link span.url{display:none}a.plt-post-state-link:hover span.url{display:inline}.plt-links-to{color:#666;line-height:24px;padding:5px 10px 0}#cws-links-to-custom-section{box-sizing:border-box;margin-left:30px}#cws-links-to{width:75%}
2
/*# sourceMappingURL=quick-add.css.map */
1
+ #plt-quick-add .footer{margin:0 -15px -15px;border-top:1px solid #dfdfdf;padding:15px;text-align:right;display:flex}#plt-quick-add .footer a{text-decoration:none}#plt-quick-add .footer div.messages{text-align:left;margin-right:auto}#plt-quick-add .footer div.messages p{margin:0;line-height:2em}#plt-quick-add .footer input[type=submit]{margin-left:15px}#plt-quick-add .footer input[name=plt-quick-add-publish]{order:2}#plt-quick-add .content{padding-bottom:20px;text-align:right}#plt-quick-add p.short-url-message{margin:15px auto 0;font-style:italic;max-width:300px;text-align:center;padding:5px;background:#f5f5f5;box-shadow:0 5px 15px 0 rgba(0,0,0,.1)}#plt-quick-add label{font-size:14px;display:flex;text-align:left;justify-content:space-between;align-items:center}#plt-quick-add label>span{font-weight:600;margin-right:15px}#plt-quick-add label>*{font-weight:400}#plt-quick-add code{margin-left:20px}.plt-post-info{opacity:.3}.wp-list-table tr:hover .plt-post-info{opacity:1}a.plt-post-state-link span.url{display:none}a.plt-post-state-link:hover span.url{display:inline}.plt-links-to{padding:5px 10px 0;line-height:24px;color:#666}#cws-links-to-custom-section{box-sizing:border-box;margin-left:30px}#cws-links-to{width:75%}
2
/*# sourceMappingURL=quick-add.css.map */
css/quick-add.css.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../sass/quick-add.sass","quick-add.css"],"names":[],"mappings":"AACC,uBAEC,6BAAA,AAGA,aAAA,AAJA,qBAAA,AAEA,aAAA,AACA,gBAAA,CCCD,ADCC,yBACC,oBAAA,CCCF,ADAC,oCAEC,kBAAA,AADA,eAAA,CCGF,ADDE,sCAEC,gBAAA,AADA,QAAA,CCIH,ADFC,0CACC,gBAAA,CCIF,ADHC,yDACC,OAAA,CCKF,ADHA,wBACC,oBAAA,AACA,gBAAA,CCKD,ADHA,mCAMC,mBAAA,AACA,uCAAA,AALA,kBAAA,AADA,mBAAA,AAEA,gBAAA,AAEA,YAAA,AADA,iBAAA,CCQD,ADHA,qBAKC,mBAAA,AAHA,aAAA,AADA,eAAA,AAGA,8BAAA,AADA,eAAA,CCOD,ADJC,0BACC,gBAAA,AACA,iBAAA,CCMF,ADLC,uBACC,eAAA,CCOF,ADLA,oBACC,gBAAA,CCOD,ADLD,eACC,UAAA,CCQA,ADPA,uCACC,SAAA,CCSD,ADNA,+BACC,YAAA,CCSD,ADRA,qCACC,cAAA,CCUD,ADRD,cAGC,WAAA,AADA,iBAAA,AADA,kBAAA,CCaA,ADTD,6BACC,sBAAA,AACA,gBAAA,CCYA,ADVD,cACC,SAAA,CCaA","file":"quick-add.css"}
1
+ {"version":3,"sources":["../sass/quick-add.sass","quick-add.css"],"names":[],"mappings":"AACC,uBACC,qBAAA,AACA,6BAAA,AACA,aAAA,AACA,iBAAA,AACA,YAAA,CCAD,ADCC,yBACC,oBAAA,CCCF,ADAC,oCACC,gBAAA,AACA,iBAAA,CCEF,ADDE,sCACC,SAAA,AACA,eAAA,CCGH,ADFC,0CACC,gBAAA,CCIF,ADHC,yDACC,OAAA,CCKF,ADHA,wBACC,oBAAA,AACA,gBAAA,CCKD,ADHA,mCACC,mBAAA,AACA,kBAAA,AACA,gBAAA,AACA,kBAAA,AACA,YAAA,AACA,mBAAA,AACA,sCAAA,CCKD,ADHA,qBACC,eAAA,AACA,aAAA,AACA,gBAAA,AACA,8BAAA,AACA,kBAAA,CCKD,ADJC,0BACC,gBAAA,AACA,iBAAA,CCMF,ADLC,uBACC,eAAA,CCOF,ADLA,oBACC,gBAAA,CCOD,ADLD,eACC,UAAA,CCQA,ADPA,uCACC,SAAA,CCSD,ADNA,+BACC,YAAA,CCSD,ADRA,qCACC,cAAA,CCUD,ADRD,cACC,mBAAA,AACA,iBAAA,AACA,UAAA,CCWA,ADTD,6BACC,sBAAA,AACA,gBAAA,CCYA,ADVD,cACC,SAAA,CCaA","file":"quick-add.css"}
cypress.env.json ADDED
@@ -0,0 +1,4 @@
1
+ {
2
+ "wp_username": "mark",
3
+ "wp_password": "mark"
4
+ }
cypress.json ADDED
@@ -0,0 +1,3 @@
1
+ {
2
+ "baseUrl": "https://plugins.test"
3
+ }
js/clipboard.min.js CHANGED
@@ -1,7 +1,7 @@
1
/*!
2
- * clipboard.js v2.0.1
3
* https://zenorocha.github.io/clipboard.js
4
*
5
* Licensed MIT © Zeno Rocha
6
*/
7
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ClipboardJS=e():t.ClipboardJS=e()}(this,function(){return function(t){function e(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:o})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=3)}([function(t,e,n){var o,r,i;!function(a,c){r=[t,n(7)],o=c,void 0!==(i="function"==typeof o?o.apply(e,r):o)&&(t.exports=i)}(0,function(t,e){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=function(t){return t&&t.__esModule?t:{default:t}}(e),r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),a=function(){function t(e){n(this,t),this.resolveOptions(e),this.initSelection()}return i(t,[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var t=this,e="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,o.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,o.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var t=void 0;try{t=document.execCommand(this.action)}catch(e){t=!1}this.handleResult(t)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==(void 0===t?"undefined":r(t))||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}]),t}();t.exports=a})},function(t,e,n){function o(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!c.string(e))throw new TypeError("Second argument must be a String");if(!c.fn(n))throw new TypeError("Third argument must be a Function");if(c.node(t))return r(t,e,n);if(c.nodeList(t))return i(t,e,n);if(c.string(t))return a(t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function r(t,e,n){return t.addEventListener(e,n),{destroy:function(){t.removeEventListener(e,n)}}}function i(t,e,n){return Array.prototype.forEach.call(t,function(t){t.addEventListener(e,n)}),{destroy:function(){Array.prototype.forEach.call(t,function(t){t.removeEventListener(e,n)})}}}function a(t,e,n){return u(document.body,t,e,n)}var c=n(6),u=n(5);t.exports=o},function(t,e){function n(){}n.prototype={on:function(t,e,n){var o=this.e||(this.e={});return(o[t]||(o[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){function o(){r.off(t,o),e.apply(n,arguments)}var r=this;return o._=e,this.on(t,o,n)},emit:function(t){var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),o=0,r=n.length;for(o;o<r;o++)n[o].fn.apply(n[o].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),o=n[t],r=[];if(o&&e)for(var i=0,a=o.length;i<a;i++)o[i].fn!==e&&o[i].fn._!==e&&r.push(o[i]);return r.length?n[t]=r:delete n[t],this}},t.exports=n},function(t,e,n){var o,r,i;!function(a,c){r=[t,n(0),n(2),n(1)],o=c,void 0!==(i="function"==typeof o?o.apply(e,r):o)&&(t.exports=i)}(0,function(t,e,n,o){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function u(t,e){var n="data-clipboard-"+t;if(e.hasAttribute(n))return e.getAttribute(n)}var l=r(e),s=r(n),f=r(o),d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),p=function(t){function e(t,n){i(this,e);var o=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return o.resolveOptions(n),o.listenClick(t),o}return c(e,t),h(e,[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===d(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=(0,f.default)(t,"click",function(t){return e.onClick(t)})}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new l.default({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){return u("action",t)}},{key:"defaultTarget",value:function(t){var e=u("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return u("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"==typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach(function(t){n=n&&!!document.queryCommandSupported(t)}),n}}]),e}(s.default);t.exports=p})},function(t,e){function n(t,e){for(;t&&t.nodeType!==o;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}var o=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var r=Element.prototype;r.matches=r.matchesSelector||r.mozMatchesSelector||r.msMatchesSelector||r.oMatchesSelector||r.webkitMatchesSelector}t.exports=n},function(t,e,n){function o(t,e,n,o,r){var a=i.apply(this,arguments);return t.addEventListener(n,a,r),{destroy:function(){t.removeEventListener(n,a,r)}}}function r(t,e,n,r,i){return"function"==typeof t.addEventListener?o.apply(null,arguments):"function"==typeof n?o.bind(null,document).apply(null,arguments):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,function(t){return o(t,e,n,r,i)}))}function i(t,e,n,o){return function(n){n.delegateTarget=a(n.target,e),n.delegateTarget&&o.call(t,n)}}var a=n(4);t.exports=r},function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var n=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"==typeof t||t instanceof String},e.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},function(t,e){function n(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var o=window.getSelection(),r=document.createRange();r.selectNodeContents(t),o.removeAllRanges(),o.addRange(r),e=o.toString()}return e}t.exports=n}])});
1
/*!
2
+ * clipboard.js v2.0.4
3
* https://zenorocha.github.io/clipboard.js
4
*
5
* Licensed MIT © Zeno Rocha
6
*/
7
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ClipboardJS=e():t.ClipboardJS=e()}(this,function(){return function(n){var o={};function r(t){if(o[t])return o[t].exports;var e=o[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}return r.m=n,r.c=o,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=0)}([function(t,e,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(){function o(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}}(),a=o(n(1)),c=o(n(3)),u=o(n(4));function o(t){return t&&t.__esModule?t:{default:t}}var l=function(t){function o(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(o.__proto__||Object.getPrototypeOf(o)).call(this));return n.resolveOptions(e),n.listenClick(t),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(o,c.default),i(o,[{key:"resolveOptions",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===r(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=(0,u.default)(t,"click",function(t){return e.onClick(t)})}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new a.default({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){return s("action",t)}},{key:"defaultTarget",value:function(t){var e=s("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return s("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"==typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach(function(t){n=n&&!!document.queryCommandSupported(t)}),n}}]),o}();function s(t,e){var n="data-clipboard-"+t;if(e.hasAttribute(n))return e.getAttribute(n)}t.exports=l},function(t,e,n){"use strict";var o,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(){function o(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}}(),a=n(2),c=(o=a)&&o.__esModule?o:{default:o};var u=function(){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this.resolveOptions(t),this.initSelection()}return i(e,[{key:"resolveOptions",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var t=this,e="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,c.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,c.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==(void 0===t?"undefined":r(t))||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}]),e}();t.exports=u},function(t,e){t.exports=function(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var o=window.getSelection(),r=document.createRange();r.selectNodeContents(t),o.removeAllRanges(),o.addRange(r),e=o.toString()}return e}},function(t,e){function n(){}n.prototype={on:function(t,e,n){var o=this.e||(this.e={});return(o[t]||(o[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var o=this;function r(){o.off(t,r),e.apply(n,arguments)}return r._=e,this.on(t,r,n)},emit:function(t){for(var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),o=0,r=n.length;o<r;o++)n[o].fn.apply(n[o].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),o=n[t],r=[];if(o&&e)for(var i=0,a=o.length;i<a;i++)o[i].fn!==e&&o[i].fn._!==e&&r.push(o[i]);return r.length?n[t]=r:delete n[t],this}},t.exports=n},function(t,e,n){var d=n(5),h=n(6);t.exports=function(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!d.string(e))throw new TypeError("Second argument must be a String");if(!d.fn(n))throw new TypeError("Third argument must be a Function");if(d.node(t))return s=e,f=n,(l=t).addEventListener(s,f),{destroy:function(){l.removeEventListener(s,f)}};if(d.nodeList(t))return a=t,c=e,u=n,Array.prototype.forEach.call(a,function(t){t.addEventListener(c,u)}),{destroy:function(){Array.prototype.forEach.call(a,function(t){t.removeEventListener(c,u)})}};if(d.string(t))return o=t,r=e,i=n,h(document.body,o,r,i);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");var o,r,i,a,c,u,l,s,f}},function(t,n){n.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},n.nodeList=function(t){var e=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===e||"[object HTMLCollection]"===e)&&"length"in t&&(0===t.length||n.node(t[0]))},n.string=function(t){return"string"==typeof t||t instanceof String},n.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},function(t,e,n){var a=n(7);function i(t,e,n,o,r){var i=function(e,n,t,o){return function(t){t.delegateTarget=a(t.target,n),t.delegateTarget&&o.call(e,t)}}.apply(this,arguments);return t.addEventListener(n,i,r),{destroy:function(){t.removeEventListener(n,i,r)}}}t.exports=function(t,e,n,o,r){return"function"==typeof t.addEventListener?i.apply(null,arguments):"function"==typeof n?i.bind(null,document).apply(null,arguments):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,function(t){return i(t,e,n,o,r)}))}},function(t,e){if("undefined"!=typeof Element&&!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}t.exports=function(t,e){for(;t&&9!==t.nodeType;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}}])});
js/gutenberg.jsx ADDED
@@ -0,0 +1,144 @@
1
+ const { PanelRow, TextControl, CheckboxControl } = wp.components;
2
+ const { withInstanceId, compose } = wp.compose;
3
+ const { withSelect, withDispatch } = wp.data;
4
+ const { Fragment, Component } = wp.element;
5
+ const { PluginPostStatusInfo } = wp.editPost;
6
+ const { registerPlugin } = wp.plugins;
7
+
8
+ class LinksTo extends Component {
9
+ constructor(props) {
10
+ super(props);
11
+ this.toggleStatus = this.toggleStatus.bind(this);
12
+ this.toggleNewTab = this.toggleNewTab.bind(this);
13
+ this.updateLink = this.updateLink.bind(this);
14
+ this.state.enabled = this.hasUrl();
15
+ }
16
+
17
+ state = {
18
+ prevUrl: '',
19
+ prevNewTab: false,
20
+ };
21
+
22
+ getUrl() {
23
+ return this.props.meta._links_to || '';
24
+ }
25
+
26
+ getDisplayUrl() {
27
+ const { prevUrl } = this.state;
28
+ return this.getUrl() || prevUrl;
29
+ }
30
+
31
+ hasUrl() {
32
+ return this.getUrl().length > 0;
33
+ }
34
+
35
+ opensInNewTab() {
36
+ return this.props.meta._links_to_target === '_blank';
37
+ }
38
+
39
+ enabled() {
40
+ return this.state.enabled;
41
+ }
42
+
43
+ toggleStatus() {
44
+ const { prevUrl, prevNewTab } = this.state;
45
+
46
+ this.setState(prevState => {
47
+ const newState = {
48
+ enabled: !prevState.enabled,
49
+ };
50
+
51
+ if (prevState.enabled) {
52
+ newState.prevUrl = this.getUrl();
53
+ }
54
+
55
+ return newState;
56
+ });
57
+
58
+ if (this.enabled()) {
59
+ // If it was enabled before they clicked, they are disabling it.
60
+ this.updateLink(null);
61
+ this.updateNewTab(false);
62
+
63
+ // Hold on to the previous state, in case they change their mind.
64
+ this.setState({
65
+ prevUrl: this.getUrl(),
66
+ prevNewTab: this.opensInNewTab(),
67
+ });
68
+ } else {
69
+ // If it was disabled before thy clicked, they are enabling it.
70
+ // We should restore the previous states of the url and new tab checkbox.
71
+ this.updateLink(prevUrl);
72
+ this.updateNewTab(prevNewTab);
73
+ }
74
+ }
75
+
76
+ toggleNewTab() {
77
+ this.updateNewTab(!this.opensInNewTab());
78
+ }
79
+
80
+ updateLink(link) {
81
+ const { meta, onUpdateLink } = this.props;
82
+ onUpdateLink(meta, link);
83
+ }
84
+
85
+ updateNewTab(enabled) {
86
+ const { meta, onUpdateNewTab } = this.props;
87
+ onUpdateNewTab(meta, enabled);
88
+ }
89
+
90
+ render() {
91
+ return (
92
+ <Fragment>
93
+ <PluginPostStatusInfo>
94
+ <CheckboxControl
95
+ label="Custom Permalink"
96
+ checked={this.enabled()}
97
+ onChange={this.toggleStatus}
98
+ />
99
+ </PluginPostStatusInfo>
100
+
101
+ {this.enabled() && (
102
+ <Fragment>
103
+ <PluginPostStatusInfo>
104
+ <TextControl
105
+ label="Links to"
106
+ value={this.getDisplayUrl()}
107
+ onChange={this.updateLink}
108
+ placeholder="https://"
109
+ />
110
+ </PluginPostStatusInfo>
111
+ <PluginPostStatusInfo>
112
+ <CheckboxControl
113
+ label="Open in new tab"
114
+ checked={this.opensInNewTab()}
115
+ onChange={this.toggleNewTab}
116
+ />
117
+ </PluginPostStatusInfo>
118
+ </Fragment>
119
+ )}
120
+ </Fragment>
121
+ );
122
+ }
123
+ }
124
+
125
+ const PageLinksTo = compose([
126
+ withSelect(select => ({
127
+ meta: select('core/editor').getEditedPostAttribute('meta'),
128
+ })),
129
+ withDispatch(dispatch => ({
130
+ onUpdateLink: (meta, link) => {
131
+ dispatch('core/editor').editPost({ meta: { ...meta, _links_to: link } });
132
+ },
133
+ onUpdateNewTab: (meta, enabled) => {
134
+ dispatch('core/editor').editPost({
135
+ meta: { ...meta, _links_to_target: enabled ? '_blank' : '' },
136
+ });
137
+ },
138
+ })),
139
+ withInstanceId,
140
+ ])(LinksTo);
141
+
142
+ registerPlugin('page-links-to', {
143
+ render: PageLinksTo,
144
+ });
js/gutenberg.min.js ADDED
@@ -0,0 +1,206 @@
1
+ (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
2
+ 'use strict';
3
+
4
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
5
+
6
+ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
7
+
8
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
9
+
10
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
11
+
12
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
13
+
14
+ var _wp$components = wp.components,
15
+ PanelRow = _wp$components.PanelRow,
16
+ TextControl = _wp$components.TextControl,
17
+ CheckboxControl = _wp$components.CheckboxControl;
18
+ var _wp$compose = wp.compose,
19
+ withInstanceId = _wp$compose.withInstanceId,
20
+ compose = _wp$compose.compose;
21
+ var _wp$data = wp.data,
22
+ withSelect = _wp$data.withSelect,
23
+ withDispatch = _wp$data.withDispatch;
24
+ var _wp$element = wp.element,
25
+ Fragment = _wp$element.Fragment,
26
+ Component = _wp$element.Component;
27
+ var PluginPostStatusInfo = wp.editPost.PluginPostStatusInfo;
28
+ var registerPlugin = wp.plugins.registerPlugin;
29
+
30
+ var LinksTo = function (_Component) {
31
+ _inherits(LinksTo, _Component);
32
+
33
+ function LinksTo(props) {
34
+ _classCallCheck(this, LinksTo);
35
+
36
+ var _this = _possibleConstructorReturn(this, (LinksTo.__proto__ || Object.getPrototypeOf(LinksTo)).call(this, props));
37
+
38
+ _this.state = {
39
+ prevUrl: '',
40
+ prevNewTab: false
41
+ };
42
+
43
+ _this.toggleStatus = _this.toggleStatus.bind(_this);
44
+ _this.toggleNewTab = _this.toggleNewTab.bind(_this);
45
+ _this.updateLink = _this.updateLink.bind(_this);
46
+ _this.state.enabled = _this.hasUrl();
47
+ return _this;
48
+ }
49
+
50
+ _createClass(LinksTo, [{
51
+ key: 'getUrl',
52
+ value: function getUrl() {
53
+ return this.props.meta._links_to || '';
54
+ }
55
+ }, {
56
+ key: 'getDisplayUrl',
57
+ value: function getDisplayUrl() {
58
+ var prevUrl = this.state.prevUrl;
59
+
60
+ return this.getUrl() || prevUrl;
61
+ }
62
+ }, {
63
+ key: 'hasUrl',
64
+ value: function hasUrl() {
65
+ return this.getUrl().length > 0;
66
+ }
67
+ }, {
68
+ key: 'opensInNewTab',
69
+ value: function opensInNewTab() {
70
+ return this.props.meta._links_to_target === '_blank';
71
+ }
72
+ }, {
73
+ key: 'enabled',
74
+ value: function enabled() {
75
+ return this.state.enabled;
76
+ }
77
+ }, {
78
+ key: 'toggleStatus',
79
+ value: function toggleStatus() {
80
+ var _this2 = this;
81
+
82
+ var _state = this.state,
83
+ prevUrl = _state.prevUrl,
84
+ prevNewTab = _state.prevNewTab;
85
+
86
+
87
+ this.setState(function (prevState) {
88
+ var newState = {
89
+ enabled: !prevState.enabled
90
+ };
91
+
92
+ if (prevState.enabled) {
93
+ newState.prevUrl = _this2.getUrl();
94
+ }
95
+
96
+ return newState;
97
+ });
98
+
99
+ if (this.enabled()) {
100
+ // If it was enabled before they clicked, they are disabling it.
101
+ this.updateLink(null);
102
+ this.updateNewTab(false);
103
+
104
+ // Hold on to the previous state, in case they change their mind.
105
+ this.setState({
106
+ prevUrl: this.getUrl(),
107
+ prevNewTab: this.opensInNewTab()
108
+ });
109
+ } else {
110
+ // If it was disabled before thy clicked, they are enabling it.
111
+ // We should restore the previous states of the url and new tab checkbox.
112
+ this.updateLink(prevUrl);
113
+ this.updateNewTab(prevNewTab);
114
+ }
115
+ }
116
+ }, {
117
+ key: 'toggleNewTab',
118
+ value: function toggleNewTab() {
119
+ this.updateNewTab(!this.opensInNewTab());
120
+ }
121
+ }, {
122
+ key: 'updateLink',
123
+ value: function updateLink(link) {
124
+ var _props = this.props,
125
+ meta = _props.meta,
126
+ onUpdateLink = _props.onUpdateLink;
127
+
128
+ onUpdateLink(meta, link);
129
+ }
130
+ }, {
131
+ key: 'updateNewTab',
132
+ value: function updateNewTab(enabled) {
133
+ var _props2 = this.props,
134
+ meta = _props2.meta,
135
+ onUpdateNewTab = _props2.onUpdateNewTab;
136
+
137
+ onUpdateNewTab(meta, enabled);
138
+ }
139
+ }, {
140
+ key: 'render',
141
+ value: function render() {
142
+ return React.createElement(
143
+ Fragment,
144
+ null,
145
+ React.createElement(
146
+ PluginPostStatusInfo,
147
+ null,
148
+ React.createElement(CheckboxControl, {
149
+ label: 'Custom Permalink',
150
+ checked: this.enabled(),
151
+ onChange: this.toggleStatus
152
+ })
153
+ ),
154
+ this.enabled() && React.createElement(
155
+ Fragment,
156
+ null,
157
+ React.createElement(
158
+ PluginPostStatusInfo,
159
+ null,
160
+ React.createElement(TextControl, {
161
+ label: 'Links to',
162
+ value: this.getDisplayUrl(),
163
+ onChange: this.updateLink,
164
+ placeholder: 'https://'
165
+ })
166
+ ),
167
+ React.createElement(
168
+ PluginPostStatusInfo,
169
+ null,
170
+ React.createElement(CheckboxControl, {
171
+ label: 'Open in new tab',
172
+ checked: this.opensInNewTab(),
173
+ onChange: this.toggleNewTab
174
+ })
175
+ )
176
+ )
177
+ );
178
+ }
179
+ }]);
180
+
181
+ return LinksTo;
182
+ }(Component);
183
+
184
+ var PageLinksTo = compose([withSelect(function (select) {
185
+ return {
186
+ meta: select('core/editor').getEditedPostAttribute('meta')
187
+ };
188
+ }), withDispatch(function (dispatch) {
189
+ return {
190
+ onUpdateLink: function onUpdateLink(meta, link) {
191
+ dispatch('core/editor').editPost({ meta: _extends({}, meta, { _links_to: link }) });
192
+ },
193
+ onUpdateNewTab: function onUpdateNewTab(meta, enabled) {
194
+ dispatch('core/editor').editPost({
195
+ meta: _extends({}, meta, { _links_to_target: enabled ? '_blank' : '' })
196
+ });
197
+ }
198
+ };
199
+ }), withInstanceId])(LinksTo);
200
+
201
+ registerPlugin('page-links-to', {
202
+ render: PageLinksTo
203
+ });
204
+
205
+ },{}]},{},[1])
206
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9icm93c2VyLXBhY2svX3ByZWx1ZGUuanMiLCJqcy9ndXRlbmJlcmcuanN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7Ozs7Ozs7O3FCQ0FtRCxHQUFHLFU7SUFBOUMsUSxrQkFBQSxRO0lBQVUsVyxrQkFBQSxXO0lBQWEsZSxrQkFBQSxlO2tCQUNLLEdBQUcsTztJQUEvQixjLGVBQUEsYztJQUFnQixPLGVBQUEsTztlQUNhLEdBQUcsSTtJQUFoQyxVLFlBQUEsVTtJQUFZLFksWUFBQSxZO2tCQUNZLEdBQUcsTztJQUEzQixRLGVBQUEsUTtJQUFVLFMsZUFBQSxTO0lBQ1Ysb0IsR0FBeUIsR0FBRyxRLENBQTVCLG9CO0lBQ0EsYyxHQUFt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HRcdFx0ZGlzcGF0Y2goJ2NvcmUvZWRpdG9yJykuZWRpdFBvc3QoeyBtZXRhOiB7IC4uLm1ldGEsIF9saW5rc190bzogbGluayB9IH0pO1xuXHRcdH0sXG5cdFx0b25VcGRhdGVOZXdUYWI6IChtZXRhLCBlbmFibGVkKSA9PiB7XG5cdFx0XHRkaXNwYXRjaCgnY29yZS9lZGl0b3InKS5lZGl0UG9zdCh7XG5cdFx0XHRcdG1ldGE6IHsgLi4ubWV0YSwgX2xpbmtzX3RvX3RhcmdldDogZW5hYmxlZCA/ICdfYmxhbmsnIDogJycgfSxcblx0XHRcdH0pO1xuXHRcdH0sXG5cdH0pKSxcblx0d2l0aEluc3RhbmNlSWQsXG5dKShMaW5rc1RvKTtcblxucmVnaXN0ZXJQbHVnaW4oJ3BhZ2UtbGlua3MtdG8nLCB7XG5cdHJlbmRlcjogUGFnZUxpbmtzVG8sXG59KTtcbiJdfQ==
js/meta-box.min.js CHANGED
@@ -1,5 +1,31 @@
1
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
2
- "use strict";jQuery(function(t){var i=t("#cws-links-to-custom-section"),n=t("input[type=radio]","#page-links-to");n.filter('input[value="wp"]').prop("checked")&&i.fadeTo(1,0).hide(),n.change(function(){"wp"===t(this).val()?i.fadeTo("fast",0,function(){i.slideUp()}):i.slideDown("fast",function(){i.fadeTo("fast",1,function(){var i=t("#cws-links-to");i.focus().val(i.val())})})})});
3
4
},{}]},{},[1])
5
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjoz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require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
2
+ 'use strict';
3
+
4
+ jQuery(function ($) {
5
+ var section = $('#cws-links-to-custom-section');
6
+ var input = $('input[type=radio]', '#page-links-to');
7
+
8
+ if (input.filter('input[value="wp"]').prop('checked')) {
9
+ section.fadeTo(1, 0).hide();
10
+ }
11
+
12
+ input.change(function () {
13
+ var $this = $(this);
14
+
15
+ if ($this.val() === 'wp') {
16
+ section.fadeTo('fast', 0, function () {
17
+ section.slideUp();
18
+ });
19
+ } else {
20
+ section.slideDown('fast', function () {
21
+ section.fadeTo('fast', 1, function () {
22
+ var $linksTo = $('#cws-links-to');
23
+ $linksTo.focus().val($linksTo.val());
24
+ });
25
+ });
26
+ }
27
+ });
28
+ });
29
30
},{}]},{},[1])
31
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9icm93c2VyLXBhY2svX3ByZWx1ZGUuanMiLCJqcy9tZXRhLWJveC5qc3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7OztBQ0FBLE9BQU8sYUFBSztBQUNYLEtBQU0sVUFBVSxFQUFFLDhCQUFGLENBQWhCO0FBQ0EsS0FBTSxRQUFRLEVBQUUsbUJBQUYsRUFBdUIsZ0JBQXZCLENBQWQ7O0FBRUEsS0FBSSxNQUFNLE1BQU4sQ0FBYSxtQkFBYixFQUFrQyxJQUFsQyxDQUF1QyxTQUF2QyxDQUFKLEVBQXVEO0FBQ3RELFVBQVEsTUFBUixDQUFlLENBQWYsRUFBa0IsQ0FBbEIsRUFBcUIsSUFBckI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.min.js CHANGED
@@ -1,5 +1,29 @@
1
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
2
- "use strict";!function(t){var e=function(t){var e=/#new_tab#x2F;;"A"===t.tagName&&e.test(t.getAttribute("href"))&&(t.setAttribute("target","_blank"),t.setAttribute("href",t.getAttribute("href").replace(e,"")))};t.addEventListener("click",function(t){return e(t.target)}),t.addEventListener("DOMContentLoaded",function(){for(var n=t.getElementsByTagName("A"),r=0;r<n.length;r++)e(n[r])})}(document);
3
4
},{}]},{},[1])
5
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9icm93c2VyLXBhY2svX3ByZWx1ZGUuanMiLCJqcy9uZXctdGFiLmpzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtjQ0FBLFNBQUMsR0FFQSxJQUFNLEVBQVMsU0FBQSxHQUNkLElBQU0sRUFBYyxZQUNELE1BQWYsRUFBRyxTQUFtQixFQUFZLEtBQUssRUFBRyxhQUFhLFdBQzFELEVBQUcsYUFBYSxTQUFVLFVBQzFCLEVBQUcsYUFBYSxPQUFRLEVBQUcsYUFBYSxRQUFRLFFBQVEsRUFBYSxPQUt2RSxFQUFFLGlCQUFpQixRQUFTLFNBQUEsR0FBQSxPQUFLLEVBQU8sRUFBRSxVQUcxQyxFQUFFLGlCQUFpQixtQkFBb0IsV0FFdEMsSUFEQSxJQUFNLEVBQVUsRUFBRSxxQkFBcUIsS0FDOUIsRUFBSSxFQUFH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CcsICdfYmxhbmsnKTtcblx0XHRcdGVsLnNldEF0dHJpYnV0ZSgnaHJlZicsIGVsLmdldEF0dHJpYnV0ZSgnaHJlZicpLnJlcGxhY2UobmV3VGFiUmVnZXgsICcnKSk7XG5cdFx0fVxuXHR9O1xuXG5cdC8vIEltbWVkaWF0ZWx5IGF0dGFjaCBhIGNsaWNrIGhhbmRsZXIuXG5cdGQuYWRkRXZlbnRMaXN0ZW5lcignY2xpY2snLCBlID0+IG5ld1RhYihlLnRhcmdldCkpO1xuXG5cdC8vIE9uIHBhZ2UgbG9hZCwgY29udmVydCBhbnkgZXhpc3RpbmcgbmV3IHRhYiBsaW5rcy5cblx0ZC5hZGRFdmVudExpc3RlbmVyKCdET01Db250ZW50TG9hZGVkJywgKCkgPT4ge1xuXHRcdGNvbnN0IGFuY2hvcnMgPSBkLmdldEVsZW1lbnRzQnlUYWdOYW1lKCdBJyk7XG5cdFx0Zm9yIChsZXQgaSA9IDA7IGkgPCBhbmNob3JzLmxlbmd0aDsgaSsrKSB7XG5cdFx0XHRuZXdUYWIoYW5jaG9yc1tpXSk7XG5cdFx0fVxuXHR9KTtcbn0pKGRvY3VtZW50KTtcbiJdfQ==
1
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
2
+ 'use strict';
3
+
4
+ (function (d) {
5
+ // Makes an anchor element open in a new tab.
6
+ var newTab = function newTab(el) {
7
+ var newTabRegex = /#new_tab#x2F;;
8
+ if (el.tagName === 'A' && newTabRegex.test(el.getAttribute('href'))) {
9
+ el.setAttribute('target', '_blank');
10
+ el.setAttribute('href', el.getAttribute('href').replace(newTabRegex, ''));
11
+ }
12
+ };
13
+
14
+ // Immediately attach a click handler.
15
+ d.addEventListener('click', function (e) {
16
+ return newTab(e.target);
17
+ });
18
+
19
+ // On page load, convert any existing new tab links.
20
+ d.addEventListener('DOMContentLoaded', function () {
21
+ var anchors = d.getElementsByTagName('A');
22
+ for (var i = 0; i < anchors.length; i++) {
23
+ newTab(anchors[i]);
24
+ }
25
+ });
26
+ })(document);
27
28
},{}]},{},[1])
29
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9icm93c2VyLXBhY2svX3ByZWx1ZGUuanMiLCJqcy9uZXctdGFiLmpzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7O0FDQUEsQ0FBQyxhQUFLO0FBQ0w7QUFDQSxLQUFNLFNBQVMsU0FBVCxNQUFTLEtBQU07QUFDcEIsTUFBTSxjQUFjLFdBQXBCO0FBQ0EsTUFBSSxHQUFHLE9BQUgsS0FBZSxHQUFmLElBQXNCLFlBQVksSUFBWixDQUFpQixHQUFHLFlBQUgsQ0FBZ0IsTUFBaEIsQ0FBakIsQ0FBMUIsRUFBcUU7QUFDcEUsTUFBRyxZQUFILENBQWdCLFFBQWhCLEVBQTBCLFFBQTFCO0FBQ0EsTUFBRyxZQUFILENBQWdCLE1BQWhCLEVBQXdCLEdBQUcsWUFBSCxDQUFnQixNQUFoQixFQUF3QixPQUF4QixDQUFnQyxXQUFoQyxFQUE2QyxFQUE3QyxDQUF4QjtBQUNBO0FBQ0QsRUFORDs7QUFRQTtBQUNBLEdBQUUsZ0JBQUYsQ0FBbUIsT0FBbkIsRUFBNEI7QUFBQSxTQUFLLE9BQU8sRUFBRSxNQUFULENBQUw7QUFBQSxFQUE1Qjs7QUFFQTtBQUNBLEdBQUUsZ0JBQUYsQ0FBbUIsa0JBQW5CLEVBQXVDLFlBQU07QUFDNU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VGFiUmVnZXggPSAvI25ld190YWIkLztcblx0XHRpZiAoZWwudGFnTmFtZSA9PT0gJ0EnICYmIG5ld1RhYlJlZ2V4LnRlc3QoZWwuZ2V0QXR0cmlidXRlKCdocmVmJykpKSB7XG5cdFx0XHRlbC5zZXRBdHRyaWJ1dGUoJ3RhcmdldCcsICdfYmxhbmsnKTtcblx0XHRcdGVsLnNldEF0dHJpYnV0ZSgnaHJlZicsIGVsLmdldEF0dHJpYnV0ZSgnaHJlZicpLnJlcGxhY2UobmV3VGFiUmVnZXgsICcnKSk7XG5cdFx0fVxuXHR9O1xuXG5cdC8vIEltbWVkaWF0ZWx5IGF0dGFjaCBhIGNsaWNrIGhhbmRsZXIuXG5cdGQuYWRkRXZlbnRMaXN0ZW5lcignY2xpY2snLCBlID0+IG5ld1RhYihlLnRhcmdldCkpO1xuXG5cdC8vIE9uIHBhZ2UgbG9hZCwgY29udmVydCBhbnkgZXhpc3RpbmcgbmV3IHRhYiBsaW5rcy5cblx0ZC5hZGRFdmVudExpc3RlbmVyKCdET01Db250ZW50TG9hZGVkJywgKCkgPT4ge1xuXHRcdGNvbnN0IGFuY2hvcnMgPSBkLmdldEVsZW1lbnRzQnlUYWdOYW1lKCdBJyk7XG5cdFx0Zm9yIChsZXQgaSA9IDA7IGkgPCBhbmNob3JzLmxlbmd0aDsgaSsrKSB7XG5cdFx0XHRuZXdUYWIoYW5jaG9yc1tpXSk7XG5cdFx0fVxuXHR9KTtcbn0pKGRvY3VtZW50KTtcbiJdfQ==
js/quick-add.jsx CHANGED
@@ -160,7 +160,7 @@ jQuery($ => {
160
161
$modal.dialog({
162
title: 'Add Page Link',
163
- dialogClass: 'wp-dialog',
164
autoOpen: no,
165
draggable: no,
166
width: 'auto',
@@ -173,9 +173,28 @@ jQuery($ => {
173
of: window,
174
},
175
open: () => $('.ui-widget-overlay').bind('click', close),
176
- create: () => $('.ui-dialog-titlebar-close').addClass('ui-button'),
177
});
178
179
// Events.
180
if (fancyUrls) {
181
$title.keyup(updateSlug);
160
161
$modal.dialog({
162
title: 'Add Page Link',
163
+ dialogClass: 'wp-dialog plt-ui-dialog',
164
autoOpen: no,
165
draggable: no,
166
width: 'auto',
173
of: window,
174
},
175
open: () => $('.ui-widget-overlay').bind('click', close),
176
+ create: () => {
177
+ $('.plt-ui-dialog .ui-dialog-titlebar-close').addClass('ui-button');
178
+ $('.plt-ui-dialog').css({ position: 'fixed' });
179
+ },
180
});
181
182
+ const repositionModal = () => {
183
+ if (!isOpen()) {
184
+ return;
185
+ }
186
+
187
+ $modal.dialog('option', 'position', {
188
+ my: 'center',
189
+ at: 'center',
190
+ of: window,
191
+ });
192
+ };
193
+
194
+ $(window)
195
+ .scroll(repositionModal)
196
+ .resize(repositionModal);
197
+
198
// Events.
199
if (fancyUrls) {
200
$title.keyup(updateSlug);
js/quick-add.min.js CHANGED
@@ -1,5 +1,237 @@
1
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
2
- "use strict";jQuery(function(e){var t=e(".plt-copy-short-url");ClipboardJS.isSupported()?t.click(function(e){return e.preventDefault()}):t.hide(),e(".plt-links-to button").click(function(t){e("#cws-links-to").focus()});var n=new ClipboardJS(".plt-copy-short-url"),r=pltVars.copied,l=pltVars.browserNoSupportCopying;n.on("success",function(t){var n=e(t.trigger);n.text(r),setTimeout(function(){return n.text(n.data("original-text"))},4e3)}),n.on("error",function(n){e(n.trigger).text(l),setTimeout(function(){return t.hide()},4e3)})}),jQuery(function(e){var t=e("#plt-quick-add"),n=t.find("form:first"),r=e("#plt-quick-add-save"),l=e("#plt-quick-add-publish"),a=e('a[href$="post_type=page&page=plt-add-page-link"], a[href$="#new-page-link"]'),i=t.find(".messages"),o=t.find(".short-url-message"),u=t.find('[name="title"]'),p=t.find('[name="url"]'),c=t.find('[name="slug"]'),s=t.find('[name="plt_nonce"]').val(),d=c.prop("placeholder"),f=window.pltVars.fancyUrls,g=function(e){return function(){return t.dialog(e)}},v=g("isOpen"),h=g("open"),k=g("close"),b=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toLowerCase().replace(/\s+/g,"-").replace(/-{2,}/g,"-").replace(/[^a-z0-9-]/,"").replace(/-#x2F;,"").replace(/^-/,"")},y=function(t,n){var r=function(t){var n=e("<p>"+t+"</p>");return i.append(n),n}(t);return setTimeout(function(){return r.fadeOut()},n),r},m=function(){var e=b(u.val()),t=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toLowerCase().replace(/\s+/g,"-").replace(/-{2,}/g,"-").replace(/[^a-z0-9-]/,"").replace(/^-/,"")}(c.val());c.prop("placeholder",e.length?e:d),c.val(t)},w=function(e){return function(t){t.preventDefault(),e()}},_=w(function(){return c.val(b(c.val()))}),C=w(function(){return e=c.prop("placeholder").length>16&&!c.val().length,o.toggle(e);var e}),x=function(){u.val(""),p.val(""),c.val(""),c.prop("placeholder",d),q()},q=function(){return function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];l.prop("disabled",!e),r.prop("disabled",!e)}(u.val().length&&p.val().length)},O=function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).publish,n=void 0===t||t,r=u.val(),l=p.val(),a=c.val()?c.val():b(r);e.post(ajaxurl,{action:"plt_quick_add",plt_title:r,plt_url:l,plt_slug:a,plt_publish:n?1:0,plt_nonce:s},function(e){var t=e.data.message;x(),u.focus(),y(t,5e3)})},S=w(function(){return v()?k():h()}),j=w(function(){return O({publish:!1})}),z=w(function(){return O({publish:!0})});t.dialog({title:"Add Page Link",dialogClass:"wp-dialog",autoOpen:!1,draggable:!1,width:"auto",modal:!0,resizable:!1,closeOnEscape:!0,position:{my:"center",at:"center",of:window},open:function(){return e(".ui-widget-overlay").bind("click",k)},create:function(){return e(".ui-dialog-titlebar-close").addClass("ui-button")}}),f&&(u.keyup(m),u.keyup(C),c.keyup(m),c.keyup(C),n.change(_)),a.click(S),r.click(j),l.click(z),n.submit(z),u.keyup(q),p.keyup(q),n.change(q),x()});
3
4
},{}]},{},[1])
5
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9icm93c2VyLXBhY2svX3ByZWx1ZGUuanMiLCJqcy9xdWljay1hZGQuanN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO2FDQ0EsT0FBTyxTQUFBLEdBQ04sSUFBTSxFQUFrQixFQUFFLHVCQUN0QixZQUFZLGNBQ2YsRUFBZ0IsTUFBTSxTQUFBLEdBQUEsT0FBSyxFQUFFLG1CQUU3QixFQUFnQixPQUdqQixFQUFFLHdCQUF3QixNQUFNLFNBQUEsR0FDL0IsRUFBRSxpQkFBaUIsVUFHcEIsSUFBTSxFQUFZLElBQUksWUFBWSx1QkFDNUIsRUFBUyxRQUFRLE9BQ2pCLEVBQTBCLFFBQVEsd0JBRXhDLEVBQVUsR0FBRyxVQUFXLFNBQUEsR0FDdkIsSUFBTSxFQUFXLEVBQUUsRUFBRSxTQUVyQixFQUFTLEtBQUssR0FDZCxXQUFXLFdBQUEsT0FBTSxFQUFTLEtBQUssRUFBUyxLQUFLLG1CQUFtQixPQUdqRSxFQUFVLEdBQUcsUUFBUyxTQUFBLEdBQ0osRUFBRSxFQUFFLFNBRVosS0FBSyxHQUNkLFdBQVcsV0FBQSxPQUFNLEVBQWdCLFFBQVEsU0FLM0MsT0FBTyxTQUFBLEdBQ04sSUFBTSxFQUFTLEVBQUUsa0JBQ1gsRUFBUSxFQUFPLEtBQUssY0FDcEIsRUFBYSxFQUFFLHVCQ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Ttcblx0JHB1Ymxpc2guY2xpY2socHVibGlzaCk7XG5cdCRmb3JtLnN1Ym1pdChwdWJsaXNoKTtcblx0JHRpdGxlLmtleXVwKG1heWJlVXBkYXRlQnV0dG9ucyk7XG5cdCR1cmwua2V5dXAobWF5YmVVcGRhdGVCdXR0b25zKTtcblx0JGZvcm0uY2hhbmdlKG1heWJlVXBkYXRlQnV0dG9ucyk7XG5cblx0Ly8gSW5pdC5cblx0cmVzZXQoKTtcbn0pO1xuIl19
1
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
2
+ 'use strict';
3
+
4
+ // Copy to clipboard.
5
+ jQuery(function ($) {
6
+ var $clipboardLinks = $('.plt-copy-short-url');
7
+ if (ClipboardJS.isSupported()) {
8
+ $clipboardLinks.click(function (e) {
9
+ return e.preventDefault();
10
+ });
11
+ } else {
12
+ $clipboardLinks.hide();
13
+ }
14
+
15
+ $('.plt-links-to button').click(function (e) {
16
+ $('#cws-links-to').focus();
17
+ });
18
+
19
+ var clipboard = new ClipboardJS('.plt-copy-short-url');
20
+ var copied = pltVars.copied;
21
+ var browserNoSupportCopying = pltVars.browserNoSupportCopying;
22
+
23
+ clipboard.on('success', function (e) {
24
+ var $trigger = $(e.trigger);
25
+
26
+ $trigger.text(copied);
27
+ setTimeout(function () {
28
+ return $trigger.text($trigger.data('original-text'));
29
+ }, 4000);
30
+ });
31
+
32
+ clipboard.on('error', function (e) {
33
+ var $trigger = $(e.trigger);
34
+
35
+ $trigger.text(browserNoSupportCopying);
36
+ setTimeout(function () {
37
+ return $clipboardLinks.hide();
38
+ }, 4000);
39
+ });
40
+ });
41
+
42
+ // Quick Add.
43
+ jQuery(function ($) {
44
+ var $modal = $('#plt-quick-add');
45
+ var $form = $modal.find('form:first');
46
+ var $saveDraft = $('#plt-quick-add-save');
47
+ var $publish = $('#plt-quick-add-publish');
48
+ var $menuItem = $('a[href$="post_type=page&page=plt-add-page-link"], a[href$="#new-page-link"]');
49
+ var $messages = $modal.find('.messages');
50
+ var $shortUrlMessage = $modal.find('.short-url-message');
51
+ var $title = $modal.find('[name="title"]');
52
+ var $url = $modal.find('[name="url"]');
53
+ var $slug = $modal.find('[name="slug"]');
54
+ var nonce = $modal.find('[name="plt_nonce"]').val();
55
+ var defaultSlugPlaceholder = $slug.prop('placeholder');
56
+ var fancyUrls = window.pltVars.fancyUrls;
57
+ var yes = true,
58
+ no = false;
59
+
60
+
61
+ var modalAction = function modalAction(action) {
62
+ return function () {
63
+ return $modal.dialog(action);
64
+ };
65
+ };
66
+ var isOpen = modalAction('isOpen');
67
+ var open = modalAction('open');
68
+ var close = modalAction('close');
69
+
70
+ var makeSlugFromTitle = function makeSlugFromTitle() {
71
+ var title = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
72
+
73
+ return title.toLowerCase().replace(/\s+/g, '-').replace(/-{2,}/g, '-').replace(/[^a-z0-9-]/, '').replace(/-#x2F;, '').replace(/^-/, '');
74
+ };
75
+
76
+ var makeSlugFromSlug = function makeSlugFromSlug() {
77
+ var slug = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
78
+
79
+ return slug.toLowerCase().replace(/\s+/g, '-').replace(/-{2,}/g, '-').replace(/[^a-z0-9-]/, '').replace(/^-/, '');
80
+ };
81
+
82
+ var addMessage = function addMessage(message) {
83
+ var $newMessage = $('<p>' + message + '</p>');
84
+ $messages.append($newMessage);
85
+ return $newMessage;
86
+ };
87
+
88
+ var addExpiringMessage = function addExpiringMessage(message, duration) {
89
+ var $newMessage = addMessage(message);
90
+ setTimeout(function () {
91
+ return $newMessage.fadeOut();
92
+ }, duration);
93
+ return $newMessage;
94
+ };
95
+
96
+ var displayShortUrlMessage = function displayShortUrlMessage(show) {
97
+ return $shortUrlMessage.toggle(show);
98
+ };
99
+
100
+ var updateSlug = function updateSlug() {
101
+ var placeholderSlug = makeSlugFromTitle($title.val());
102
+ var slug = makeSlugFromSlug($slug.val());
103
+
104
+ $slug.prop('placeholder', placeholderSlug.length ? placeholderSlug : defaultSlugPlaceholder);
105
+ $slug.val(slug);
106
+ };
107
+
108
+ var noDefaultEvent = function noDefaultEvent(func) {
109
+ return function (e) {
110
+ e.preventDefault();
111
+ func();
112
+ };
113
+ };
114
+
115
+ var hardUpdateSlug = noDefaultEvent(function () {
116
+ return $slug.val(makeSlugFromTitle($slug.val()));
117
+ });
118
+
119
+ var handleShowSlugMessage = noDefaultEvent(function () {
120
+ return displayShortUrlMessage($slug.prop('placeholder').length > 16 && !$slug.val().length);
121
+ });
122
+
123
+ var reset = function reset() {
124
+ $title.val('');
125
+ $url.val('');
126
+ $slug.val('');
127
+ $slug.prop('placeholder', defaultSlugPlaceholder);
128
+ maybeUpdateButtons();
129
+ };
130
+
131
+ var updateButtons = function updateButtons() {
132
+ var enabled = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : yes;
133
+
134
+ $publish.prop('disabled', !enabled);
135
+ $saveDraft.prop('disabled', !enabled);
136
+ };
137
+
138
+ var maybeUpdateButtons = function maybeUpdateButtons() {
139
+ return updateButtons($title.val().length && $url.val().length);
140
+ };
141
+
142
+ var submit = function submit() {
143
+ var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
144
+ _ref$publish = _ref.publish,
145
+ publish = _ref$publish === undefined ? yes : _ref$publish;
146
+
147
+ var title = $title.val();
148
+ var url = $url.val();
149
+ var slug = $slug.val() ? $slug.val() : makeSlugFromTitle(title);
150
+
151
+ $.post(ajaxurl, {
152
+ action: 'plt_quick_add',
153
+ plt_title: title,
154
+ plt_url: url,
155
+ plt_slug: slug,
156
+ plt_publish: publish ? 1 : 0,
157
+ plt_nonce: nonce
158
+ }, function (response) {
159
+ var message = response.data.message;
160
+
161
+ var delay = 5000;
162
+ reset();
163
+ $title.focus();
164
+ addExpiringMessage(message, delay);
165
+ });
166
+ };
167
+
168
+ var clickMenuItem = noDefaultEvent(function () {
169
+ return isOpen() ? close() : open();
170
+ });
171
+ var saveDraft = noDefaultEvent(function () {
172
+ return submit({ publish: no });
173
+ });
174
+ var publish = noDefaultEvent(function () {
175
+ return submit({ publish: yes });
176
+ });
177
+
178
+ $modal.dialog({
179
+ title: 'Add Page Link',
180
+ dialogClass: 'wp-dialog plt-ui-dialog',
181
+ autoOpen: no,
182
+ draggable: no,
183
+ width: 'auto',
184
+ modal: yes,
185
+ resizable: no,
186
+ closeOnEscape: yes,
187
+ position: {
188
+ my: 'center',
189
+ at: 'center',
190
+ of: window
191
+ },
192
+ open: function open() {
193
+ return $('.ui-widget-overlay').bind('click', close);
194
+ },
195
+ create: function create() {
196
+ $('.plt-ui-dialog .ui-dialog-titlebar-close').addClass('ui-button');
197
+ $('.plt-ui-dialog').css({ position: 'fixed' });
198
+ }
199
+ });
200
+
201
+ var repositionModal = function repositionModal() {
202
+ if (!isOpen()) {
203
+ return;
204
+ }
205
+
206
+ $modal.dialog('option', 'position', {
207
+ my: 'center',
208
+ at: 'center',
209
+ of: window
210
+ });
211
+ };
212
+
213
+ $(window).scroll(repositionModal).resize(repositionModal);
214
+
215
+ // Events.
216
+ if (fancyUrls) {
217
+ $title.keyup(updateSlug);
218
+ $title.keyup(handleShowSlugMessage);
219
+ $slug.keyup(updateSlug);
220
+ $slug.keyup(handleShowSlugMessage);
221
+ $form.change(hardUpdateSlug);
222
+ }
223
+
224
+ $menuItem.click(clickMenuItem);
225
+ $saveDraft.click(saveDraft);
226
+ $publish.click(publish);
227
+ $form.submit(publish);
228
+ $title.keyup(maybeUpdateButtons);
229
+ $url.keyup(maybeUpdateButtons);
230
+ $form.change(maybeUpdateButtons);
231
+
232
+ //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2luZG93LFxuXHRcdH0pO1xuXHR9O1xuXG5cdCQod2luZG93KVxuXHRcdC5zY3JvbGwocmVwb3NpdGlvbk1vZGFsKVxuXHRcdC5yZXNpemUocmVwb3NpdGlvbk1vZGFsKTtcblxuXHQvLyBFdmVudHMuXG5cdGlmIChmYW5jeVVybHMpIHtcblx0XHQkdGl0bGUua2V5dXAodXBkYXRlU2x1Zyk7XG5cdFx0JHRpdGxlLmtleXVwKGhhbmRsZVNob3dTbHVnTWVzc2FnZSk7XG5cdFx0JHNsdWcua2V5dXAodXBkYXRlU2x1Zyk7XG5cdFx0JHNsdWcua2V5dXAoaGFuZGxlU2hvd1NsdWdNZXNzYWdlKTtcblx0XHQkZm9ybS5jaGFuZ2UoaGFyZFVwZGF0ZVNsdWcpO1xuXHR9XG5cblx0JG1lbnVJdGVtLmNsaWNrKGNsaWNrTWVudUl0ZW0pO1xuXHQkc2F2ZURyYWZ0LmNsaWNrKHNhdmVEcmFmdCk7XG5cdCRwdWJsaXNoLmNsaWNrKHB1Ymxpc2gpO1xuXHQkZm9ybS5zdWJtaXQocHVibGlzaCk7XG5cdCR0aXRsZS5rZXl1cChtYXliZVVwZGF0ZUJ1dHRvbnMpO1xuXHQkdXJsLmtleXVwKG1heWJlVXBkYXRlQnV0dG9ucyk7XG5cdCRmb3JtLmNoYW5nZShtYXliZVVwZGF0ZUJ1dHRvbnMpO1xuXG5cdC8vIEluaXQuXG5cdHJlc2V0KCk7XG59KTtcbiJdfQ==
package-lock.json CHANGED
@@ -1,13 +1,275 @@
1
{
2
"name": "page-links-to",
3
- "version": "3.0.0-beta.1",
4
"lockfileVersion": 1,
5
"requires": true,
6
"dependencies": {
7
- "JSONStream": {
8
"version": "1.3.3",
9
- "resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.3.tgz",
10
- "integrity": "sha512-3Sp6WZZ/lXl+nTDoGpGWHEpTnnC6X5fnkolYZR6nwIfzbxxvA8utPWe1gCt7i0m9uVGsSz2IS8K8mJ7HmlduMg==",
11
"dev": true,
12
"requires": {
13
"jsonparse": "^1.2.0",
@@ -21,40 +283,46 @@
21
"dev": true
22
},
23
"acorn": {
24
- "version": "4.0.13",
25
- "resolved": "https://registry.npmjs.org/acorn/-/acorn-4.0.13.tgz",
26
- "integrity": "sha1-EFSVrlNh1pe9GVyCUZLhrX8lN4c=",
27
"dev": true
28
},
29
"acorn-node": {
30
- "version": "1.3.0",
31
- "resolved": "https://registry.npmjs.org/acorn-node/-/acorn-node-1.3.0.tgz",
32
- "integrity": "sha512-efP54n3d1aLfjL2UMdaXa6DsswwzJeI5rqhbFvXMrKiJ6eJFpf+7R0zN7t8IC+XKn2YOAFAv6xbBNgHUkoHWLw==",
33
"dev": true,
34
"requires": {
35
- "acorn": "^5.4.1",
36
"xtend": "^4.0.1"
37
- },
38
- "dependencies": {
39
- "acorn": {
40
- "version": "5.6.2",
41
- "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.6.2.tgz",
42
- "integrity": "sha512-zUzo1E5dI2Ey8+82egfnttyMlMZ2y0D8xOCO3PNPPlYXpl8NZvF6Qk9L9BEtJs+43FqEmfBViDqc5d1ckRDguw==",
43
- "dev": true
44
- }
45
}
46
},
47
"ajv": {
48
- "version": "5.5.2",
49
- "resolved": "https://registry.npmjs.org/ajv/-/ajv-5.5.2.tgz",
50
- "integrity": "sha1-c7Xuyj+rZT49P5Qis0GtQiBdyWU=",
51
"dev": true,
52
"optional": true,
53
"requires": {
54
- "co": "^4.6.0",
55
- "fast-deep-equal": "^1.0.0",
56
"fast-json-stable-stringify": "^2.0.0",
57
- "json-schema-traverse": "^0.3.0"
58
}
59
},
60
"alphanum-sort": {
@@ -63,6 +331,12 @@
63
"integrity": "sha1-l6ERlkmyEa0zaR2fn0hqjsn74KM=",
64
"dev": true
65
},
66
"ansi-regex": {
67
"version": "2.1.1",
68
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz",
@@ -76,20 +350,21 @@
76
"dev": true
77
},
78
"anymatch": {
79
- "version": "1.3.2",
80
- "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-1.3.2.tgz",
81
- "integrity": "sha512-0XNayC8lTHQ2OI8aljNCN3sSx6hsr/1+rlcDAotXJR7C1oZZHCNsfpbKwMjRA3Uqb5tF1Rae2oloTr4xpq+WjA==",
82
"dev": true,
83
"requires": {
84
- "micromatch": "^2.1.5",
85
- "normalize-path": "^2.0.0"
86
}
87
},
88
"aproba": {
89
"version": "1.2.0",
90
"resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz",
91
"integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==",
92
- "dev": true
93
},
94
"archiver": {
95
"version": "1.3.0",
@@ -127,6 +402,7 @@
127
"resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.5.tgz",
128
"integrity": "sha512-5hYdAkZlcG8tOLujVDTgCT+uPX0VnpAH28gWsLfzpXYm7wP6mp5Q/gYyR7YQ0cKVJcXJnl3j2kpBan13PtQf6w==",
129
"dev": true,
130
"requires": {
131
"delegates": "^1.0.0",
132
"readable-stream": "^2.0.6"
@@ -142,13 +418,10 @@
142
}
143
},
144
"arr-diff": {
145
- "version": "2.0.0",
146
- "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-2.0.0.tgz",
147
- "integrity": "sha1-jzuCf5Vai9ZpaX5KQlasPOrjVs8=",
148
- "dev": true,
149
- "requires": {
150
- "arr-flatten": "^1.0.1"
151
- }
152
},
153
"arr-flatten": {
154
"version": "1.1.0",
@@ -156,12 +429,24 @@
156
"integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==",
157
"dev": true
158
},
159
"array-differ": {
160
"version": "1.0.0",
161
"resolved": "https://registry.npmjs.org/array-differ/-/array-differ-1.0.0.tgz",
162
"integrity": "sha1-7/UuN1gknTO+QCuLuOVkuytdQDE=",
163
"dev": true
164
},
165
"array-filter": {
166
"version": "0.0.1",
167
"resolved": "https://registry.npmjs.org/array-filter/-/array-filter-0.0.1.tgz",
@@ -186,6 +471,12 @@
186
"integrity": "sha1-FziZ0//Rx9k4PkR5Ul2+J4yrXys=",
187
"dev": true
188
},
189
"array-union": {
190
"version": "1.0.2",
191
"resolved": "https://registry.npmjs.org/array-union/-/array-union-1.0.2.tgz",
@@ -202,9 +493,9 @@
202
"dev": true
203
},
204
"array-unique": {
205
- "version": "0.2.1",
206
- "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.2.1.tgz",
207
- "integrity": "sha1-odl8yvy8JiXMcPrc6zalDFiwGlM=",
208
"dev": true
209
},
210
"arrify": {
@@ -213,12 +504,16 @@
213
"integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=",
214
"dev": true
215
},
216
"asn1": {
217
"version": "0.2.3",
218
"resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.3.tgz",
219
"integrity": "sha1-2sh4dxPJlmhJ/IGAd36+nB3fO4Y=",
220
- "dev": true,
221
- "optional": true
222
},
223
"asn1.js": {
224
"version": "4.10.1",
@@ -263,14 +558,11 @@
263
"integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=",
264
"dev": true
265
},
266
- "astw": {
267
- "version": "2.2.0",
268
- "resolved": "https://registry.npmjs.org/astw/-/astw-2.2.0.tgz",
269
- "integrity": "sha1-e9QXhNMkk5h66yOba04cV6hzuRc=",
270
- "dev": true,
271
- "requires": {
272
- "acorn": "^4.0.3"
273
- }
274
},
275
"async": {
276
"version": "2.6.1",
@@ -282,54 +574,137 @@
282
}
283
},
284
"async-each": {
285
- "version": "1.0.1",
286
- "resolved": "https://registry.npmjs.org/async-each/-/async-each-1.0.1.tgz",
287
- "integrity": "sha1-GdOGodntxufByF04iu28xW0zYC0=",
288
"dev": true
289
},
290
"asynckit": {
291
"version": "0.4.0",
292
"resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
293
"integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=",
294
- "dev": true,
295
- "optional": true
296
},
297
"autoprefixer": {
298
- "version": "9.0.1",
299
- "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-9.0.1.tgz",
300
- "integrity": "sha512-ytUcgSKu1mZh8pCJq54BkaK7ijigK+nhqVmu8PYOR00letCkrU71qTfKnzhQgn7by/QJvlJGUAofMt+jyXJTxA==",
301
"dev": true,
302
"requires": {
303
- "browserslist": "^4.0.1",
304
- "caniuse-lite": "^1.0.30000865",
305
"normalize-range": "^0.1.2",
306
"num2fraction": "^1.2.2",
307
- "postcss": "^7.0.1",
308
- "postcss-value-parser": "^3.2.3"
309
},
310
"dependencies": {
311
"browserslist": {
312
- "version": "4.0.1",
313
- "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.0.1.tgz",
314
- "integrity": "sha512-QqiiIWchEIkney3wY53/huI7ZErouNAdvOkjorUALAwRcu3tEwOV3Sh6He0DnP38mz1JjBpCBb50jQBmaYuHPw==",
315
"dev": true,
316
"requires": {
317
- "caniuse-lite": "^1.0.30000865",
318
- "electron-to-chromium": "^1.3.52",
319
- "node-releases": "^1.0.0-alpha.10"
320
}
321
},
322
"caniuse-lite": {
323
- "version": "1.0.30000865",
324
- "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30000865.tgz",
325
- "integrity": "sha512-vs79o1mOSKRGv/1pSkp4EXgl4ZviWeYReXw60XfacPU64uQWZwJT6vZNmxRF9O+6zu71sJwMxLK5JXxbzuVrLw==",
326
"dev": true
327
},
328
"electron-to-chromium": {
329
- "version": "1.3.52",
330
- "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.52.tgz",
331
- "integrity": "sha1-0tnxJwuko7lnuDHEDvcftNmrXOA=",
332
"dev": true
333
}
334
}
335
},
@@ -337,13 +712,12 @@
337
"version": "0.7.0",
338
"resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz",
339
"integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=",
340
- "dev": true,
341
- "optional": true
342
},
343
"aws4": {
344
- "version": "1.7.0",
345
- "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.7.0.tgz",
346
- "integrity": "sha512-32NDda82rhwD9/JBCCkB+MRYDp0oSvlo2IL6rQWA10PQi7tDUM3eqMSltXmY+Oyl/7N3P3qNtAlv7X0d9bI28w==",
347
"dev": true,
348
"optional": true
349
},
@@ -1156,78 +1530,137 @@
1156
"integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=",
1157
"dev": true
1158
},
1159
- "base64-js": {
1160
- "version": "1.3.0",
1161
- "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.3.0.tgz",
1162
- "integrity": "sha512-ccav/yGvoa80BQDljCxsmmQ3Xvx60/UpBIij5QN21W3wBi/hhIC9OoO+KLpu9IJTS9j4DRVJ3aDDF9cMSoa2lw==",
1163
- "dev": true
1164
- },
1165
- "bcrypt-pbkdf": {
1166
- "version": "1.0.1",
1167
- "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.1.tgz",
1168
- "integrity": "sha1-Y7xdy2EzG5K8Bf1SiVPDNGKgb40=",
1169
- "dev": true,
1170
- "optional": true,
1171
- "requires": {
1172
- "tweetnacl": "^0.14.3"
1173
- }
1174
- },
1175
- "binary-extensions": {
1176
- "version": "1.11.0",
1177
- "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-1.11.0.tgz",
1178
- "integrity": "sha1-RqoXUftqL5PuXmibsQh9SxTGwgU=",
1179
- "dev": true
1180
- },
1181
- "bl": {
1182
- "version": "1.2.2",
1183
- "resolved": "https://registry.npmjs.org/bl/-/bl-1.2.2.tgz",
1184
- "integrity": "sha512-e8tQYnZodmebYDWGH7KMRvtzKXaJHx3BbilrgZCfvyLUYdKpK1t5PSPmpkny/SgiTSCnjfLW7v5rlONXVFkQEA==",
1185
"dev": true,
1186
"requires": {
1187
- "readable-stream": "^2.3.5",
1188
- "safe-buffer": "^5.1.1"
1189
- }
1190
- },
1191
- "block-stream": {
1192
- "version": "0.0.9",
1193
- "resolved": "https://registry.npmjs.org/block-stream/-/block-stream-0.0.9.tgz",
1194
- "integrity": "sha1-E+v+d4oDIFz+A3UUgeu0szAMEmo=",
1195
- "dev": true,
1196
"optional": true,
1197
"requires": {
1198
"inherits": "~2.0.0"
1199
}
1200
},
1201
"bn.js": {
1202
"version": "4.11.8",
1203
"resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.8.tgz",
1204
"integrity": "sha512-ItfYfPLkWHUjckQCk8xC+LwxgK8NYcXywGigJgSwOP8Y2iyWT4f2vsZnoOXTTbo+o5yXmIUJ4gn5538SO5S3gA==",
1205
"dev": true
1206
},
1207
- "body-parser": {
1208
- "version": "1.14.2",
1209
- "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.14.2.tgz",
1210
- "integrity": "sha1-EBXLH+LEQ4WCWVgdtTMy+NDPUPk=",
1211
"dev": true,
1212
"requires": {
1213
- "bytes": "2.2.0",
1214
- "content-type": "~1.0.1",
1215
- "debug": "~2.2.0",
1216
- "depd": "~1.1.0",
1217
- "http-errors": "~1.3.1",
1218
- "iconv-lite": "0.4.13",
1219
- "on-finished": "~2.3.0",
1220
- "qs": "5.2.0",
1221
- "raw-body": "~2.1.5",
1222
- "type-is": "~1.6.10"
1223
- },
1224
- "dependencies": {
1225
- "qs": {
1226
- "version": "5.2.0",
1227
- "resolved": "https://registry.npmjs.org/qs/-/qs-5.2.0.tgz",
1228
- "integrity": "sha1-qfMRQq9GjLcrJbMBNrokVoNJFr4=",
1229
- "dev": true
1230
- }
1231
}
1232
},
1233
"boolbase": {
@@ -1247,14 +1680,32 @@
1247
}
1248
},
1249
"braces": {
1250
- "version": "1.8.5",
1251
- "resolved": "https://registry.npmjs.org/braces/-/braces-1.8.5.tgz",
1252
- "integrity": "sha1-uneWLhLf+WnWt2cR6RS3N4V79qc=",
1253
"dev": true,
1254
"requires": {
1255
- "expand-range": "^1.8.1",
1256
- "preserve": "^0.2.0",
1257
- "repeat-element": "^1.1.2"
1258
}
1259
},
1260
"brorand": {
@@ -1278,9 +1729,9 @@
1278
}
1279
},
1280
"browser-resolve": {
1281
- "version": "1.11.2",
1282
- "resolved": "https://registry.npmjs.org/browser-resolve/-/browser-resolve-1.11.2.tgz",
1283
- "integrity": "sha1-j/CbCixCFxihBRwmCzLkj0QpOM4=",
1284
"dev": true,
1285
"requires": {
1286
"resolve": "1.1.7"
@@ -1295,9 +1746,9 @@
1295
}
1296
},
1297
"browserify": {
1298
- "version": "16.2.2",
1299
- "resolved": "https://registry.npmjs.org/browserify/-/browserify-16.2.2.tgz",
1300
- "integrity": "sha512-fMES05wq1Oukts6ksGUU2TMVHHp06LyQt0SIwbXIHm7waSrQmNBZePsU0iM/4f94zbvb/wHma+D1YrdzWYnF/A==",
1301
"dev": true,
1302
"requires": {
1303
"JSONStream": "^1.0.3",
@@ -1348,62 +1799,6 @@
1348
"util": "~0.10.1",
1349
"vm-browserify": "^1.0.0",
1350
"xtend": "^4.0.0"
1351
- },
1352
- "dependencies": {
1353
- "browserify-zlib": {
1354
- "version": "0.2.0",
1355
- "resolved": "https://registry.npmjs.org/browserify-zlib/-/browserify-zlib-0.2.0.tgz",
1356
- "integrity": "sha512-Z942RysHXmJrhqk88FmKBVq/v5tqmSkDz7p54G/MGyjMnCFFnC79XWNbg+Vta8W6Wb2qtSZTSxIGkJrRpCFEiA==",
1357
- "dev": true,
1358
- "requires": {
1359
- "pako": "~1.0.5"
1360
- }
1361
- },
1362
- "isarray": {
1363
- "version": "1.0.0",
1364
- "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
1365
- "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=",
1366
- "dev": true
1367
- },
1368
- "pako": {
1369
- "version": "1.0.6",
1370
- "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.6.tgz",
1371
- "integrity": "sha512-lQe48YPsMJAig+yngZ87Lus+NF+3mtu7DVOBu6b/gHO1YpKwIj5AWjZ/TOS7i46HD/UixzWb1zeWDZfGZ3iYcg==",
1372
- "dev": true
1373
- },
1374
- "readable-stream": {
1375
- "version": "2.3.6",
1376
- "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz",
1377
- "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==",
1378
- "dev": true,
1379
- "requires": {
1380
- "core-util-is": "~1.0.0",
1381
- "inherits": "~2.0.3",
1382
- "isarray": "~1.0.0",
1383
- "process-nextick-args": "~2.0.0",
1384
- "safe-buffer": "~5.1.1",
1385
- "string_decoder": "~1.1.1",
1386
- "util-deprecate": "~1.0.1"
1387
- }
1388
- },
1389
- "resolve": {
1390
- "version": "1.7.1",
1391
- "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.7.1.tgz",
1392
- "integrity": "sha512-c7rwLofp8g1U+h1KNyHL/jicrKg1Ek4q+Lr33AL65uZTinUZHe30D5HlyN5V9NW0JX1D5dXQ4jqW5l7Sy/kGfw==",
1393
- "dev": true,
1394
- "requires": {
1395
- "path-parse": "^1.0.5"
1396
- }
1397
- },
1398
- "string_decoder": {
1399
- "version": "1.1.1",
1400
- "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz",
1401
- "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",
1402
- "dev": true,
1403
- "requires": {
1404
- "safe-buffer": "~5.1.0"
1405
- }
1406
- }
1407
}
1408
},
1409
"browserify-aes": {
@@ -1451,14 +1846,23 @@
1451
}
1452
},
1453
"browserify-des": {
1454
- "version": "1.0.1",
1455
- "resolved": "https://registry.npmjs.org/browserify-des/-/browserify-des-1.0.1.tgz",
1456
- "integrity": "sha512-zy0Cobe3hhgpiOM32Tj7KQ3Vl91m0njwsjzZQK1L+JDf11dzP9qIvjreVinsvXrgfjhStXwUWAEpB9D7Gwmayw==",
1457
"dev": true,
1458
"requires": {
1459
"cipher-base": "^1.0.1",
1460
"des.js": "^1.0.0",
1461
- "inherits": "^2.0.1"
1462
}
1463
},
1464
"browserify-incremental": {
@@ -1526,6 +1930,15 @@
1526
"through": "^2.3.7"
1527
}
1528
},
1529
"browserslist": {
1530
"version": "3.2.8",
1531
"resolved": "https://registry.npmjs.org/browserslist/-/browserslist-3.2.8.tgz",
@@ -1537,9 +1950,9 @@
1537
}
1538
},
1539
"buffer": {
1540
- "version": "5.1.0",
1541
- "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.1.0.tgz",
1542
- "integrity": "sha512-YkIRgwsZwJWTnyQrsBTWefizHh+8GYj3kbL1BTiAQ/9pwpino0G7B2gp5tx/FUBqUlvtxV85KNR3mwfAtv15Yw==",
1543
"dev": true,
1544
"requires": {
1545
"base64-js": "^1.0.2",
@@ -1574,18 +1987,18 @@
1574
"integrity": "sha1-+PeLdniYiO858gXNY39o5wISKyw=",
1575
"dev": true
1576
},
1577
"buffer-xor": {
1578
"version": "1.0.3",
1579
"resolved": "https://registry.npmjs.org/buffer-xor/-/buffer-xor-1.0.3.tgz",
1580
"integrity": "sha1-JuYe0UIvtw3ULm42cp7VHYVf6Nk=",
1581
"dev": true
1582
},
1583
- "builtin-modules": {
1584
- "version": "1.1.1",
1585
- "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz",
1586
- "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=",
1587
- "dev": true
1588
- },
1589
"builtin-status-codes": {
1590
"version": "3.0.0",
1591
"resolved": "https://registry.npmjs.org/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz",
@@ -1593,15 +2006,73 @@
1593
"dev": true
1594
},
1595
"bytes": {
1596
- "version": "2.2.0",
1597
- "resolved": "https://registry.npmjs.org/bytes/-/bytes-2.2.0.tgz",
1598
- "integrity": "sha1-/TVGSkA/b5EXwt42Cez/nK4ABYg=",
1599
"dev": true
1600
},
1601
- "cached-path-relative": {
1602
"version": "1.0.1",
1603
- "resolved": "https://registry.npmjs.org/cached-path-relative/-/cached-path-relative-1.0.1.tgz",
1604
- "integrity": "sha1-0JxLUoAKpMB44t2BqGmqyQ0uVOc=",
1605
"dev": true
1606
},
1607
"camelcase": {
@@ -1633,28 +2104,28 @@
1633
},
1634
"dependencies": {
1635
"browserslist": {
1636
- "version": "4.0.1",
1637
- "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.0.1.tgz",
1638
- "integrity": "sha512-QqiiIWchEIkney3wY53/huI7ZErouNAdvOkjorUALAwRcu3tEwOV3Sh6He0DnP38mz1JjBpCBb50jQBmaYuHPw==",
1639
"dev": true,
1640
"requires": {
1641
- "caniuse-lite": "^1.0.30000865",
1642
- "electron-to-chromium": "^1.3.52",
1643
- "node-releases": "^1.0.0-alpha.10"
1644
},
1645
"dependencies": {
1646
"caniuse-lite": {
1647
- "version": "1.0.30000865",
1648
- "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30000865.tgz",
1649
- "integrity": "sha512-vs79o1mOSKRGv/1pSkp4EXgl4ZviWeYReXw60XfacPU64uQWZwJT6vZNmxRF9O+6zu71sJwMxLK5JXxbzuVrLw==",
1650
"dev": true
1651
}
1652
}
1653
},
1654
"electron-to-chromium": {
1655
- "version": "1.3.52",
1656
- "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.52.tgz",
1657
- "integrity": "sha1-0tnxJwuko7lnuDHEDvcftNmrXOA=",
1658
"dev": true
1659
},
1660
"lodash.memoize": {
@@ -1675,8 +2146,7 @@
1675
"version": "0.12.0",
1676
"resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz",
1677
"integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=",
1678
- "dev": true,
1679
- "optional": true
1680
},
1681
"chalk": {
1682
"version": "1.1.3",
@@ -1691,30 +2161,59 @@
1691
"supports-color": "^2.0.0"
1692
}
1693
},
1694
"chokidar": {
1695
- "version": "1.7.0",
1696
- "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-1.7.0.tgz",
1697
- "integrity": "sha1-eY5ol3gVHIB2tLNg5e3SjNortGg=",
1698
"dev": true,
1699
"requires": {
1700
- "anymatch": "^1.3.0",
1701
- "async-each": "^1.0.0",
1702
- "fsevents": "^1.0.0",
1703
- "glob-parent": "^2.0.0",
1704
- "inherits": "^2.0.1",
1705
"is-binary-path": "^1.0.0",
1706
- "is-glob": "^2.0.0",
1707
"path-is-absolute": "^1.0.0",
1708
- "readdirp": "^2.0.0"
1709
}
1710
},
1711
"chownr": {
1712
- "version": "1.0.1",
1713
- "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.0.1.tgz",
1714
- "integrity": "sha1-4qdQQqlVGQi+vSW4Uj1fl2nXkYE=",
1715
"dev": true,
1716
"optional": true
1717
},
1718
"cipher-base": {
1719
"version": "1.0.4",
1720
"resolved": "https://registry.npmjs.org/cipher-base/-/cipher-base-1.0.4.tgz",
@@ -1725,66 +2224,157 @@
1725
"safe-buffer": "^5.0.1"
1726
}
1727
},
1728
- "cli-color": {
1729
- "version": "0.2.3",
1730
- "resolved": "https://registry.npmjs.org/cli-color/-/cli-color-0.2.3.tgz",
1731
- "integrity": "sha1-CiXOrlpqFgK+f3fShWPDZwAnTog=",
1732
"dev": true,
1733
"requires": {
1734
- "es5-ext": "~0.9.2",
1735
- "memoizee": "~0.2.5"
1736
}
1737
},
1738
- "clipboard": {
1739
- "version": "2.0.1",
1740
- "resolved": "https://registry.npmjs.org/clipboard/-/clipboard-2.0.1.tgz",
1741
- "integrity": "sha512-7yhQBmtN+uYZmfRjjVjKa0dZdWuabzpSKGtyQZN+9C8xlC788SSJjOHWh7tzurfwTqTD5UDYAhIv5fRJg3sHjQ==",
1742
"requires": {
1743
- "good-listener": "^1.2.2",
1744
- "select": "^1.1.2",
1745
- "tiny-emitter": "^2.0.0"
1746
}
1747
},
1748
- "co": {
1749
- "version": "4.6.0",
1750
- "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz",
1751
- "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=",
1752
- "dev": true,
1753
- "optional": true
1754
},
1755
- "coa": {
1756
- "version": "2.0.1",
1757
- "resolved": "https://registry.npmjs.org/coa/-/coa-2.0.1.tgz",
1758
- "integrity": "sha512-5wfTTO8E2/ja4jFSxePXlG5nRu5bBtL/r1HCIpJW/lzT6yDtKl0u0Z4o/Vpz32IpKmBn7HerheEZQgA9N2DarQ==",
1759
"dev": true,
1760
"requires": {
1761
- "q": "^1.1.2"
1762
}
1763
},
1764
- "code-point-at": {
1765
- "version": "1.1.0",
1766
- "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz",
1767
- "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=",
1768
- "dev": true
1769
- },
1770
- "coffeescript": {
1771
- "version": "1.10.0",
1772
- "resolved": "https://registry.npmjs.org/coffeescript/-/coffeescript-1.10.0.tgz",
1773
- "integrity": "sha1-56qDAZF+9iGzXYo580jc3R234z4=",
1774
"dev": true
1775
},
1776
- "color": {
1777
- "version": "3.0.0",
1778
- "resolved": "https://registry.npmjs.org/color/-/color-3.0.0.tgz",
1779
- "integrity": "sha512-jCpd5+s0s0t7p3pHQKpnJ0TpQKKdleP71LWcA0aqiljpiuAkOSUFN/dyH8ZwF0hRmFlrIuRhufds1QyEP9EB+w==",
1780
- "dev": true,
1781
"requires": {
1782
- "color-convert": "^1.9.1",
1783
- "color-string": "^1.5.2"
1784
}
1785
},
1786
- "color-convert": {
1787
- "version": "1.9.1",
1788
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.1.tgz",
1789
"integrity": "sha512-mjGanIiwQJskCC18rPR6OmrZ6fm2Lc7PeGFYwCmy5J34wC6F1PzdGL6xeMfmgicfYcNLGuVFA3WzXtIDCQSZxQ==",
1790
"dev": true,
@@ -1799,9 +2389,9 @@
1799
"dev": true
1800
},
1801
"color-string": {
1802
- "version": "1.5.2",
1803
- "resolved": "https://registry.npmjs.org/color-string/-/color-string-1.5.2.tgz",
1804
- "integrity": "sha1-JuRYFLw8mny9Z1FkikFDRRSnc6k=",
1805
"dev": true,
1806
"requires": {
1807
"color-name": "^1.0.0",
@@ -1824,14 +2414,6 @@
1824
"inline-source-map": "~0.6.0",
1825
"lodash.memoize": "~3.0.3",
1826
"source-map": "~0.5.3"
1827
- },
1828
- "dependencies": {
1829
- "source-map": {