@pushwoosh/kit-helpers 4.11.3 → 4.12.1

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/expand.d.ts CHANGED
@@ -1,11 +1,12 @@
1
- import React, { type FC, type ReactNode } from 'react';
1
+ import { type FC, type ReactNode } from 'react';
2
2
  type ExpandTransitionProps = {
3
3
  className?: string;
4
4
  timeout?: number;
5
5
  externalClassName?: string;
6
6
  internalClassName?: string;
7
+ children?: ReactNode;
7
8
  };
8
- export declare const ExpandTransition: import("styled-components").StyledComponent<React.FC<ExpandTransitionProps>, any, {}, never>;
9
+ export declare const ExpandTransition: import("styled-components").StyledComponent<FC<ExpandTransitionProps>, any, {}, never>;
9
10
  type CollapseProps = {
10
11
  expanded: boolean;
11
12
  timeout?: number;
package/flex.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { CommonContainerProps } from './styled-helpers';
1
+ import { type CommonContainerProps } from './styled-helpers';
2
2
  type FlexContainerProps = CommonContainerProps & {
3
3
  $flexDirection?: 'row' | 'row-reverse' | 'column' | 'column-reverse';
4
4
  $flexWrap?: 'nowrap' | 'wrap' | 'wrap-reverse';
package/grid.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { StrNum, ItemAlignmentValue, CommonContainerProps } from './styled-helpers';
1
+ import { type StrNum, type ItemAlignmentValue, type CommonContainerProps } from './styled-helpers';
2
2
  export { toCssValue } from './styled-helpers';
3
3
  type GridContainerProps = CommonContainerProps & {
4
4
  $gridAutoFlow?: 'row' | 'column' | 'dense' | 'row dense' | 'column dense';
package/package.json CHANGED
@@ -1,17 +1,21 @@
1
1
  {
2
2
  "name": "@pushwoosh/kit-helpers",
3
- "version": "4.11.3",
3
+ "version": "4.12.1",
4
4
  "description": "React component for build Pushwoosh products",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
7
7
  "types": "index.d.ts",
8
8
  "sideEffects": false,
9
+ "publishConfig": {
10
+ "access": "public"
11
+ },
9
12
  "scripts": {
10
13
  "start": "npm run playground",
11
14
  "build": "pushwoosh-engine lib:build && cp ai-documentation.md dist/ai-documentation.md",
12
15
  "playground": "pushwoosh-engine lib:playground",
13
16
  "check": "npm run check:lint && npm run check:types",
14
- "check:lint": "echo \"Run check:lint\" && eslint .",
17
+ "check:lint": "echo \"Run check:lint\" && NODE_ENV=production eslint ./src",
18
+ "check:lint-fix": "echo \"Run check:lint\" && NODE_ENV=production eslint ./src --fix",
15
19
  "check:types": "echo \"Run check:types\" && pushwoosh-engine lib:check-types"
16
20
  },
17
21
  "pre-commit": "check",
@@ -19,30 +23,21 @@
19
23
  "react-transition-group": "^4.4.5"
20
24
  },
21
25
  "devDependencies": {
22
- "@pushwoosh/frontend-builder-engine": "^2.1.1",
26
+ "@pushwoosh/frontend-builder-engine": "^3.0.0",
23
27
  "@pushwoosh/kit-constants": "^1.6.0",
24
- "@types/react": "^16.14.20",
25
- "@types/react-dom": "^16.9.14",
28
+ "@types/react": "^18.3.2",
29
+ "@types/react-dom": "^18.3.0",
26
30
  "@types/react-transition-group": "^4.4.10",
27
31
  "@types/styled-components": "^5.1.34",
28
- "@typescript-eslint/eslint-plugin": "^7.3.1",
29
- "@typescript-eslint/parser": "^7.3.1",
32
+ "@types/webpack-env": "^1.18.8",
30
33
  "cross-env": "^7.0.3",
31
- "eslint": "^8.31.0",
32
- "eslint-config-airbnb": "^19.0.4",
33
- "eslint-config-airbnb-typescript": "^18.0.0",
34
- "eslint-import-resolver-alias": "^1.1.2",
35
- "eslint-plugin-import": "^2.25.2",
36
- "eslint-plugin-jsx-a11y": "^6.4.1",
37
- "eslint-plugin-react": "^7.26.1",
38
- "eslint-plugin-react-hooks": "^4.2.0",
39
34
  "pre-commit": "^1.2.2",
40
- "react": "^16.14.0",
41
- "react-dom": "^16.14.0",
35
+ "react": "^18.3.1",
36
+ "react-dom": "^18.3.1",
42
37
  "styled-components": "^5.3.11"
43
38
  },
44
39
  "peerDependencies": {
45
- "react": ">=16.14.0",
40
+ "react": ">=18.0.0",
46
41
  "styled-components": ">=5.3.3"
47
42
  },
48
43
  "engines": {