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/strange-cooks-decide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@frontify/app-bridge-theme": major
---

feat: AppBridgeTheme v1 - first stable release
46 changes: 46 additions & 0 deletions .github/workflows/app-bridge-theme-continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: App Bridge Theme CI

on:
pull_request:
paths:
- packages/app-bridge-theme/**

# Ensures that only one workflow per branch will run at a time.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
app-bridge-theme-ci:
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- name: Checkout default branch
uses: actions/checkout@v4
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0

- name: Use pnpm
uses: pnpm/action-setup@v3
with:
run_install: false

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "pnpm"

- name: Install npm dependencies
run: pnpm i --frozen-lockfile

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

- name: Lint code
run: pnpm --stream --filter {packages/app-bridge-theme} lint

- name: Test code
run: pnpm --stream --filter {packages/app-bridge-theme} test
4 changes: 4 additions & 0 deletions CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -183,4 +183,8 @@ packages/guideline-blocks-settings @Frontify/content-and-blocks

packages/sidebar-settings @Frontify/content-and-blocks @Frontify/themes-and-navigation

# App Bridge Theme

packages/app-bridge-theme @Frontify/themes-and-navigation

CODEOWNERS @Frontify/architecture
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
"private": true,
"packageManager": "[email protected]+sha512.34e538c329b5553014ca8e8f4535997f96180a1d0f614339357449935350d924e22f8614682191264ec33d1462ac21561aff97f6bb18065351c162c7e8f6de67",
"scripts": {
"build": "pnpm build:app-bridge && pnpm build:sidebar-settings && pnpm build:guideline-blocks-settings && pnpm build:platform-app && pnpm build:cli && pnpm build:app-bridge-app",
"build": "pnpm build:app-bridge && pnpm build:app-bridge-theme && pnpm build:sidebar-settings && pnpm build:guideline-blocks-settings && pnpm build:platform-app && pnpm build:cli && pnpm build:app-bridge-app",
"build:app-bridge": "pnpm --stream --filter {packages/app-bridge} build",
"build:app-bridge-app": "pnpm --stream --filter {packages/app-bridge-app} build",
"build:app-bridge-theme": "pnpm --stream --filter {packages/app-bridge-theme} build",
"build:sidebar-settings": "pnpm --stream --filter {packages/sidebar-settings} build",
"build:guideline-blocks-settings": "pnpm --stream --filter {packages/guideline-blocks-settings} build",
"build:platform-app": "pnpm --stream --filter {packages/platform-app} build",
Expand Down
3 changes: 3 additions & 0 deletions packages/app-bridge-theme/.browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
last 2 versions
> 1%
not dead
6 changes: 6 additions & 0 deletions packages/app-bridge-theme/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
node_modules
dist
.idea
coverage
.DS_Store
package.json.d.ts
8 changes: 8 additions & 0 deletions packages/app-bridge-theme/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"singleQuote": true,
"tabWidth": 4,
"printWidth": 120,
"trailingComma": "all",
"arrowParens": "always",
"endOfLine": "lf"
}
216 changes: 216 additions & 0 deletions packages/app-bridge-theme/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,216 @@
# @frontify/app-bridge-theme

## 0.0.0-alpha.34

### Minor Changes

- [#1355](https://github.com/Frontify/brand-sdk/pull/1355) [`1a52c54`](https://github.com/Frontify/brand-sdk/commit/1a52c5482a3dcc195ff78f0ad9cc0ff4385c9bf6) Thanks [@anxobotana](https://github.com/anxobotana)! - feat(AppBridgeTheme): remove portalToken from context

## 0.0.0-alpha.33

### Minor Changes

- [#1351](https://github.com/Frontify/brand-sdk/pull/1351) [`e301854`](https://github.com/Frontify/brand-sdk/commit/e3018543cc0bcb80cee5c3baeac298cac13a1d12) Thanks [@anxobotana](https://github.com/anxobotana)! - feat(AppBridgeTheme): cleaning context and deprecated command `NavigateToDocumentSection`

## 0.0.0-alpha.32

### Patch Changes

- [#1348](https://github.com/Frontify/brand-sdk/pull/1348) [`df0e30d`](https://github.com/Frontify/brand-sdk/commit/df0e30d668da43d8a23684b8963ad67c26f34b10) Thanks [@anxobotana](https://github.com/anxobotana)! - feat(AppBridgeTheme): previousPage, nextPage, and lastModified added to DocumentPage

## 0.0.0-alpha.31

### Minor Changes

- [#1335](https://github.com/Frontify/brand-sdk/pull/1335) [`5c1fd8b`](https://github.com/Frontify/brand-sdk/commit/5c1fd8be89f333cda3a15c48a6083ee51be286bf) Thanks [@anxobotana](https://github.com/anxobotana)! - feat(AppBridgeTheme): remove platform apps references

## 0.0.0-alpha.30

### Minor Changes

- [#1319](https://github.com/Frontify/brand-sdk/pull/1319) [`0da6bbb`](https://github.com/Frontify/brand-sdk/commit/0da6bbb058b8995cc578528098a0b95bebce6cd9) Thanks [@anxobotana](https://github.com/anxobotana)! - feat(AppBridgeTheme): page scroll info in context and listener hook

## 0.0.0-alpha.29

### Minor Changes

- [#1315](https://github.com/Frontify/brand-sdk/pull/1315) [`ed08f3e`](https://github.com/Frontify/brand-sdk/commit/ed08f3ec44eaa6b9f384d27d160a9dae0da16f6a) Thanks [@anxobotana](https://github.com/anxobotana)! - feat(AppBridgeTheme): scroll page to top command

## 0.0.0-alpha.28

### Patch Changes

- [#1284](https://github.com/Frontify/brand-sdk/pull/1284) [`8a81ba2`](https://github.com/Frontify/brand-sdk/commit/8a81ba2445f5d13b55a106d2c3845b6316e79c4f) Thanks [@ragi96](https://github.com/ragi96)! - chore: update deps

## 0.0.0-alpha.27

### Patch Changes

- [#1238](https://github.com/Frontify/brand-sdk/pull/1238) [`10712c0`](https://github.com/Frontify/brand-sdk/commit/10712c01e2b5b4979b8649525515e490b6c4125b) Thanks [@anxobotana](https://github.com/anxobotana)! - refactor: deprecating navigateToDocumentSection in favor of navigateToSectionHeading.

## 0.0.0-alpha.26

### Patch Changes

- [#1222](https://github.com/Frontify/brand-sdk/pull/1222) [`22226ab`](https://github.com/Frontify/brand-sdk/commit/22226ab1266c83a8206a36431a419ad215ecbcb6) Thanks [@mike85](https://github.com/mike85)! - feat: export platform apps dialog

## 0.0.0-alpha.25

### Minor Changes

- [#1214](https://github.com/Frontify/brand-sdk/pull/1214) [`242db22`](https://github.com/Frontify/brand-sdk/commit/242db22097bbb8f14187ef5af42d2cd6374a8357) Thanks [@ragi96](https://github.com/ragi96)! - feat: add command to open and close the platform apps dialog

### Patch Changes

- [#1218](https://github.com/Frontify/brand-sdk/pull/1218) [`e8f80db`](https://github.com/Frontify/brand-sdk/commit/e8f80db9ebff09c575acc932f22ce65886c4d7ee) Thanks [@ragi96](https://github.com/ragi96)! - feat: add `isPlatformAppsDialogOpen` to context

## 0.0.0-alpha.24

### Patch Changes

- [#1210](https://github.com/Frontify/brand-sdk/pull/1210) [`0324ffb`](https://github.com/Frontify/brand-sdk/commit/0324ffb2b108d33a83403cfd796c3445626f230a) Thanks [@Kenny806](https://github.com/Kenny806)! - feat: extend AppBridgeTheme Event types to include State

## 0.0.0-alpha.23

### Patch Changes

- [#1208](https://github.com/Frontify/brand-sdk/pull/1208) [`b8d3922`](https://github.com/Frontify/brand-sdk/commit/b8d3922f5e10445426e9c9930ab004e41d8c3fb7) Thanks [@Kenny806](https://github.com/Kenny806)! - feat: Introduced a State for AppBridgeTheme

## 0.0.0-alpha.22

### Patch Changes

- [#1203](https://github.com/Frontify/brand-sdk/pull/1203) [`265c4d4`](https://github.com/Frontify/brand-sdk/commit/265c4d48a76cf5bd6e257123f0d793bd930f91da) Thanks [@anxobotana](https://github.com/anxobotana)! - feat: add activeSectionHeadingId to context

## 0.0.0-alpha.21

### Minor Changes

- [#1182](https://github.com/Frontify/brand-sdk/pull/1182) [`d3f4ac4`](https://github.com/Frontify/brand-sdk/commit/d3f4ac4385770dcfe6672dfd2f256f39d1473563) Thanks [@Kenny806](https://github.com/Kenny806)! - extend DocumentPage interface with isPublished property

## 0.0.0-alpha.20

### Patch Changes

- [#1110](https://github.com/Frontify/brand-sdk/pull/1110) [`18560db`](https://github.com/Frontify/brand-sdk/commit/18560dbd1bbfa3a76fdda0db5ed520b670c41979) Thanks [@mike85](https://github.com/mike85)! - feat(AppBridgeTheme): add EventRegistry

## 0.0.0-alpha.19

### Patch Changes

- [#1092](https://github.com/Frontify/brand-sdk/pull/1092) [`024b908`](https://github.com/Frontify/brand-sdk/commit/024b9089f68482aa908f08936c6a0c33cdaafb6c) Thanks [@anxobotana](https://github.com/anxobotana)! - refactor(appBridgeThemes): remove utilities folder

## 0.0.0-alpha.18

### Patch Changes

- [#1095](https://github.com/Frontify/brand-sdk/pull/1095) [`a70a9fe`](https://github.com/Frontify/brand-sdk/commit/a70a9fe0932e1a40c5d4d85e4fdcb3f008947b74) Thanks [@mike85](https://github.com/mike85)! - refactor(AppBridgeTheme): remove EventRegistry

## 0.0.0-alpha.17

### Patch Changes

- [#1084](https://github.com/Frontify/brand-sdk/pull/1084) [`3335235`](https://github.com/Frontify/brand-sdk/commit/3335235dc5f107280cac5c57a5008c4c9e2949e1) Thanks [@anxobotana](https://github.com/anxobotana)! - refactor(themes): add color utilities

## 0.0.0-alpha.16

### Patch Changes

- [#1075](https://github.com/Frontify/brand-sdk/pull/1075) [`772ed45`](https://github.com/Frontify/brand-sdk/commit/772ed451a39041e290597230f99de0727cd78b67) Thanks [@oliverschwendener](https://github.com/oliverschwendener)! - fix: export useEnabledFeatures hook

## 0.0.0-alpha.15

### Patch Changes

- [#1073](https://github.com/Frontify/brand-sdk/pull/1073) [`85f33ad`](https://github.com/Frontify/brand-sdk/commit/85f33ad945e8b1b59a289b1eb884f343a952116b) Thanks [@oliverschwendener](https://github.com/oliverschwendener)! - feat: add useEnabledFeatures

## 0.0.0-alpha.14

### Patch Changes

- [#1066](https://github.com/Frontify/brand-sdk/pull/1066) [`efcf755`](https://github.com/Frontify/brand-sdk/commit/efcf755dd1b0b5c2937e989445458f0e4dd992a6) Thanks [@oliverschwendener](https://github.com/oliverschwendener)! - feat(AppBridgeTheme): added command to open/close AiBrandAssistant dialog
feat(AppBridgeTheme): added list of enabled features to context

## 0.0.0-alpha.13

### Patch Changes

- [#1051](https://github.com/Frontify/brand-sdk/pull/1051) [`16ec9d1`](https://github.com/Frontify/brand-sdk/commit/16ec9d1ae5ced64bde74b275004cb632cba462b9) Thanks [@mike85](https://github.com/mike85)! - feat(AppBridgeTheme): add context hooks

## 0.0.0-alpha.12

### Patch Changes

- [#1046](https://github.com/Frontify/brand-sdk/pull/1046) [`facc3e6`](https://github.com/Frontify/brand-sdk/commit/facc3e647ce74bec3a8683889ebe493b88038e46) Thanks [@mike85](https://github.com/mike85)! - fix(AppBridgeTheme): update imports

## 0.0.0-alpha.11

### Patch Changes

- [#1031](https://github.com/Frontify/brand-sdk/pull/1031) [`54fd9e7`](https://github.com/Frontify/brand-sdk/commit/54fd9e7a4d973d7b47e67d5e7cc1c1309255e0ea) Thanks [@mike85](https://github.com/mike85)! - chore(AppBridgeTheme): add vitest to app bridge theme

- [#1032](https://github.com/Frontify/brand-sdk/pull/1032) [`19346b8`](https://github.com/Frontify/brand-sdk/commit/19346b8a27cc1e2efb6cd6c61884496ddd67a34c) Thanks [@mike85](https://github.com/mike85)! - feat(AppBridgeTheme): add use language hook

- [#1034](https://github.com/Frontify/brand-sdk/pull/1034) [`562990d`](https://github.com/Frontify/brand-sdk/commit/562990de5485cebebcb840ddb5abf74d1abe4357) Thanks [@mike85](https://github.com/mike85)! - feat: add useIsEditing hook

- [#1040](https://github.com/Frontify/brand-sdk/pull/1040) [`6bcd595`](https://github.com/Frontify/brand-sdk/commit/6bcd595dacebd55520f1cf87bc8fcbf849cc80d2) Thanks [@anxobotana](https://github.com/anxobotana)! - feat: (AppBridgeTheme) documentNavigation in context and command

## 0.0.0-alpha.10

### Minor Changes

- [#1015](https://github.com/Frontify/brand-sdk/pull/1015) [`77088a8`](https://github.com/Frontify/brand-sdk/commit/77088a85a7c181e5040d7a2738fb9fd7d95dfd1d) Thanks [@bojangles-m](https://github.com/bojangles-m)! - feat(GuidelineSearchResult): added additional prop to `GuidelineSearchResult`

## 0.0.0-alpha.9

### Patch Changes

- [#983](https://github.com/Frontify/brand-sdk/pull/983) [`57b2f90`](https://github.com/Frontify/brand-sdk/commit/57b2f90c8042e05774e57c1065fc86242f468f48) Thanks [@anxobotana](https://github.com/anxobotana)! - fix: AppBridgeTheme command typing

## 0.0.0-alpha.8

### Patch Changes

- [#981](https://github.com/Frontify/brand-sdk/pull/981) [`02cd695`](https://github.com/Frontify/brand-sdk/commit/02cd695c896847691eae43ed774637614ad3fd32) Thanks [@anxobotana](https://github.com/anxobotana)! - feat: AppBridgeTheme update context keys

## 0.0.0-alpha.7

### Patch Changes

- [#978](https://github.com/Frontify/brand-sdk/pull/978) [`5eb0306`](https://github.com/Frontify/brand-sdk/commit/5eb030695cc105a3ed514a5b38840b015a8d85ac) Thanks [@Kenny806](https://github.com/Kenny806)! - feat: add a navigate command

## 0.0.0-alpha.6

### Patch Changes

- [#974](https://github.com/Frontify/brand-sdk/pull/974) [`508f51e`](https://github.com/Frontify/brand-sdk/commit/508f51e1de4d091f8761f4b7897940574d819eee) Thanks [@anxobotana](https://github.com/anxobotana)! - feat: templateContext and NavigationItem types

## 0.0.0-alpha.5

### Patch Changes

- [#971](https://github.com/Frontify/brand-sdk/pull/971) [`08b3506`](https://github.com/Frontify/brand-sdk/commit/08b3506f1b8dba87fed1b6eb3f379bf619327d45) Thanks [@Kenny806](https://github.com/Kenny806)! - fix: exports

## 0.0.0-alpha.4

### Patch Changes

- [#967](https://github.com/Frontify/brand-sdk/pull/967) [`599df4f`](https://github.com/Frontify/brand-sdk/commit/599df4fd1db1ad43a8163538513c36a9ab3e938a) Thanks [@Kenny806](https://github.com/Kenny806)! - fix: extend AppBridgeThemeEvent to include assetsChosen

## 0.0.0-alpha.3

### Patch Changes

- [#965](https://github.com/Frontify/brand-sdk/pull/965) [`578e3e4`](https://github.com/Frontify/brand-sdk/commit/578e3e40025b1fbc88959181759257fe0e71d874) Thanks [@Kenny806](https://github.com/Kenny806)! - Added a SubscribeMap type

## 0.0.0-alpha.2

### Patch Changes

- [#963](https://github.com/Frontify/brand-sdk/pull/963) [`43472d5`](https://github.com/Frontify/brand-sdk/commit/43472d5f7ea4fd6bcdc44dc26103d1c3ce92cf4c) Thanks [@anxobotana](https://github.com/anxobotana)! - fix(AppBridgeThemes): fix build and codeowners

## 0.0.0-alpha.1

### Patch Changes

- [#960](https://github.com/Frontify/brand-sdk/pull/960) [`7a88fb5`](https://github.com/Frontify/brand-sdk/commit/7a88fb512a8209ab377ef12a70e2c8484d5b6799) Thanks [@anxobotana](https://github.com/anxobotana)! - feat(AppBridgeThemes): initial alpha release of AppBridgeThemes
2 changes: 2 additions & 0 deletions packages/app-bridge-theme/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# App Bridge Theme
Package to establish communication between Frontify and third party themes
55 changes: 55 additions & 0 deletions packages/app-bridge-theme/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
/* (c) Copyright Frontify Ltd., all rights reserved. */

// @ts-check

// @ts-expect-error No types available
import frontifyConfig from '@frontify/eslint-config-react';
// @ts-expect-error No types available
import noticePlugin from 'eslint-plugin-notice';
import tseslint from 'typescript-eslint';

export default tseslint.config(
{
ignores: ['dist/', 'coverage/', 'node_modules/', '**/*.md/**.ts'],
},
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
frontifyConfig,
{
files: ['**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx', '**/*.mts', '**/*.cts', '**/*.cjs'],
languageOptions: {
parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
},
plugins: {
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
notice: noticePlugin,
},
rules: {
// Copyright header rules
'notice/notice': [
'error',
{
template: '/* (c) Copyright Frontify Ltd., all rights reserved. */\n\n',
messages: {
whenFailedToMatch: 'No Frontify copyright header set.',
},
},
],
'no-prototype-builtins': 'warn',
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/no-floating-promises': 'warn',
'@typescript-eslint/no-misused-promises': 'warn',
'@typescript-eslint/no-unsafe-argument': 'warn',
'@typescript-eslint/no-unsafe-assignment': 'warn',
'@typescript-eslint/no-unsafe-call': 'warn',
'@typescript-eslint/no-unsafe-member-access': 'warn',
'@typescript-eslint/no-unsafe-return': 'warn',
'@typescript-eslint/require-await': 'warn',
'@typescript-eslint/await-thenable': 'warn',
'@typescript-eslint/no-unsafe-enum-comparison': 'warn',
'@typescript-eslint/restrict-plus-operands': 'warn',
},
},
);
Loading