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

ESET - Inno/move elementor abstracts to common #2070

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open
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
153 changes: 80 additions & 73 deletions composer.lock

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions package-lock.json

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

22 changes: 17 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
{
"name": "tribe-common",
"version": "5.2.5",
"version": "5.3.0",
"repository": "[email protected]:the-events-calendar/tribe-common.git",
"_resourcepath": "src/resources",
"_domainPath": "lang",
"_textDomain": "tribe-common",
"_glotPressUrl": "https://translations.theeventscalendar.com",
"_glotPressSlug": "tribe-common",
"_glotPressFileFormat": "%textdomain%-%wp_locale%.%format%",
"_glotPressFormats": ["po", "mo"],
"_glotPressFormats": [
"po",
"mo"
],
"_glotPressFilter": {
"translation_sets": false,
"minimum_percentage": 30,
Expand All @@ -31,9 +34,14 @@
"!src/resources/postcss/datepicker.pcss",
"!src/resources/postcss/tribe-ui.pcss"
],
"jest": ["src/modules/**/__tests__/**/*.js"]
"jest": [
"src/modules/**/__tests__/**/*.js"
]
},
"engines": {
"node": "18.13.0",
"npm": "8.19.3"
},
"engines": { "node": "18.13.0", "npm": "8.19.3" },
"scripts": {
"analyze": "webpack-bundle-analyzer -m static stats.json",
"bootstrap": "./scripts/linkDependencies",
Expand Down Expand Up @@ -106,7 +114,11 @@
"webpack-cli": "^3.1.2",
"webpack-merge": "^4.1.4"
},
"overrides": { "babel-plugin-lodash": { "@babel/types": "~7.20.0" } },
"overrides": {
"babel-plugin-lodash": {
"@babel/types": "~7.20.0"
}
},
"browserslist": [
"last 2 Chrome versions",
"last 2 Firefox versions",
Expand Down
2 changes: 0 additions & 2 deletions src/Common/Contracts/Provider/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
namespace TEC\Common\Contracts\Provider;

use TEC\Common\Contracts\Service_Provider;
use TEC\Common\StellarWP\ContainerContract\ContainerInterface;
use Tribe__Log as Log;

/**
Expand All @@ -21,7 +20,6 @@
*
* @package TEC\Common\Provider;
*
* @property ContainerInterface $container
*/
abstract class Controller extends Service_Provider {
/**
Expand Down
57 changes: 57 additions & 0 deletions src/Common/Integrations/Contracts/Manager_Abstract.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<?php
/**
* Abstract Manager class for Integrations.
*
* @since TBD
*
* @package TEC\Integrations\Contracts
*/

namespace TEC\Common\Integrations\Contracts;

/**
* Class Manager_Abstract
*
* @since TBD
*
* @package Tribe\Events\Integrations\plugins\Elementor
*/
abstract class Manager_Abstract {
/**
* @var string Type of object.
*/
protected $type;

/**
* @var array Collection of objects to register.
*/
protected $objects;

/**
* Returns an associative array of objects to be registered.
*
* @since TBD
*
* @return array An array in the shape `[ <slug> => <class> ]`.
*/
public function get_registered_objects() {
/**
* Filters the list of objects available and registered.
*
* Both classes and built objects can be associated with a slug; if bound in the container the classes
* will be built according to the binding rules; objects will be returned as they are.
*
* @since TBD
*
* @param array $widgets An associative array of objects in the shape `[ <slug> => <class> ]`.
*/
return (array) apply_filters( "tec_registered_{$this->type}", $this->objects, $this );
}

/**
* Registers the objects.
*
* @since TBD
*/
abstract public function register();
}
1 change: 1 addition & 0 deletions src/Common/Integrations/Integration_Abstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
*/

namespace TEC\Common\Integrations;

use TEC\Common\Contracts\Service_Provider;

/**
Expand Down
Loading
Loading