From c5dbbc69fbb4019ef7b45d1c5888cc89ad86979b Mon Sep 17 00:00:00 2001 From: gsarig Date: Mon, 27 May 2024 01:10:20 +0300 Subject: [PATCH] Fixes a missing file bug --- build/block/block.json | 144 +++++++++++++++++++++++++++++++++++++++++ build/index-rtl.css | 4 ++ ootb-openstreetmap.php | 4 +- readme.txt | 2 +- 4 files changed, 151 insertions(+), 3 deletions(-) create mode 100644 build/block/block.json create mode 100644 build/index-rtl.css diff --git a/build/block/block.json b/build/block/block.json new file mode 100644 index 0000000..0eaf600 --- /dev/null +++ b/build/block/block.json @@ -0,0 +1,144 @@ +{ + "$schema": "https://schemas.wp.org/trunk/block.json", + "apiVersion": 2, + "name": "ootb/openstreetmap", + "version": "2.4.1", + "title": "OpenStreetMap by Out of the Block", + "category": "common", + "icon": "location-alt", + "description": "A map block for the Gutenberg Editor using OpenStreetMaps and Leaflet that needs no API keys and works out of the box.", + "supports": { + "html": false, + "align": [ + "wide", + "full" + ] + }, + "keywords": [ + "Map block", + "Open Street Maps", + "Contact", + "Locations" + ], + "attributes": { + "mapHeight": { + "type": "integer", + "default": 400 + }, + "markers": { + "type": "array", + "default": [] + }, + "zoom": { + "type": "integer", + "default": 8 + }, + "minZoom": { + "type": "integer", + "default": 2 + }, + "maxZoom": { + "type": "integer", + "default": 18 + }, + "dragging": { + "type": "boolean", + "default": true + }, + "touchZoom": { + "type": "boolean", + "default": true + }, + "doubleClickZoom": { + "type": "boolean", + "default": true + }, + "scrollWheelZoom": { + "type": "boolean", + "default": true + }, + "defaultIcon": { + "type": "object", + "default": null + }, + "keywords": { + "type": "string", + "default": "" + }, + "showDefaultBounds": { + "type": "boolean", + "default": true + }, + "bounds": { + "type": "array", + "default": [ + [ + 37.97155174977503, + 23.72656345367432 + ] + ] + }, + "provider": { + "type": "string", + "default": "openstreetmap" + }, + "mapboxStyleUrl": { + "type": "string", + "default": "" + }, + "mapType": { + "type": "string", + "default": "marker" + }, + "showMarkers": { + "type": "boolean", + "default": true + }, + "shapeColor": { + "type": "string", + "default": "#008EFF" + }, + "shapeWeight": { + "type": "integer", + "default": 3 + }, + "shapeText": { + "type": "string", + "default": "" + }, + "isDraggingMarker": { + "type": "boolean", + "default": false + }, + "openAImode": { + "type": "string", + "default": "" + }, + "queryArgs": { + "type": "object", + "default": { + "post_type": "post" + } + }, + "serverSideRender": { + "type": "boolean", + "default": false + }, + "showMapData": { + "type": "boolean", + "default": true + }, + "showSearchBox": { + "type": "boolean", + "default": true + }, + "queryCustomFields": { + "type": "boolean", + "default": false + } + }, + "textdomain": "ootb-openstreetmap", + "editorScript": "file:../index.js", + "editorStyle": "file:../index.css", + "style": "file:./style-index.css" +} \ No newline at end of file diff --git a/build/index-rtl.css b/build/index-rtl.css new file mode 100644 index 0000000..92adfd0 --- /dev/null +++ b/build/index-rtl.css @@ -0,0 +1,4 @@ +.ootb-openstreetmap--custom-fields-container{position:relative}.ootb-openstreetmap--custom-fields-container .ootb-openstreetmap--searchbox{opacity:1;top:.5rem}.ootb-openstreetmap--custom-fields-container .ootb-openstreetmap--search-results{background:#fff;border:1px solid #1e1e1e;max-height:calc(100% - 70px);max-width:calc(100% - 5rem);opacity:1;overflow-y:auto;position:absolute;left:.5rem;text-align:right;top:48px;transition:all .2s ease-in-out;width:280px;z-index:999}.ootb-openstreetmap--custom-fields-container .ootb-openstreetmap--search-results .components-button{height:auto;text-align:right;width:100%}.ootb-openstreetmap--custom-fields-container.pinning .leaflet-container,.ootb-openstreetmap--custom-fields-container.pinning .leaflet-container .leaflet-marker-pane img{cursor:crosshair} +.leaflet-image-layer,.leaflet-layer,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-pane,.leaflet-pane>canvas,.leaflet-pane>svg,.leaflet-tile,.leaflet-tile-container,.leaflet-zoom-box{right:0;position:absolute;top:0}.leaflet-container{overflow:hidden}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::-moz-selection{background:transparent}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{height:1600px;-webkit-transform-origin:100% 0;width:1600px}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-height:none!important;max-width:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer{max-height:none!important;max-width:none!important;padding:0;width:auto}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{box-sizing:border-box;height:0;width:0;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{height:1px;width:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{pointer-events:visiblePainted;pointer-events:auto;position:relative;z-index:800}.leaflet-bottom,.leaflet-top{pointer-events:none;position:absolute;z-index:1000}.leaflet-top{top:0}.leaflet-right{left:0}.leaflet-bottom{bottom:0}.leaflet-left{right:0}.leaflet-control{clear:both;float:right}.leaflet-right .leaflet-control{float:left}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-right:10px}.leaflet-right .leaflet-control{margin-left:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{transform-origin:100% 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-pan-anim .leaflet-tile,.leaflet-zoom-anim .leaflet-tile{transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-control,.leaflet-popup-pane{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:grabbing}.leaflet-image-layer,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-image-layer.leaflet-interactive,.leaflet-marker-icon.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{background:hsla(0,0%,100%,.5);border:2px dotted #38f}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{border-radius:4px;box-shadow:0 1px 5px rgba(0,0,0,.65)}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;color:#000;display:block;height:26px;line-height:26px;text-align:center;text-decoration:none;width:26px}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:focus,.leaflet-bar a:hover{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-right-radius:4px;border-top-left-radius:4px}.leaflet-bar a:last-child{border-bottom:none;border-bottom-right-radius:4px;border-bottom-left-radius:4px}.leaflet-bar a.leaflet-disabled{background-color:#f4f4f4;color:#bbb;cursor:default}.leaflet-touch .leaflet-bar a{height:30px;line-height:30px;width:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-right-radius:2px;border-top-left-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-right-radius:2px;border-bottom-left-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{background:#fff;border-radius:5px;box-shadow:0 1px 5px rgba(0,0,0,.4)}.leaflet-control-layers-toggle{background-image:url(images/layers.416d9136.png);height:36px;width:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(images/layers-2x.8f2c4d11.png);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{height:44px;width:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{background:#fff;color:#333;padding:6px 6px 6px 10px}.leaflet-control-layers-scrollbar{overflow-x:hidden;overflow-y:scroll;padding-left:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{border-top:1px solid #ddd;height:0;margin:5px -6px 5px -10px}.leaflet-default-icon-path{background-image:url(images/marker-icon.2b3e1faf.png)}.leaflet-container .leaflet-control-attribution{background:#fff;background:hsla(0,0%,100%,.8);margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{color:#333;line-height:1.4;padding:0 5px}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:focus,.leaflet-control-attribution a:hover{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;height:.6669em;vertical-align:baseline!important;width:1em}.leaflet-left .leaflet-control-scale{margin-right:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{background:hsla(0,0%,100%,.8);border:2px solid #777;border-top:none;box-sizing:border-box;line-height:1.1;padding:2px 5px 1px;text-shadow:-1px 1px #fff;white-space:nowrap}.leaflet-control-scale-line:not(:first-child){border-bottom:none;border-top:2px solid #777;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-bar,.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers{box-shadow:none}.leaflet-touch .leaflet-bar,.leaflet-touch .leaflet-control-layers{background-clip:padding-box;border:2px solid rgba(0,0,0,.2)}.leaflet-popup{margin-bottom:20px;position:absolute;text-align:center}.leaflet-popup-content-wrapper{border-radius:12px;padding:1px;text-align:right}.leaflet-popup-content{font-size:13px;font-size:1.08333em;line-height:1.3;margin:13px 20px 13px 24px;min-height:1px}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{height:20px;right:50%;margin-right:-20px;margin-top:-1px;overflow:hidden;pointer-events:none;position:absolute;width:40px}.leaflet-popup-tip{height:17px;margin:-10px auto 0;padding:1px;pointer-events:auto;transform:rotate(-45deg);width:17px}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#fff;box-shadow:0 3px 14px rgba(0,0,0,.4);color:#333}.leaflet-container a.leaflet-popup-close-button{background:transparent;border:none;color:#757575;font:16px/24px Tahoma,Verdana,sans-serif;height:24px;position:absolute;left:0;text-align:center;text-decoration:none;top:0;width:24px}.leaflet-container a.leaflet-popup-close-button:focus,.leaflet-container a.leaflet-popup-close-button:hover{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678,M12=0.70710678,M21=-0.70710678,M22=0.70710678);margin:0 auto;width:24px}.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{background-color:#fff;border:1px solid #fff;border-radius:3px;box-shadow:0 1px 3px rgba(0,0,0,.4);color:#222;padding:6px;pointer-events:none;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before,.leaflet-tooltip-top:before{background:transparent;border:6px solid transparent;content:"";pointer-events:none;position:absolute}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{right:50%;margin-right:-6px}.leaflet-tooltip-top:before{border-top-color:#fff;bottom:0;margin-bottom:-12px}.leaflet-tooltip-bottom:before{border-bottom-color:#fff;margin-right:-6px;margin-top:-12px;top:0}.leaflet-tooltip-left{margin-right:-6px}.leaflet-tooltip-right{margin-right:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{margin-top:-6px;top:50%}.leaflet-tooltip-left:before{border-right-color:#fff;margin-left:-12px;left:0}.leaflet-tooltip-right:before{border-left-color:#fff;right:0;margin-right:-12px}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}} +.block-editor-block-list__block[data-type="ootb/openstreetmap"]{z-index:1}.block-editor-block-list__block[data-type="ootb/openstreetmap"].is-selected .ootb-openstreetmap--search-results{opacity:1;top:48px}.block-editor-block-list__block[data-type="ootb/openstreetmap"].is-selected .ootb-openstreetmap--searchbox{opacity:1;top:.5rem}.wp-block-ootb-openstreetmap{position:relative}.wp-block-ootb-openstreetmap.pinning .leaflet-container,.wp-block-ootb-openstreetmap.pinning .leaflet-container .leaflet-marker-pane img{cursor:crosshair}.wp-block-ootb-openstreetmap .leaflet-popup-content{width:150px}.wp-block-ootb-openstreetmap .leaflet-marker-icon{animation:animate-marker .4s ease-in-out;top:0}.ootb-openstreetmap--icon{border:2px dashed #ddd;margin-bottom:.5rem;text-align:center}.ootb-openstreetmap--icon img{margin:.5rem auto}.gmp-openstreetmap--buttons{border-top:1px solid #ddd;display:flex;justify-content:space-around;margin:0 .5rem;padding:.7rem 0}.ootb-openstreetmap--alert{background:rgba(0,0,0,.6);border-radius:5px;bottom:1em;color:#fff;font-size:13px;right:1em;padding:.5em;position:absolute;text-align:center;width:calc(100% - 3em);z-index:9999}.wp-block-ootb-openstreetmap div.ootb-openstreetmap--alert a{color:#fff}.ootb-openstreetmap--alert.alert-active{background:rgba(23,137,7,.84)}.ootb-openstreetmap--alert.alert-error{background:rgba(198,0,0,.84)}.ootb-openstreetmap--marker-icon-container{align-items:flex-end;border-top:1px solid #ccc;display:flex;flex-wrap:wrap;justify-content:flex-end;margin-top:1rem;padding-top:.2rem}.ootb-openstreetmap--marker-icon-container .gmp-openstreetmap--buttons .dashicon:before{font-size:16px}.leaflet-popup-content-wrapper .ootb-openstreetmap--icon{align-items:flex-end;border:none;display:flex;flex:1;justify-content:space-between;margin-bottom:0}.leaflet-popup-content-wrapper .gmp-openstreetmap--buttons{border-top:none;margin:0;padding:0}.leaflet-popup-content-wrapper .components-button{box-shadow:none}.ootb-openstreetmap--searchbox{background:#fff;border:1px solid #1e1e1e;color:#444;display:flex;max-width:calc(100% - 5rem);opacity:0;padding:0 .5rem 0 0;position:absolute;left:.5rem;top:0;transition:all .2s ease-in-out;width:280px;z-index:999}.ootb-openstreetmap--searchbox>div{flex:1}.ootb-openstreetmap--searchbox .components-base-control__field{margin-bottom:0}.ootb-openstreetmap--searchbox .components-text-control__input[type=text]{background:transparent;border:none;box-shadow:none;color:#000}.ootb-openstreetmap--searchbox.openai-active{border-color:#fff;border-radius:1em;box-shadow:-1px 2px 3px #aaa}.ootb-openstreetmap--searchbox.openai-active .dashicon.dashicons{color:#2aa3c5}.ootb-openstreetmap--searchbox svg.dashicon{fill:#000}.block-editor-block-list__block[data-type="ootb/openstreetmap"] .ootb-openstreetmap--search-results{background:#fff;border:1px solid #1e1e1e;max-height:calc(100% - 70px);max-width:calc(100% - 5rem);opacity:0;overflow-y:auto;position:absolute;left:.5rem;text-align:right;top:0;transition:all .2s ease-in-out;width:280px;z-index:999}.block-editor-block-list__block[data-type="ootb/openstreetmap"] .ootb-openstreetmap--search-results .components-button{height:auto;text-align:right;width:100%}@keyframes animate-marker{0%{top:-60px}50%{top:0}90%{top:-10px}to{top:0}}.wp-block-create-block-ootb-openstreetmap{border:1px dotted red}.ootb-server-side-rendered{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:rgba(0,0,0,.4);color:#fff;display:flex;flex-flow:column;height:100%;justify-content:center;right:0;position:absolute;text-shadow:-1px 1px 3px #000;top:0;width:100%;z-index:99999}.ootb-server-side-rendered span{text-align:center;width:100%}.ootb-server-side-rendered div{padding-top:1rem;text-align:center}.ootb-server-side-rendered button{box-shadow:-1px 1px 6px #000} +.ootb-openstreetmap--map{width:100%}.ootb-openstreetmap--map .leaflet-popup-content{width:150px}.ootb-openstreetmap--map .leaflet-popup-content p{margin:.5em 0} diff --git a/ootb-openstreetmap.php b/ootb-openstreetmap.php index d9395c5..60fd8a6 100644 --- a/ootb-openstreetmap.php +++ b/ootb-openstreetmap.php @@ -5,7 +5,7 @@ * Description: A map block for the Gutenberg Editor using OpenStreetMaps and Leaflet that needs no API keys and works out of the box. * Requires at least: 5.8.6 * Requires PHP: 7.4 - * Version: 2.8.0 + * Version: 2.8.1 * Author: Giorgos Sarigiannidis * Author URI: https://www.gsarigiannidis.gr * License: GPL-2.0-or-later @@ -21,7 +21,7 @@ define( 'OOTB_PLUGIN_BASENAME', plugin_basename( __FILE__ ) ); const OOTB_BLOCK_NAME = 'ootb/openstreetmap'; -const OOTB_VERSION = '2.8.0'; +const OOTB_VERSION = '2.8.1'; const OOTB_SCRIPT_VERSION = [ 'leaflet' => '1.9.4', 'leaflet-gesture-handling' => '1.4.4', diff --git a/readme.txt b/readme.txt index c3f88c8..cee085a 100644 --- a/readme.txt +++ b/readme.txt @@ -5,7 +5,7 @@ Tags: Map, OpenStreetMap, Leaflet, Google Maps, block Requires at least: 5.8.6 Tested up to: 6.5 Requires PHP: 7.4 -Stable tag: 2.8.0 +Stable tag: 2.8.1 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html