@ory/elements-react 1.0.0-next.11 → 1.0.0-next.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/CHANGELOG.md +56 -0
  2. package/api-report/elements-react-client.api.json +228 -0
  3. package/api-report/elements-react-client.api.md +22 -0
  4. package/api-report/elements-react-theme.api.json +47 -24
  5. package/api-report/elements-react-theme.api.md +6 -5
  6. package/api-report/elements-react.api.json +710 -86
  7. package/api-report/elements-react.api.md +86 -11
  8. package/api-report/temp/elements-react-client.api.md +22 -0
  9. package/api-report/temp/elements-react-theme.api.md +6 -5
  10. package/api-report/temp/elements-react.api.md +86 -11
  11. package/config/api-extractor-client.json +463 -0
  12. package/dist/client/frontendClient.d.mts +5 -0
  13. package/dist/client/frontendClient.d.ts +5 -0
  14. package/dist/client/frontendClient.js +40 -0
  15. package/dist/client/frontendClient.js.map +1 -0
  16. package/dist/client/frontendClient.mjs +19 -0
  17. package/dist/client/frontendClient.mjs.map +1 -0
  18. package/dist/client/index.d.mts +3 -0
  19. package/dist/client/index.d.ts +3 -0
  20. package/dist/client/index.js +29 -0
  21. package/dist/client/index.js.map +1 -0
  22. package/dist/client/index.mjs +5 -0
  23. package/dist/client/index.mjs.map +1 -0
  24. package/dist/client/useSession.d.mts +41 -0
  25. package/dist/client/useSession.d.ts +41 -0
  26. package/dist/client/useSession.js +79 -0
  27. package/dist/client/useSession.js.map +1 -0
  28. package/dist/client/useSession.mjs +54 -0
  29. package/dist/client/useSession.mjs.map +1 -0
  30. package/dist/index.d.mts +97 -21
  31. package/dist/index.d.ts +97 -21
  32. package/dist/index.js +718 -5691
  33. package/dist/index.js.map +1 -1
  34. package/dist/index.mjs +712 -5687
  35. package/dist/index.mjs.map +1 -1
  36. package/dist/theme/default/index.css +295 -29
  37. package/dist/theme/default/index.css.map +1 -1
  38. package/dist/theme/default/index.d.mts +3 -3
  39. package/dist/theme/default/index.d.ts +3 -3
  40. package/dist/theme/default/index.js +1058 -292
  41. package/dist/theme/default/index.js.map +1 -1
  42. package/dist/theme/default/index.mjs +1030 -256
  43. package/dist/theme/default/index.mjs.map +1 -1
  44. package/jest.config.ts +4 -3
  45. package/package.json +17 -8
  46. package/tailwind.config.ts +6 -1
  47. package/tsconfig.json +5 -5
package/jest.config.ts CHANGED
@@ -1,16 +1,17 @@
1
1
  // Copyright © 2024 Ory Corp
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
 
4
- /* eslint-disable */
4
+ import { Config } from "jest"
5
5
 
6
6
  export default {
7
7
  displayName: "@ory/elements-react",
8
8
  preset: "../../jest.preset.js",
9
9
  transform: {
10
- "^.+\\.[tj]sx?$": "ts-jest",
10
+ "^.+\\.tsx?$": "ts-jest",
11
11
  ".+\\.(svg|css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$":
12
12
  "jest-transform-stub",
13
13
  },
14
14
  moduleFileExtensions: ["ts", "tsx", "js", "jsx"],
15
15
  coverageDirectory: "../../coverage/packages/elements-react",
16
- }
16
+ coveragePathIgnorePatterns: ["/node_modules/", "/dist/", ".svg"],
17
+ } satisfies Config
package/package.json CHANGED
@@ -1,12 +1,17 @@
1
1
  {
2
2
  "name": "@ory/elements-react",
3
- "version": "1.0.0-next.11",
3
+ "version": "1.0.0-next.13",
4
4
  "exports": {
5
5
  ".": {
6
6
  "types": "./dist/index.d.ts",
7
7
  "import": "./dist/index.mjs",
8
8
  "require": "./dist/index.js"
9
9
  },
10
+ "./client": {
11
+ "types": "./dist/client/index.d.ts",
12
+ "import": "./dist/client/index.mjs",
13
+ "require": "./dist/client/index.js"
14
+ },
10
15
  "./theme": {
11
16
  "types": "./dist/theme/default/index.d.ts",
12
17
  "import": "./dist/theme/default/index.mjs",
@@ -19,6 +24,9 @@
19
24
  "index": [
20
25
  "./dist/index.d.ts"
21
26
  ],
27
+ "client": [
28
+ "./dist/client/index.d.ts"
29
+ ],
22
30
  "theme": [
23
31
  "./dist/theme/default/index.d.ts"
24
32
  ]
@@ -28,10 +36,11 @@
28
36
  "module": "./dist/index.mjs",
29
37
  "types": "./dist/index.d.ts",
30
38
  "dependencies": {
31
- "@ory/client-fetch": "^1.15.4",
39
+ "@ory/client-fetch": "1.15.6",
40
+ "@radix-ui/react-dropdown-menu": "2.1.2",
41
+ "class-variance-authority": "0.7.0",
32
42
  "clsx": "2.1.1",
33
43
  "input-otp": "1.2.4",
34
- "lodash.merge": "4.6.2",
35
44
  "react-hook-form": "7.53.0",
36
45
  "react-intl": "6.7.0",
37
46
  "tailwind-merge": "2.5.2",
@@ -42,13 +51,13 @@
42
51
  "react-dom": "18.3.1"
43
52
  },
44
53
  "devDependencies": {
45
- "@hookform/devtools": "^4.3.1",
46
- "@svgr/plugin-svgo": "^8.1.0",
54
+ "@hookform/devtools": "4.3.1",
55
+ "@svgr/plugin-svgo": "8.1.0",
47
56
  "@types/lodash.merge": "4.6.9",
48
- "esbuild-plugin-svgr": "^2.1.0",
49
- "eslint-plugin-react": "7.37.0",
57
+ "esbuild-plugin-svgr": "3.0.0",
58
+ "eslint-plugin-react": "7.37.1",
50
59
  "postcss": "8.4.47",
51
- "tsup": "8.2.3"
60
+ "tsup": "8.3.0"
52
61
  },
53
62
  "keywords": [
54
63
  "ory",
@@ -4,6 +4,7 @@
4
4
  import type { Config } from "tailwindcss"
5
5
 
6
6
  import variables from "./variables-processed.json"
7
+ import plugin from "tailwindcss/plugin"
7
8
 
8
9
  const config: Config = {
9
10
  content: ["./src/**/*.{js,ts,jsx,tsx,mdx}"],
@@ -48,7 +49,11 @@ const config: Config = {
48
49
  ...variables.colors.light,
49
50
  },
50
51
  },
51
- plugins: [],
52
+ plugins: [
53
+ plugin(({ addVariant }) => {
54
+ addVariant("loading", "&[data-loading=true]")
55
+ }),
56
+ ],
52
57
  }
53
58
 
54
59
  export default config
package/tsconfig.json CHANGED
@@ -17,19 +17,19 @@
17
17
  "declarationDir": "dist/types",
18
18
  "jsx": "react-jsx",
19
19
  "lib": ["ES6", "DOM", "WebWorker"],
20
- "rootDir": "src",
20
+ "rootDir": ".",
21
21
  "paths": {
22
- "@ory/elements-react": ["./src/index.ts"],
23
- "@tests/*": ["./src/tests/*"]
22
+ "@ory/elements-react": ["./src/index.ts"]
24
23
  }
25
24
  },
26
- "exclude": ["node_modules"],
25
+ "exclude": ["node_modules", "dist"],
27
26
  "include": [
28
27
  "src/**/*.ts",
29
28
  "src/**/*.tsx",
30
29
  "src/global.d.ts",
31
30
  "src/tests/**/*.ts",
32
31
  "src/tests/**/*.tsx",
33
- "tsup.config.ts"
32
+ "tsup.config.ts",
33
+ "jest.config.ts"
34
34
  ]
35
35
  }