Skip to content
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

feat: add elements v1 packages #194

Merged
merged 109 commits into from
Oct 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
109 commits
Select commit Hold shift + click to select a range
7b61c00
chore(wip): add elements v1 packages
jonas-jonas Jul 19, 2024
26a51ac
chore: port remaining files over
jonas-jonas Jul 30, 2024
b720627
feat: add build system setup
jonas-jonas Jul 30, 2024
200d8bd
chore: move default theme to main package
jonas-jonas Jul 31, 2024
f3e3f67
chore: rename package to @ory/elements-react
jonas-jonas Jul 31, 2024
7452041
chore: format
jonas-jonas Jul 31, 2024
52fe48a
chore: remove client helpers package
jonas-jonas Aug 1, 2024
38f53eb
chore: format
jonas-jonas Aug 1, 2024
6907e2d
chore: upgrade versions
jonas-jonas Aug 2, 2024
dee0015
fix: linting
jonas-jonas Aug 2, 2024
687e20f
chore: add readme
jonas-jonas Aug 2, 2024
3fc44ce
chore: upgrade node version in CI
jonas-jonas Aug 2, 2024
e392ceb
chore: format
jonas-jonas Aug 2, 2024
3c297c0
chore: run chromatic only on PRs
jonas-jonas Aug 2, 2024
c821a4d
chore: export necessary files
jonas-jonas Aug 5, 2024
9e49add
chore: add playwright testing
jonas-jonas Aug 5, 2024
f8b9522
chore: add ci
jonas-jonas Aug 6, 2024
055f47c
chore: fix nrwl/nx-set-shas
jonas-jonas Aug 6, 2024
b9a3848
chore: u
jonas-jonas Aug 6, 2024
e9df65f
fix: command depedency
jonas-jonas Aug 6, 2024
8a0d489
chore: upgrade next js in example
jonas-jonas Aug 6, 2024
e6c1317
fix: commands in example
jonas-jonas Aug 6, 2024
6648498
fix: format
jonas-jonas Aug 6, 2024
042084f
chore: upgrade chromatic
jonas-jonas Aug 6, 2024
546bd1c
chore: install
jonas-jonas Aug 6, 2024
430e0e0
chore: chromatic
jonas-jonas Aug 6, 2024
f673c6a
chore: remove obsolete workfow
jonas-jonas Aug 6, 2024
6a9290b
chore: add main workflow
jonas-jonas Aug 6, 2024
4a67d92
chore: rename
jonas-jonas Aug 6, 2024
e3d9c97
chore: u
jonas-jonas Aug 6, 2024
c4c1d9d
fix: release config
jonas-jonas Aug 7, 2024
4ffc796
chore(release): publish 1.0.0-next.0
jonas-jonas Aug 7, 2024
c970bea
fix: provider logos
jonas-jonas Aug 7, 2024
ebb8763
chore: add dev workflow
jonas-jonas Aug 7, 2024
68c293d
Merge remote-tracking branch 'origin/main' into jonas-jonas/elementsv1
jonas-jonas Aug 7, 2024
39518fe
chore: u
jonas-jonas Aug 7, 2024
d88133a
fix: eslint issues
jonas-jonas Aug 8, 2024
6e6cf8e
fix: depedencies
jonas-jonas Aug 8, 2024
c9056b1
chore: format
jonas-jonas Aug 8, 2024
db5abb2
chore: u
jonas-jonas Aug 8, 2024
8b5e6ee
fix: dts files in dev mode
jonas-jonas Aug 21, 2024
c6595de
chore: remove next js dependency
jonas-jonas Aug 21, 2024
348148f
fix: card header subtitle
jonas-jonas Aug 21, 2024
b77c289
fix: button line-height
jonas-jonas Aug 21, 2024
1043a25
Merge remote-tracking branch 'origin/main' into jonas-jonas/elementsv1
jonas-jonas Aug 21, 2024
5358cb1
chore(release): publish 1.0.0-next.1
jonas-jonas Aug 21, 2024
34ef771
chore: add pre-release commands
jonas-jonas Aug 21, 2024
532280d
fix: use SDK url in footer links
jonas-jonas Aug 22, 2024
22bc4fa
chore(release): publish 1.0.0-next.2
jonas-jonas Aug 22, 2024
6603c10
chore: add updated readme
jonas-jonas Sep 3, 2024
bf7f9ad
fix: submit hidden identifier on second login step
jonas-jonas Sep 3, 2024
70e9fe7
Merge remote-tracking branch 'origin/main' into jonas-jonas/elementsv1
jonas-jonas Sep 3, 2024
c4a5559
chore(release): publish 1.0.0-next.3
jonas-jonas Sep 3, 2024
9addb98
chore: add pre-release script
jonas-jonas Sep 3, 2024
005f1d2
chore: add missing typeVersions declaration to package.json
jonas-jonas Sep 4, 2024
d7cfadb
chore: make onClick on input optional
jonas-jonas Sep 4, 2024
13d3bcb
chore(release): publish 1.0.0-next.4
jonas-jonas Sep 4, 2024
6b1a8fd
Merge remote-tracking branch 'origin/main' into jonas-jonas/elementsv1
jonas-jonas Sep 6, 2024
04110fc
feat: @testing-library/react based tests (#206)
mszekiel Sep 6, 2024
216c304
fix(core): use SDK instead of HTML form submissions
jonas-jonas Sep 9, 2024
5ebfd42
fix(core): use empty strings instead of undefined default values
jonas-jonas Sep 9, 2024
b16c2b5
fix(core): code form submission precendence
jonas-jonas Sep 9, 2024
47d221a
feat(theme): show resend code button on top of code input
jonas-jonas Sep 9, 2024
3a586b6
chore: add config to onSubmit handlers
jonas-jonas Sep 9, 2024
5bf8511
chore: format
jonas-jonas Sep 9, 2024
843cb31
Merge remote-tracking branch 'origin/main' into jonas-jonas/elementsv1
jonas-jonas Sep 12, 2024
4e4cd38
chore: u
jonas-jonas Sep 12, 2024
030eaaa
chore: bundling tsup
mszekiel Sep 13, 2024
f02d2ff
chore: add stories for elements v1 (#210)
jonas-jonas Sep 16, 2024
5e24320
fix(theme)!: scope css classes with .ory-default-theme
jonas-jonas Sep 16, 2024
ec25adc
fix(theme): social sign in button styling
jonas-jonas Sep 16, 2024
3dcba98
chore: treat react-intl as external
jonas-jonas Sep 16, 2024
50730a2
fix(intl): use correct abbreveation for swedish locale
jonas-jonas Sep 16, 2024
2bc740b
chore: enable changelog generation
jonas-jonas Sep 16, 2024
d14ad40
chore: enforce module boundaries
jonas-jonas Sep 17, 2024
be1b630
fix(core): passkey script discovery
jonas-jonas Sep 17, 2024
e473992
chore: 1.0.0-next.5
jonas-jonas Sep 17, 2024
32ff27e
chore(intl): revert default language to english
jonas-jonas Sep 17, 2024
e4311d8
chore: remove git section from nx.json release
jonas-jonas Sep 17, 2024
62bc6f2
fix(intl): export locales object from package root (#213)
jonas-jonas Sep 18, 2024
597c72e
chore: format changelog
jonas-jonas Sep 18, 2024
25eaff0
chore: 1.0.0-next.6
jonas-jonas Sep 18, 2024
4bad2ce
chore: fix story book preview font
jonas-jonas Sep 19, 2024
a914896
fix: registration text in swedish translation
jonas-jonas Sep 22, 2024
a7113d7
chore: pin @ory/client-fetch to 1.15.3
jonas-jonas Sep 23, 2024
fa98d7f
chore: format
jonas-jonas Sep 24, 2024
3aa5c00
fix: show identifier_first node in card header (#215)
jonas-jonas Sep 25, 2024
79212f7
chore: revert snapshot deletion
jonas-jonas Sep 25, 2024
62aaea8
Merge remote-tracking branch 'origin/main' into jonas-jonas/elementsv1
jonas-jonas Sep 27, 2024
151ebaa
feat: add two-step login card (#211)
jonas-jonas Sep 27, 2024
d00cd1f
chore: disable false positive eslint rule
jonas-jonas Sep 27, 2024
1a8620d
chore(release): publish
jonas-jonas Sep 27, 2024
f1b5f61
chore: format
jonas-jonas Sep 27, 2024
ece5b63
fix!: remove ory-default-theme class (#221)
jonas-jonas Oct 7, 2024
c217288
fix: remove capitalize class from messages
jonas-jonas Oct 7, 2024
f0315be
chore(release): publish
jonas-jonas Oct 7, 2024
c93aff2
chore: add initial api extractor report
jonas-jonas Oct 9, 2024
0dcada5
fix: add missing swedish translations (#222)
jonas-jonas Oct 10, 2024
0c6233e
chore: add missing keys to translation files
jonas-jonas Oct 10, 2024
64f1def
chore(release): publish
jonas-jonas Oct 10, 2024
949e51b
fix: add missing translations in all places (#224)
jonas-jonas Oct 14, 2024
9c40a50
chore: format
jonas-jonas Oct 14, 2024
8adfc41
Merge branch 'main' into jonas-jonas/elementsv1
jonas-jonas Oct 14, 2024
3781df9
chore: format
jonas-jonas Oct 14, 2024
11cd0b8
chore(release): publish
jonas-jonas Oct 14, 2024
2d56b78
fix!: improve component naming (#218)
jonas-jonas Oct 14, 2024
eb6c905
refactor: rework intl configuration (#234)
jonas-jonas Oct 15, 2024
e9c60b3
chore: fix storybook rendering
jonas-jonas Oct 16, 2024
bd4eb0d
chore: revert locale changes
jonas-jonas Oct 16, 2024
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
1 change: 0 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ module.exports = {
parser: "@typescript-eslint/parser",
ignorePatterns: ["src/assets/*.js"],
parserOptions: {
project: "./tsconfig.json",
tsconfigRootDir: __dirname,
ecmaVersion: 2021,
sourceType: "module",
Expand Down
13 changes: 12 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- run: npx playwright install --with-deps
# Re-enable, once we don't have weird depdenency issues, because of the shared src/ folder
# - run: npx nx affected -t lint test build
- run: npx nx run-many --all -t lint test build
- run: npx nx run-many --all -t lint test build api-extractor
- uses: actions/upload-artifact@v4
if: always()
with:
Expand Down Expand Up @@ -52,3 +52,14 @@ jobs:
exitOnceUploaded: true
workingDir: packages/legacy-stories
storybookBuildDir: storybook-static
- uses: chromaui/[email protected]
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN_ELEMENTS_REACT }}
exitOnceUploaded: true
workingDir: packages/elements-react-stories
storybookBuildDir: storybook-static

- name: Upload results to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,5 @@ pnpm-lock.yaml
/test-results/
/playwright-report/
/playwright/.cache/
.nx/
.nx
coverage/
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ CONTRIBUTING.md
docs
.next
.cache

# Generated files
CHANGELOG.md
**/api-report/*
194 changes: 0 additions & 194 deletions jest.config.js

This file was deleted.

8 changes: 8 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// Copyright © 2024 Ory Corp
// SPDX-License-Identifier: Apache-2.0

import { getJestProjects, getJestProjectsAsync } from "@nx/jest"

export default {
projects: await getJestProjects(),
}
8 changes: 8 additions & 0 deletions jest.preset.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// Copyright © 2024 Ory Corp
// SPDX-License-Identifier: Apache-2.0

const nxPreset = require("@nx/jest/preset").default

module.exports = {
...nxPreset,
}
37 changes: 36 additions & 1 deletion nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,38 @@
"dependsOn": ["^build"]
}
},
"release": {
"projectsRelationship": "independent",
"releaseTagPattern": "release/{projectName}/{version}",
"projects": ["@ory/elements-react"],
"version": {
"generatorOptions": {
"preid": "next",
"specifier": "prerelease"
}
},
"changelog": {
"automaticFromRef": true,
"projectChangelogs": true,
"workspaceChangelog": false
}
},
"affected": {
"defaultBase": "main"
},
"plugins": [
{
"plugin": "@nx/eslint/plugin",
"options": {
"targetName": "eslint:lint"
}
},
{
"plugin": "@nx/jest/plugin",
"options": {
"targetName": "test"
}
},
{
"plugin": "@nx/storybook/plugin",
"options": {
Expand All @@ -26,5 +54,12 @@
"staticStorybookTargetName": "static-storybook"
}
}
]
],
"generators": {
"@nx/react": {
"library": {
"unitTestRunner": "none"
}
}
}
}
Loading
Loading