-
Notifications
You must be signed in to change notification settings - Fork 85
feat(f36-ai-components): add f36-ai-components package #3202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Elliot Massen (elliotmassen)
wants to merge
199
commits into
main
Choose a base branch
from
PIC-694-forma36-create-aichatlayout-component
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
199 commits
Select commit
Hold shift + click to select a range
2a4944b
feat(f36-ai-components): add f36-ai-components package
elliotmassen f88f199
fix: tidy up changeset updates
elliotmassen d5fc97c
feat: style collapsed state
elliotmassen fdac382
feat(AIChatLayout): fix up styles and story
elliotmassen 8d6f229
fix: improve styling and layout
elliotmassen ed91a60
feat: complete functionality
elliotmassen df6828a
fix: make styles pixel perfect
elliotmassen dd19ba3
fix: add dependency
elliotmassen 11815c8
fix: use stying tokens where possible
elliotmassen 5abad13
fix: ensure buttons always stay on the right regardless of the presce…
elliotmassen 722665f
feat: add tests
elliotmassen 20df8c2
fix: code quality tweaks
elliotmassen 496dbac
fix: correct tab indexing when buttons are hidden
elliotmassen a5c21bd
fix: support svg gradient in Safari
elliotmassen 81cf875
fix: remove comment
elliotmassen 06505aa
feat: refactor AIChatLayout to use display prop with three states (cl…
elliotmassen 495b36b
refactor: rename 'type' prop to 'variant' in AIChatLayout for consist…
elliotmassen a0fe9b0
fix: include fixed positioning within the component
elliotmassen 520b42e
fix: centralise docs description
elliotmassen 8e56100
feat: add IconGradient component for gradient support in AIChatLayout
elliotmassen 6a44dfe
Merge pull request #3203 from contentful/PIC-694-forma36-create-aicha…
elliotmassen 1e7bf5e
feat: add ai chat input component [PIC-707] (#3205)
seanf-ctfl 59b69e5
Merge pull request #3203 from contentful/PIC-694-forma36-create-aicha…
elliotmassen d81f41d
feat: implement AIChatArtifactMessage
elliotmassen cbeb645
fix: update styles and story args for AIChatArtifactMessage component
elliotmassen 2f7db27
fix: tidy up code
elliotmassen 9911606
fix: update tests
elliotmassen 922d558
Merge branch 'PIC-694-forma36-create-aichatlayout-component' into PIC…
elliotmassen e30dfd8
fix: resolve analyze_code failure
elliotmassen e9b4c57
feat: add ai chat message component [PIC-706] (#3208)
seanf-ctfl a433566
Merge pull request #3206 from contentful/PIC-713-forma36-create-aicha…
elliotmassen 8cd2b96
feat: implement AIChatReasoning component with collapsible functional…
elliotmassen 874bbb8
fix: tweak the tests
elliotmassen 282a765
fix: remove testId prop from AIChatReasoningProps
elliotmassen 958156b
Merge pull request #3211 from contentful/PIC-705-forma36-create-aicha…
elliotmassen f078158
feat: Implement AIChatHistory component
elliotmassen 1594880
feat: styling tabs
elliotmassen 77a592a
feat: styling threads
elliotmassen ba4eb9a
fix: tweak stylign
elliotmassen a3ec14e
fix: final tweaks
elliotmassen 2099202
fix: add title attribute to thread content box
elliotmassen 4e924ff
chore: automate and publish ai package (#3214)
mshaaban0 1f37011
chore: bump @contentful/f36-ai-components to 0.0.1-alpha.1 [skip ci]
github-actions[bot] f647d07
fix: use token from vault to publish ai package (#3217)
mshaaban0 602c890
fix: use repo name as role
mshaaban0 f0918bc
chore: bump @contentful/f36-ai-components to 0.0.1-alpha.2 [skip ci]
mshaaban0 eff6a2e
fix: remove registry url
mshaaban0 d981182
chore: bump @contentful/f36-ai-components to 0.0.1-alpha.3 [skip ci]
mshaaban0 f50fc84
fix: remove trailing slash from publish config
mshaaban0 ef9fbeb
chore: bump @contentful/f36-ai-components to 0.0.1-alpha.4 [skip ci]
mshaaban0 974f423
fix: use root .npmrc
mshaaban0 a3dec1f
chore: bump @contentful/f36-ai-components to 0.0.1-alpha.5 [skip ci]
mshaaban0 edc9aa1
fix: [] Debug publish-ai-package-alpha.yml action
ContentfulCormac c8323ea
chore: bump @contentful/f36-ai-components to 0.0.1-alpha.6 [skip ci]
ContentfulCormac 743ff0b
fix: [] Update publish-ai-package-alpha.yml
ContentfulCormac 905352f
chore: bump @contentful/f36-ai-components to 0.0.1-alpha.7 [skip ci]
ContentfulCormac 5bc5892
fix: [] Debug publish-ai-package-alpha.yml
ContentfulCormac d0e047f
fixL [] Debug publish-ai-package-alpha.yml
ContentfulCormac 03e08a8
chore: bump @contentful/f36-ai-components to 0.0.1-alpha.8 [skip ci]
ContentfulCormac 7a84bd2
fix: [] Debug publish-ai-package-alpha.yml
ContentfulCormac 7213268
fix: [] Debug publish-ai-package-alpha.yml
ContentfulCormac 43aaa7f
fix: [] Debug publish-ai-package-alpha.yml
ContentfulCormac 772a102
fix: [] Debug publish-ai-package-alpha.yml
ContentfulCormac ffbd665
fix: [] Debug publish-ai-package-alpha.yml
ContentfulCormac 0eb6de7
chore: bump @contentful/f36-ai-components to 0.0.1-alpha.9 [skip ci]
ContentfulCormac 47284c1
fix [] Debug publish-ai-package-alpha.yml
ContentfulCormac cce8542
chore: bump @contentful/f36-ai-components to 0.0.1-alpha.10 [skip ci]
ContentfulCormac 8319e7b
fix: [] Debug publish-ai-package-alpha.yml
ContentfulCormac 7796316
chore: bump @contentful/f36-ai-components to 0.0.1-alpha.11 [skip ci]
ContentfulCormac 579a2ae
chore: [] bump version
ContentfulCormac 417d48d
chore: bump @contentful/f36-ai-components to 0.0.1-alpha.13 [skip ci]
ContentfulCormac 476db14
fix: remove unused formatTime export from AIChatHistory
elliotmassen 6278c88
feat: add mention support to ai chat input [PIC-710] (#3212)
seanf-ctfl 3d45699
chore: bump @contentful/f36-ai-components to 0.0.1-alpha.14 [skip ci]
seanf-ctfl 74b1c35
fix: update styles for AIChatHistory components to account for new de…
elliotmassen 3b13235
fix: simplify thread click handling in AIChatHistory component
elliotmassen 70e80de
fix: update AIChatHistory components to use NavList
elliotmassen 3e946d3
fix: update AIChatHistoryTabs styles for active tab indicators
elliotmassen e69f78e
fix: add tooltips for status icons in AIChatHistory
elliotmassen 6e696c3
Merge pull request #3216 from contentful/PIC-709-forma36-create-aicha…
elliotmassen 6ec1239
chore: bump @contentful/f36-ai-components to 0.0.1-alpha.15 [skip ci]
elliotmassen ee9ce83
feat: outline of header animation
elliotmassen 17f5290
fix: some tweaks most of the way there functionally
elliotmassen daaba52
fix: clip header slider to remove button overlap
elliotmassen 10172f2
fix: use icon gradient in story
elliotmassen a9fa235
feat: something that works
elliotmassen c70c1c1
feat: integrate Slider component for AIChatLayout story
elliotmassen 3473236
feat: add support for button positioning in AIChatLayout with buttons…
elliotmassen 0050605
fix: final styling tweaks
elliotmassen c772074
feat: refactor AIChatLayout to use header prop for title, icon, and b…
elliotmassen c686416
feat: enhance AIChatLayout and Slider components with improved button…
elliotmassen 0ed9eab
fix: tidy up button usage
elliotmassen 9a7ef9c
feat: update mock chat messages with placeholder content for testing
elliotmassen 6bdab2f
feat: rename Basic story to Default and add WithChangableHeader story…
elliotmassen 78aec6d
fix: make fixed buttons zero-to-many
elliotmassen 28ea69e
fix: final tweaks
elliotmassen 88516ae
fix: tidy up slider
elliotmassen 3b223ca
fix: resolve import issue with storybook actions in mock data
elliotmassen 1d6dee4
fix: simplify header identification
elliotmassen 7b46d72
fix: update data-testid attribute syntax and add comprehensive tests …
elliotmassen c1b623e
fix: refactor Slider component to use slideKey and update tests accor…
elliotmassen 1cc0a97
fix: remove tests for missing slideKey and children in Slider component
elliotmassen 9d44c8a
fix: adjust padding and margin values in AIChatHistory styles for con…
elliotmassen bf84e4c
feat: add AIChatSidePanel component
elliotmassen bde742b
Merge pull request #3224 from contentful/PIC-734-forma36-update-ai-ch…
elliotmassen 710c193
chore: bump @contentful/f36-ai-components to 0.0.1-alpha.16 [skip ci]
elliotmassen 8d7bb40
fix: fix null pointer error on list item when is children is not defi…
seanf-ctfl 69431c8
chore: bump @contentful/f36-ai-components to 0.0.1-alpha.17 [skip ci]
seanf-ctfl 9ee4871
fix: fix null pointer error on list item when is children is not defi…
seanf-ctfl 5f5f793
chore: bump @contentful/f36-ai-components to 0.0.1-alpha.18 [skip ci]
seanf-ctfl 0037c21
fix(f36-ai-components): re-render AIChatReasoning when children updat…
elliotmassen ea8863b
chore: bump @contentful/f36-ai-components to 0.0.1-alpha.19 [skip ci]
mshaaban0 2be1fae
feat: exporting primary gradient icon [PIC-747]
nikunj-tilva 6d90def
chore: package-lock update [PIC-747]
nikunj-tilva 66f7f7b
chore: syncing build node version and nvmrc node version [PIC-747]
nikunj-tilva 363b211
chore: syncing build node version and nvmrc node version for other st…
nikunj-tilva f110edb
Merge pull request #3240 from contentful/PIC-747-export-ai-icon-gradient
nikunj-tilva 069b52f
chore: bump @contentful/f36-ai-components to 0.0.1-alpha.20 [skip ci]
nikunj-tilva dda884b
feat: exposing svg gradient styles [PIC-747]
nikunj-tilva 851e95e
Merge pull request #3242 from contentful/PIC-747-ai-icon-gradient-styles
nikunj-tilva 00483fc
chore: bump @contentful/f36-ai-components to 0.0.1-alpha.21 [skip ci]
nikunj-tilva b6f220e
feat: add AIChatEmptyState component to ai-components package [PIC-74…
mshaaban0 f9b806e
chore: bump @contentful/f36-ai-components to 0.0.1-alpha.22 [skip ci]
mshaaban0 856736a
fix: chat bubble alignments
Rowadz c4a8dd5
Merge branch 'PIC-694-forma36-create-aichatlayout-component' into fix…
Rowadz 73b4b9d
Merge pull request #3244 from contentful/fix/chat-bubble-alignments
Rowadz 5285994
chore: bump @contentful/f36-ai-components to 0.0.1-alpha.23 [skip ci]
Rowadz 9b8c01c
fix(f36-ai-components): combine AIChatArtifactMessage className with …
elliotmassen e41245d
Merge pull request #3245 from contentful/PIC-721-user-interface-displ…
elliotmassen 874ab6f
chore: bump @contentful/f36-ai-components to 0.0.1-alpha.24 [skip ci]
elliotmassen 43dd3c7
feat: added ChatHistoryEmptyState component [PIC-783]
nikunj-tilva 21704e0
feat: updated styles for ChatHistoryEmptyState component [PIC-783]
nikunj-tilva f97892b
feat(f36-ai-components): add AIChatMessageList component
elliotmassen 08fa24c
feat: extending common props [PIC-783]
nikunj-tilva c8830c4
feat(f36-ai-components): enhance AIChatMessageList with scroll behavior
elliotmassen 525e73f
fix(f36-ai-components): add main panel component and tweak styles for…
elliotmassen 499d9fd
fix(f36-ai-components): rename AIChatMainPanel to AIChatConversation
elliotmassen ce4542a
fix(f36-ai-components): tweak message styles
elliotmassen c2278d5
Merge pull request #3250 from contentful/PIC-783-chat-history-emptyst…
nikunj-tilva c2b4f36
chore: [] ignore npm scripts
jamesmbourne 21a9188
chore: [] ignore npm scripts
jamesmbourne 01a9aab
chore: bump @contentful/f36-ai-components to 0.0.1-alpha.25 [skip ci]
elliotmassen 0a4909e
feat(f36-ai-components): add WithStreamingChunks story for AIChatMess…
elliotmassen 17012da
Merge branch 'PIC-694-forma36-create-aichatlayout-component' into PIC…
elliotmassen cfff0f2
Merge pull request #3254 from contentful/PIC-762-forma36-create-aicha…
elliotmassen 9d97a75
chore: bump @contentful/f36-ai-components to 0.0.1-alpha.26 [skip ci]
elliotmassen 183d16c
Merge branch 'main' into PIC-694-forma36-create-aichatlayout-component
elliotmassen 01c7f4a
chore: bump @contentful/f36-ai-components to 0.0.1-alpha.27 [skip ci]
elliotmassen 85b7b3e
chore(cdn): add `pre-build` script in `build`
cf-remylenoir d521566
chore: bump @contentful/f36-ai-components to 0.0.1-alpha.28 [skip ci]
elliotmassen 585d302
feat: added missing markdown tags AIChatMessage [PIC-764]
nikunj-tilva 8000f55
feat: fixed codeblock markdown issue AIChatMessage [PIC-764]
nikunj-tilva 52a1736
feat: spacing adjustments [PIC-764]
nikunj-tilva 234a2f5
feat: spacing adjustments [PIC-764]
nikunj-tilva 3ef6f5c
Merge branch 'PIC-694-forma36-create-aichatlayout-component' into PIC…
nikunj-tilva 47b69f3
feat: spacing adjustments [PIC-764]
nikunj-tilva c5c8fa2
Merge pull request #3265 from contentful/PIC-AI-chat-message-markdown
nikunj-tilva a574112
chore: bump @contentful/f36-ai-components to 0.0.1-alpha.29 [skip ci]
nikunj-tilva f6b4e7e
feat: paragraph marging adjustments [PIC-764]
nikunj-tilva 654173f
Merge pull request #3267 from contentful/PIC-764-remove-margin-last-p…
nikunj-tilva 4f209b7
chore: bump @contentful/f36-ai-components to 0.0.1-alpha.30 [skip ci]
nikunj-tilva 57f3129
feat: added AIChatMentionList auto placement support [PIC-758]
nikunj-tilva b5f8ac0
feat: handling scrolling behavior for AIChatMentionList position [PIC…
nikunj-tilva 0a58667
Merge pull request #3269 from contentful/PIC-758-ai-chat-mention-posi…
nikunj-tilva 14864a9
chore: bump @contentful/f36-ai-components to 0.0.1-alpha.31 [skip ci]
nikunj-tilva fd74b2f
chore: document other use of layout variant
elliotmassen 5573d0b
chore: bump @contentful/f36-ai-components to 0.0.1-alpha.32 [skip ci]
elliotmassen 47cdf1a
feat: implement AIChatSuggestionPill component with styles and tests
elliotmassen 19519ce
feat: enhance AIChatSuggestionPill styles
elliotmassen 39d5e15
feat: add transition effect to AIChatSuggestionPill icon and update s…
elliotmassen 20168e1
feat: extend AIChatSuggestionPillProps with CommonProps and clean up …
elliotmassen a8deaaf
Update AIChatSuggestionPill.styles.ts
toniwowtscherk 8001d4a
Merge pull request #3275 from contentful/PIC-833
elliotmassen 62698c2
chore: bump @contentful/f36-ai-components to 0.0.1-alpha.33 [skip ci]
elliotmassen fb6a8ae
fix: Re-Add bugfix for AiChatMessage markdown li [PIC-845] (#3280)
seanf-ctfl 0bccb41
chore: bump @contentful/f36-ai-components to 0.0.1-alpha.34 [skip ci]
seanf-ctfl 49af14a
feat: AIChatMessage add ability for clients to add advanced component…
seanf-ctfl 33dc4b9
chore: bump @contentful/f36-ai-components to 0.0.1-alpha.35 [skip ci]
seanf-ctfl 4ea8686
feat: add height and position props to AIChatLayout for flexible layo…
elliotmassen 677a45d
fix(AIChat): improve relative auto height implementation and story
elliotmassen e2edaf6
Merge pull request #3297 from contentful/PIC-879
elliotmassen 3d6e240
chore: bump @contentful/f36-ai-components to 0.0.1-alpha.36 [skip ci]
elliotmassen dc007f4
feat: Add AI Runs List Loading View [PIC-805] (#3326)
seanf-ctfl f8eb151
chore: bump @contentful/f36-ai-components to 0.0.1-alpha.37 [skip ci]
seanf-ctfl 36a8abc
Merge remote-tracking branch 'origin/main' into PIC-694-forma36-creat…
nikunj-tilva 73ee1df
chore: update dependencies to f36 v6 and refactor emotion imports to …
nikunj-tilva fdbe922
chore: update dependencies and improve AI chat components
nikunj-tilva 25ad510
chore: bump @contentful/f36-ai-components to 0.0.1-alpha.38 [skip ci]
nikunj-tilva 9c5c6fc
chore: syncing changes with main for outside f36 components changes […
nikunj-tilva 15c3228
chore: bump @contentful/f36-ai-components to 0.0.1-alpha.39 [skip ci]
nikunj-tilva 3be7033
chore: removed alpha publishing workflow for ai-components [PIC-694]
nikunj-tilva c075cfb
chore: package-lock update [PIC-694]
nikunj-tilva 436d0b4
chore: package-lock update [PIC-694]
nikunj-tilva 01be4f3
chore: package-lock update [PIC-694]
nikunj-tilva 33156ce
style: fix indentation in Slider.styles.ts for better readability [PI…
nikunj-tilva f9c20ac
refactor: rename internal components to use 'Base' suffix for linter …
nikunj-tilva 6511e04
chore: update dependencies and fix AIChatMentionList menu behavior
nikunj-tilva 439f925
chore: tiptap v3 [] (#3344)
denkristoffer ba80189
Merge branch 'main' into PIC-694-forma36-create-aichatlayout-component
nikunj-tilva File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| # AI Components | ||
|
|
||
| This package is a pre-release. This means it is unsupported and subject to breaking changes without warning. | ||
|
|
||
| A collection of components for use in AI applications, such as conversational interfaces. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| { | ||
| "name": "@contentful/f36-ai-components", | ||
| "private": true, | ||
| "version": "0.0.1-alpha.0", | ||
| "description": "A collection of components for use in AI applications, such as conversational interfaces.", | ||
| "license": "MIT", | ||
| "files": [ | ||
| "dist" | ||
| ], | ||
| "main": "dist/index.js", | ||
| "module": "dist/esm/index.js", | ||
| "types": "dist/index.d.ts", | ||
| "source": "src/index.ts", | ||
| "sideEffects": false, | ||
| "browserslist": "extends @contentful/browserslist-config", | ||
| "scripts": { | ||
| "build": "tsup" | ||
| }, | ||
| "dependencies": { | ||
| "@contentful/f36-core": "^5.0.0", | ||
| "@contentful/f36-tokens": "^5.0.0", | ||
| "emotion": "^10.0.17" | ||
| }, | ||
| "peerDependencies": { | ||
| "react": ">=16.8", | ||
| "react-dom": ">=16.8" | ||
| }, | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "https://github.com/contentful/forma-36" | ||
| }, | ||
| "publishConfig": { | ||
| "registry": "https://npm.pkg.github.com/", | ||
| "access": "public" | ||
| } | ||
| } | ||
10 changes: 10 additions & 0 deletions
10
packages/f36-ai-components/src/AIChatLayout/AIChatLayout.styles.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| import tokens from '@contentful/f36-tokens'; | ||
| import { css } from 'emotion'; | ||
|
|
||
| export const getStyles = () => { | ||
| return { | ||
| aIChatLayout: css({ | ||
| color: tokens.red600, | ||
|
mshaaban0 marked this conversation as resolved.
Outdated
|
||
| }), | ||
| }; | ||
| }; | ||
11 changes: 11 additions & 0 deletions
11
packages/f36-ai-components/src/AIChatLayout/AIChatLayout.test.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| import React from 'react'; | ||
| import { render } from '@testing-library/react'; | ||
| import { AIChatLayout } from './AIChatLayout'; | ||
|
|
||
| describe('AIChatLayout', function () { | ||
| it('renders', () => { | ||
| const tree = render(<AIChatLayout>hello world</AIChatLayout>); | ||
|
|
||
| expect(tree).toBeTruthy(); | ||
| }); | ||
| }); |
30 changes: 30 additions & 0 deletions
30
packages/f36-ai-components/src/AIChatLayout/AIChatLayout.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| import { type CommonProps } from '@contentful/f36-core'; | ||
| import { cx } from 'emotion'; | ||
| import React from 'react'; | ||
| import { getStyles } from './AIChatLayout.styles'; | ||
|
|
||
| export interface AIChatLayoutProps extends CommonProps { | ||
| children: React.ReactNode; | ||
| } | ||
|
|
||
| function _AIChatLayout( | ||
| props: AIChatLayoutProps, | ||
| ref: React.Ref<HTMLDivElement>, | ||
| ) { | ||
| const styles = getStyles(); | ||
|
|
||
| return ( | ||
| <div | ||
| data-test-id={props.testId} | ||
| ref={ref} | ||
| className={cx(styles.aIChatLayout, props.className)} | ||
| > | ||
| {props.children} | ||
| </div> | ||
| ); | ||
| } | ||
|
|
||
| /** | ||
| * A layout component that provides a container for a conversational interface. | ||
| */ | ||
| export const AIChatLayout = React.forwardRef(_AIChatLayout); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| export { AIChatLayout } from './AIChatLayout/AIChatLayout'; | ||
| export type { AIChatLayoutProps } from './AIChatLayout/AIChatLayout'; |
16 changes: 16 additions & 0 deletions
16
packages/f36-ai-components/stories/AIChatLayout.stories.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| import type { Meta, Story } from '@storybook/react/types-6-0'; | ||
| import React from 'react'; | ||
|
|
||
| import { | ||
| AIChatLayout, | ||
| type AIChatLayoutProps, | ||
| } from '../src/AIChatLayout/AIChatLayout'; | ||
|
|
||
| export default { | ||
| component: AIChatLayout, | ||
| title: 'Components/AIChatLayout', | ||
| } as Meta; | ||
|
|
||
| export const Default: Story<AIChatLayoutProps> = (args) => { | ||
| return <AIChatLayout {...args}>AIChatLayout</AIChatLayout>; | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,12 +10,15 @@ const cwd = process.cwd(); | |
|
|
||
| // Umbrella package | ||
| const componentsPkg = '@contentful/f36-components'; | ||
|
|
||
| // todo: could this be retrieved from .changeset/config.json? there is some overlap but docs-utils is not there and codemod is | ||
| // Packages we don't want to have on changelog | ||
| const ignorePkgs = [ | ||
| '@contentful/f36-cdn', | ||
| '@contentful/f36-i18n-utils', | ||
| '@contentful/f36-website', | ||
| '@contentful/f36-docs-utils', | ||
| '@contentful/f36-ai-components', | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this correct? If so, I have added a note to the prerelease section in |
||
| ]; | ||
|
elliotmassen marked this conversation as resolved.
Outdated
|
||
|
|
||
| // Format package names as Start Case | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once this PR is approved, should I be running the
scripts/prerelease.mjsscript to publish this package?