From 12e732d676675efb9b56e1685b9e66950252f578 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 8 Jan 2025 13:48:46 -0700 Subject: [PATCH] Update dependency @cruglobal/godtools-shared to ~1.1.0 (#209) * Update dependency @cruglobal/godtools-shared to ~1.1.0 * update object mocks --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Daniel Frett --- package.json | 2 +- src/app/_tests/mocks.ts | 24 +++++++----------------- yarn.lock | 14 ++++---------- 3 files changed, 12 insertions(+), 28 deletions(-) diff --git a/package.json b/package.json index 2b15b305..f582f92e 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "@angular/platform-browser": "^17.3.12", "@angular/platform-browser-dynamic": "^17.3.12", "@angular/router": "^17.3.12", - "@cruglobal/godtools-shared": "~1.0.1", + "@cruglobal/godtools-shared": "~1.1.0", "@rails/actioncable": "~8.0.0", "core-js": "^3.39.0", "lottie-web": "^5.12.2", diff --git a/src/app/_tests/mocks.ts b/src/app/_tests/mocks.ts index 40041063..f9ecd81c 100644 --- a/src/app/_tests/mocks.ts +++ b/src/app/_tests/mocks.ts @@ -58,23 +58,10 @@ const standardTypeValues = () => { }; const createText = (text: string): Text => { - return { - text: text, - textAlign: { - name: 'START', - ordinal: 0 - }, - textColor: '#000000', - textScale: null, - _textStyles: [], - minimumLines: null, - startImage: null, - startImageSize: null, - endImage: null, - endImageSize: null, - textStyles: null, - ...standardTypeValues() - }; + return org.cru.godtools.shared.tool.parser.model.Text.createTestText( + null, + text + ); }; const createEventId = (name: string, namespace?: string): EventId => { @@ -418,6 +405,9 @@ export const mockTractPage = ( id: '1', position, parentPage: null, + parentPageParams: null, + nextPage: null, + previousPage: null, isHidden: false, _modals: null, findModal: null, diff --git a/yarn.lock b/yarn.lock index e370dc91..0e87d607 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1234,12 +1234,11 @@ resolved "https://registry.npmjs.org/@colors/colors/-/colors-1.5.0.tgz" integrity sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ== -"@cruglobal/godtools-shared@~1.0.1": - version "1.0.1" - resolved "https://registry.yarnpkg.com/@cruglobal/godtools-shared/-/godtools-shared-1.0.1.tgz#bc8f21f080624a728bf9ee68027bf9e5db593a31" - integrity sha512-nfO3+ynlq8L7n35APg/EgC4hvHHSBaidqQzpSgTkP1Os9HCHtQOymPgSaU+FA/Uyic7oaIr9w7Nt5vITybDHmw== +"@cruglobal/godtools-shared@~1.1.0": + version "1.1.0" + resolved "https://registry.yarnpkg.com/@cruglobal/godtools-shared/-/godtools-shared-1.1.0.tgz#42dd6a89e36dc8bb669b947fc9fe93736e82b179" + integrity sha512-IfmYpMDV+ozMjRj7JVrPS3oIJ++KnK2WmaxEJeHTl+BJpw27O8j8xcClF9JcQ8A5p+s6INM4kyt93xMdAkJsgw== dependencies: - format-util "^1.0.5" sax "1.2.4" "@discoveryjs/json-ext@0.5.7": @@ -4133,11 +4132,6 @@ foreground-child@^3.1.0: cross-spawn "^7.0.0" signal-exit "^4.0.1" -format-util@^1.0.5: - version "1.0.5" - resolved "https://registry.npmjs.org/format-util/-/format-util-1.0.5.tgz" - integrity sha512-varLbTj0e0yVyRpqQhuWV+8hlePAgaoFRhNFj50BNjEIrw1/DphHSObtqwskVCPWNgzwPoQrZAbfa/SBiicNeg== - forwarded@0.2.0: version "0.2.0" resolved "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz"