You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lines 67-69 perform a state update outside of useEffect/useCallback, which could cause issues during render. This synchronous state update in the render phase may lead to unexpected behavior or warnings. Consider moving this logic into a useEffect hook.
The useEffect hook has a disabled eslint rule for exhaustive-deps (line 65), but ref?.current is included in the dependency array (line 66). This is problematic because ref.current changes don't trigger re-renders. The effect should depend on ref itself, not ref?.current, or use a different approach to handle ref changes.
The renderAction prop type was changed from a specific union type (IconButton | MenuButton) to a generic React.ReactElement. This reduces type safety and removes compile-time validation that only valid action components are passed. Consider keeping the more specific type or documenting the expected component types.
1. Build Error: A critical error occurred during the build process where the export useDebounceEvent could not be found in packages/shared/dist/index.js (line 6093): - ✘ [ERROR] No matching export in "packages/shared/dist/index.js" for import "useDebounceEvent" - This was imported from packages/components/search/dist/Search/Search.js:1:117
2. Bundle Comparison Script Failure: The script scripts/bundle-check/compare-bundles.js failed with error "No JSON array found in content" (lines 6660-6663). This script likely depends on the output from the previous build step, which failed due to the missing export error.
The root cause is the missing useDebounceEvent export, which caused the build to fail with exit code 1, and subsequently the bundle comparison script couldn't find the expected JSON output to parse.
Relevant error logs:
1: ##[group]Runner Image Provisioner2: Hosted Compute Agent
...
126: * [new branch] feature/moro/disabled-legacy-editable-heading-text-selection -> origin/feature/moro/disabled-legacy-editable-heading-text-selection127: * [new branch] feature/moshe/auto_scroll_after_back_on_store -> origin/feature/moshe/auto_scroll_after_back_on_store128: * [new branch] feature/moshe/vulcan_upgrade -> origin/feature/moshe/vulcan_upgrade129: * [new branch] feature/sergeyro/icon-deprecate-clickable -> origin/feature/sergeyro/icon-deprecate-clickable130: * [new branch] feature/shanab/input-type-time -> origin/feature/shanab/input-type-time131: * [new branch] fix-add-tslib -> origin/fix-add-tslib132: * [new branch] fix-chromatic-action -> origin/fix-chromatic-action133: * [new branch] fix-dialog-show-contextmenu-default-menu -> origin/fix-dialog-show-contextmenu-default-menu134: * [new branch] fix-dropdown-spec -> origin/fix-dropdown-spec135: * [new branch] fix-showHideEvent-in-dialog-story -> origin/fix-showHideEvent-in-dialog-story136: * [new branch] fix/combobox-spacings-9062326510 -> origin/fix/combobox-spacings-9062326510137: * [new branch] fix/modal-focus -> origin/fix/modal-focus138: * [new branch] fix/orhal/playwright-install-performance-fix -> origin/fix/orhal/playwright-install-performance-fix139: * [new branch] fix/yossi/test-focus-lock-esm -> origin/fix/yossi/test-focus-lock-esm140: * [new branch] gh-pages -> origin/gh-pages141: * [new branch] lint-error-fixes -> origin/lint-error-fixes142: * [new branch] master -> origin/master
...
2053: �[2K�[1G�[2m$ node scripts/generate-lazy-icons.js�[22m2054: Generated lazy components and index.ts for 275 icons.2055: �[2K�[1G�[2m$ node scripts/generate-svg-index.js�[22m2056: Generated index.ts for SVG exports in ./src/svg2057: �[36m2058: �[1msrc/react/index.ts, src/lazy/index.ts, src/svg/index.ts, src/iconsMetaData.ts, src/types.ts�[22m → �[1mdist�[22m...�[39m2059: �[1m�[33m(!) Generated an empty chunk�[39m�[22m2060: types2061: �[32mcreated �[1mdist�[22m in �[1m45.5s�[22m�[39m2062: �[2K�[1GDone in 54.51s.2063: ##[endgroup]2064: Lerna (powered by Nx) Successfully ran target build for 4 projects2065: Done in 84.74s.2066: ##[group]Run if [[ -n "$(git status --porcelain yarn.lock)" ]]; then2067: �[36;1mif [[ -n "$(git status --porcelain yarn.lock)" ]]; then�[0m2068: �[36;1m echo "Error: yarn.lock has uncommitted changes. Please commit it."�[0m2069: �[36;1m exit 1�[0m
...
6078: packages/core/dist/src/utils/function-utils.js:1:6:6079: 1 │ import"es-toolkit";function r(r){return Array.isArray(r)?r:[r]}func...6080: ╵ ~~~~~~~~~~~~6081: "sideEffects"is false in the enclosing "package.json" file:6082: node_modules/es-toolkit/package.json:325:2:6083: 325 │ "sideEffects": false,6084: ╵ ~~~~~~~~~~~~~6085: ▲ [WARNING] Ignoring this import because "node_modules/es-toolkit/dist/index.mjs" was marked as having no side effects [ignored-bare-import]6086: packages/core/dist/src/utils/function-utils.js:1:6:6087: 1 │ import"es-toolkit";function r(r){return Array.isArray(r)?r:[r]}func...6088: ╵ ~~~~~~~~~~~~6089: "sideEffects"is false in the enclosing "package.json" file:6090: node_modules/es-toolkit/package.json:325:2:6091: 325 │ "sideEffects": false,6092: ╵ ~~~~~~~~~~~~~6093: ✘ [ERROR] No matching export in "packages/shared/dist/index.js" for import "useDebounceEvent"6094: packages/components/search/dist/Search/Search.js:1:117:
...
6637: packages/core/dist/src/utils/function-utils.js:1:6:6638: 1 │ import"es-toolkit";function r(r){return Array.isArray(r)?r:[r]}func...6639: ╵ ~~~~~~~~~~~~6640: "sideEffects"is false in the enclosing "package.json" file:6641: node_modules/es-toolkit/package.json:325:2:6642: 325 │ "sideEffects": false,6643: ╵ ~~~~~~~~~~~~~6644: ▲ [WARNING] Ignoring this import because "packages/core/dist/src/utils/colors-vars-map.js" was marked as having no side effects [ignored-bare-import]6645: packages/core/dist/src/components/Table/Table/Table.js:1:296:6646: 1 │ ...rops.js";import"../../../utils/colors-vars-map.js";import{getTab...6647: ╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~6648: It was excluded from the "sideEffects" array in the enclosing "package.json" file:6649: packages/core/package.json:278:2:6650: 278 │ "sideEffects": [6651: ╵ ~~~~~~~~~~~~~6652: ##[error]Process completed with exit code 1.6653: ##[group]Run node scripts/bundle-check/compare-bundles.js6654: �[36;1mnode scripts/bundle-check/compare-bundles.js�[0m6655: shell: /usr/bin/bash -e {0}6656: env:6657: NPM_CONFIG_USERCONFIG: /home/runner/work/_temp/.npmrc6658: NODE_AUTH_TOKEN: XXXXX-XXXXX-XXXXX-XXXXX6659: ##[endgroup]6660: /home/runner/work/vibe/vibe/scripts/bundle-check/compare-bundles.js:96661: throw new Error("No JSON array found in content");6662: ^6663: Error: No JSON array found in content6664: at extractJson (/home/runner/work/vibe/vibe/scripts/bundle-check/compare-bundles.js:9:11)6665: at Object.<anonymous> (/home/runner/work/vibe/vibe/scripts/bundle-check/compare-bundles.js:18:25)6666: at Module._compile (node:internal/modules/cjs/loader:1369:14)6667: at Module._extensions..js (node:internal/modules/cjs/loader:1427:10)6668: at Module.load (node:internal/modules/cjs/loader:1206:32)6669: at Module._load (node:internal/modules/cjs/loader:1022:12)6670: at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)6671: at node:internal/main/run_main_module:28:496672: Node.js v20.12.26673: ##[error]Process completed with exit code 1.6674: ##[group]Run actions/upload-artifact@v4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
User description
https://monday.monday.com/boards/3532714909/views/80492480/pulses/10887323505
PR Type
Enhancement
Description
Move Search component to independent
@vibe/searchpackageAdd
useDebounceEventhook to shared utilities packageAdd
useIsOverflowinganduseResizeObserverhooks to typographyUpdate Search imports to use new package structure
Simplify Search component type definitions and dependencies
Diagram Walkthrough
File Walkthrough
9 files
Simplify Search component type importsCreate package entry pointAdd overflow detection hook utilityAdd resize observer hook utilityUpdate Search export to new packageExport new debounce event hookAdd debounced event handler hookUpdate imports to use shared utilitiesUpdate Search import to new package6 files
Add SCSS module type declarationsCreate package configuration for SearchAdd rollup build configurationAdd TypeScript configurationAdd Vitest configurationAdd test environment setup1 files
Minor test file formatting adjustment1 files
Add Search package dependency2 files