Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
93f17a7
Internal: Verify changelog in core one click release [ED-14533]
ronenelementor May 27, 2024
1d07c3f
wip
ronenelementor May 30, 2024
8676f3b
Merge branch 'main' into internal/ED-14533-internal-add-changelog-ver…
ronenelementor May 30, 2024
f384456
Merge pull request #1 from ronenelementor/internal/ED-14533-internal-…
ronenelementor May 30, 2024
37ab01e
Update one-click-release.yml
ronenelementor May 30, 2024
9a1e811
Update one-click-release.yml
ronenelementor May 30, 2024
59bd41a
Update action.yml
ronenelementor May 30, 2024
694e690
Update one-click-release.yml
ronenelementor May 30, 2024
24b22d8
Update action.yml
ronenelementor May 30, 2024
c15705c
Update changelog.txt
ronenelementor May 30, 2024
7a89694
Update get-changelog-from-change-txt.js
ronenelementor May 30, 2024
857b16f
Update get-changelog-from-change-txt.js
ronenelementor May 30, 2024
19cf280
Update one-click-release.yml
ronenelementor May 30, 2024
90b71cc
Update get-changelog-from-change-txt.js
ronenelementor May 30, 2024
605d7cb
Update one-click-release.yml
ronenelementor May 30, 2024
4c168cc
Update get-changelog-from-change-txt.js
ronenelementor May 30, 2024
a017bb0
Update get-changelog-from-change-txt.js
ronenelementor May 30, 2024
3917045
Update get-changelog-from-change-txt.js
ronenelementor May 30, 2024
8d9f21f
Update get-changelog-from-change-txt.js
ronenelementor May 30, 2024
2f086f7
Update get-changelog-from-change-txt.js
ronenelementor May 30, 2024
53f1d67
Update get-changelog-from-change-txt.js
ronenelementor May 30, 2024
8c7c677
Update changelog.txt
ronenelementor May 30, 2024
6bf49fd
Update one-click-release.yml
ronenelementor May 30, 2024
1ef899b
Update changelog.txt
ronenelementor May 30, 2024
83f01fe
Update readme.txt
ronenelementor May 30, 2024
f6eb3ff
Added widget category
ronenelementor Jul 1, 2024
d6a28a3
Merge branch 'main' into hackathon/charts/poc
ronenelementor Jul 15, 2024
827e6e8
Merge branch 'main' into hackathon/charts/poc
ronenelementor Jul 15, 2024
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
38 changes: 21 additions & 17 deletions .github/scripts/get-changelog-from-change-txt.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,27 @@ if (!VERSION) {
return;
}

for (let fileName of ['changelog.txt', 'readme.txt'] ) {
try {
const changelogText = fs.readFileSync(`${fileName}`, 'utf-8');
const data = marked.lexer(changelogText);
const headerIndex = data.findIndex((section) => {
const text = section?.text?.match(/\d+\.\d+\.\d+/g)?.[0] || '';
return section.type === 'paragraph' && VERSION == text;
});
if (headerIndex === -1) {
console.error(`Change log for release ${version} not found in ${filename}`);
for (let fileName of ['changelog', 'readme'] ) {
(async () => {
try {
const changelogText = fs.readFileSync(`${fileName}.txt`, 'utf-8');
const data = marked.lexer(changelogText);
const headerIndex = data.findIndex((section, index) => {
const text = section?.text?.match(/\d+\.\d+\.\d+/g)?.[0] || ''
if (index < 10) console.log(1, section.type, 2, section.text, 3, text);
return section.type === 'paragraph' && VERSION == text;
});
if (headerIndex === -1) {
console.error(`Failed to find version: ${VERSION} in ${fileName}.txt file`);
process.exit(1);
return;
}
const versionLog = data[headerIndex + 1].raw;
fs.writeFileSync(`temp-${fileName}.txt`, versionLog);
console.log('success: ', fileName);
} catch (err) {
console.error('this is my error', fileName, err)
process.exit(1);
return;
}
const versionLog = data[headerIndex + 1].raw;
fs.writeFileSync(`temp-${fileName}`, versionLog);
} catch (err) {
console.error(err)
process.exit(1);
}
})();
}
4 changes: 2 additions & 2 deletions .github/workflows/generate-changelog/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ runs:
- name: Generate Changelog
shell: bash
env:
TOKEN: ${{ inputs.TOKEN }}
TOKEN: ${{ github.token }}
REPOSITORY: ${{ inputs.REPOSITORY }}
HEAD_BRANCH_NAME: ${{ inputs.HEAD_BRANCH_NAME }}
BASE_TAG_NAME: ${{ inputs.BASE_TAG_NAME }}
Expand All @@ -38,4 +38,4 @@ runs:
fi
fi
- name: Generate Changelog Content For Slack
uses: ./.github/workflows/generate-slack-changelog
uses: ./.github/workflows/generate-slack-changelog
5 changes: 3 additions & 2 deletions .github/workflows/get-changelog-from-changelog-txt/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Get change log From changelog and readme text files
description: Get change log From changelog.txt and readme.txt text files - publish in wordpress.org.
name: Get Changelog From Changelog Text File
description: Get Changelog From Changelog Text File - publish in wordpress.org.

inputs:
VERSION:
Expand All @@ -13,5 +13,6 @@ runs:
env:
VERSION: ${{ inputs.VERSION }}
run: |

npm install --no-package-lock --no-save marked@12.0.2
node ./.github/scripts/get-changelog-from-change-txt.js
2 changes: 2 additions & 0 deletions .github/workflows/get-previous-release/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ runs:

# If the channel is "ga", fetch all Git tags matching the semantic versioning pattern "vX.Y.Z"
# and store them in the 'tags' variable. e.g. "refs/tags/v3.11.1 , refs/tags/v3.11.2"
echo "HIHIHI"
if [[ ${{ inputs.CHANNEL }} == "ga" ]]; then
echo "123123123"
tags=$(git ls-remote --tags | grep "refs/tags/[0-9]\+\.[0-9]\+\.[0-9]\+$")
fi

Expand Down
168 changes: 84 additions & 84 deletions .github/workflows/one-click-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ jobs:
CHANNEL: ${{ env.CHANNEL }}
POSTFIX: ''
OVERRIDE_PACKAGE_VERSION: true
- name: Get Changelog From Changelog Text File
# if: github.event.inputs.channel == 'ga'
uses: ./.github/workflows/get-changelog-from-changelog-txt
with:
VERSION: ${{ env.CLEAN_PACKAGE_VERSION }}
- name: Update Readme.txt
if: env.CHANNEL != 'cloud'
uses: ./.github/workflows/update-readme-txt
Expand All @@ -72,29 +77,24 @@ jobs:
PACKAGE_VERSION: ${{ env.PACKAGE_VERSION }}
- name: Install Dependencies
run: npm ci
- name: Build plugin
uses: ./.github/workflows/build-plugin
with:
PACKAGE_VERSION: ${{ env.PACKAGE_VERSION }}
BUILD_SCRIPT_PATH: "./.github/scripts/build-zip.sh"
- name: Get Release Name
uses : ./.github/workflows/get-release-name
with:
BUILD_ZIP_FILE_PATH: ${{ github.event.repository.name }}-${{ env.PACKAGE_VERSION }}.zip
PLUGIN_NAME: ${{ github.event.repository.name }}
- name: Generate changelog
uses: ./.github/workflows/generate-changelog
with:
TOKEN: ${{ secrets.MAINTAIN_TOKEN }}
REPOSITORY: ${{ github.repository }}
HEAD_BRANCH_NAME: ${{ github.ref }}
BASE_TAG_NAME: ${{ env.PREVIOUS_TAG_SHA }}
GENERATE_EMPTY_CHANGELOG: true
- name: Check that the version contains an updated change log
if: github.event.inputs.channel == 'ga'
uses: ./.github/workflows/get-changelog-from-changelog-txt
with:
VERSION: ${{ env.CLEAN_PACKAGE_VERSION }}
# - name: Build plugin
# uses: ./.github/workflows/build-plugin
# with:
# PACKAGE_VERSION: ${{ env.PACKAGE_VERSION }}
# BUILD_SCRIPT_PATH: "./.github/scripts/build-zip.sh"
# - name: Get Release Name
# uses : ./.github/workflows/get-release-name
# with:
# BUILD_ZIP_FILE_PATH: ${{ github.event.repository.name }}-${{ env.PACKAGE_VERSION }}.zip
# PLUGIN_NAME: ${{ github.event.repository.name }}
# - name: Generate changelog
# uses: ./.github/workflows/generate-changelog
# with:
# TOKEN: ${{ secrets.MAINTAIN_TOKEN }}
# REPOSITORY: ${{ github.repository }}
# HEAD_BRANCH_NAME: ${{ github.ref }}
# BASE_TAG_NAME: ${{ env.PREVIOUS_TAG_SHA }}
# GENERATE_EMPTY_CHANGELOG: true
- name: Create GitHub release
uses: softprops/action-gh-release@v1
with:
Expand All @@ -105,64 +105,64 @@ jobs:
${{ env.CHANGELOG_FILE }}
prerelease: ${{ github.event.inputs.pre_release }}
body_path: ${{ env.CHANGELOG_FILE }}
- name: Publish to WordPress.org SVN
if: env.CHANNEL != 'cloud' && github.repository_owner == 'elementor' && github.event.inputs.pre_release == 'false' # We don't publish cloud to WordPress.org, ga, beta, dev are published.
env:
PLUGIN_VERSION: ${{ env.RELEASE_NAME }}
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
CHANNEL: ${{ env.CHANNEL }}
PACKAGE_VERSION : ${{ env.PACKAGE_VERSION }}
run: |
bash "${GITHUB_WORKSPACE}/.github/scripts/validate-build-files.sh"
bash "${GITHUB_WORKSPACE}/.github/scripts/publish-to-wordpress-org.sh"
- name: Release Dev From Beta
if: env.CHANNEL == 'beta' # Only for beta releases
uses: ./.github/workflows/release-dev-from-beta
with:
BUILD_ZIP_FILE_PATH: ${{ github.event.repository.name }}-${{ env.RELEASE_FILENAME }}.zip
PLUGIN_NAME: ${{ github.event.repository.name }}
REPOSITORY_OWNER: ${{ github.repository_owner }}
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
PRE_RELEASE: ${{ github.event.inputs.pre_release }}
PACKAGE_VERSION : ${{ env.PACKAGE_VERSION }}
- name: Post To Slack Created Release
if: github.event.inputs.pre_release == 'false'
uses : ./.github/workflows/post-to-slack
with:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_TOKEN }}
SLACK_TAG_CHANNELS: ${{ secrets.SLACK_CHANNEL_RELEASE }}
PAYLOAD: |
{
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Hi All :smile:\n\nWe just released *Elementor*\n`${{ env.RELEASE_NAME }}`"
}
},
{
"type": "divider"
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "GitHub Release *${{ env.RELEASE_NAME }}* \nCreated by ${{ github.actor }}"
},
"accessory": {
"type": "button",
"text": {
"type": "plain_text",
"text": "Open :point_left:",
"emoji": true
},
"value": "open-release",
"url": "https://github.com/${{ github.repository }}/releases/tag/${{ env.RELEASE_NAME }}",
"action_id": "button-action"
}
}
]
}
# - name: Publish to WordPress.org SVN
# if: env.CHANNEL != 'cloud' && github.repository_owner == 'elementor' && github.event.inputs.pre_release == 'false' # We don't publish cloud to WordPress.org, ga, beta, dev are published.
# env:
# PLUGIN_VERSION: ${{ env.RELEASE_NAME }}
# SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
# SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
# CHANNEL: ${{ env.CHANNEL }}
# PACKAGE_VERSION : ${{ env.PACKAGE_VERSION }}
# run: |
# bash "${GITHUB_WORKSPACE}/.github/scripts/validate-build-files.sh"
# bash "${GITHUB_WORKSPACE}/.github/scripts/publish-to-wordpress-org.sh"
# - name: Release Dev From Beta
# if: env.CHANNEL == 'beta' # Only for beta releases
# uses: ./.github/workflows/release-dev-from-beta
# with:
# BUILD_ZIP_FILE_PATH: ${{ github.event.repository.name }}-${{ env.RELEASE_FILENAME }}.zip
# PLUGIN_NAME: ${{ github.event.repository.name }}
# REPOSITORY_OWNER: ${{ github.repository_owner }}
# SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
# SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
# PRE_RELEASE: ${{ github.event.inputs.pre_release }}
# PACKAGE_VERSION : ${{ env.PACKAGE_VERSION }}
# - name: Post To Slack Created Release
# if: github.event.inputs.pre_release == 'false'
# uses : ./.github/workflows/post-to-slack
# with:
# SLACK_BOT_TOKEN: ${{ secrets.SLACK_TOKEN }}
# SLACK_TAG_CHANNELS: ${{ secrets.SLACK_CHANNEL_RELEASE }}
# PAYLOAD: |
# {
# "blocks": [
# {
# "type": "section",
# "text": {
# "type": "mrkdwn",
# "text": "Hi All :smile:\n\nWe just released *Elementor*\n`${{ env.RELEASE_NAME }}`"
# }
# },
# {
# "type": "divider"
# },
# {
# "type": "section",
# "text": {
# "type": "mrkdwn",
# "text": "GitHub Release *${{ env.RELEASE_NAME }}* \nCreated by ${{ github.actor }}"
# },
# "accessory": {
# "type": "button",
# "text": {
# "type": "plain_text",
# "text": "Open :point_left:",
# "emoji": true
# },
# "value": "open-release",
# "url": "https://github.com/${{ github.repository }}/releases/tag/${{ env.RELEASE_NAME }}",
# "action_id": "button-action"
# }
# }
# ]
# }
46 changes: 5 additions & 41 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,47 +25,11 @@

= 3.22.3 - 2024-06-26 =

* Fix: PHP error appears on the front when using gradient background with the Optimized Control Loading feature activated ([#27733](https://github.com/elementor/elementor/issues/27733))

= 3.22.2 - 2024-06-24 =

* Security Fix: Improved code security enforcement in Shape Divider
* Fix: Refresh the media library after inserting an AI edited image

= 3.22.1 - 2024-06-17 =

* Fix: Editor not loading due to compatibility issue between Elementor AI and third-party plugins

= 3.22.0 - 2024-06-16 =

* New: Introducing Element Caching experiment - Enhance site speed by caching elements for faster rendering
* New: Introducing the Performance Tab - Centralizing all stable performance features in one accessible location ([#21194](https://github.com/elementor/elementor/issues/21194))
* New: Generate post excerpts with AI for concise summaries
* New: Generate and edit images with AI from WordPress media library
* Tweak: Updated Google Fonts list with 170+ new fonts ([#25095](https://github.com/elementor/elementor/issues/25095))
* Tweak: Improved Elementor translation functionality with `just-in-time` translation loading (props [@swissspidy](https://github.com/swissspidy), [#27199](https://github.com/elementor/elementor/issues/27199))
* Tweak: Added View Page link to the Editor Top Bar ([#21925](https://github.com/elementor/elementor/issues/21925))
* Tweak: Replaced `waypoints.js` library with the native Intersection Observer API
* Tweak: Changed child containers' Content Width to Full Width as default
* Tweak: Reorganized User Preferences panel for improved user experience
* Tweak: Hide icon position & spacing controls if there is an icon but no text in Button widget
* Tweak: Extended Alignment and Position capabilities in Button widget
* Tweak: Implemented CSS logical properties to Icon Spacing control in Button widget
* Tweak: Implemented CSS logical properties to Icon Position control in Button widget
* Tweak: Promoted Grid Container feature to Stable status
* Tweak: Activated Optimized Control Loading by default for new sites
* Tweak: Changed Generative Fill AI image feature to use Clipdrop text-inpainting
* Tweak: Added functionality to delay the running of the ready triggers on inner elements
* Tweak: Deactivated Landing Page feature for new sites
* Fix: "Exit to" functionality is not working with the Editor Top Bar ([#22828](https://github.com/elementor/elementor/issues/22828))
* Fix: Row-reversed direction is not working on mobile portrait breakpoint in Container ([#23710](https://github.com/elementor/elementor/issues/23710))
* Fix: The What's' New string in the Editor is not translatable (props [@DAnn2012](https://github.com/DAnn2012))
* Fix: Fatal error appears when updating a page with Tabs widget
* Fix: Transparency indicator not visible in UI Light theme for Color Picker
* Fix: AI Expand Images not working on local and protected websites
* Fix: `all: unset` assigned to buttons cause focus issues
* Fix: Links to Elementor Settings are broken in various locations
* Fix: `RunReadyTrigger` returning incorrectly in various scenarios
* Fix: Can't click on the AI consent modal checkbox

= 3.23.0 - 2024-05-29 =

* Fix: Can't click on the AI consent modal checkbox

= 3.21.8 - 2024-05-26 =

Expand Down
4 changes: 4 additions & 0 deletions includes/managers/elements.php
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,10 @@ private function init_categories() {
'title' => esc_html__( 'Layout', 'elementor' ),
'hideIfEmpty' => true,
],
'charts' => [
'title' => esc_html__( 'Charts', 'elementor' ),
'icon' => 'eicon-font',
],
'basic' => [
'title' => esc_html__( 'Basic', 'elementor' ),
'icon' => 'eicon-font',
Expand Down