Skip to content

Commit

Permalink
feat: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
bangarang committed Apr 12, 2024
1 parent 8f21dc4 commit a4cc355
Show file tree
Hide file tree
Showing 9 changed files with 49 additions and 193 deletions.
154 changes: 4 additions & 150 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions packages/angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
"@angular/platform-browser": "^16.2.0",
"@angular/platform-browser-dynamic": "^16.2.0",
"@angular/router": "^16.2.0",
"@flatfile/api": "^1.6.7",
"@flatfile/embedded-utils": "1.1.14",
"@flatfile/listener": "1.0.1",
"@flatfile/plugin-record-hook": "1.4.1",
"@flatfile/api": "^1.7.11",
"@flatfile/embedded-utils": "^1.1.15",
"@flatfile/listener": "^1.0.2",
"@flatfile/plugin-record-hook": "^1.4.1",
"rxjs": "~7.8.0",
"symbol-observable": "^4.0.0",
"tslib": "^2.3.0",
Expand Down
20 changes: 10 additions & 10 deletions packages/angular/projects/spaces/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/angular/projects/spaces/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@angular/core": "^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0"
},
"dependencies": {
"@flatfile/embedded-utils": "1.1.14",
"@flatfile/embedded-utils": "1.1.15",
"@flatfile/hooks": "^1.3.2",
"tslib": "^2.3.0"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/angular/projects/spaces/src/utils/addSpaceInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const addSpaceInfo = async (
if (workbook) {
const localWorkbook = await api.workbooks.create({
spaceId,
environmentId,
...(environmentId ? { environmentId } : {}),
...workbook,
})
if (!localWorkbook || !localWorkbook.data || !localWorkbook.data.id) {
Expand All @@ -32,7 +32,7 @@ const addSpaceInfo = async (
}

const updatedSpace = await api.spaces.update(spaceId, {
environmentId,
...(environmentId ? { environmentId } : {}),
metadata: {
theme: themeConfig,
sidebarConfig: sidebarConfig || { showSidebar: false },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const useInitializeSpace = (

try {
space = await limitedAccessApi.spaces.create({
environmentId,
...(environmentId ? { environmentId } : {}),
...spaceRequestBody,
})
} catch (error) {
Expand Down
11 changes: 5 additions & 6 deletions packages/angular/src/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
import { Component } from '@angular/core';
import { Component } from '@angular/core'
import { ISpace, SpaceService } from '@flatfile/angular'
import { workbook } from "./workbook";
import { listener } from "./listener";
import { workbook } from './workbook'
import { listener } from './listener'

@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss'],
})
export class AppComponent {
showSpace: boolean = false;
showSpace: boolean = false

constructor(private spaceService: SpaceService) {}

toggleSpace() {
this.spaceService.OpenEmbed()
this.showSpace = !this.showSpace;
this.showSpace = !this.showSpace
}

closeSpace() {
Expand All @@ -24,7 +24,6 @@ export class AppComponent {

spaceProps: ISpace = {
name: 'Trste!',
environmentId: 'us_env_1234',
publishableKey: 'sk_1234',
workbook,
listener,
Expand Down
11 changes: 5 additions & 6 deletions packages/angular/src/app/reuse.component.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
import { Component } from '@angular/core';
import { Component } from '@angular/core'
import { ISpace, SpaceService } from '@flatfile/angular'
import { listener } from "./listener";
import { listener } from './listener'

@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss'],
})
export class AppComponent {
showSpace: boolean = false;
showSpace: boolean = false

constructor(private spaceService: SpaceService) {}

toggleSpace() {
this.spaceService.OpenEmbed()
this.showSpace = !this.showSpace;
this.showSpace = !this.showSpace
}

closeSpace() {
Expand All @@ -24,9 +24,8 @@ export class AppComponent {
spaceProps: ISpace = {
space: {
id: 'us_sp_123',
accessToken: 'sk_1234'
accessToken: 'sk_1234',
},
environmentId: 'us_env_1234',
listener,
closeSpace: {
operation: 'submitActionFg',
Expand Down
Loading

0 comments on commit a4cc355

Please sign in to comment.