Skip to content

Commit

Permalink
add: 6.x peer dependency!
Browse files Browse the repository at this point in the history
  • Loading branch information
brianzinn committed Apr 21, 2023
1 parent c720988 commit fa39e96
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 38 deletions.
8 changes: 4 additions & 4 deletions packages/react-babylonjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@
"test:coverage": "c8 --reporter=lcov --reporter=text-summary npm run test"
},
"devDependencies": {
"@babylonjs/core": "^5.41.0",
"@babylonjs/gui": "^5.41.0",
"@babylonjs/core": "^6.0.0",
"@babylonjs/gui": "^6.0.0",
"@rollup/plugin-json": "^4.0.2",
"@rollup/plugin-replace": "^3.0.0",
"@types/lodash.camelcase": "^4.3.6",
Expand Down Expand Up @@ -86,8 +86,8 @@
"typescript": "^4.8.3"
},
"peerDependencies": {
"@babylonjs/core": "5.x",
"@babylonjs/gui": "5.x",
"@babylonjs/core": "5.x || 6.x",
"@babylonjs/gui": "5.x || 6.x",
"react": ">=18",
"react-dom": ">=18"
},
Expand Down
4 changes: 4 additions & 0 deletions packages/react-babylonjs/src/generatedCode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14045,6 +14045,7 @@ export class FiberInputTextPropsHandler implements PropsHandler<FiberInputTextPr
'highlightedText',
changedProps
)
// type: 'any' property (not coded) BabylonjsGuiInputText.isTextHighlightOn.
checkPrimitiveDiff(oldProps.margin, newProps.margin, 'margin', changedProps)
checkPrimitiveDiff(oldProps.maxWidth, newProps.maxWidth, 'maxWidth', changedProps)
checkPrimitiveDiff(oldProps.name, newProps.name, 'name', changedProps)
Expand Down Expand Up @@ -27635,7 +27636,10 @@ export class FiberFadeInOutBehaviorPropsHandler
): PropertyUpdate[] | null {
const changedProps: PropertyUpdate[] = []
checkPrimitiveDiff(oldProps.delay, newProps.delay, 'delay', changedProps)
checkPrimitiveDiff(oldProps.fadeInDelay, newProps.fadeInDelay, 'fadeInDelay', changedProps)
checkPrimitiveDiff(oldProps.fadeInTime, newProps.fadeInTime, 'fadeInTime', changedProps)
checkPrimitiveDiff(oldProps.fadeOutDelay, newProps.fadeOutDelay, 'fadeOutDelay', changedProps)
checkPrimitiveDiff(oldProps.fadeOutTime, newProps.fadeOutTime, 'fadeOutTime', changedProps)
return changedProps.length === 0 ? null : changedProps
}
}
Expand Down
4 changes: 4 additions & 0 deletions packages/react-babylonjs/src/generatedProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3295,6 +3295,7 @@ export type FiberInputTextProps = {
focusedColor?: string
highligherOpacity?: number
highlightedText?: string
isTextHighlightOn?: any
margin?: string
maxWidth?: string | number
name?: string
Expand Down Expand Up @@ -5521,7 +5522,10 @@ export type FiberBaseSixDofDragBehaviorProps = {
export type FiberBaseSixDofDragBehaviorPropsCtor = {}
export type FiberFadeInOutBehaviorProps = {
delay?: number
fadeInDelay?: number
fadeInTime?: number
fadeOutDelay?: number
fadeOutTime?: number
} & CustomProps
export type FiberFadeInOutBehaviorPropsCtor = {}
export type FiberFollowBehaviorProps = {
Expand Down
46 changes: 12 additions & 34 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1293,11 +1293,21 @@
resolved "https://registry.yarnpkg.com/@babylonjs/core/-/core-5.42.0.tgz#8fddb853f57212948a3bdaf78809c39b4751865c"
integrity sha512-ZER5UMvggUTFmmsc4Xjj3OA6JrZCQN424Yq4BfmrOT9IVQORCXL5eFJImMoyhJGjiCQLMlzKjCG8DTYY7IyHCA==

"@babylonjs/core@^6.0.0":
version "6.0.0"
resolved "https://registry.yarnpkg.com/@babylonjs/core/-/core-6.0.0.tgz#a8628c4bf8f22c706b32f7fc0e3ef8c2600c39d0"
integrity sha512-lQ0cDwhVrWn9MSf91UsvLbWMpIFW0P1YxNSghUG3yTOaf2ZpKEl9AmTrbN+lMfxkrGdgQQB+Bgd3khc2kkMkrA==

"@babylonjs/gui@^5.41.0":
version "5.42.0"
resolved "https://registry.yarnpkg.com/@babylonjs/gui/-/gui-5.42.0.tgz#288ac413070278bfde84afb303eaa5cc80c0017a"
integrity sha512-Hp31VZI8jibtfIPgZGWKFh5yL4EH2y7JJQQlirjjAvM+jA1KSa0tl1eZFNm8doJWtrkk+o6I84jDt1nlUcUnAQ==

"@babylonjs/gui@^6.0.0":
version "6.0.0"
resolved "https://registry.yarnpkg.com/@babylonjs/gui/-/gui-6.0.0.tgz#77915ad8d92f5c30543decb4972053ec9b5ddd57"
integrity sha512-oCvDo8u4Z/n5w6ZVlEpTYuaNpFQ1lu6eEz/xSDCcyRND7EqRj+EJjprvaFDz8c+prVEsC1WRMI5swjy/044sww==

"@babylonjs/loaders@^5.41.0":
version "5.42.0"
resolved "https://registry.yarnpkg.com/@babylonjs/loaders/-/loaders-5.42.0.tgz#aa8061eb455efcfcbd5e93cb7f2e75860216c357"
Expand Down Expand Up @@ -8247,7 +8257,7 @@ debug@^3.0.0, debug@^3.0.1, debug@^3.1.0, debug@^3.2.6, debug@^3.2.7:
dependencies:
ms "^2.1.1"

debuglog@*, debuglog@^1.0.1:
debuglog@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/debuglog/-/debuglog-1.0.1.tgz#aa24ffb9ac3df9a2351837cfb2d279360cd78492"
integrity sha512-syBZ+rnAK3EgMsH2aYEOLUW7mZSY9Gb+0wUMCFsZvcmiz+HigA0LOcq/HoQqVuGG+EKykunc7QG2bzrponfaSw==
Expand Down Expand Up @@ -12404,7 +12414,7 @@ import-local@^3.0.2:
pkg-dir "^4.2.0"
resolve-cwd "^3.0.0"

imurmurhash@*, imurmurhash@^0.1.4:
imurmurhash@^0.1.4:
version "0.1.4"
resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea"
integrity sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==
Expand Down Expand Up @@ -14550,11 +14560,6 @@ lockfile@^1.0.4:
dependencies:
signal-exit "^3.0.2"

lodash._baseindexof@*:
version "3.1.0"
resolved "https://registry.yarnpkg.com/lodash._baseindexof/-/lodash._baseindexof-3.1.0.tgz#fe52b53a1c6761e42618d654e4a25789ed61822c"
integrity sha512-bSYo8Pc/f0qAkr8fPJydpJjtrHiSynYfYBjtANIgXv5xEf1WlTC63dIDlgu0s9dmTvzRu1+JJTxcIAHe+sH0FQ==

lodash._baseuniq@~4.6.0:
version "4.6.0"
resolved "https://registry.yarnpkg.com/lodash._baseuniq/-/lodash._baseuniq-4.6.0.tgz#0ebb44e456814af7905c6212fa2c9b2d51b841e8"
Expand All @@ -14563,33 +14568,11 @@ lodash._baseuniq@~4.6.0:
lodash._createset "~4.0.0"
lodash._root "~3.0.0"

lodash._bindcallback@*:
version "3.0.1"
resolved "https://registry.yarnpkg.com/lodash._bindcallback/-/lodash._bindcallback-3.0.1.tgz#e531c27644cf8b57a99e17ed95b35c748789392e"
integrity sha512-2wlI0JRAGX8WEf4Gm1p/mv/SZ+jLijpj0jyaE/AXeuQphzCgD8ZQW4oSpoN8JAopujOFGU3KMuq7qfHBWlGpjQ==

lodash._cacheindexof@*:
version "3.0.2"
resolved "https://registry.yarnpkg.com/lodash._cacheindexof/-/lodash._cacheindexof-3.0.2.tgz#3dc69ac82498d2ee5e3ce56091bafd2adc7bde92"
integrity sha512-S8dUjWr7SUT/X6TBIQ/OYoCHo1Stu1ZRy6uMUSKqzFnZp5G5RyQizSm6kvxD2Ewyy6AVfMg4AToeZzKfF99T5w==

lodash._createcache@*:
version "3.1.2"
resolved "https://registry.yarnpkg.com/lodash._createcache/-/lodash._createcache-3.1.2.tgz#56d6a064017625e79ebca6b8018e17440bdcf093"
integrity sha512-ev5SP+iFpZOugyab/DEUQxUeZP5qyciVTlgQ1f4Vlw7VUcCD8fVnyIqVUEIaoFH9zjAqdgi69KiofzvVmda/ZQ==
dependencies:
lodash._getnative "^3.0.0"

lodash._createset@~4.0.0:
version "4.0.3"
resolved "https://registry.yarnpkg.com/lodash._createset/-/lodash._createset-4.0.3.tgz#0f4659fbb09d75194fa9e2b88a6644d363c9fe26"
integrity sha512-GTkC6YMprrJZCYU3zcqZj+jkXkrXzq3IPBcF/fIPpNEAB4hZEtXU8zp/RwKOvZl43NUmwDbyRk3+ZTbeRdEBXA==

lodash._getnative@*, lodash._getnative@^3.0.0:
version "3.9.1"
resolved "https://registry.yarnpkg.com/lodash._getnative/-/lodash._getnative-3.9.1.tgz#570bc7dede46d61cdcde687d65d3eecbaa3aaff5"
integrity sha512-RrL9VxMEPyDMHOd9uFbvMe8X55X16/cGM5IgOKgRElQZutpX89iS6vwl64duTV1/16w5JY7tuFNXqoekmh1EmA==

lodash._reinterpolate@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz#0ccf2d89166af03b3663c796538b75ac6e114d9d"
Expand Down Expand Up @@ -14705,11 +14688,6 @@ lodash.reject@^4.4.0:
resolved "https://registry.yarnpkg.com/lodash.reject/-/lodash.reject-4.6.0.tgz#80d6492dc1470864bbf583533b651f42a9f52415"
integrity sha512-qkTuvgEzYdyhiJBx42YPzPo71R1aEr0z79kAv7Ixg8wPFEjgRgJdUsGMG3Hf3OYSF/kHI79XhNlt+5Ar6OzwxQ==

lodash.restparam@*:
version "3.6.1"
resolved "https://registry.yarnpkg.com/lodash.restparam/-/lodash.restparam-3.6.1.tgz#936a4e309ef330a7645ed4145986c85ae5b20805"
integrity sha512-L4/arjjuq4noiUJpt3yS6KIKDtJwNe2fIYgMqyYYKoeIfV1iEqvPwhCx23o+R9dzouGihDAPN1dTIRWa7zk8tw==

lodash.some@^4.4.0:
version "4.6.0"
resolved "https://registry.yarnpkg.com/lodash.some/-/lodash.some-4.6.0.tgz#1bb9f314ef6b8baded13b549169b2a945eb68e4d"
Expand Down

0 comments on commit fa39e96

Please sign in to comment.