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

internal: wp-now POC #262

Merged
merged 171 commits into from
Jul 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
171 commits
Select commit Hold shift + click to select a range
1047c16
wp-now poc
davseve Jan 17, 2024
1da98cc
wp-now POC
davseve Jan 17, 2024
48fd721
Update pwwpnow.yml
davseve Jan 17, 2024
85ad6c7
Update pwwpnow.yml
davseve Jan 17, 2024
47b62ac
Update pwwpnow.yml
davseve Jan 17, 2024
ba6a827
Update pwwpnow.yml
davseve Jan 17, 2024
8b9e502
Update package.json
davseve Jan 18, 2024
b1bbd8e
Update pwwpnow.yml
davseve Jan 18, 2024
7d788a8
Update pwwpnow.yml
davseve Jan 18, 2024
00317b8
Update pwwpnow.yml
davseve Jan 18, 2024
1926e36
Wip
davseve Jan 18, 2024
1c68d8d
wip
davseve Jan 18, 2024
c60bd83
wip
davseve Jan 18, 2024
559c0c8
WIP
davseve Jan 18, 2024
f7331c0
wip
davseve Jan 18, 2024
11af22d
Update package.json
davseve Jan 18, 2024
29bc134
Update package.json
davseve Jan 18, 2024
7627461
Update package.json
davseve Jan 18, 2024
4e8cfe1
wip
davseve Jan 18, 2024
e4e75e4
Merge branch 'wp-now-poc' of https://github.com/davseve/elementor int…
davseve Jan 18, 2024
c50608b
Auto stash before merge of "wp-now-poc" and "davseve/wp-now-poc"
davseve Jan 18, 2024
4d0163e
wip
davseve Jan 18, 2024
de8ef3f
wip
davseve Jan 18, 2024
666d1cf
wip
davseve Jan 18, 2024
0705fa0
wip
davseve Jan 18, 2024
04dc066
wip
davseve Jan 18, 2024
20c35dd
wip
davseve Jan 18, 2024
5781fba
Merge branch 'wp-now-poc' of https://github.com/davseve/elementor int…
davseve Jan 18, 2024
6f01b4e
wip
davseve Feb 8, 2024
064d270
Blueprint file added
davseve Feb 8, 2024
142a964
wip
davseve Feb 8, 2024
a40efc7
wip
davseve Feb 8, 2024
6d7a47a
wip
davseve Feb 8, 2024
d46e379
wip
davseve Feb 8, 2024
95425d9
wip
davseve Feb 8, 2024
6f01733
wip
davseve Feb 8, 2024
ea79c1b
wip
davseve Feb 8, 2024
d49f1b1
wip
davseve Feb 8, 2024
74b4c49
wip
davseve Feb 8, 2024
752001d
wip
davseve Feb 8, 2024
9fd24f0
wip
davseve Feb 8, 2024
1354c03
wip
davseve Feb 8, 2024
4a5effd
wip
davseve Feb 8, 2024
872ae90
wip
davseve Feb 8, 2024
b879b9b
wip
davseve Feb 8, 2024
3e8fa07
WIP
davseve Feb 8, 2024
7d9c9bf
WIP
davseve Feb 8, 2024
e52b9dd
WIP
davseve Feb 8, 2024
5d8cd34
wip
davseve Feb 8, 2024
87dc8fd
wip
davseve Feb 8, 2024
06901ad
wip
davseve Feb 8, 2024
b11c5bc
wip
davseve Feb 8, 2024
eb6f3c0
wip
davseve Feb 8, 2024
f0eac90
wip
davseve Feb 8, 2024
8c697ac
wip
davseve Feb 8, 2024
87346e5
Fix: Typo in onboarding 'account.js' (#27625)
toineenzo Jun 7, 2024
1097858
Internal: Conversion Center - Contact Button - Update dot toggle & co…
willhowat Jun 7, 2024
75b1689
New: Contact Buttons v3 (#27619)
mserino Jun 7, 2024
418cee1
Fix: Don't apply :focus() when using the mouse to open the Off Canvas…
hein-obox Jun 7, 2024
d84b34b
Internal: Conversion Center - Fix Link In bio and contact buttons adv…
nicoladj77 Jun 7, 2024
a3cb14a
Tweak: Contact Buttons - replace waze location with URL (#27633)
mserino Jun 7, 2024
d6c36fd
Fix: Contact Buttons - various fixes (#27629)
mserino Jun 7, 2024
d0b9e24
Internal: Update update-latest-pull-requests only for non-drafts (#27…
yotamselementor Jun 9, 2024
83911f1
Internal: Release 3.22 GA [ED-15029] (#27642) (#27643)
TzviRabinovitch Jun 9, 2024
beeb5d9
Internal: Update the description for the "CSS Print Method" setting […
rami-elementor Jun 9, 2024
36fd936
Tweak: Activated "Element Caching" experiment to new sites [ED-15024]…
rami-elementor Jun 9, 2024
8677982
Internal: Remove performance experiments as they are now default (#27…
yotamselementor Jun 10, 2024
6a980ab
Internal: Improve Nested Elements Dynamic Tags - Title - removing dyn…
davseve Jun 10, 2024
fe848a2
Internal: Conversion Center - remote library (#27652)
nicoladj77 Jun 10, 2024
21e03d9
Internal: Improve Nested Elements - swiper carousel is not reinitiali…
mykytamurzin Jun 13, 2024
dc92164
Internal: Use sharding for splitting tests (#27617)
yotamselementor Jun 13, 2024
7e6edc0
Internal: Use only internal test methods to update Editor controls [E…
rami-elementor Jun 14, 2024
13b6a61
Internal: Use only internal test methods to update Editor controls [E…
rami-elementor Jun 14, 2024
e3a30f2
Internal: Update release 3.22 GA [ED-15029] (#27681)
TzviRabinovitch Jun 16, 2024
9ff8b18
Tweak: Updated suggested prompts on Build with AI tools [ED-14697] (#…
DennisNerush Jun 16, 2024
9788a7d
Fix: Image Generation & Edit triggering from WP media library [ED-147…
netanelavr Jun 16, 2024
1602ec2
Internal: Update tests to support the Top Bar [ED-15050] (#27675)
rami-elementor Jun 17, 2024
a630c84
Internal: Change-log for 3.22.1 (#27694)
davseve Jun 17, 2024
4af4d58
Internal: Hide 'Getting Started' menu item if Home is active [ED-1466…
TzviRabinovitch Jun 17, 2024
4ff0c73
Fix: Inconsistent ׳setting׳ icon in the navigation tabs of elementor …
rami-elementor Jun 17, 2024
0904d4a
Internal: Use only internal test methods to update Editor controls [E…
rami-elementor Jun 18, 2024
fad9f24
Fix: Remove negative margin CSS for the notice in Element Manager [ED…
KingYes Jun 18, 2024
6fcd85d
Fix: Restore deprecated Google fonts that were deprecated in the prev…
KingYes Jun 18, 2024
4b13c36
Internal: Improve dynamic tags within nested elements [ED-15001] (#27…
mykytamurzin Jun 18, 2024
3e877c6
New: UI & Utilization for Featured Image Generation [ED-15052] (#27684)
DennisNerush Jun 19, 2024
bed9af8
Revert "Internal: Improve dynamic tags within nested elements: Core […
hein-obox Jun 19, 2024
562573f
Internal: Use only internal test methods to update Editor controls [E…
rami-elementor Jun 19, 2024
0e4acf0
Internal: Conversion Center - Module splitting (#27687)
nicoladj77 Jun 19, 2024
a9b13d5
Internal: Floating Buttons - class renaming (#27732)
nicoladj77 Jun 19, 2024
0fa4ef7
Internal: Bump Plugin version to 3.24 [ED-15099] (#27734)
TzviRabinovitch Jun 19, 2024
037f0f4
Internal: Update tests to support the Top Bar [ED-15050] (#27696)
rami-elementor Jun 19, 2024
5edc019
Internal: Upgrade @elementor/editor-responsive dependency (#27712)
yotamselementor Jun 20, 2024
fdbcfe0
Fix: Floating Buttons - vars 4 and 8 styles and base capitalization (…
mserino Jun 20, 2024
9799c95
Internal: Link in Bio and Contact buttons - updated need help links (…
willhowat Jun 20, 2024
8dc5ee4
Tweak: Featured Image Generation - report feedback [ED-15052] (#27747)
DennisNerush Jun 20, 2024
b71fca4
Fix: Floating Buttons - remove wrapper ID from JS (#27729)
mserino Jun 20, 2024
a4673d8
Fix: Floating Buttons - variation 10 and 7 (#27751)
mserino Jun 20, 2024
f1b1018
Tweak: Change the trigger for the performance notice [ED-15106] (#27754)
arielk Jun 21, 2024
0130560
Tweak: Added the ability to change the site's overscroll-behavior [ED…
rami-elementor Jun 21, 2024
8c07085
Merge branch 'main' into wp-now-poc
davseve Jun 21, 2024
af66815
add wp-cli support
davseve Jun 21, 2024
195e8c0
wip
davseve Jun 21, 2024
8117493
w
davseve Jun 21, 2024
c31e76a
w
davseve Jun 21, 2024
7397741
w
davseve Jun 21, 2024
a17c1d0
Internal: Link in Bio & Contact buttons - updated need help to go lin…
willhowat Jun 21, 2024
787e74c
Fix: Floating Buttons - prevent toggle position (#27768)
mserino Jun 21, 2024
8a865a6
Tweak: Revert optimize button widget markup [ED-14229] (#27761)
rami-elementor Jun 21, 2024
2b2ba93
Tweak: Promote "Element Caching" experiment from development to beta …
rami-elementor Jun 22, 2024
61cce3c
Internal: Improve Nested Elements - Experiment activation [ED-14275] …
davseve Jun 23, 2024
c3c70c9
Internal: Use workers to parallelize tests (#27669)
yotamselementor Jun 24, 2024
06a30aa
Fix: Refresh the media library after inserting an edited image [ED-15…
netanelavr Jun 24, 2024
63eb2c0
Internal: Bump readme + changelog (#27794)
louiswol94 Jun 24, 2024
6deb8d3
Internal: Improve name checks for shapes [ED-14974] (#27784)
mykytamurzin Jun 24, 2024
4e503c1
Internal: Update changelog (#27798)
louiswol94 Jun 24, 2024
ce6eaad
Internal: Product qa fixes main (#27799)
nicoladj77 Jun 24, 2024
a46d4e5
Fix: PHP error is present when choosing Gradient as background [ED-15…
KingYes Jun 24, 2024
c95221c
Fix: Skip flaky atomic nested tab test (#27804)
mykytamurzin Jun 24, 2024
d5114b7
Internal: Limit number of hover animations (#27801)
nicoladj77 Jun 24, 2024
38ec730
Internal: Install activate plugin link not working in hints [APP-378]…
bainternet Jun 25, 2024
fb1a2bb
Fix: Flush router on first save of floating button - main (#27830)
nicoladj77 Jun 25, 2024
aaf8a9a
Tweak: Check if defined the thumb dir to prevent edge case issues [ED…
KingYes Jun 25, 2024
ff6c879
Internal: Use only internal test methods to update Editor controls [E…
rami-elementor Jun 26, 2024
a765377
Internal: Nested Tabs titles are not scrollable in rtl mode [ED-15128…
hein-obox Jun 26, 2024
dd88027
Internal: Update changelog (#27840)
mykytamurzin Jun 26, 2024
72d9f79
Tweak: Improved Image style presets and added two additional ones [ED…
DennisNerush Jun 26, 2024
20b7709
Tweak: Activated "Editor Top Bar" experiment to new sites [ED-14367] …
yotamselementor Jun 26, 2024
3616299
Fix: Floating Buttons - fix global widgets controls - main (#27831)
nicoladj77 Jun 26, 2024
812a1a0
Internal: Replace the image presented when 'apply new kit' flow is fi…
louiswol94 Jun 26, 2024
fcbd401
Fix: Floating Buttons - Remove "Save as global" - Main (#27832)
nicoladj77 Jun 26, 2024
d0da936
Internal: Adjust workflow hints for Image Optimizer in editor [ED-151…
KingYes Jun 27, 2024
eb1fd83
Internal: Replace the image presented when 'apply new kit' flow is fi…
louiswol94 Jun 27, 2024
c23c5ca
Fix: Floating Buttons - fix closing of modal - main [ED-15153] (#27846)
nicoladj77 Jun 27, 2024
77aa2de
Fix: Tabs Widget - Tab stops being functional if we assign a CSS ID t…
louiswol94 Jun 28, 2024
5e896d5
Fix: Link in Bio v5 - add correct variable to identity image cover (#…
mserino Jun 28, 2024
1a76244
Fix: Floating Buttons - fixing CSS for floating buttons preview (#27812)
mserino Jun 28, 2024
a8a34b1
Internal: Floating Buttons and Link In bio - change utm_source - main…
nicoladj77 Jun 28, 2024
f733724
Fix: Floating Buttons - fix advanced tab and premium plugins [ED-1516…
nicoladj77 Jun 28, 2024
c025d9a
Internal: Unskip and fix flaky Nested Tabs (atomic) test [ED-15135] (…
hein-obox Jun 28, 2024
dd76ffb
Fix: Update z-index for contact buttons to 10000 [ED-15171] (#27852)
gabriel-glo Jun 29, 2024
e9da671
Internal: Remove unneeded SCSS file [ED-15178] (#27882)
rami-elementor Jun 30, 2024
0fab8ed
Internal: Remove unused SCSS file of Swiper 3 [ED-15180] (#27884)
rami-elementor Jun 30, 2024
40c5af4
Internal: Add `phpunit.result.cache` to `.gitignore` (#27902)
StyleShit Jul 1, 2024
6201a2f
Revert "Internal: Remove unused SCSS file of Swiper 3 [ED-15180]" (#2…
yotamselementor Jul 1, 2024
57307e8
Internal: Remove CSS that add WordPress < 5.3 support [ED-15181] (#27…
rami-elementor Jul 1, 2024
e7d6e09
Revert "Internal: Remove unneeded SCSS file [ED-15178]" (#27903)
yotamselementor Jul 1, 2024
9500508
Fix: Selection does not work for some widgets [EDS-230] (#27888)
Nevoss Jul 1, 2024
33e929a
Internal: Elements experiment [EDS-227] (#27892)
Nevoss Jul 1, 2024
d21b065
Fix: Dynamic tags side effects [ED-15097] (#27896)
mykytamurzin Jul 1, 2024
9fd0e80
Tweak: UI & Utilization for Post Excerpt Generation- Elementor Editor…
naorsabag Jul 1, 2024
b034f84
Internal: Stabilize tests (#27904)
yotamselementor Jul 1, 2024
bc37e67
Fix: Template Library - ensure template is rendered if link is invali…
nicoladj77 Jul 1, 2024
0cb3bc6
Fix: Floating Buttons - control not updating - [ED-15174] (#27914)
nicoladj77 Jul 1, 2024
c6ed101
Internal: Use REST API to manage plugins of plugin tester (#27909)
yotamselementor Jul 2, 2024
f4a016f
Internal: Disable addons-for-elementor from plugin tester (#27919)
yotamselementor Jul 2, 2024
16dc255
Tweak: Floating Buttons - remove defaults from controls [ED-15229] (#…
mserino Jul 3, 2024
f03d79e
Fix: Update CSS specificity in order to override global color options…
gabriel-glo Jul 3, 2024
d0e2cbd
New: Generate texts using AI within WP admin [ED-14706] (#27923)
DennisNerush Jul 3, 2024
9d30b3b
Tweak: Update blank state template for Floating Button module [ED-151…
gabriel-glo Jul 3, 2024
b87690a
Internal: Implementing new WP Repo description [ED-15169] (#27920)
arielk Jul 3, 2024
55b6a5e
Internal: Add atomic widgets (#27922)
Omerisra6 Jul 4, 2024
c7f477b
Fix: Floating Buttons - Fix custom css and attributes - main [ED-1523…
nicoladj77 Jul 4, 2024
50cd491
New: Added ability to generate text from wp on right elements [ED-14…
DennisNerush Jul 4, 2024
31f616a
Internal: Add debug info when failed to fetch nonce (#27946)
yotamselementor Jul 4, 2024
1d27e0a
Internal: Split nested-tabs, container and style guide tests (#27918)
yotamselementor Jul 4, 2024
b9b94b1
Tweak: Update web-based suggested prompts [ED-15243] (#27949)
DennisNerush Jul 4, 2024
0390dc4
Internal: Remove the container padding from floating buttons widget -…
gabriel-glo Jul 5, 2024
bbe30a0
Fix: Floating Buttons - click tracking for logged out users - main [E…
nicoladj77 Jul 5, 2024
372e115
internal: wp-now poc
davseve Jul 7, 2024
213f858
update blueprint
davseve Jul 7, 2024
63efc65
Merge branch 'main' into wp-now-p-o-c
davseve Jul 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/scripts/update-latest-pull-requests.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const updatePullRequests = async () => {
lastDays.setDate( lastDays.getDate() - DAYS_TO_UPDATE );
const lastDaysString = lastDays.toISOString().split( 'T' )[0];

const url = `https://api.github.com/search/issues?q=repo:${GITHUB_REPOSITORY}+type:pr+is:open+base:main+created:>=${lastDaysString}`;
const url = `https://api.github.com/search/issues?q=repo:${GITHUB_REPOSITORY}+type:pr+is:open+draft:false+base:main+created:>=${lastDaysString}`;
const headers = {
Authorization: `token ${GITHUB_TOKEN}`,
Accept: 'application/vnd.github.v3+json',
Expand Down
44 changes: 12 additions & 32 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,32 +41,17 @@ jobs:
name: Build plugin
uses: ./.github/workflows/build.yml
Playwright:
name: Playwright test - ${{ matrix.testSuite }} on PHP 7.4
name: Playwright test - ${{ matrix.shardIndex }} on PHP 8.0
runs-on: ubuntu-latest
needs: [build-plugin]
if: ${{ github.event.pull_request.title == null || needs.build-plugin.outputs.changelog_diff }}
strategy:
fail-fast: ${{inputs.fail_fast || true}}
fail-fast: ${{ inputs.fail_fast || true }}
matrix:
testSuite: [
'ai',
'onBoarding',
'video',
'elements-regression',
'default',
'nested-tabs',
'reverse-columns',
'container',
'nested-accordion',
'styleguide_image_link',
'rating',
'pluginTester1_containers',
'pluginTester2_containers',
'pluginTester1_sections',
'pluginTester2_sections',
'promotions',
'nested-atomic-repeaters',
]
shardIndex: [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ]
shardTotal: [ 10 ]
include:
- shardIndex: "elements-regression"
steps:
- name: Checkout source code
uses: actions/checkout@v4
Expand Down Expand Up @@ -101,25 +86,20 @@ jobs:
run: |
npx wp-env run cli wp core version
npx wp-env run cli wp --info
- name: Activate performance experiments
run: |
npx wp-env run cli wp elementor experiments activate e_font_icon_svg,e_lazyload,e_optimized_css_loading,additional_custom_breakpoints
- name: Install playwright/test
run: |
npx playwright install chromium
- name: Run Playwright tests
if: ${{matrix.testSuite !='elements-regression'}}
env:
TEST_SUITE: "@${{matrix.testSuite}}"
run: npm run test:playwright -- --reporter=${{inputs.reporter || 'list,github'}}
if: ${{ matrix.shardIndex != 'elements-regression' }}
run: npm run test:playwright -- --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }} --reporter=${{ inputs.reporter || 'list,github' }}
- name: Run element regression tests
if: ${{matrix.testSuite =='elements-regression'}}
run: npm run test:playwright:elements-regression -- --reporter=${{inputs.reporter || 'list,github'}}
if: ${{ matrix.shardIndex == 'elements-regression' }}
run: npm run test:playwright:elements-regression -- --reporter=${{ inputs.reporter || 'list,github' }}
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-test-results-${{ matrix.testSuite }}
path: ${{inputs.path-to-results || 'test-results/'}}
name: playwright-test-results-${{ matrix.shardIndex }}
path: ${{ inputs.path-to-results || 'test-results/' }}
if-no-files-found: ignore
retention-days: 2

Expand Down
118 changes: 118 additions & 0 deletions .github/workflows/pwwpnow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
name: Playwright wp-now

on:
workflow_dispatch:
inputs:
core_branch:
description: 'Elementor Core Branch'
required: true

# This allows a subsequently queued workflow run to interrupt previous runs
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true

jobs:
build-plugin:
name: Build plugin
runs-on: ubuntu-latest
outputs:
changelog_diff: ${{ steps.changelog_diff_files.outputs.diff }}
steps:
- name: Checkout source code
uses: actions/checkout@v3
- name: Check if this is only a changelog PR
id: changelog_diff_files
uses: technote-space/get-diff-action@v6
with:
PATTERNS: |
**/*
.*/**/*
!readme.txt
!changelog.txt
- name: Install Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Restore NPM Cache
uses: actions/cache/restore@v3
with:
path: ~/.npm
key: npm-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
- name: Install dependencies
run: npm i
- name: Build
run: npx grunt build
- name: Cache node modules
uses: actions/cache/save@v3
with:
path: ~/.npm
key: npm-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
- name: Save build to cache
uses: actions/cache/save@v3
with:
path: ./build/*
key: playwright-build-${{ github.sha }}

Playwright:
name: Playwright test - ${{ matrix.testSuite }} on PHP 8.0
runs-on: ubuntu-latest
needs: [build-plugin]
strategy:
matrix:
testSuite: [
'video',
]
steps:
- name: Checkout source code
uses: actions/checkout@v3
- name: Install Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 20.x
- name: Restore NPM from cache
uses: actions/cache/restore@v3
id: restore-npm
with:
path: ~/.npm
key: npm-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
- name: Restore build from cache
uses: actions/cache/restore@v3
id: restore-build
with:
path: ./build/*
key: playwright-build-${{ github.sha }}
- name: Install dependencies
run: npm i
- name: Install WordPress environment
run: |
npx wp-now start --php=8.0 --port=8888 --blueprint=./blueprint.json &
- name: Run wp-now CLI commands
run: |
wp-now cli "wp elementor experiments activate e_optimized_css_loading"
- name: Install playwright/test
run: |
npm run test:setup:playwright
npx playwright install chromium
- name: Run Playwright tests
env:
TEST_SUITE: "@${{matrix.testSuite}}"
run: npm run test:playwright
- uses: actions/upload-artifact@v3
if: failure()
with:
name: playwright-test-results-${{ matrix.testSuite }}
path: test-results/
retention-days: 3

test-result:
needs: Playwright
if: ${{ always() }} # Will be run even if 'Playwright' matrix will be skipped
runs-on: ubuntu-22.04
name: Playwright - Test Results
steps:
- name: Test status
run: echo "Test status is - ${{ needs.Playwright.result }}"
- name: Check Playwright matrix status
if: ${{ needs.Playwright.result != 'success' && needs.Playwright.result != 'skipped' }}
run: exit 1
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,11 @@ Thumbs.db
*.DS_Store
coverage/
.zimud.json
.phpunit.result.cache

# playwright
test-results/
**/storageState.json
**/storageState-*.json
tests/playwright/config/local.config.js
playwright-report
tests/playwright/blob-report
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export default function ImportComplete() {
return (
<Layout type="import" footer={ <ImportCompleteFooter seeItLiveUrl={ seeItLiveUrl } referrer={ referrer } /> }>
<WizardStep
image={ elementorAppConfig.assets_url + 'images/go-pro.svg' }
image={ elementorAppConfig.assets_url + 'images/kit-is-live.svg' }
heading={ __( 'Your kit is now live on your site!', 'elementor' ) }
description={ __( 'You’ve imported and applied the following to your site:', 'elementor' ) }
notice={ (
Expand Down
4 changes: 2 additions & 2 deletions app/modules/import-export/utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Elementor\Core\Utils\Str;
use Elementor\Modules\LandingPages\Module as Landing_Pages_Module;
use Elementor\Modules\ConversionCenter\Module as Conversion_Center_Module;
use \Elementor\Modules\FloatingButtons\Module as Floating_Buttons_Module;
use Elementor\TemplateLibrary\Source_Local;
use Elementor\Utils as ElementorUtils;

Expand Down Expand Up @@ -81,7 +81,7 @@ public static function get_registered_cpt_names() {
unset(
$post_types[ Landing_Pages_Module::CPT ],
$post_types[ Source_Local::CPT ],
$post_types[ Conversion_Center_Module::CPT_CONTACT_PAGES ]
$post_types[ Floating_Buttons_Module::CPT_FLOATING_BUTTONS ]
);

return array_keys( $post_types );
Expand Down
2 changes: 1 addition & 1 deletion app/modules/onboarding/assets/js/pages/account.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default function Account() {
listItems: elementorAppConfig.onboarding.experiment
? [
__( 'Set your site\'s theme', 'elementor' ),
__( 'Chose additional features', 'elementor' ),
__( 'Choose additional features', 'elementor' ),
__( 'Choose how to start creating', 'elementor' ),
] : [
__( 'Set your site\'s theme', 'elementor' ),
Expand Down
13 changes: 3 additions & 10 deletions assets/dev/js/admin/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Events from 'elementor-utils/events';
import FilesUploadHandler from '../editor/utils/files-upload-handler';
import TemplateControls from './new-template/template-controls.js';
import { showJsonUploadWarningMessageIfNeeded } from 'elementor-utils/json-upload-warning-message';
import LinksPagesModule from 'elementor/modules/conversion-center/assets/js/admin/module';
import FloatingButtonsHandler from 'elementor/modules/floating-buttons/assets/js/admin/module';

( function( $ ) {
var ElementorAdmin = elementorModules.ViewModule.extend( {
Expand Down Expand Up @@ -316,13 +316,6 @@ import LinksPagesModule from 'elementor/modules/conversion-center/assets/js/admi
} ).show();
} );

$( '.elementor_css_print_method select' ).on( 'change', function() {
var $descriptions = $( '.elementor-css-print-method-description' );

$descriptions.hide();
$descriptions.filter( '[data-value="' + $( this ).val() + '"]' ).show();
} ).trigger( 'change' );

$( '.elementor_google_font select' ).on( 'change', function() {
$( '.elementor_font_display' ).toggle( '1' === $( this ).val() );
} ).trigger( 'change' );
Expand All @@ -347,8 +340,8 @@ import LinksPagesModule from 'elementor/modules/conversion-center/assets/js/admi
new LandingPagesModule();
}

if ( elementorCommon.config.experimentalFeatures[ 'conversion-center' ] ) {
new LinksPagesModule();
if ( elementorCommon.config.experimentalFeatures[ 'floating-buttons' ] ) {
new FloatingButtonsHandler();
}

this.templateControls = new TemplateControls();
Expand Down
8 changes: 6 additions & 2 deletions assets/dev/js/admin/hints/media.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@
events: {
...wp.media.view.Attachment.Details.prototype.events,
'click .elementor-control-notice-dismiss': 'dismiss',
'click .e-hint__container .e-btn-1': 'onHintAction',
'click .e-hint__container a': 'onHintAction',
'click .e-hint__container a': 'onHintAnchorClick',
'click .e-hint__container button.e-btn-1': 'onHintAction',
},

shouldDisplayHint( view ) {
Expand Down Expand Up @@ -98,6 +98,10 @@
this.dismiss( event );
},

onHintAnchorClick( event ) {
this.dismiss( event );
},

dismiss( event ) {
elementorCommon.ajax.addRequest( 'dismissed_editor_notices', {
data: {
Expand Down
30 changes: 28 additions & 2 deletions assets/dev/js/editor/components/template-library/manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,10 +314,12 @@ TemplateLibraryManager = function() {
}

$e.data.get( 'library/templates', query, options ).then( ( result ) => {
templatesCollection = new TemplateLibraryCollection( result.data.templates );
templatesCollection = new TemplateLibraryCollection(
this.filterOutInactiveExperiments( result.data.templates ),
);

if ( result.data.config ) {
config = result.data.config;
config = this.filterOutExperimentsCategories( result.data.config );
}

self.layout.hideLoadingView();
Expand All @@ -328,6 +330,30 @@ TemplateLibraryManager = function() {
} );
};

this.filterOutExperimentsCategories = function( configData ) {
if ( elementorCommon.config.experimentalFeatures[ 'link-in-bio' ] ) {
return configData;
}

const dataToReturn = { ...configData };

dataToReturn.block.categories = configData?.block?.categories.filter( function( category ) {
return category !== 'Link in Bio';
} );

return dataToReturn;
};

this.filterOutInactiveExperiments = function( templates ) {
if ( elementorCommon.config.experimentalFeatures[ 'link-in-bio' ] ) {
return templates;
}
return templates.filter( function( template ) {
const { subtype } = template;
return subtype !== 'Link in Bio';
} );
};

this.showTemplates = function() {
// The tabs should exist in DOM on loading.
self.layout.setHeaderDefaultParts();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,26 @@ module.exports = elementorModules.common.views.modal.Layout.extend( {
const subscriptionPlan = subscriptionPlans[ templateAccessTier ];
const promotionText = elementorAppConfig.hasPro ? 'Upgrade' : `Go ${ subscriptionPlan.label }`;

return Marionette.Renderer.render( template, {
promotionText,
promotionLink: subscriptionPlan.promotion_url,
} );
try {
const promotionUrlPieces = new URL( subscriptionPlan.promotion_url );
const queryString = promotionUrlPieces.searchParams.toString();

const promotionLinkQueryString = elementor.hooks.applyFilters(
'elementor/editor/template-library/template/promotion-link-search-params',
queryString,
templateData,
);

return Marionette.Renderer.render( template, {
promotionText,
promotionLink: `${ promotionUrlPieces.origin }${ promotionUrlPieces.pathname }?${ promotionLinkQueryString }`,
} );
} catch ( e ) {
return Marionette.Renderer.render( template, {
promotionText,
promotionLink: subscriptionPlan.promotion_url,
} );
}
},

setHeaderDefaultParts() {
Expand Down
Loading
Loading