@amp-labs/react 1.7.0 → 1.9.0

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/build/index.d.ts CHANGED
@@ -9,7 +9,15 @@ export declare function AmpersandProvider(props: AmpersandProviderProps): JSX_2.
9
9
  declare interface AmpersandProviderProps {
10
10
  options: {
11
11
  apiKey: string;
12
- projectId: string;
12
+ /**
13
+ * Use `project` instead of `projectId`.
14
+ * @deprecated
15
+ */
16
+ projectId?: string;
17
+ /**
18
+ * `project` is the project ID or name.
19
+ */
20
+ project?: string;
13
21
  styles?: object;
14
22
  };
15
23
  children: default_2.ReactNode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amp-labs/react",
3
- "version": "1.7.0",
3
+ "version": "1.9.0",
4
4
  "description": "Ampersand React library.",
5
5
  "author": {
6
6
  "name": "Ampersand Labs",
@@ -29,15 +29,16 @@
29
29
  ],
30
30
  "scripts": {
31
31
  "test": "jest",
32
- "watch": "npm run prepbuild && vite build --watch",
33
- "build": "npm run prepbuild && vite build",
34
- "analyze": "npm run prepbuild && vite build --mode development",
35
- "prepbuild": "npm run clean && node -p \"'export const LIB_VERSION = ' + JSON.stringify(require('./package.json').version) + ';'\" | sed \"s|\\\"|'|g\" > src/services/version.ts",
32
+ "watch": "yarn prepbuild && vite build --watch",
33
+ "build": "yarn prepbuild && vite build",
34
+ "analyze": "yarn prepbuild && vite build --mode development",
35
+ "prepbuild": "yarn clean && node -p \"'export const LIB_VERSION = ' + JSON.stringify(require('./package.json').version) + ';'\" | sed \"s|\\\"|'|g\" > src/services/version.ts",
36
36
  "clean": "rm -rf ./build/",
37
37
  "assets": "mkdir ./build/ && cp -R ./src/public/ ./build/public/",
38
38
  "lint": "eslint --ext .ts,.tsx -c .eslintrc.cjs src/ --fix",
39
39
  "lint:dry": "eslint --ext .ts,.tsx -c .eslintrc.cjs src/",
40
- "generate-api": "openapi-generator-cli generate -i https://raw.githubusercontent.com/amp-labs/openapi/main/api/api.yaml -g typescript-fetch -o generated-sources/api --additional-properties=npmName=amp-labs-generated-rest-sdk,supportsES6=true,withInterfaces=true"
40
+ "clean-api": "rm -rf generated-sources/api",
41
+ "generate-api": "yarn clean-api && openapi-generator-cli generate -i https://raw.githubusercontent.com/amp-labs/openapi/main/api/api.yaml -g typescript-fetch -o generated-sources/api --additional-properties=npmName=amp-labs-generated-rest-sdk,supportsES6=true,withInterfaces=true"
41
42
  },
42
43
  "repository": {
43
44
  "type": "git",
@@ -77,7 +78,7 @@
77
78
  "rollup-plugin-visualizer": "^5.12.0",
78
79
  "typescript": "^5.2.2",
79
80
  "vite": "^5.3.3",
80
- "vite-plugin-dts": "^3.9.1"
81
+ "vite-plugin-dts": "^4.0.2"
81
82
  },
82
83
  "peerDependencies": {
83
84
  "@chakra-ui/react": "^2.4.4",
@@ -90,5 +91,6 @@
90
91
  "@chakra-ui/icons": "^2.1.1",
91
92
  "immer": "^10.0.3",
92
93
  "lodash.isequal": "^4.5.0"
93
- }
94
+ },
95
+ "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
94
96
  }