Skip to content

Commit

Permalink
chore: fix wp6.6 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
mohanrajpac committed Aug 14, 2024
1 parent c5abc1a commit a688a2c
Show file tree
Hide file tree
Showing 3 changed files with 2,205 additions and 2,194 deletions.
140 changes: 70 additions & 70 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,72 +1,72 @@
{
"name": "codeb-feature-flags",
"version": "0.3.2",
"description": "Allows developers to enable / disable features based on flags.",
"license": "ISC",
"author": "Mohan Raj <https://mohanraj.dev>",
"scripts": {
"build": "wp-scripts build",
"lint:css": "wp-scripts lint-style",
"lint:css:fix": "npm run lint:css -- --fix",
"lint:js": "wp-scripts lint-js",
"lint:js:fix": "wp-scripts lint-js --fix",
"prepare": "husky",
"start": "wp-scripts start",
"test:e2e": "wp-scripts test-playwright",
"test:js": "wp-scripts test-unit-js",
"test:performance": "wp-scripts test-playwright --config tests/performance/playwright.config.ts",
"test:performance:merge-reports": "playwright merge-reports --reporter tests/performance/config/performance-reporter.ts ./blob-report",
"test:performance:results": "node tests/performance/cli/results.js",
"test:watch": "wp-scripts test-unit-js --watch",
"version:major": "node ./scripts/version major",
"version:minor": "node ./scripts/version minor",
"version:patch": "node ./scripts/version patch",
"wp-env": "wp-env start",
"wp-env:coverage": "wp-env start --xdebug=coverage",
"php:unit": "wp-env run --env-cwd='wp-content/plugins/feature-flags' tests-wordpress composer test:unit",
"php:integration": "wp-env run tests-wordpress --env-cwd=wp-content/plugins/feature-flags composer test:integration",
"php:multisite": "wp-env run tests-wordpress --env-cwd=wp-content/plugins/feature-flags composer test:multisite"
},
"dependencies": {
"@testing-library/user-event": "^14.5.2",
"@wordpress/api-fetch": "^6.48.0",
"@wordpress/components": "^27.1.0",
"@wordpress/data": "^9.23.0",
"@wordpress/dom-ready": "^3.53.0",
"@wordpress/hooks": "^3.53.0",
"@wordpress/i18n": "^4.54.0",
"@wordpress/notices": "^4.21.0",
"dotenv": "^16.4.5",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-syntax-highlighter": "^15.5.0",
"react-test-renderer": "^18.2.0",
"ts-loader": "^9.5.1",
"typescript": "^5.4.2"
},
"devDependencies": {
"@playwright/test": "^1.42.1",
"@testing-library/jest-dom": "^6.4.2",
"@testing-library/react": "14.2.2",
"@types/jest": "^29.5.12",
"@types/node": "^20.12.5",
"@types/react-syntax-highlighter": "^15.5.11",
"@types/wordpress__components": "^23.0.11",
"@wordpress/e2e-test-utils-playwright": "^0.22.0",
"@wordpress/env": "^9.7.0",
"@wordpress/eslint-plugin": "^17.10.0",
"@wordpress/scripts": "^27.5.0",
"eslint": "^8.57.0",
"eslint-import-resolver-alias": "^1.1.2",
"eslint-plugin-cypress": "^2.15.1",
"eslint-plugin-import": "^2.29.1",
"husky": "^9.0.11",
"jest-environment-jsdom": "^29.7.0",
"prettier": "^3.2.5"
},
"keywords": [
"feature flags",
"wordpress",
"plugin"
]
"name": "codeb-feature-flags",
"version": "0.3.2",
"description": "Allows developers to enable / disable features based on flags.",
"license": "ISC",
"author": "Mohan Raj <https://mohanraj.dev>",
"scripts": {
"build": "wp-scripts build",
"lint:css": "wp-scripts lint-style",
"lint:css:fix": "npm run lint:css -- --fix",
"lint:js": "wp-scripts lint-js",
"lint:js:fix": "wp-scripts lint-js --fix",
"prepare": "husky",
"start": "wp-scripts start",
"test:e2e": "wp-scripts test-playwright",
"test:js": "wp-scripts test-unit-js",
"test:performance": "wp-scripts test-playwright --config tests/performance/playwright.config.ts",
"test:performance:merge-reports": "playwright merge-reports --reporter tests/performance/config/performance-reporter.ts ./blob-report",
"test:performance:results": "node tests/performance/cli/results.js",
"test:watch": "wp-scripts test-unit-js --watch",
"version:major": "node ./scripts/version major",
"version:minor": "node ./scripts/version minor",
"version:patch": "node ./scripts/version patch",
"wp-env": "wp-env start",
"wp-env:coverage": "wp-env start --xdebug=coverage",
"php:unit": "wp-env run --env-cwd='wp-content/plugins/feature-flags' tests-wordpress composer test:unit",
"php:integration": "wp-env run tests-wordpress --env-cwd=wp-content/plugins/feature-flags composer test:integration",
"php:multisite": "wp-env run tests-wordpress --env-cwd=wp-content/plugins/feature-flags composer test:multisite"
},
"dependencies": {
"@testing-library/user-event": "^14.5.2",
"@wordpress/api-fetch": "^7.5.0",
"@wordpress/components": "^28.5.0",
"@wordpress/data": "^10.5.0",
"@wordpress/dom-ready": "^4.5.0",
"@wordpress/hooks": "^4.5.0",
"@wordpress/i18n": "^5.5.0",
"@wordpress/notices": "^5.5.0",
"dotenv": "^16.4.5",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-syntax-highlighter": "^15.5.0",
"react-test-renderer": "^18.3.1",
"ts-loader": "^9.5.1",
"typescript": "^5.5.4"
},
"devDependencies": {
"@playwright/test": "^1.46.0",
"@testing-library/jest-dom": "^6.4.8",
"@testing-library/react": "16.0.0",
"@types/jest": "^29.5.12",
"@types/node": "^22.3.0",
"@types/react-syntax-highlighter": "^15.5.13",
"@types/wordpress__components": "^23.8.0",
"@wordpress/e2e-test-utils-playwright": "^1.5.0",
"@wordpress/env": "^10.5.0",
"@wordpress/eslint-plugin": "^20.2.0",
"@wordpress/scripts": "^28.5.0",
"eslint": "^9.9.0",
"eslint-import-resolver-alias": "^1.1.2",
"eslint-plugin-cypress": "^3.5.0",
"eslint-plugin-import": "^2.29.1",
"husky": "^9.1.4",
"jest-environment-jsdom": "^29.7.0",
"prettier": "^3.3.3"
},
"keywords": [
"feature flags",
"wordpress",
"plugin"
]
}
6 changes: 6 additions & 0 deletions src/styles/settings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,15 @@
.components-snackbar__icon {
top: auto;
left: 18px;
position: absolute;
}
}

.components-snackbar .components-snackbar__content-with-icon {
padding-left: 24px;
position: static !important;
}

.feature-flag-loader {

.components-spinner {
Expand Down
Loading

0 comments on commit a688a2c

Please sign in to comment.