Plugin Directory

Changeset 3323344


Ignore:
Timestamp:
07/07/2025 08:56:40 AM (9 months ago)
Author:
livechat
Message:

Release of 5.0.6

Location:
livechat-elementor
Files:
2 added
24 edited

Legend:

Unmodified
Added
Removed
  • livechat-elementor/tags/5.0.6/changelog.txt

    r3323322 r3323344  
    11== Changelog ==
     2
     3= 5.0.6 =
     4* updated plugin name
     5
     6= 5.0.5 =
     7* added SKU property to cart tracking
     8
     9= 5.0.4 =
     10* fixed WooCommerce cart discounts return type
     11
     12= 5.0.3 =
     13* fixed WooCommerce cart tracking issue
    214
    315= 5.0.2 =
  • livechat-elementor/tags/5.0.6/includes/elementor-functions.php

    r3323322 r3323344  
    88namespace LiveChat;
    99
    10 use Elementor\Plugin;
    11 use LiveChat\Widgets\TextQualityBadgeWidget;
    12 
    1310/**
    1411 * Register Elementor categories
    1512 */
    1613function text_register_categories() {
    17     $elementor = Plugin::instance();
     14    $elementor = \Elementor\Plugin::instance();
    1815
    1916    $elementor->elements_manager->add_category(
  • livechat-elementor/tags/5.0.6/includes/functions.php

    r3323322 r3323344  
    99
    1010use stdClass;
    11 use WP_User;
    1211
    1312define( 'TEXT_TOKEN_DATA_DB_KEY', 'token_data' );
    14 
    15 /**
    16  * Get numeric value from string.
    17  *
    18  * @param string $value Stringified numeric value.
    19  * @return string
    20  */
    21 function get_numeric_value_from_string( string $value ): float {
    22     return floatval( preg_replace( '/[^\d\.]/', '', $value ) );
    23 }
    24 
    25 /**
    26  * Get the WooCommerce product variant title.
    27  *
    28  * @param array $variation The product variation.
    29  * @return string
    30  */
    31 function get_variant_title( array $variation ): string {
    32     $variant_title = '';
    33 
    34     foreach ( $variation as $attribute_name => $attribute_value ) {
    35         // Output the variation attribute values (e.g., "Large / black").
    36         $variant_title .= $attribute_value . ' / ';
    37     }
    38 
    39     // remove the last ' / '.
    40     return rtrim( $variant_title, ' / ' );
    41 }
    42 
    43 /**
    44  * Get the WooCommerce cart.
    45  *
    46  * @param \WC_Cart $cart The WooCommerce cart.
    47  * @param string   $currency The currency.
    48  * @return void
    49  */
    50 function text_get_cart( \WC_Cart $cart, string $currency ): void {
    51     $response = new stdClass();
    52 
    53     $response->currency = $currency;
    54     $response->total    = get_numeric_value_from_string( $cart->get_cart_contents_total() );
    55     $response->subtotal = get_numeric_value_from_string( $cart->get_subtotal() );
    56 
    57     $response->items = array();
    58 
    59     $items = $cart->get_cart_contents();
    60 
    61     $product_ids = array();
    62     foreach ( $items as $item ) {
    63         $product_ids[] = $item['product_id'];
    64     }
    65 
    66     $products = wc_get_products(
    67         array(
    68             'include' => $product_ids,
    69         )
    70     );
    71 
    72     foreach ( $items as $item ) {
    73         $product = $products[ array_search( $item['product_id'], array_column( $products, 'id' ), true ) ];
    74 
    75         $subtotal = $item['line_subtotal'];
    76         $value    = $item['line_total'];
    77 
    78         $discount = $subtotal - $value;
    79 
    80         $response->items[] = array(
    81             'id'                => $item['product_id'],
    82             'thumbnailUrl'      => get_the_post_thumbnail_url( $product->get_id(), 'shop_thumbnail' ),
    83             'title'             => $product->get_name(),
    84             'variantTitle'      => get_variant_title( $item['variation'] ),
    85             'variantId'         => $item['variation_id'],
    86             'discounts'         => array(
    87                 'amount' => $discount,
    88             ),
    89             'qty'               => $item['quantity'],
    90             'value'             => $value,
    91             'productPreviewUrl' => $product->get_permalink(),
    92         );
    93     }
    94 
    95     wp_send_json_success( $response );
    96 }
    9713
    9814/**
  • livechat-elementor/tags/5.0.6/includes/plugin.php

    r3323322 r3323344  
    107107        class_exists( '\Elementor\Plugin' )
    108108    );
    109 }
    110 
    111 /**
    112  * Refresh cart action for CI.
    113  *
    114  * @return void
    115  */
    116 function refresh_cart_action(): void {
    117     $woocommerce = WC();
    118 
    119     $cart = $woocommerce->cart;
    120 
    121     text_get_cart( $cart, get_woocommerce_currency() );
    122109}
    123110
  • livechat-elementor/tags/5.0.6/livechat.php

    r3323322 r3323344  
    1010 * Plugin URI: https://www.livechat.com/marketplace/apps/elementor
    1111 * Description: Live chat software for live help, online sales and customer support. This plugin allows to quickly install LiveChat on any WordPress website.
    12  * Version: 5.0.2
     12 * Version: 5.0.6
    1313 * Author: LiveChat
    1414 * Author URI: https://www.livechat.com
     
    2828require_once __DIR__ . '/vendor/autoload.php';
    2929
    30 define( 'TEXT_PLUGIN_VERSION', '5.0.2' );
     30define( 'TEXT_PLUGIN_VERSION', '5.0.6' );
    3131define( 'TEXT_PLUGIN_DIR', __DIR__ );
    3232define( 'TEXT_PLUGIN_BASE', plugin_basename( __FILE__ ) );
  • livechat-elementor/tags/5.0.6/readme.txt

    r3323322 r3323344  
    1 === WordPress Live Chat Plugin for Elementor - LiveChat ===
     1=== Live Chat Plugin for Elementor - LiveChat ===
    22Contributors: LiveChat
    33Tags: live chat, wordpress chat, elementor, wordpress live chat, chat plugin
    4 Stable tag: 5.0.2
     4Stable tag: 5.0.6
    55Requires PHP: 7.2
    6 Tested up to: 6.8
     6Tested up to: 6.8.1
    77Requires at least: 4.4
    88License: GNU General Public License v3.0
     
    8888== Changelog ==
    8989
     90= 5.0.6 =
     91* updated plugin name
     92
     93= 5.0.5 =
     94* added SKU property to cart tracking
     95
     96= 5.0.4 =
     97* fixed WooCommerce cart discounts return type
     98
     99= 5.0.3 =
     100* fixed WooCommerce cart tracking issue
     101
     102= 5.0.2 =
     103* checked plugin compatibility with WordPress 6.8
     104
    90105= 5.0.1 =
    91106* added missing changelog entry
     
    99114= 1.0.23 =
    100115* fix readme.txt tags
    101 
    102 = 1.0.22 =
    103 * fix readme.txt short description
    104 
    105 = 1.0.21 =
    106 * checked plugin compatibility with WordPress 6.7
    107 
    108 = 1.0.20 =
    109 * checked plugin compatibility with WordPress 6.6
    110 
    111 = 1.0.19 =
    112 * fixed deprecation warnings for PHP 8.2+
    113 
    114 = 1.0.18 =
    115 * fixed plugin attached if woocommerce is active
    116 
    117 = 1.0.17 =
    118 * checked plugin compatibility with WordPress 6.5
    119 
    120 = 1.0.16 =
    121 * update firebase/php-jwt package to 6.4.0
    122 
    123 = 1.0.15 =
    124 * pass variable instead of reference when calling JWT::decode
    125 
    126 = 1.0.14 =
    127 * fixed CSRF vulnerability
    128 
    129 = 1.0.13 =
    130 * fixed error with firebase/php-jwt package
    131 
    132 = 1.0.12 =
    133 * checked plugin compatibility with WordPress 6.4
    134 
    135 = 1.0.11 =
    136 * changelog and plugin cleanup
    137 
    138 = 1.0.10 =
    139 * fixed non escaped characters in regexes stored in config file
    140 
    141 = 1.0.9 =
    142 * checked plugin compatibility with WordPress 6.3
    143 
    144 = 1.0.8 =
    145 * checked plugin compatibility with WordPress 6.2.2
    146 
    147 = 1.0.7 =
    148 * fix for 'Attempt to read property "slug" on array' for PHP v8+
    149 
    150 = 1.0.6 =
    151 * support for Elementor plugin v3.5+
    152 
    153 = 1.0.5 =
    154 * fix on hiding review notice
    155 
    156 = 1.0.4 =
    157 * fix on hiding review notice
    158 
    159 = 1.0.3 =
    160 * checked plugin compatibility with WordPress 6.0
    161 
    162 = 1.0.2 =
    163 * checked plugin compatibility with WordPress 5.9
    164 
    165 = 1.0.1 =
    166 * fixed loading custom fonts in Elementor
    167 
    168 = 1.0.0 =
    169 * First live chat plugin version
  • livechat-elementor/tags/5.0.6/vendor/autoload.php

    r3323322 r3323344  
    1515        }
    1616    }
    17     trigger_error(
    18         $err,
    19         E_USER_ERROR
    20     );
     17    throw new RuntimeException($err);
    2118}
    2219
    2320require_once __DIR__ . '/composer/autoload_real.php';
    2421
    25 return ComposerAutoloaderInitb3beefd062fadd99380c1fcefe26370c::getLoader();
     22return ComposerAutoloaderInit525df3e329a675ac734f6c892aec722a::getLoader();
  • livechat-elementor/tags/5.0.6/vendor/composer/InstalledVersions.php

    r3323322 r3323344  
    2727class InstalledVersions
    2828{
     29    /**
     30     * @var string|null if set (by reflection by Composer), this should be set to the path where this class is being copied to
     31     * @internal
     32     */
     33    private static $selfDir = null;
     34
    2935    /**
    3036     * @var mixed[]|null
     
    324330
    325331    /**
     332     * @return string
     333     */
     334    private static function getSelfDir()
     335    {
     336        if (self::$selfDir === null) {
     337            self::$selfDir = strtr(__DIR__, '\\', '/');
     338        }
     339
     340        return self::$selfDir;
     341    }
     342
     343    /**
    326344     * @return array[]
    327345     * @psalm-return list<array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}>
     
    337355
    338356        if (self::$canGetVendors) {
    339             $selfDir = strtr(__DIR__, '\\', '/');
     357            $selfDir = self::getSelfDir();
    340358            foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) {
    341359                $vendorDir = strtr($vendorDir, '\\', '/');
  • livechat-elementor/tags/5.0.6/vendor/composer/autoload_files.php

    r3323322 r3323344  
    88return array(
    99    'fdba9c6585915947dfbaba492ebdeb35' => $baseDir . '/includes/functions.php',
     10    '0d0c3925431d2dc9cad1fc04818f5506' => $baseDir . '/includes/woocommerce-functions.php',
    1011    '82c376d2fd15f380fa57637d9a2c92a2' => $baseDir . '/includes/elementor-functions.php',
    1112    '370860d146a14b75751520f01cbc9c8c' => $baseDir . '/includes/routes/diagnose.php',
  • livechat-elementor/tags/5.0.6/vendor/composer/autoload_real.php

    r3323322 r3323344  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInitb3beefd062fadd99380c1fcefe26370c
     5class ComposerAutoloaderInit525df3e329a675ac734f6c892aec722a
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInitb3beefd062fadd99380c1fcefe26370c', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInit525df3e329a675ac734f6c892aec722a', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInitb3beefd062fadd99380c1fcefe26370c', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInit525df3e329a675ac734f6c892aec722a', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         call_user_func(\Composer\Autoload\ComposerStaticInitb3beefd062fadd99380c1fcefe26370c::getInitializer($loader));
     32        call_user_func(\Composer\Autoload\ComposerStaticInit525df3e329a675ac734f6c892aec722a::getInitializer($loader));
    3333
    3434        $loader->register(true);
    3535
    36         $filesToLoad = \Composer\Autoload\ComposerStaticInitb3beefd062fadd99380c1fcefe26370c::$files;
     36        $filesToLoad = \Composer\Autoload\ComposerStaticInit525df3e329a675ac734f6c892aec722a::$files;
    3737        $requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
    3838            if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • livechat-elementor/tags/5.0.6/vendor/composer/autoload_static.php

    r3323322 r3323344  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInitb3beefd062fadd99380c1fcefe26370c
     7class ComposerStaticInit525df3e329a675ac734f6c892aec722a
    88{
    99    public static $files = array (
    1010        'fdba9c6585915947dfbaba492ebdeb35' => __DIR__ . '/../..' . '/includes/functions.php',
     11        '0d0c3925431d2dc9cad1fc04818f5506' => __DIR__ . '/../..' . '/includes/woocommerce-functions.php',
    1112        '82c376d2fd15f380fa57637d9a2c92a2' => __DIR__ . '/../..' . '/includes/elementor-functions.php',
    1213        '370860d146a14b75751520f01cbc9c8c' => __DIR__ . '/../..' . '/includes/routes/diagnose.php',
     
    4849    {
    4950        return \Closure::bind(function () use ($loader) {
    50             $loader->prefixLengthsPsr4 = ComposerStaticInitb3beefd062fadd99380c1fcefe26370c::$prefixLengthsPsr4;
    51             $loader->prefixDirsPsr4 = ComposerStaticInitb3beefd062fadd99380c1fcefe26370c::$prefixDirsPsr4;
    52             $loader->classMap = ComposerStaticInitb3beefd062fadd99380c1fcefe26370c::$classMap;
     51            $loader->prefixLengthsPsr4 = ComposerStaticInit525df3e329a675ac734f6c892aec722a::$prefixLengthsPsr4;
     52            $loader->prefixDirsPsr4 = ComposerStaticInit525df3e329a675ac734f6c892aec722a::$prefixDirsPsr4;
     53            $loader->classMap = ComposerStaticInit525df3e329a675ac734f6c892aec722a::$classMap;
    5354
    5455        }, null, ClassLoader::class);
  • livechat-elementor/tags/5.0.6/vendor/composer/installed.php

    r3323322 r3323344  
    22    'root' => array(
    33        'name' => 'livechatinc/wordpress-integration',
    4         'pretty_version' => '0.1.0',
    5         'version' => '0.1.0.0',
     4        'pretty_version' => '5.0.6',
     5        'version' => '5.0.6.0',
    66        'reference' => null,
    77        'type' => 'wordpress-module',
     
    2121        ),
    2222        'livechatinc/wordpress-integration' => array(
    23             'pretty_version' => '0.1.0',
    24             'version' => '0.1.0.0',
     23            'pretty_version' => '5.0.6',
     24            'version' => '5.0.6.0',
    2525            'reference' => null,
    2626            'type' => 'wordpress-module',
  • livechat-elementor/trunk/changelog.txt

    r3323322 r3323344  
    11== Changelog ==
     2
     3= 5.0.6 =
     4* updated plugin name
     5
     6= 5.0.5 =
     7* added SKU property to cart tracking
     8
     9= 5.0.4 =
     10* fixed WooCommerce cart discounts return type
     11
     12= 5.0.3 =
     13* fixed WooCommerce cart tracking issue
    214
    315= 5.0.2 =
  • livechat-elementor/trunk/includes/elementor-functions.php

    r3323322 r3323344  
    88namespace LiveChat;
    99
    10 use Elementor\Plugin;
    11 use LiveChat\Widgets\TextQualityBadgeWidget;
    12 
    1310/**
    1411 * Register Elementor categories
    1512 */
    1613function text_register_categories() {
    17     $elementor = Plugin::instance();
     14    $elementor = \Elementor\Plugin::instance();
    1815
    1916    $elementor->elements_manager->add_category(
  • livechat-elementor/trunk/includes/functions.php

    r3323322 r3323344  
    99
    1010use stdClass;
    11 use WP_User;
    1211
    1312define( 'TEXT_TOKEN_DATA_DB_KEY', 'token_data' );
    14 
    15 /**
    16  * Get numeric value from string.
    17  *
    18  * @param string $value Stringified numeric value.
    19  * @return string
    20  */
    21 function get_numeric_value_from_string( string $value ): float {
    22     return floatval( preg_replace( '/[^\d\.]/', '', $value ) );
    23 }
    24 
    25 /**
    26  * Get the WooCommerce product variant title.
    27  *
    28  * @param array $variation The product variation.
    29  * @return string
    30  */
    31 function get_variant_title( array $variation ): string {
    32     $variant_title = '';
    33 
    34     foreach ( $variation as $attribute_name => $attribute_value ) {
    35         // Output the variation attribute values (e.g., "Large / black").
    36         $variant_title .= $attribute_value . ' / ';
    37     }
    38 
    39     // remove the last ' / '.
    40     return rtrim( $variant_title, ' / ' );
    41 }
    42 
    43 /**
    44  * Get the WooCommerce cart.
    45  *
    46  * @param \WC_Cart $cart The WooCommerce cart.
    47  * @param string   $currency The currency.
    48  * @return void
    49  */
    50 function text_get_cart( \WC_Cart $cart, string $currency ): void {
    51     $response = new stdClass();
    52 
    53     $response->currency = $currency;
    54     $response->total    = get_numeric_value_from_string( $cart->get_cart_contents_total() );
    55     $response->subtotal = get_numeric_value_from_string( $cart->get_subtotal() );
    56 
    57     $response->items = array();
    58 
    59     $items = $cart->get_cart_contents();
    60 
    61     $product_ids = array();
    62     foreach ( $items as $item ) {
    63         $product_ids[] = $item['product_id'];
    64     }
    65 
    66     $products = wc_get_products(
    67         array(
    68             'include' => $product_ids,
    69         )
    70     );
    71 
    72     foreach ( $items as $item ) {
    73         $product = $products[ array_search( $item['product_id'], array_column( $products, 'id' ), true ) ];
    74 
    75         $subtotal = $item['line_subtotal'];
    76         $value    = $item['line_total'];
    77 
    78         $discount = $subtotal - $value;
    79 
    80         $response->items[] = array(
    81             'id'                => $item['product_id'],
    82             'thumbnailUrl'      => get_the_post_thumbnail_url( $product->get_id(), 'shop_thumbnail' ),
    83             'title'             => $product->get_name(),
    84             'variantTitle'      => get_variant_title( $item['variation'] ),
    85             'variantId'         => $item['variation_id'],
    86             'discounts'         => array(
    87                 'amount' => $discount,
    88             ),
    89             'qty'               => $item['quantity'],
    90             'value'             => $value,
    91             'productPreviewUrl' => $product->get_permalink(),
    92         );
    93     }
    94 
    95     wp_send_json_success( $response );
    96 }
    9713
    9814/**
  • livechat-elementor/trunk/includes/plugin.php

    r3323322 r3323344  
    107107        class_exists( '\Elementor\Plugin' )
    108108    );
    109 }
    110 
    111 /**
    112  * Refresh cart action for CI.
    113  *
    114  * @return void
    115  */
    116 function refresh_cart_action(): void {
    117     $woocommerce = WC();
    118 
    119     $cart = $woocommerce->cart;
    120 
    121     text_get_cart( $cart, get_woocommerce_currency() );
    122109}
    123110
  • livechat-elementor/trunk/livechat.php

    r3323322 r3323344  
    1010 * Plugin URI: https://www.livechat.com/marketplace/apps/elementor
    1111 * Description: Live chat software for live help, online sales and customer support. This plugin allows to quickly install LiveChat on any WordPress website.
    12  * Version: 5.0.2
     12 * Version: 5.0.6
    1313 * Author: LiveChat
    1414 * Author URI: https://www.livechat.com
     
    2828require_once __DIR__ . '/vendor/autoload.php';
    2929
    30 define( 'TEXT_PLUGIN_VERSION', '5.0.2' );
     30define( 'TEXT_PLUGIN_VERSION', '5.0.6' );
    3131define( 'TEXT_PLUGIN_DIR', __DIR__ );
    3232define( 'TEXT_PLUGIN_BASE', plugin_basename( __FILE__ ) );
  • livechat-elementor/trunk/readme.txt

    r3323322 r3323344  
    1 === WordPress Live Chat Plugin for Elementor - LiveChat ===
     1=== Live Chat Plugin for Elementor - LiveChat ===
    22Contributors: LiveChat
    33Tags: live chat, wordpress chat, elementor, wordpress live chat, chat plugin
    4 Stable tag: 5.0.2
     4Stable tag: 5.0.6
    55Requires PHP: 7.2
    6 Tested up to: 6.8
     6Tested up to: 6.8.1
    77Requires at least: 4.4
    88License: GNU General Public License v3.0
     
    8888== Changelog ==
    8989
     90= 5.0.6 =
     91* updated plugin name
     92
     93= 5.0.5 =
     94* added SKU property to cart tracking
     95
     96= 5.0.4 =
     97* fixed WooCommerce cart discounts return type
     98
     99= 5.0.3 =
     100* fixed WooCommerce cart tracking issue
     101
     102= 5.0.2 =
     103* checked plugin compatibility with WordPress 6.8
     104
    90105= 5.0.1 =
    91106* added missing changelog entry
     
    99114= 1.0.23 =
    100115* fix readme.txt tags
    101 
    102 = 1.0.22 =
    103 * fix readme.txt short description
    104 
    105 = 1.0.21 =
    106 * checked plugin compatibility with WordPress 6.7
    107 
    108 = 1.0.20 =
    109 * checked plugin compatibility with WordPress 6.6
    110 
    111 = 1.0.19 =
    112 * fixed deprecation warnings for PHP 8.2+
    113 
    114 = 1.0.18 =
    115 * fixed plugin attached if woocommerce is active
    116 
    117 = 1.0.17 =
    118 * checked plugin compatibility with WordPress 6.5
    119 
    120 = 1.0.16 =
    121 * update firebase/php-jwt package to 6.4.0
    122 
    123 = 1.0.15 =
    124 * pass variable instead of reference when calling JWT::decode
    125 
    126 = 1.0.14 =
    127 * fixed CSRF vulnerability
    128 
    129 = 1.0.13 =
    130 * fixed error with firebase/php-jwt package
    131 
    132 = 1.0.12 =
    133 * checked plugin compatibility with WordPress 6.4
    134 
    135 = 1.0.11 =
    136 * changelog and plugin cleanup
    137 
    138 = 1.0.10 =
    139 * fixed non escaped characters in regexes stored in config file
    140 
    141 = 1.0.9 =
    142 * checked plugin compatibility with WordPress 6.3
    143 
    144 = 1.0.8 =
    145 * checked plugin compatibility with WordPress 6.2.2
    146 
    147 = 1.0.7 =
    148 * fix for 'Attempt to read property "slug" on array' for PHP v8+
    149 
    150 = 1.0.6 =
    151 * support for Elementor plugin v3.5+
    152 
    153 = 1.0.5 =
    154 * fix on hiding review notice
    155 
    156 = 1.0.4 =
    157 * fix on hiding review notice
    158 
    159 = 1.0.3 =
    160 * checked plugin compatibility with WordPress 6.0
    161 
    162 = 1.0.2 =
    163 * checked plugin compatibility with WordPress 5.9
    164 
    165 = 1.0.1 =
    166 * fixed loading custom fonts in Elementor
    167 
    168 = 1.0.0 =
    169 * First live chat plugin version
  • livechat-elementor/trunk/vendor/autoload.php

    r3323322 r3323344  
    1515        }
    1616    }
    17     trigger_error(
    18         $err,
    19         E_USER_ERROR
    20     );
     17    throw new RuntimeException($err);
    2118}
    2219
    2320require_once __DIR__ . '/composer/autoload_real.php';
    2421
    25 return ComposerAutoloaderInitb3beefd062fadd99380c1fcefe26370c::getLoader();
     22return ComposerAutoloaderInit525df3e329a675ac734f6c892aec722a::getLoader();
  • livechat-elementor/trunk/vendor/composer/InstalledVersions.php

    r3323322 r3323344  
    2727class InstalledVersions
    2828{
     29    /**
     30     * @var string|null if set (by reflection by Composer), this should be set to the path where this class is being copied to
     31     * @internal
     32     */
     33    private static $selfDir = null;
     34
    2935    /**
    3036     * @var mixed[]|null
     
    324330
    325331    /**
     332     * @return string
     333     */
     334    private static function getSelfDir()
     335    {
     336        if (self::$selfDir === null) {
     337            self::$selfDir = strtr(__DIR__, '\\', '/');
     338        }
     339
     340        return self::$selfDir;
     341    }
     342
     343    /**
    326344     * @return array[]
    327345     * @psalm-return list<array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}>
     
    337355
    338356        if (self::$canGetVendors) {
    339             $selfDir = strtr(__DIR__, '\\', '/');
     357            $selfDir = self::getSelfDir();
    340358            foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) {
    341359                $vendorDir = strtr($vendorDir, '\\', '/');
  • livechat-elementor/trunk/vendor/composer/autoload_files.php

    r3323322 r3323344  
    88return array(
    99    'fdba9c6585915947dfbaba492ebdeb35' => $baseDir . '/includes/functions.php',
     10    '0d0c3925431d2dc9cad1fc04818f5506' => $baseDir . '/includes/woocommerce-functions.php',
    1011    '82c376d2fd15f380fa57637d9a2c92a2' => $baseDir . '/includes/elementor-functions.php',
    1112    '370860d146a14b75751520f01cbc9c8c' => $baseDir . '/includes/routes/diagnose.php',
  • livechat-elementor/trunk/vendor/composer/autoload_real.php

    r3317017 r3323344  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInitb3beefd062fadd99380c1fcefe26370c
     5class ComposerAutoloaderInit525df3e329a675ac734f6c892aec722a
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInitb3beefd062fadd99380c1fcefe26370c', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInit525df3e329a675ac734f6c892aec722a', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInitb3beefd062fadd99380c1fcefe26370c', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInit525df3e329a675ac734f6c892aec722a', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         call_user_func(\Composer\Autoload\ComposerStaticInitb3beefd062fadd99380c1fcefe26370c::getInitializer($loader));
     32        call_user_func(\Composer\Autoload\ComposerStaticInit525df3e329a675ac734f6c892aec722a::getInitializer($loader));
    3333
    3434        $loader->register(true);
    3535
    36         $filesToLoad = \Composer\Autoload\ComposerStaticInitb3beefd062fadd99380c1fcefe26370c::$files;
     36        $filesToLoad = \Composer\Autoload\ComposerStaticInit525df3e329a675ac734f6c892aec722a::$files;
    3737        $requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
    3838            if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • livechat-elementor/trunk/vendor/composer/autoload_static.php

    r3323322 r3323344  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInitb3beefd062fadd99380c1fcefe26370c
     7class ComposerStaticInit525df3e329a675ac734f6c892aec722a
    88{
    99    public static $files = array (
    1010        'fdba9c6585915947dfbaba492ebdeb35' => __DIR__ . '/../..' . '/includes/functions.php',
     11        '0d0c3925431d2dc9cad1fc04818f5506' => __DIR__ . '/../..' . '/includes/woocommerce-functions.php',
    1112        '82c376d2fd15f380fa57637d9a2c92a2' => __DIR__ . '/../..' . '/includes/elementor-functions.php',
    1213        '370860d146a14b75751520f01cbc9c8c' => __DIR__ . '/../..' . '/includes/routes/diagnose.php',
     
    4849    {
    4950        return \Closure::bind(function () use ($loader) {
    50             $loader->prefixLengthsPsr4 = ComposerStaticInitb3beefd062fadd99380c1fcefe26370c::$prefixLengthsPsr4;
    51             $loader->prefixDirsPsr4 = ComposerStaticInitb3beefd062fadd99380c1fcefe26370c::$prefixDirsPsr4;
    52             $loader->classMap = ComposerStaticInitb3beefd062fadd99380c1fcefe26370c::$classMap;
     51            $loader->prefixLengthsPsr4 = ComposerStaticInit525df3e329a675ac734f6c892aec722a::$prefixLengthsPsr4;
     52            $loader->prefixDirsPsr4 = ComposerStaticInit525df3e329a675ac734f6c892aec722a::$prefixDirsPsr4;
     53            $loader->classMap = ComposerStaticInit525df3e329a675ac734f6c892aec722a::$classMap;
    5354
    5455        }, null, ClassLoader::class);
  • livechat-elementor/trunk/vendor/composer/installed.php

    r3323322 r3323344  
    22    'root' => array(
    33        'name' => 'livechatinc/wordpress-integration',
    4         'pretty_version' => '0.1.0',
    5         'version' => '0.1.0.0',
     4        'pretty_version' => '5.0.6',
     5        'version' => '5.0.6.0',
    66        'reference' => null,
    77        'type' => 'wordpress-module',
     
    2121        ),
    2222        'livechatinc/wordpress-integration' => array(
    23             'pretty_version' => '0.1.0',
    24             'version' => '0.1.0.0',
     23            'pretty_version' => '5.0.6',
     24            'version' => '5.0.6.0',
    2525            'reference' => null,
    2626            'type' => 'wordpress-module',
Note: See TracChangeset for help on using the changeset viewer.