Skip to content

Commit 1ca70f7

Browse files
committed
refactor: update package names to use scoped naming convention for Skyroc packages; adjust imports across the codebase to reflect new names, ensuring consistency and clarity
1 parent 84acb9e commit 1ca70f7

26 files changed

+104
-104
lines changed

packages/ui/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@
5151
"@radix-ui/react-toggle-group": "1.1.10",
5252
"@radix-ui/react-tooltip": "1.2.7",
5353
"@radix-ui/react-use-controllable-state": "1.2.2",
54+
"@skyroc/form": "workspace:*",
5455
"@skyroc/tailwind-plugin": "workspace:*",
56+
"@skyroc/utils": "workspace:*",
5557
"clsx": "2.1.1",
5658
"cmdk": "1.1.1",
5759
"embla-carousel-react": "8.6.0",
@@ -61,8 +63,6 @@
6163
"react": "19.1.0",
6264
"react-dom": "19.1.0",
6365
"react-resizable-panels": "^3.0.6",
64-
"skyroc-form": "workspace:*",
65-
"skyroc-utils": "workspace:*",
6666
"sonner": "2.0.6",
6767
"tailwind-merge": "3.3.0",
6868
"tailwind-variants": "1.0.0",

pnpm-lock.yaml

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

primitives/filed-form/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "skyroc-form",
2+
"name": "@skyroc/form",
33
"type": "module",
44
"version": "0.0.1",
55
"description": "",
@@ -56,8 +56,8 @@
5656
},
5757
"dependencies": {
5858
"@radix-ui/react-slot": "1.2.3",
59-
"skyroc-type-utils": "workspace:*",
60-
"skyroc-utils": "workspace:*"
59+
"@skyroc/type-utils": "workspace:*",
60+
"@skyroc/utils": "workspace:*"
6161
},
6262
"devDependencies": {
6363
"tsdown": "0.12.9",

primitives/filed-form/src/form-core/createStore.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
/* eslint-disable @typescript-eslint/no-unused-expressions */
55
/* eslint-disable no-bitwise */
66

7-
import { assign, isArray, isEqual, isNil, toArray } from 'skyroc-utils';
7+
import { assign, isArray, isEqual, isNil, toArray } from '@skyroc/utils';
88

99
import { get } from '../utils/get';
1010
import { set, unset } from '../utils/set';

primitives/filed-form/src/form-core/middleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Provides type-safe action definitions and middleware composition utilities
44
*/
55

6-
import type { AllPathsKeys, PathToDeepType } from 'skyroc-type-utils';
6+
import type { AllPathsKeys, PathToDeepType } from '@skyroc/type-utils';
77

88
import type { NamePath } from '../utils/util';
99

primitives/filed-form/src/form-core/resolver/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Provides helper functions to transform validation issues and create generic resolvers
66
*/
77

8-
import type { AllPathsKeys } from 'skyroc-type-utils';
8+
import type { AllPathsKeys } from '@skyroc/type-utils';
99

1010
import { keyOfName } from '../../utils/util';
1111
import type { Action, Middleware } from '../middleware';

primitives/filed-form/src/form-core/validation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Supports synchronous and asynchronous validation with customizable messages
77
*/
88

9-
import { isEqual, isNil } from 'skyroc-utils';
9+
import { isEqual, isNil } from '@skyroc/utils';
1010

1111
import type { StoreValue } from './types';
1212
import type { ValidateMessages } from './validate';

primitives/filed-form/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export type { AllPathsKeys, FieldElement } from 'skyroc-type-utils';
1+
export type { AllPathsKeys, FieldElement } from '@skyroc/type-utils';
22

33
export type { SubscribeMaskOptions } from './form-core/event';
44

primitives/filed-form/src/react/components/ComputedField.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
*/
99

1010
import { Slot } from '@radix-ui/react-slot';
11+
import type { AllPathsKeys } from '@skyroc/type-utils';
1112
import type { ReactElement } from 'react';
1213
import { useEffect, useState } from 'react';
13-
import type { AllPathsKeys } from 'skyroc-type-utils';
1414

1515
import type { StoreValue } from '../../form-core/types';
1616
import type { Rule } from '../../form-core/validation';

primitives/filed-form/src/react/components/Field.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
*/
99

1010
import { Slot } from '@radix-ui/react-slot';
11+
import type { AllPathsKeys } from '@skyroc/type-utils';
12+
import { getEventValue, isEqual, omitUndefined, toArray } from '@skyroc/utils';
1113
import type { ReactElement } from 'react';
1214
import { useEffect, useId, useRef, useState } from 'react';
13-
import type { AllPathsKeys } from 'skyroc-type-utils';
14-
import { getEventValue, isEqual, omitUndefined, toArray } from 'skyroc-utils';
1515

1616
import type { EventArgs, StoreValue } from '../../form-core/types';
1717
import type { Rule } from '../../form-core/validation';

0 commit comments

Comments
 (0)