Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 1.7.8 #61

Merged
merged 4 commits into from
Dec 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"require-dev": {
"slowprog/composer-copy-file": "~0.3",
"woocommerce/action-scheduler": "^3.5",
"wpackio/enqueue": "^3.4"
"wpackio/enqueue": "^3.5"
},
"config": {
"allow-plugins": {
Expand Down
14 changes: 7 additions & 7 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/focalpoint/admin-0d547173.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/focalpoint/admin-7cb5b1a5.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/focalpoint/runtime-0d98a8a8.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions lib/wpackio/enqueue/inc/Enqueue.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,13 @@ private function sanitize_path( $path ) {
* and dynamic imports possible.
*/
public function printPublicPath() {
$publicPath = $this->getUrl( '' );
$publicPath = apply_filters( 'wpackio_print_public_path', $this->getUrl( '' ), $this->appName, $this->outputPath );
$jsCode = 'window.__wpackIo' . $this->sanitize_path( $this->appName . $this->outputPath ) . '=\'' . esc_js( $publicPath ) . '\';';
echo '<script type="text/javascript">/* wpack.io publicPath */' . $jsCode . '</script>';

// Enqueue an empty script so we can add an inline script that allows for filtering via `wp_inline_script_attributes`
\wp_register_script("{$this->appName}/publicPath", '', [], false, true);
\wp_enqueue_script("{$this->appName}/publicPath");
\wp_add_inline_script("{$this->appName}/publicPath", "/* wpack.io publicPath */ {$jsCode}");
}

/**
Expand Down
50 changes: 25 additions & 25 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "responsive-pics",
"version": "1.7.7",
"version": "1.7.8",
"private": true,
"scripts": {
"bootstrap": "wpackio-scripts bootstrap",
Expand All @@ -11,8 +11,8 @@
"devDependencies": {
"@wpackio/scripts": "^6.4.0",
"cssnano": "^5.1.14",
"postcss": "^8.4.31",
"sass": "^1.56.1"
"postcss": "^8.4.32",
"sass": "^1.69.5"
},
"dependencies": {
"@wpackio/entrypoint": "^6.4.0"
Expand Down
4 changes: 2 additions & 2 deletions responsive-pics.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Plugin URI: https://responsive.pics
Description: Responsive Pics is a Wordpress tool for resizing images on the fly.
Author: Clarify (previously Booreiland)
Version: 1.7.7
Version: 1.7.8
Author URI: https://clarify.nl
Copyright: Wimer Hazenberg, Toine Kamps
*/
Expand Down Expand Up @@ -38,7 +38,7 @@ function __construct() {

// Variables
define('RESPONSIVE_PICS_DIR', plugin_dir_path(__FILE__));
define('RESPONSIVE_PICS_VERSION', '1.7.7');
define('RESPONSIVE_PICS_VERSION', '1.7.8');
define('RESPONSIVE_PICS_TEXTDOMAIN', 'responsive-pics');

// Init
Expand Down