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

Release Neve 3.8 #4194

Merged
merged 147 commits into from
Jan 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
147 commits
Select commit Hold shift + click to select a range
d7d32be
Sync branch [skip ci]
pirate-bot Sep 25, 2023
17e81eb
Sync branch [skip ci]
pirate-bot Sep 25, 2023
628349a
Sync branch [skip ci]
pirate-bot Sep 29, 2023
47efcd0
Sync branch [skip ci]
pirate-bot Oct 5, 2023
ebf14d3
Sync branch [skip ci]
pirate-bot Oct 5, 2023
d3380f6
Sync branch [skip ci]
pirate-bot Oct 5, 2023
ae19364
Sync branch [skip ci]
pirate-bot Oct 5, 2023
b3f2a02
Sync branch [skip ci]
pirate-bot Oct 5, 2023
da7d979
Sync branch [skip ci]
pirate-bot Oct 5, 2023
136c93a
Sync branch [skip ci]
pirate-bot Oct 23, 2023
ce74664
Sync branch [skip ci]
pirate-bot Oct 23, 2023
94299ea
chore: add tracking for mega menu
Oct 23, 2023
68d04da
chore: add tracking for mega menu and taxonomy image
Oct 24, 2023
8b8cee4
chore: add tracking for header builder
Oct 24, 2023
09fc3ec
chore: add tracking for header builder component removal
Oct 24, 2023
2bc942a
chore: add tracking for typekit font
Oct 24, 2023
d2184f0
chore: support changes for custom payment icons
Oct 26, 2023
7bd74fe
chore: update tracking
Nov 2, 2023
ef4ee7b
chore: remove previous tracking file
Nov 2, 2023
2eb2d42
chore: update the sent value
Nov 2, 2023
02d3124
Merge branch 'development' of https://github.com/Codeinwp/neve into f…
Nov 2, 2023
b92353f
chore: add tracking for performance module
Nov 2, 2023
e58fbd7
chore: add tracking for select input from modules
Nov 2, 2023
8ddf87c
chore: remove object hash
Nov 3, 2023
d855910
chore: replace add with set
Nov 3, 2023
cd2dc9b
chore: change name
Nov 3, 2023
f7c4a4c
chore: add support changes for svg menu icon in pro
Nov 7, 2023
051177b
chore: use test tracking endpoint
Soare-Robert-Daniel Nov 8, 2023
c98597e
chore: add icon size and extend svg sanitization
preda-bogdan Nov 13, 2023
03dbf92
Merge branch 'new/next' into feat/custom-svg-menu-icon
preda-bogdan Nov 16, 2023
8e66154
Sync branch [skip ci]
pirate-bot Nov 20, 2023
3e86b93
chore: fix long item names wrap and submenu bg
preda-bogdan Nov 20, 2023
d226f45
Merge branch 'development' into feat/custom-svg-menu-icon
preda-bogdan Nov 20, 2023
0393d43
chore: update e2e tests
preda-bogdan Nov 20, 2023
ed7e68c
chore: update package location for e2e setup
preda-bogdan Nov 20, 2023
da5248f
feat: add X (Twitter) logo
Soare-Robert-Daniel Nov 22, 2023
2aa1db5
chore: add twitter prefix
Soare-Robert-Daniel Nov 22, 2023
a4fb1a1
chore: update internal deps
Soare-Robert-Daniel Nov 23, 2023
517cb08
feat: add apple music icon
Soare-Robert-Daniel Nov 23, 2023
e889409
Sync branch [skip ci]
pirate-bot Nov 24, 2023
953403b
Merge branch 'development' into feat/x-logo
Soare-Robert-Daniel Nov 24, 2023
3cd95fb
Sync branch [skip ci]
pirate-bot Nov 24, 2023
4ccc909
Merge branch 'new/next' into feat/custom-svg-menu-icon
preda-bogdan Nov 24, 2023
107146d
Merge branch 'development' into feat/x-logo
Soare-Robert-Daniel Nov 24, 2023
eb181e0
Sync branch [skip ci]
pirate-bot Nov 24, 2023
202dd98
Merge branch 'new/next' into feat/custom-svg-menu-icon
preda-bogdan Nov 24, 2023
8ca4956
chore: sync with dev
Soare-Robert-Daniel Nov 27, 2023
3ebc386
Merge branch 'development' into feat/track
Soare-Robert-Daniel Nov 27, 2023
c7e6116
Sync branch [skip ci]
pirate-bot Nov 28, 2023
c720e70
Sync branch [skip ci]
pirate-bot Nov 28, 2023
a692502
Sync branch [skip ci]
pirate-bot Nov 28, 2023
c2ca252
Sync branch [skip ci]
pirate-bot Nov 28, 2023
be73839
Sync branch [skip ci]
pirate-bot Nov 28, 2023
752fd10
Sync branch [skip ci]
pirate-bot Nov 28, 2023
60fb79f
Sync branch [skip ci]
pirate-bot Nov 28, 2023
c02c2f0
Sync branch [skip ci]
pirate-bot Nov 28, 2023
b86e652
chore: use themisle api link
Soare-Robert-Daniel Nov 28, 2023
c9e7a7f
Merge branch 'development' into feat/track
Soare-Robert-Daniel Nov 28, 2023
965d935
Merge branch 'new/next' into feat/custom-svg-menu-icon
preda-bogdan Nov 28, 2023
31bc1b1
chore: wip e2e test fix
preda-bogdan Nov 20, 2023
e924c74
fix: svg icon as part of the mobile menu
preda-bogdan Nov 28, 2023
41ffe67
chore: reverted test changes as they were already solved in main
preda-bogdan Nov 28, 2023
e6503bf
chore: code cleanup
preda-bogdan Nov 28, 2023
50753f0
Sync branch [skip ci]
pirate-bot Nov 29, 2023
e037f64
Merge branch 'development' into fix/submenu_long_items_wrap
preda-bogdan Nov 29, 2023
d431656
Merge branch 'development' into feat/x-logo
Soare-Robert-Daniel Nov 29, 2023
170dc7c
chore: added e2e test
preda-bogdan Nov 29, 2023
d27f0b6
Merge branch 'development' into fix/submenu_long_items_wrap
preda-bogdan Nov 29, 2023
8faab8c
fix: use diff to reposition search input
Soare-Robert-Daniel Dec 4, 2023
533a7e2
chore: remove string literals
Soare-Robert-Daniel Dec 4, 2023
c220012
chore: use alias for
Soare-Robert-Daniel Dec 5, 2023
cdf490d
Merge branch 'development' into feat/track
Soare-Robert-Daniel Dec 5, 2023
981f363
fix: point event exception for sidebar search icon
Soare-Robert-Daniel Dec 6, 2023
e2358ce
feat: allow HTML5 for scripts
Soare-Robert-Daniel Dec 7, 2023
e383924
feat: allow full support for HTML5
Soare-Robert-Daniel Dec 8, 2023
6c31991
Sync branch [skip ci]
pirate-bot Dec 8, 2023
67923bc
Merge branch 'development' into feat/html5-support
Soare-Robert-Daniel Dec 11, 2023
81ee42d
chore: typescript types for telemetry
Soare-Robert-Daniel Dec 11, 2023
5c4c3a3
Merge branch 'development' into feat/track
Soare-Robert-Daniel Dec 11, 2023
5bb010b
Sync branch [skip ci]
pirate-bot Dec 22, 2023
b6cddf4
Sync branch [skip ci]
pirate-bot Dec 22, 2023
079a54f
Merge branch 'development' into feat/x-logo
preda-bogdan Dec 22, 2023
0a60c57
Sync branch [skip ci]
pirate-bot Dec 22, 2023
62e5616
Sync branch [skip ci]
pirate-bot Dec 22, 2023
312dfda
Merge branch 'development' into fix/submenu_long_items_wrap
preda-bogdan Dec 22, 2023
d407b54
Sync branch [skip ci]
pirate-bot Dec 22, 2023
ce0b057
Sync branch [skip ci]
pirate-bot Dec 22, 2023
56e88f3
Sync branch [skip ci]
pirate-bot Dec 22, 2023
d642dc1
fix: solve SEO tag tile based on device for home #3984
preda-bogdan Jan 8, 2024
06a6ffa
fix: load missing translations for customizer js build
Soare-Robert-Daniel Jan 8, 2024
f6ed0b8
feat: add mobile support for the footer in HFG Codeinwp/neve-pro-addo…
preda-bogdan Jan 8, 2024
a0dd24f
feat: add formbricks survey
Soare-Robert-Daniel Jan 10, 2024
23bae51
chore: set node-sass to 8.0
Soare-Robert-Daniel Jan 10, 2024
50d75ae
chore: improved condition on filter and added tests
preda-bogdan Jan 10, 2024
e61ce27
feat: add custom webpack plugin for chunk file name extraction
Soare-Robert-Daniel Jan 11, 2024
7ca998f
chore: add global val for dashboard
Soare-Robert-Daniel Jan 11, 2024
196ba22
chore: add null check
Soare-Robert-Daniel Jan 11, 2024
b38cab3
fix: make scrollable the mobile header builder droppable zone
Soare-Robert-Daniel Jan 12, 2024
cba22c4
fix: single post title alignment on full width
Soare-Robert-Daniel Jan 15, 2024
f1694fe
chore: improved selector for unit test
preda-bogdan Jan 15, 2024
d832738
fix: woocommerce notices for wc8.5 #4189
preda-bogdan Jan 17, 2024
92a9e0a
chore: code style changes
preda-bogdan Jan 17, 2024
5435082
chore: Update Google fonts
pirate-bot Jan 22, 2024
5600439
fix(hfg): popover inside container with overflow
Soare-Robert-Daniel Jan 23, 2024
faa355b
fix(dash): maintain the width of main container
Soare-Robert-Daniel Jan 23, 2024
ce331a0
Merge pull request #4192 from Codeinwp/ci/update-fonts
preda-bogdan Jan 25, 2024
c92df37
Sync branch [skip ci]
pirate-bot Jan 25, 2024
44e2739
Merge branch 'new/next' into feat/custom-svg-menu-icon
preda-bogdan Jan 25, 2024
056a726
Merge pull request #4125 from Codeinwp/feat/custom-payment-icons
preda-bogdan Jan 25, 2024
3ea9441
Merge branch 'new/next' into feat/custom-svg-menu-icon
preda-bogdan Jan 25, 2024
7ea56bf
Merge pull request #4135 from Codeinwp/feat/custom-svg-menu-icon
preda-bogdan Jan 25, 2024
f8db496
chore: updated visual regression e2e test
preda-bogdan Jan 25, 2024
c604915
chore: updated visual regression e2e test
preda-bogdan Jan 25, 2024
f03cb0b
chore: increase maxDiffPixelRatio e2e visual regression
preda-bogdan Jan 25, 2024
a35e574
chore: update mexDiffPixelRatio and e2e visual regression base images
preda-bogdan Jan 25, 2024
76c5655
chore: update mexDiffPixelRatio and e2e visual regression base images
preda-bogdan Jan 25, 2024
d4892e9
chore: update mexDiffPixelRatio and e2e visual regression
preda-bogdan Jan 25, 2024
fc0c1f8
chore: updated baseline visual regression
preda-bogdan Jan 25, 2024
793ea97
chore: updated baseline visual regression
preda-bogdan Jan 25, 2024
37404ab
chore: updated baseline visual regression
preda-bogdan Jan 25, 2024
78e581f
Merge pull request #4193 from Codeinwp/new/next
preda-bogdan Jan 25, 2024
5736080
Merge pull request #4191 from Codeinwp/fix/woo_notices_wc8.5
preda-bogdan Jan 26, 2024
c026d54
Merge pull request #4190 from Codeinwp/fix/title-single-post-alignment
preda-bogdan Jan 26, 2024
62e452d
Merge pull request #4183 from Codeinwp/fix/seo_brand_title_by_device
preda-bogdan Jan 26, 2024
185f24d
Merge branch 'development' into feat/track
preda-bogdan Jan 26, 2024
2474bef
Merge branch 'development' into feat/x-logo
preda-bogdan Jan 26, 2024
1f666cc
Merge branch 'development' into fix/header-builder-mobile-scroll
preda-bogdan Jan 26, 2024
deaa24c
Merge branch 'development' into feat/nps-integration
preda-bogdan Jan 26, 2024
71aa913
Merge pull request #4168 from Codeinwp/feat/html5-support
preda-bogdan Jan 26, 2024
2e7acde
Merge pull request #4184 from Codeinwp/fix/customizer-js-chunk-transl…
preda-bogdan Jan 26, 2024
88b4134
Sync components package version
pirate-bot Jan 26, 2024
60702ef
Merge pull request #4153 from Codeinwp/fix/submenu_long_items_wrap
preda-bogdan Jan 26, 2024
cf224f4
Merge branch 'development' into feat/track
preda-bogdan Jan 26, 2024
76499c8
Merge pull request #4154 from Codeinwp/fix/import-deps
preda-bogdan Jan 26, 2024
8fca624
chore: update base image for visual regression
preda-bogdan Jan 26, 2024
00cfeed
Merge branch 'development' into feat/track
preda-bogdan Jan 26, 2024
44ac870
Merge branch 'development' into feat/x-logo
preda-bogdan Jan 26, 2024
9d27434
Merge pull request #4186 from Codeinwp/feat/nps-integration
preda-bogdan Jan 26, 2024
006db9b
Sync components package version
pirate-bot Jan 26, 2024
31d31d7
Merge pull request #4166 from Codeinwp/fix/mobile-search-icon
preda-bogdan Jan 26, 2024
4f3c529
Merge pull request #4165 from Codeinwp/fix/search-icon
preda-bogdan Jan 26, 2024
e9c8713
Merge pull request #4188 from Codeinwp/fix/header-builder-mobile-scroll
preda-bogdan Jan 26, 2024
f0bb884
Merge pull request #4152 from Codeinwp/feat/x-logo
preda-bogdan Jan 26, 2024
9f007e0
Sync components package version
pirate-bot Jan 26, 2024
ac72d42
Merge branch 'development' into feat/track
preda-bogdan Jan 26, 2024
3595de5
Merge pull request #4185 from Codeinwp/feat/mobile_footer_hfg
preda-bogdan Jan 26, 2024
aca9b41
Merge pull request #4131 from Codeinwp/feat/track
preda-bogdan Jan 26, 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
84 changes: 84 additions & 0 deletions assets/apps/components/config/custom-plugins.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
const path = require('path');

/**
* This plugin appends the non-entrypoint JS chunk file names to the asset files generated by the DependencyExtractionWebpackPlugin.
*
* This mostly used to load translation files for the non-entrypoint JS chunks.
*/
class ChunksNameAssetAppendPlugin {
apply(compiler) {
compiler.hooks.compilation.tap(
'EntrypointChunksPlugin',
(compilation) => {
compilation.hooks.processAssets.tapAsync(
{
name: 'EntrypointChunksPlugin',
stage: compiler.webpack.Compilation
.PROCESS_ASSETS_STAGE_ANALYSE,
},
(assets, callback) => {
// Get entrypoint names
const entrypoints = Array.from(
compilation.entrypoints.keys()
);

// Collecting non-entrypoint JS chunk file names
const jsChunkFiles = Object.keys(assets).filter(
(file) =>
file.endsWith('.js') &&
!entrypoints.includes(
path.basename(file, '.js')
)
);

if (jsChunkFiles.length === 0) {
callback();
return;
}

// Manually constructing the array string for PHP
const jsChunkFilesArrayString =
'array(' +
jsChunkFiles.map((file) => `'${file}'`).join(', ') +
')';

// Process each asset
for (const assetName in assets) {
if (assetName.endsWith('.asset.php')) {
// Modify asset content
const assetContent = assets[assetName].source();
const modifiedContent = assetContent.replace(
'<?php return array(',
`<?php return array('chunks' => ${jsChunkFilesArrayString},`
);

/* eslint-disable no-console */
console.log(
'\n\x1b[35m%s\x1b[0m \x1b[0m%s\x1b[0m \x1b[36m%s\x1b[0m \x1b[33m%s\x1b[0m\n',
'[Neve Webpack Plugin][ChunksNameAssetAppendPlugin]',
assetName,
'has been changed to include the following file chunks name as array:',
jsChunkFilesArrayString
);

// Updating the asset in the compilation
compilation.updateAsset(
assetName,
new compiler.webpack.sources.RawSource(
modifiedContent
)
);
}
}

callback();
}
);
}
);
}
}

module.exports = {
ChunksNameAssetAppendPlugin,
};
2 changes: 2 additions & 0 deletions assets/apps/components/config/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const DependencyExtractionWebpackPlugin = require('@wordpress/dependency-extraction-webpack-plugin');
const config = require('@wordpress/scripts/config/webpack.config');
const customPlugins = require('./custom-plugins');

const plugins = [
...config.plugins.filter(
Expand All @@ -19,6 +20,7 @@ const plugins = [
}
},
}),
new customPlugins.ChunksNameAssetAppendPlugin(),
];

module.exports = (env) => {
Expand Down
2 changes: 1 addition & 1 deletion assets/apps/components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@neve-wp/components",
"version": "0.0.51",
"version": "0.0.54",
"description": "Neve React Components",
"author": "themeisle <[email protected]>",
"license": "GPL-2.0-or-later",
Expand Down
5 changes: 4 additions & 1 deletion assets/apps/components/src/Common/DropdownFix.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ function useObservableState(initialState, onStateChange) {
}

/**
* This monitors all events across opened popver components
* This monitors all events across opened popover components
*
* @param {any} ref - The ref of the popover component.
* @param {any} callback - The callback function to execute.
*/
function useOutsideClickHook(ref, callback) {
useEffect(() => {
Expand Down
58 changes: 58 additions & 0 deletions assets/apps/components/src/Common/icons.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,49 @@
const getIcons = (size) => {
return {
'apple-music': (
<svg
width={size}
height={size}
version="1.1"
id="Artwork"
xmlns="http://www.w3.org/2000/svg"
x="0px"
y="0px"
viewBox="0 0 73 73"
style={{ enableBackground: 'new 0 0 73 73' }}
xmlSpace="preserve"
>
<g id="Layer_5"></g>
<g>
<g>
<path
className="st0"
style={{ fillRule: 'evenodd', clipRule: 'evenodd' }}
d="M72,19.94c0-0.72-0.01-1.45-0.03-2.17c-0.04-1.58-0.14-3.17-0.42-4.73c-0.28-1.58-0.75-3.06-1.48-4.5
c-0.72-1.41-1.66-2.71-2.78-3.83c-1.12-1.12-2.42-2.06-3.83-2.78c-1.44-0.73-2.91-1.2-4.49-1.48c-1.56-0.28-3.15-0.37-4.73-0.42
C53.51,0.02,52.78,0.01,52.06,0c-0.86,0-1.72,0-2.58,0H22.52c-0.86,0-1.72,0-2.58,0c-0.72,0-1.45,0.01-2.17,0.03
c-1.58,0.04-3.17,0.14-4.73,0.42C11.46,0.74,9.98,1.2,8.55,1.94C7.13,2.66,5.84,3.6,4.72,4.72S2.65,7.13,1.93,8.55
c-0.73,1.44-1.2,2.91-1.48,4.5c-0.28,1.56-0.37,3.15-0.42,4.73C0.02,18.5,0.01,19.22,0,19.94c0,0.86,0,1.72,0,2.58v26.95
c0,0.86,0,1.72,0,2.58c0,0.72,0.01,1.45,0.03,2.17c0.04,1.58,0.14,3.17,0.42,4.73c0.28,1.58,0.75,3.06,1.48,4.5
c0.72,1.41,1.66,2.71,2.78,3.83s2.42,2.06,3.83,2.78c1.44,0.73,2.91,1.2,4.49,1.48c1.56,0.28,3.15,0.37,4.73,0.42
c0.72,0.02,1.45,0.03,2.17,0.03c0.86,0.01,1.72,0,2.58,0h26.95c0.86,0,1.72,0,2.58,0c0.72,0,1.45-0.01,2.17-0.03
c1.58-0.04,3.17-0.14,4.73-0.42c1.58-0.28,3.06-0.75,4.49-1.48c1.41-0.72,2.71-1.66,3.83-2.78c1.12-1.12,2.06-2.41,2.78-3.83
c0.73-1.44,1.2-2.91,1.48-4.5c0.28-1.56,0.37-3.15,0.42-4.73c0.02-0.72,0.03-1.45,0.03-2.17c0.01-0.86,0-1.72,0-2.58V22.52
C72,21.66,72,20.8,72,19.94z M52.71,46.85c0,0.91-0.01,1.74-0.2,2.65c-0.19,0.89-0.53,1.72-1.05,2.47
c-0.52,0.75-1.19,1.36-1.97,1.82c-0.79,0.47-1.62,0.73-2.5,0.91c-1.66,0.33-2.79,0.41-3.86,0.2c-1.03-0.21-1.9-0.68-2.6-1.32
c-1.03-0.95-1.68-2.23-1.82-3.56c-0.16-1.57,0.36-3.24,1.53-4.48c0.59-0.62,1.34-1.11,2.34-1.5c1.04-0.4,2.19-0.65,3.96-1
c0.47-0.09,0.93-0.19,1.4-0.28c0.61-0.12,1.14-0.28,1.56-0.8c0.43-0.52,0.43-1.16,0.43-1.78V24.32c0-1.21-0.54-1.54-1.7-1.32
c-0.83,0.16-18.62,3.75-18.62,3.75c-1,0.24-1.36,0.57-1.36,1.82v23.23c0,0.91-0.05,1.74-0.24,2.65c-0.19,0.89-0.53,1.72-1.05,2.47
c-0.52,0.75-1.19,1.36-1.97,1.82c-0.79,0.47-1.62,0.74-2.5,0.92c-1.66,0.33-2.79,0.41-3.86,0.2c-1.03-0.21-1.9-0.69-2.6-1.33
c-1.03-0.95-1.63-2.23-1.78-3.56c-0.16-1.57,0.31-3.24,1.49-4.48c0.59-0.62,1.34-1.11,2.34-1.5c1.04-0.4,2.19-0.65,3.96-1
c0.47-0.09,0.93-0.19,1.4-0.28c0.61-0.12,1.14-0.28,1.56-0.8c0.42-0.52,0.47-1.13,0.47-1.75c0-4.92,0-26.78,0-26.78
c0-0.36,0.03-0.6,0.05-0.72c0.09-0.56,0.31-1.05,0.72-1.39c0.34-0.28,0.78-0.48,1.33-0.6l0.01,0L49,11.33
c0.19-0.04,1.73-0.31,1.91-0.33c1.16-0.1,1.81,0.66,1.81,1.89L52.71,46.85L52.71,46.85z"
/>
</g>
</g>
</svg>
),
'behance-square': (
<svg
width={size}
Expand Down Expand Up @@ -615,6 +659,20 @@ const getIcons = (size) => {
<path d="M1684 408q-67 98-162 167 1 14 1 42 0 130-38 259.5t-115.5 248.5-184.5 210.5-258 146-323 54.5q-271 0-496-145 35 4 78 4 225 0 401-138-105-2-188-64.5t-114-159.5q33 5 61 5 43 0 85-11-112-23-185.5-111.5t-73.5-205.5v-4q68 38 146 41-66-44-105-115t-39-154q0-88 44-163 121 149 294.5 238.5t371.5 99.5q-8-38-8-74 0-134 94.5-228.5t228.5-94.5q140 0 236 102 109-21 205-78-37 115-142 178 93-10 186-50z" />
</svg>
),
'twitter-x': (
<svg
width={size}
height={size}
viewBox="0 0 1200 1227"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z"
fill="inherit"
/>
</svg>
),
'vimeo-square': (
<svg
width={size}
Expand Down
4 changes: 2 additions & 2 deletions assets/apps/components/src/Common/svg.js
Original file line number Diff line number Diff line change
Expand Up @@ -608,9 +608,9 @@ const SVG = {
viewBox="3 3 18 18"
>
<path
fill-rule="evenodd"
fillRule="evenodd"
d="M5 11a6 6 0 1 1 12 0a6 6 0 0 1-12 0zm6-8a8 8 0 1 0 4.906 14.32l3.387 3.387a1 1 0 0 0 1.414-1.414l-3.387-3.387A8 8 0 0 0 11 3zm0 12a4 4 0 1 0 0-8a4 4 0 0 0 0 8z"
clip-rule="evenodd"
clipRule="evenodd"
/>
</svg>
),
Expand Down
47 changes: 47 additions & 0 deletions assets/apps/customizer-controls/src/@types/utils.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,52 @@
updateSidebarItems: () => void;
};

type TrackingData = {
block?: string;
env?: string;
action?: string;
feature?: string;
groupID?: string;
featureComponent?: string;
featureValue?: string | number | Record<string, unknown>;
hasOpenAIKey?: boolean;
usedTheme?: string;
};

type EventResponse = {
error?: string;
success?: boolean;
response?: any;

Check warning on line 122 in assets/apps/customizer-controls/src/@types/utils.d.ts

View workflow job for this annotation

GitHub Actions / npm (14.x)

Unexpected any. Specify a different type
};

type EventOptions = {
directSave?: boolean;
consent?: boolean;
refreshTimer?: boolean;
sendNow?: boolean;
ignoreLimit?: boolean;
};

type EventTrackingAccumulatorWithPlugin = {
add: (data: TrackingData, options?: EventOptions) => string;
set: (key: string, data: TrackingData, options?: EventOptions) => void;
base: EventTrackingAccumulator;
};

interface EventTrackingAccumulator {
subscribe(callback: (response: EventResponse) => void): () => void;
hasConsent(): boolean;
sendBulkTracking(payload: Array<TrackingData>): Promise<Response>;
trkMetadata(data: TrackingData): TrackingData;
with(pluginSlug: string): EventTrackingAccumulatorWithPlugin;
uploadEvents(): Promise<void>;
sendIfLimitReached(): Promise<void> | undefined;
start(): void;
stop(): void;
refreshTimer(): void;
clone(): EventTrackingAccumulator;
}

declare global {
interface Window {
wp: StringObjectKeys;
Expand All @@ -129,6 +175,7 @@
};
};
NeveProReactCustomize: undefined | StringObjectKeys;
tiTrk?: EventTrackingAccumulator;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ const BuilderItem: React.FC<Props> = (props) => {
return a.id < b.id ? -1 : 1;
})
);

window.tiTrk?.with('neve').set(`${componentId}_removed`, {
feature: builder + '_builder',
featureComponent: 'component-removed',
featureValue: { row, slot, item: componentId },
});
};

const iconSize = 18;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ const ComponentsPopover: React.FC<Props> = ({
nextItems.push({ id: itemId });
updateLayout(rowId, slotId, nextItems);
setSidebarItems(sidebarItems.filter((i) => i.id !== itemId));

window.tiTrk?.with('neve').set(`${itemId}_added`, {
feature: builder + '_builder',
featureComponent: 'component-added',
featureValue: { row: rowId, slot: slotId, item: itemId },
});
closePopup();
};

Expand Down
26 changes: 24 additions & 2 deletions assets/apps/customizer-controls/src/builder/scss/_rows.scss
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,25 @@
}

.row.sidebar .row-inner {
width: 200px;
width: 210px;

.droppable-wrap {
height: 100%;

max-height: 170px;
overflow-x: hidden;
overflow-y: auto;

&::-webkit-scrollbar {
width: 10px;
}

&::-webkit-scrollbar-track {
background: #D9D9D9;
}
&::-webkit-scrollbar-thumb {
background: #888;
}
}

.droppable {
Expand Down Expand Up @@ -189,6 +204,13 @@
&:hover, &.has-popover {
.open-popover {
opacity: .25;
}
}
}
}

/**
* Fix for the popover not being visible when it is inside a container with overflow.
*/
.rows-wrapper .vertical-rows .droppable-wrap.has-popover > .components-popover {
position: fixed !important;
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {
SelectControl,
TextControl,
ToggleControl,
TextareaControl,
} from '@wordpress/components';
import IconSelector from './IconSelector';
import { getIcons, ColorControl } from '@neve-wp/components';
Expand Down Expand Up @@ -74,6 +75,15 @@ const RepeaterItemContent = ({
key={key + index}
/>
);
case 'textarea':
return (
<TextareaControl
label={currentField.label}
value={value[index][key] || currentField.default}
onChange={(newData) => changeContent(key, newData)}
key={key + index}
/>
);
case 'icon':
return (
<IconSelector
Expand Down
7 changes: 7 additions & 0 deletions assets/apps/dashboard/src/Components/Options/InputForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@ const InputForm = ({
value={value}
onChange={(e) => {
setValue(e.target.value);
if (slug === 'typekit_id') {
window.tiTrk?.with('neve').add({
feature: 'typekit-fonts',
featureComponent: 'typekit-id',
featureValue: 'enabled',
});
}
}}
/>
<div className="actions">
Expand Down
5 changes: 5 additions & 0 deletions assets/apps/dashboard/src/Components/Options/MultiSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ const MultiSelectOption = ({
choices={choices}
currentValue={getOption(slug) || ['category']}
onChange={(value) => {
window.tiTrk?.with('neve').set(slug, {
feature: 'module-settings',
featureComponent: slug,
featureValue: value,
});
changeSetting(slug, value).then((r) => {
if (r.success) {
changeOption(slug, value);
Expand Down
5 changes: 5 additions & 0 deletions assets/apps/dashboard/src/Components/Options/Select.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ const Select = ({
label={label}
value={getOption(slug) || 'css'}
onChange={(value) => {
window.tiTrk?.with('neve').set(slug, {
feature: 'module-settings',
featureComponent: slug,
featureValue: value,
});
changeSetting(slug, value).then((r) => {
if (r.success) {
changeOption(slug, value);
Expand Down
Loading
Loading