ag-common 0.0.913 → 0.0.915

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/README.md CHANGED
@@ -46,6 +46,10 @@ npm i -S ag-common
46
46
 
47
47
  Please raise any issues or requests you might have [here](https://github.com/andreigec/ag-common/issues)
48
48
 
49
+ ## Testing
50
+
51
+ `pnpm test` runs the deterministic tests without live AWS resources. The legacy AWS checks are opt-in through `pnpm test:integration:aws` and require the existing `ag-common-tests` DynamoDB table and S3 bucket. The DynamoDB check wipes that dedicated test table; do not run it against shared application data.
52
+
49
53
  ## License
50
54
 
51
55
  [ISC](./LICENSE.md)
@@ -51,7 +51,7 @@ const DropdownList = ({ options, renderF, onChange, children, className, }) => {
51
51
  const value = typeof option === "string" ? option : option.value;
52
52
  const label = typeof option === "string" ? option : option.label;
53
53
  const isLast = index === options.length - 1;
54
- return (React.createElement(DropdownMenuPrimitive.Item, { key: value, className: (0, utils_1.cn)("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-main-bg-mid focus:text-main-fg data-[disabled]:pointer-events-none data-[disabled]:opacity-50", !isLast && "border-b border-main-bg-mid"), onSelect: () => handleSelect(value) }, renderF ? renderF(value) : label));
54
+ return (React.createElement(DropdownMenuPrimitive.Item, { key: value, className: (0, utils_1.cn)("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-main-bg-mid focus:text-main-fg data-disabled:pointer-events-none data-disabled:opacity-50", !isLast && "border-b border-main-bg-mid"), onSelect: () => handleSelect(value) }, renderF ? renderF(value) : label));
55
55
  })))));
56
56
  };
57
57
  exports.DropdownList = DropdownList;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ag-common",
3
- "version": "0.0.913",
3
+ "version": "0.0.915",
4
4
  "license": "ISC",
5
5
  "author": "admin@gec.dev",
6
6
  "repository": {
@@ -15,18 +15,18 @@
15
15
  "main": "./dist/index.js",
16
16
  "types": "./dist/index.d.ts",
17
17
  "dependencies": {
18
- "@aws-sdk/client-acm": "^3.1121.0",
19
- "@aws-sdk/client-apigatewaymanagementapi": "^3.1121.0",
20
- "@aws-sdk/client-dynamodb": "^3.1121.0",
21
- "@aws-sdk/client-s3": "^3.1121.0",
22
- "@aws-sdk/client-ses": "^3.1121.0",
23
- "@aws-sdk/client-sqs": "^3.1121.0",
24
- "@aws-sdk/client-sts": "^3.1121.0",
25
- "@aws-sdk/lib-dynamodb": "^3.1121.0",
26
- "@aws-sdk/s3-presigned-post": "^3.1121.0",
27
- "@aws-sdk/s3-request-presigner": "^3.1121.0",
28
- "@azure/cosmos": "^4.10.0",
29
- "@google/genai": "^2.19.0",
18
+ "@aws-sdk/client-acm": "^3.1146.0",
19
+ "@aws-sdk/client-apigatewaymanagementapi": "^3.1146.0",
20
+ "@aws-sdk/client-dynamodb": "^3.1146.0",
21
+ "@aws-sdk/client-s3": "^3.1146.0",
22
+ "@aws-sdk/client-ses": "^3.1146.0",
23
+ "@aws-sdk/client-sqs": "^3.1146.0",
24
+ "@aws-sdk/client-sts": "^3.1146.0",
25
+ "@aws-sdk/lib-dynamodb": "^3.1146.0",
26
+ "@aws-sdk/s3-presigned-post": "^3.1146.0",
27
+ "@aws-sdk/s3-request-presigner": "^3.1146.0",
28
+ "@azure/cosmos": "^4.10.1",
29
+ "@google/genai": "^2.27.0",
30
30
  "@radix-ui/react-accordion": "^1.2.20",
31
31
  "@radix-ui/react-avatar": "^1.2.6",
32
32
  "@radix-ui/react-checkbox": "^1.3.11",
@@ -44,33 +44,49 @@
44
44
  "clsx": "^2.1.1",
45
45
  "jsonwebtoken": "^9.0.3",
46
46
  "jwks-rsa": "^4.1.0",
47
- "lucide-react": "^1.37.0",
47
+ "lucide-react": "^1.51.0",
48
48
  "node-cache": "^5.1.2",
49
- "react": "^19.2.8",
50
- "react-dom": "^19.2.8",
51
- "tailwind-merge": "^3.6.0",
52
- "zod": "^4.5.4"
49
+ "tailwind-merge": "^3.7.0",
50
+ "zod": "^4.6.5"
53
51
  },
54
52
  "devDependencies": {
55
- "@storybook/addon-docs": "^10.5.10",
56
- "@storybook/react-vite": "^10.5.10",
53
+ "@storybook/addon-docs": "^10.6.1",
54
+ "@storybook/react-vite": "^10.6.1",
57
55
  "@tailwindcss/postcss": "^4.3.3",
58
56
  "@types/jsonwebtoken": "^9.0.10",
59
- "@types/node": "^26.4.0",
60
- "@types/react": "^19.2.18",
61
- "@types/react-dom": "^19.2.5",
62
- "aws-cdk-lib": "^2.267.0",
57
+ "@types/node": "^26.6.4",
58
+ "@types/react": "^19.3.0",
59
+ "@types/react-dom": "^19.3.0",
60
+ "aws-cdk-lib": "^2.272.0",
63
61
  "constructs": "^10.8.1",
64
- "eslint-config-e7npm": "^0.1.66",
62
+ "eslint-config-e7npm": "^0.1.70",
63
+ "react": "^19.3.0",
64
+ "react-dom": "^19.3.0",
65
65
  "rimraf": "^6.1.3",
66
- "storybook": "^10.5.10",
66
+ "storybook": "^10.6.1",
67
67
  "tailwindcss": "^4.3.3",
68
- "tsx": "^4.23.13",
68
+ "tsx": "^4.23.15",
69
69
  "typescript": "^7.0.2"
70
70
  },
71
71
  "peerDependencies": {
72
- "aws-cdk-lib": "^2.267.0",
73
- "constructs": "^10.0.0"
72
+ "aws-cdk-lib": "^2.272.0",
73
+ "constructs": "^10.8.1",
74
+ "react": "^18.2.0 || ^19.0.0",
75
+ "react-dom": "^18.2.0 || ^19.0.0"
76
+ },
77
+ "peerDependenciesMeta": {
78
+ "aws-cdk-lib": {
79
+ "optional": true
80
+ },
81
+ "constructs": {
82
+ "optional": true
83
+ },
84
+ "react": {
85
+ "optional": true
86
+ },
87
+ "react-dom": {
88
+ "optional": true
89
+ }
74
90
  },
75
91
  "scripts": {
76
92
  "preinstall": "npx only-allow pnpm",
@@ -80,6 +96,7 @@
80
96
  "build": "rimraf dist && tsc -p tsconfig.build.json",
81
97
  "start": "storybook dev -p 6006 --no-open",
82
98
  "build-storybook": "storybook build -o docs --quiet",
83
- "test": "tsx --test \"src/tests/**/*.test.ts\""
99
+ "test": "tsx --test \"src/tests/**/*.test.ts\"",
100
+ "test:integration:aws": "tsx --test \"src/tests/*.integration.ts\""
84
101
  }
85
102
  }