@modernpoacher/sprockets 1.0.128 → 1.0.129

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 CHANGED
@@ -68,7 +68,7 @@ export default [
68
68
  },
69
69
  /**
70
70
  * Storybook config
71
- */
71
+ */ // @ts-ignore
72
72
  ...storybookPlugin.configs['flat/recommended'],
73
73
  /**
74
74
  * Standard config
package/index.d.mts CHANGED
@@ -21,20 +21,11 @@ declare global {
21
21
  href: string
22
22
  }
23
23
 
24
- export interface FieldChangeType {
25
- text: string
26
- href: string
27
- }
28
-
29
- export interface FieldErrorType {
30
- text: string
31
- href: string
32
- }
33
-
34
24
  export namespace Super {
35
25
  export namespace Sprockets {
36
26
  export interface SprocketProps extends React.PropsWithChildren {
37
27
  groupRef?: React.RefObject<any> // eslint-disable-line @typescript-eslint/no-explicit-any -- Simplicity
28
+ title?: string
38
29
  }
39
30
 
40
31
  export type SprocketState = Record<PropertyKey, unknown>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modernpoacher/sprockets",
3
- "version": "1.0.128",
3
+ "version": "1.0.129",
4
4
  "description": "Sprockets",
5
5
  "keywords": [
6
6
  "Sprockets",
@@ -43,7 +43,8 @@
43
43
  "test": "npm run test:mocha && npm run test:jest",
44
44
  "test:jest": "cross-env NODE_ENV=test jest",
45
45
  "test:mocha": "cross-env NODE_ENV=test mocha test --recursive",
46
- "transform": "cross-env DEBUG=@modernpoacher/sprockets* .storybook/transform.sh"
46
+ "transform": "cross-env DEBUG=@modernpoacher/sprockets* .storybook/transform.sh",
47
+ "type-check": "tsc --noEmit"
47
48
  },
48
49
  "dependencies": {
49
50
  "classnames": "^2.5.1",
@@ -17,9 +17,7 @@ import type {
17
17
  } from '#sprockets/sprockets/fieldset'
18
18
 
19
19
  export type AnswerDefinitionType = SprocketsTypes.AnswerDefinitionType
20
- export type FieldChangeType = SprocketsTypes.FieldChangeType
21
20
  export type ErrorDefinitionType = SprocketsTypes.ErrorDefinitionType
22
- export type FieldErrorType = SprocketsTypes.FieldErrorType
23
21
 
24
22
  export { default as CheckAnswersSprocket } from '#sprockets/sprockets/check-answers'
25
23
  export { default as ErrorSummarySprocket } from '#sprockets/sprockets/error-summary'
@@ -17,9 +17,7 @@ import type {
17
17
  } from '#sprockets/sprockets/fieldset'
18
18
 
19
19
  export type AnswerDefinitionType = SprocketsTypes.AnswerDefinitionType
20
- export type FieldChangeType = SprocketsTypes.FieldChangeType
21
20
  export type ErrorDefinitionType = SprocketsTypes.ErrorDefinitionType
22
- export type FieldErrorType = SprocketsTypes.FieldErrorType
23
21
 
24
22
  export { default as CheckAnswersSprocket } from '#sprockets/sprockets/check-answers'
25
23
  export { default as ErrorSummarySprocket } from '#sprockets/sprockets/error-summary'