Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/soft-beans-rescue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@frontify/app-bridge-app": patch
---

feat: add asssetChooser context
6 changes: 6 additions & 0 deletions .github/workflows/app-bridge-app-continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ jobs:
- name: Install npm dependencies
run: pnpm i --frozen-lockfile

- name: Build @frontify/app-bridge
run: pnpm build:app-bridge

- name: Build @frontify/platform-app
run: pnpm build:platform-app

- name: Typecheck code
run: pnpm --stream --filter {packages/app-bridge-app} typecheck

Expand Down
2 changes: 1 addition & 1 deletion packages/app-bridge-app/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default defineConfig(
languageOptions: {
parserOptions: {
projectService: true,
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment

tsconfigRootDir: import.meta.dirname,
},
},
Expand Down
5 changes: 5 additions & 0 deletions packages/app-bridge-app/src/AppBridgePlatformApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ export type GuidelinePageActionContext = {
surface: 'pageAction';
} & AppBaseProps;

export type GuidelineAssetChooserContext = {
surface: 'assetChooser';
} & AppBaseProps;

export type AssetViewerContext = {
surface: 'assetViewer';
assetId: string;
Expand All @@ -100,6 +104,7 @@ export type PlatformAppContext =
| AssetCreationContext
| AssetViewerContext
| GuidelinePageActionContext
| GuidelineAssetChooserContext
| AssetBulkActionsContext;

export type PlatformAppEvent = EventNameValidator<
Expand Down
20 changes: 10 additions & 10 deletions packages/app-bridge-app/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
{
"compilerOptions": {
"target": "ES2021",
"useDefineForClassFields": true,
"allowImportingTsExtensions": true,
"baseUrl": ".",
"isolatedModules": true,
"jsx": "react-jsx",
"lib": ["ES2021", "DOM", "DOM.Iterable"],
"module": "ESNext",
"skipLibCheck": true,
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx",
"strict": true,
"noFallthroughCasesInSwitch": true,
"noUncheckedIndexedAccess": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"baseUrl": "."
"resolveJsonModule": true,
"skipLibCheck": true,
"strict": true,
"target": "ES2021",
"useDefineForClassFields": true
},
"include": ["src"],
"references": [{ "path": "./tsconfig.node.json" }]
Expand Down