@seed-design/stackflow 0.1.3 → 1.0.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seed-design/stackflow",
3
- "version": "0.1.3",
3
+ "version": "1.0.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/daangn/seed-design.git",
@@ -30,16 +30,16 @@
30
30
  "@radix-ui/react-compose-refs": "^1.1.2",
31
31
  "@radix-ui/react-slot": "^1.2.3",
32
32
  "@radix-ui/react-use-callback-ref": "^1.1.1",
33
- "@seed-design/dom-utils": "0.0.2",
34
- "@seed-design/react-primitive": "0.0.3",
33
+ "@seed-design/dom-utils": "1.0.0",
34
+ "@seed-design/react-primitive": "1.0.0",
35
35
  "clsx": "^2.1.1"
36
36
  },
37
37
  "devDependencies": {
38
- "@seed-design/css": "0.1.3",
38
+ "@seed-design/css": "1.0.0",
39
39
  "@stackflow/core": "^1.2.0",
40
40
  "@stackflow/react": "^1.5.1",
41
41
  "@stackflow/react-ui-core": "^1.3.2",
42
- "@vitejs/plugin-react": "^4.4.1",
42
+ "@vitejs/plugin-react": "^5.0.0",
43
43
  "globby": "^14.1.0",
44
44
  "react": "^19.1.0",
45
45
  "react-dom": "^19.1.0",
@@ -47,7 +47,7 @@
47
47
  "vite-plugin-dts": "^4.5.3"
48
48
  },
49
49
  "peerDependencies": {
50
- "@seed-design/css": ">=0.1.3",
50
+ "@seed-design/css": ">=1.0.0",
51
51
  "@stackflow/core": ">=1.1.0",
52
52
  "@stackflow/react": ">=1.4.1",
53
53
  "@stackflow/react-ui-core": ">=1.3.2",
@@ -9,7 +9,9 @@ export const AppBarProvider = AppBarContext.Provider;
9
9
 
10
10
  export function useAppBarContext<T extends boolean | undefined = true>({
11
11
  strict = true,
12
- }: { strict?: T } = {}): T extends false ? UseAppBarContext | null : UseAppBarContext {
12
+ }: {
13
+ strict?: T;
14
+ } = {}): T extends false ? UseAppBarContext | null : UseAppBarContext {
13
15
  const context = useContext(AppBarContext);
14
16
  if (!context && strict) {
15
17
  throw new Error("useAppBarContext must be used within a AppBar");
@@ -9,7 +9,9 @@ export const AppScreenProvider = AppScreenContext.Provider;
9
9
 
10
10
  export function useAppScreenContext<T extends boolean | undefined = true>({
11
11
  strict = true,
12
- }: { strict?: T } = {}): T extends false ? UseAppScreenContext | null : UseAppScreenContext {
12
+ }: {
13
+ strict?: T;
14
+ } = {}): T extends false ? UseAppScreenContext | null : UseAppScreenContext {
13
15
  const context = useContext(AppScreenContext);
14
16
  if (!context && strict) {
15
17
  throw new Error("useAppScreenContext must be used within a AppScreen");
@@ -9,9 +9,9 @@ export const GlobalInteractionProvider = GlobalInteractionContext.Provider;
9
9
 
10
10
  export function useGlobalInteractionContext<T extends boolean | undefined = true>({
11
11
  strict = true,
12
- }: { strict?: T } = {}): T extends false
13
- ? UseGlobalInteractionContext | null
14
- : UseGlobalInteractionContext {
12
+ }: {
13
+ strict?: T;
14
+ } = {}): T extends false ? UseGlobalInteractionContext | null : UseGlobalInteractionContext {
15
15
  const context = useContext(GlobalInteractionContext);
16
16
  if (!context && strict) {
17
17
  throw new Error("useGlobalInteractionContext must be used within a GlobalInteractionProvider");
@@ -18,7 +18,10 @@ export function createStyleContext<
18
18
  const ClassNamesProvider = ({
19
19
  children,
20
20
  value,
21
- }: { children: React.ReactNode; value: Classnames }) => {
21
+ }: {
22
+ children: React.ReactNode;
23
+ value: Classnames;
24
+ }) => {
22
25
  return <ClassNamesContext.Provider value={value}>{children}</ClassNamesContext.Provider>;
23
26
  };
24
27