-
-
Notifications
You must be signed in to change notification settings - Fork 744
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix-slateWidget
- Loading branch information
Showing
122 changed files
with
4,606 additions
and
2,648 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ dist | |
docs | ||
node_modules | ||
packages/registry/lib | ||
build |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ node_modules | |
/build | ||
/public/build | ||
.env | ||
.registry.loader.js | ||
registry.loader.js |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ node_modules | |
/build | ||
.env | ||
.react-router | ||
.registry.loader.js | ||
registry.loader.js |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
/* | ||
This file is autogenerated. Don't change it directly. | ||
Instead, change the "addons" setting in your package.json file. | ||
*/ | ||
|
||
import ploneblocks from '@plone/blocks'; | ||
import ploneslots from '@plone/slots'; | ||
|
||
const addonsInfo = [ | ||
{ | ||
name: '@plone/blocks', | ||
version: '1.0.0-alpha.1', | ||
isPublishedPackage: true, | ||
isRegisteredAddon: true, | ||
modulePath: '/Users/sneridagh/Development/plone/volto/packages/blocks', | ||
packageJson: | ||
'/Users/sneridagh/Development/plone/volto/packages/blocks/package.json', | ||
basePath: '/Users/sneridagh/Development/plone/volto/packages/blocks', | ||
tsConfigPaths: ['', {}], | ||
addons: [], | ||
}, | ||
{ | ||
name: '@plone/slots', | ||
version: '1.0.0', | ||
isPublishedPackage: true, | ||
isRegisteredAddon: true, | ||
modulePath: '/Users/sneridagh/Development/plone/volto/packages/slots', | ||
packageJson: | ||
'/Users/sneridagh/Development/plone/volto/packages/slots/package.json', | ||
basePath: '/Users/sneridagh/Development/plone/volto/packages/slots', | ||
tsConfigPaths: ['', {}], | ||
addons: [], | ||
}, | ||
]; | ||
export { addonsInfo }; | ||
|
||
const safeWrapper = (func) => (config) => { | ||
const res = func(config); | ||
if (typeof res === 'undefined') { | ||
throw new Error("Configuration function doesn't return config"); | ||
} | ||
return res; | ||
}; | ||
|
||
const projectConfigLoader = false; | ||
const projectConfig = (config) => { | ||
return projectConfigLoader && | ||
typeof projectConfigLoader.default === 'function' | ||
? projectConfigLoader.default(config) | ||
: config; | ||
}; | ||
|
||
const load = (config) => { | ||
const addonLoaders = [ploneblocks, ploneslots]; | ||
if (!addonLoaders.every((el) => typeof el === 'function')) { | ||
throw new TypeError( | ||
'Each addon has to provide a function applying its configuration to the projects configuration.', | ||
); | ||
} | ||
return projectConfig( | ||
addonLoaders.reduce((acc, apply) => safeWrapper(apply)(acc), config), | ||
); | ||
}; | ||
export default load; |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,10 +36,10 @@ | |
}, | ||
"devDependencies": { | ||
"concurrently": "^8.2.2", | ||
"husky": "9.0.11", | ||
"lint-staged": "15.2.2", | ||
"husky": "^9.0.11", | ||
"lint-staged": "^15.2.2", | ||
"tsconfig": "workspace:*", | ||
"typescript": "^5.6.3", | ||
"typescript": "^5.7.3", | ||
"vitest": "^2.1.3" | ||
}, | ||
"packageManager": "[email protected]", | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Update internal `peerDependencies` to include React 19. | ||
Update TS version. @sneridagh |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Update Vite version. @sneridagh |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Update internal `peerDependencies` to include React 19. | ||
Update TS version. @sneridagh |
Oops, something went wrong.