Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PCC-1559 Universal components support special variant field #314

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/famous-pumas-compete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@pantheon-systems/pcc-react-sdk": minor
"@pantheon-systems/pcc-sdk-core": minor
---

Component schema supports special 'variant' attribute.
24 changes: 24 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"mode": "pre",
"tag": "beta",
"initialVersions": {
"eslint-config-pcc-custom": "1.0.0",
"testpages": "0.1.0",
"@pantheon-systems/pcc-browser-sdk": "3.8.1",
"@pantheon-systems/pcc-cli": "3.8.1",
"@pantheon-systems/pcc-sdk-core": "3.8.1",
"@pantheon-systems/pcc-react-sample-library": "3.8.1",
"@pantheon-systems/pcc-react-sdk": "3.8.1",
"@pantheon-systems/pcc-vue-sdk": "3.8.1",
"gatsby-pcc-starter": "1.0.0",
"gatsby-pcc-starter-ts": "1.0.0",
"@pantheon-systems/next-pcc-starter": "1.0.0",
"@pantheon-systems/next-approuter-pcc-starter-ts": "1.1.7",
"@pantheon-systems/next-pcc-starter-ts": "1.0.0",
"@pantheon-systems/vue-pcc-starter": "1.1.2",
"@pantheon-systems/vue-pcc-starter-ts": "1.1.2"
},
"changesets": [
"famous-pumas-compete"
]
}
7 changes: 7 additions & 0 deletions packages/browser/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @pantheon-systems/pcc-browser-sdk

## 3.9.0-beta.0

### Patch Changes

- Updated dependencies [4267508]
- @pantheon-systems/[email protected]

## 3.8.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@pantheon-systems/pcc-browser-sdk",
"author": "@pantheon-systems",
"description": "Pantheon Content Cloud Browser SDK",
"version": "3.8.1",
"version": "3.9.0-beta.0",
"main": "dist/index.js",
"files": [
"dist",
Expand Down
7 changes: 7 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @pantheon-systems/pcc-cli

## 3.9.0-beta.0

### Patch Changes

- Updated dependencies [4267508]
- @pantheon-systems/[email protected]

## 3.8.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@pantheon-systems/pcc-cli",
"author": "@pantheon-systems",
"description": "Pantheon Content Cloud CLI",
"version": "3.8.1",
"version": "3.9.0-beta.0",
"type": "module",
"license": "MIT",
"keywords": [
Expand Down
6 changes: 6 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @pantheon-systems/pcc-sdk-core

## 3.9.0-beta.0

### Minor Changes

- 4267508: Component schema supports special 'variant' attribute.

## 3.8.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@pantheon-systems/pcc-sdk-core",
"author": "@pantheon-systems",
"description": "Pantheon Content Cloud SDK Core",
"version": "3.8.1",
"version": "3.9.0-beta.0",
"license": "MIT",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
Expand Down
7 changes: 6 additions & 1 deletion packages/core/src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,13 @@ export const SmartComponentMapZod = z.record(
z.string(),
z.object({
title: z.string(),
variants: z.array(z.string()).optional(),
iconUrl: z.string().nullable().optional(),
exampleImageUrl: z.string().nullable().optional(),
exampleImageUrl: z
.string()
.nullable()
.optional()
.or(z.array(z.string()).optional()),
fields: z.record(z.string(), fieldSchema),
}),
);
Expand Down
8 changes: 8 additions & 0 deletions packages/react-sample-library/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @pantheon-systems/pcc-vue-sdk

## 3.9.0-beta.0

### Patch Changes

- Updated dependencies [4267508]
- @pantheon-systems/[email protected]
- @pantheon-systems/[email protected]

## 3.8.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react-sample-library/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@pantheon-systems/pcc-react-sample-library",
"author": "@pantheon-systems",
"description": "Pantheon Content Cloud Sample Component Library for React",
"version": "3.8.1",
"version": "3.9.0-beta.0",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
Expand Down
11 changes: 11 additions & 0 deletions packages/react-sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# @pantheon-systems/pcc-react-sdk

## 3.9.0-beta.0

### Minor Changes

- 4267508: Component schema supports special 'variant' attribute.

### Patch Changes

- Updated dependencies [4267508]
- @pantheon-systems/[email protected]

## 3.8.1

### Patch Changes
Expand Down
3 changes: 2 additions & 1 deletion packages/react-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@pantheon-systems/pcc-react-sdk",
"author": "@pantheon-systems",
"description": "Pantheon Content Cloud React SDK",
"version": "3.8.1",
"version": "3.9.0-beta.0",
"license": "MIT",
"keywords": [
"pcc",
Expand Down Expand Up @@ -106,6 +106,7 @@
"framer-motion": "^10.18.0",
"goober": "^2.1.14",
"graphql": "^16.8.1",
"lodash": "^4.17.21",
"query-string": "^8.2.0",
"react-laag": "^2.0.5",
"react-markdown": "^8.0.7",
Expand Down
7 changes: 7 additions & 0 deletions packages/vue-sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @pantheon-systems/pcc-vue-sdk

## 3.9.0-beta.0

### Patch Changes

- Updated dependencies [4267508]
- @pantheon-systems/[email protected]

## 3.8.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/vue-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@pantheon-systems/pcc-vue-sdk",
"author": "@pantheon-systems",
"description": "Pantheon Content Cloud Vue SDK",
"version": "3.8.1",
"version": "3.9.0-beta.0",
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
Expand Down
Loading
Loading