shinkansen-sprockets 1.2.12 → 1.2.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.
- package/eslint.config.mjs +6 -12
- package/package.json +2 -6
- package/src/index.d.cts +26 -0
- package/src/index.d.mts +26 -0
package/eslint.config.mjs
CHANGED
@@ -119,19 +119,16 @@ export default [
|
|
119
119
|
globals: {
|
120
120
|
...globals.browser
|
121
121
|
}
|
122
|
-
},
|
122
|
+
}, // @ts-expect-error Storybook
|
123
123
|
plugins: {
|
124
124
|
...reactPlugins,
|
125
125
|
...storybookPlugins
|
126
|
-
},
|
126
|
+
}, // @ts-expect-error Storybook
|
127
127
|
rules: {
|
128
128
|
...reactRules
|
129
129
|
},
|
130
130
|
settings: {
|
131
|
-
...reactSettings
|
132
|
-
'import/resolver': {
|
133
|
-
'babel-module': {}
|
134
|
-
}
|
131
|
+
...reactSettings
|
135
132
|
}
|
136
133
|
}),
|
137
134
|
standard({
|
@@ -149,19 +146,16 @@ export default [
|
|
149
146
|
...globals.browser,
|
150
147
|
...globals.jest
|
151
148
|
}
|
152
|
-
},
|
149
|
+
}, // @ts-expect-error Storybook
|
153
150
|
plugins: {
|
154
151
|
...reactPlugins,
|
155
152
|
...storybookPlugins
|
156
|
-
},
|
153
|
+
}, // @ts-expect-error Storybook
|
157
154
|
rules: {
|
158
155
|
...reactRules
|
159
156
|
},
|
160
157
|
settings: {
|
161
|
-
...reactSettings
|
162
|
-
'import/resolver': {
|
163
|
-
'babel-module': {}
|
164
|
-
}
|
158
|
+
...reactSettings
|
165
159
|
}
|
166
160
|
}),
|
167
161
|
/**
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "shinkansen-sprockets",
|
3
|
-
"version": "1.2.
|
3
|
+
"version": "1.2.13",
|
4
4
|
"description": "Shinkansen Sprockets",
|
5
5
|
"keywords": [
|
6
6
|
"Shinkansen",
|
@@ -73,7 +73,6 @@
|
|
73
73
|
"core-js": "^3.40.0",
|
74
74
|
"cross-env": "^7.0.3",
|
75
75
|
"eslint": "^9.21.0",
|
76
|
-
"eslint-import-resolver-babel-module": "^5.3.2",
|
77
76
|
"eslint-plugin-react": "^7.37.4",
|
78
77
|
"eslint-plugin-storybook": "^0.11.3",
|
79
78
|
"globals": "^16.0.0",
|
@@ -106,10 +105,7 @@
|
|
106
105
|
"import": "./src/index.mjs"
|
107
106
|
},
|
108
107
|
"#sprockets/common": "./src/common/index.mjs",
|
109
|
-
"#sprockets/components/*":
|
110
|
-
"require": "./src/components/*/index.cjs",
|
111
|
-
"import": "./src/components/*/index.cjs"
|
112
|
-
},
|
108
|
+
"#sprockets/components/*": "./src/components/*/index.cjs",
|
113
109
|
"#sprockets/sprockets": "./src/sprockets/index.cjs",
|
114
110
|
"#sprockets/sprockets/*": "./src/sprockets/*/index.cjs",
|
115
111
|
"#sprockets/sprockets/check-answers/group/*": "./src/sprockets/check-answers/group/*.cjs",
|
package/src/index.d.cts
CHANGED
@@ -1,3 +1,21 @@
|
|
1
|
+
import type CheckAnswersSprocket from '#sprockets/sprockets/check-answers'
|
2
|
+
|
3
|
+
import type {
|
4
|
+
CheckAnswersProps
|
5
|
+
} from '#sprockets/sprockets/check-answers'
|
6
|
+
|
7
|
+
import type ErrorSummarySprocket from '#sprockets/sprockets/error-summary'
|
8
|
+
|
9
|
+
import type {
|
10
|
+
ErrorSummaryProps
|
11
|
+
} from '#sprockets/sprockets/error-summary'
|
12
|
+
|
13
|
+
import type FieldsetSprocket from '#sprockets/sprockets/fieldset'
|
14
|
+
|
15
|
+
import type {
|
16
|
+
FieldsetProps
|
17
|
+
} from '#sprockets/sprockets/fieldset'
|
18
|
+
|
1
19
|
export type AnswerDefinitionType = SprocketsTypes.AnswerDefinitionType
|
2
20
|
export type FieldChangeType = SprocketsTypes.FieldChangeType
|
3
21
|
export type ErrorDefinitionType = SprocketsTypes.ErrorDefinitionType
|
@@ -6,3 +24,11 @@ export type FieldErrorType = SprocketsTypes.FieldErrorType
|
|
6
24
|
export { default as CheckAnswersSprocket } from '#sprockets/sprockets/check-answers'
|
7
25
|
export { default as ErrorSummarySprocket } from '#sprockets/sprockets/error-summary'
|
8
26
|
export { default as FieldsetSprocket } from '#sprockets/sprockets/fieldset'
|
27
|
+
|
28
|
+
declare const sprockets: {
|
29
|
+
CheckAnswersSprocket: CheckAnswersSprocket<CheckAnswersProps>
|
30
|
+
ErrorSummarySprocket: ErrorSummarySprocket<ErrorSummaryProps>
|
31
|
+
FieldsetSprocket: FieldsetSprocket<FieldsetProps>
|
32
|
+
}
|
33
|
+
|
34
|
+
export default sprockets
|
package/src/index.d.mts
CHANGED
@@ -1,3 +1,21 @@
|
|
1
|
+
import type CheckAnswersSprocket from '#sprockets/sprockets/check-answers'
|
2
|
+
|
3
|
+
import type {
|
4
|
+
CheckAnswersProps
|
5
|
+
} from '#sprockets/sprockets/check-answers'
|
6
|
+
|
7
|
+
import type ErrorSummarySprocket from '#sprockets/sprockets/error-summary'
|
8
|
+
|
9
|
+
import type {
|
10
|
+
ErrorSummaryProps
|
11
|
+
} from '#sprockets/sprockets/error-summary'
|
12
|
+
|
13
|
+
import type FieldsetSprocket from '#sprockets/sprockets/fieldset'
|
14
|
+
|
15
|
+
import type {
|
16
|
+
FieldsetProps
|
17
|
+
} from '#sprockets/sprockets/fieldset'
|
18
|
+
|
1
19
|
export type AnswerDefinitionType = SprocketsTypes.AnswerDefinitionType
|
2
20
|
export type FieldChangeType = SprocketsTypes.FieldChangeType
|
3
21
|
export type ErrorDefinitionType = SprocketsTypes.ErrorDefinitionType
|
@@ -6,3 +24,11 @@ export type FieldErrorType = SprocketsTypes.FieldErrorType
|
|
6
24
|
export { default as CheckAnswersSprocket } from '#sprockets/sprockets/check-answers'
|
7
25
|
export { default as ErrorSummarySprocket } from '#sprockets/sprockets/error-summary'
|
8
26
|
export { default as FieldsetSprocket } from '#sprockets/sprockets/fieldset'
|
27
|
+
|
28
|
+
declare const sprockets: {
|
29
|
+
CheckAnswersSprocket: CheckAnswersSprocket<CheckAnswersProps>
|
30
|
+
ErrorSummarySprocket: ErrorSummarySprocket<ErrorSummaryProps>
|
31
|
+
FieldsetSprocket: FieldsetSprocket<FieldsetProps>
|
32
|
+
}
|
33
|
+
|
34
|
+
export default sprockets
|