Skip to content

Commit

Permalink
Upgrade framer-plugin for all plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyec committed Sep 30, 2024
1 parent b635287 commit a5051c9
Show file tree
Hide file tree
Showing 22 changed files with 117 additions and 99 deletions.
163 changes: 86 additions & 77 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion plugins/ascii/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@radix-ui/themes": "^3.1.3",
"clsx": "^2.1.1",
"colorjs.io": "^0.5.2",
"framer-plugin": "^0.4.0",
"framer-plugin": "^0.5.0",
"ogl": "^1.0.8",
"react": "^18",
"react-dom": "^18",
Expand Down
2 changes: 1 addition & 1 deletion plugins/cms-export/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"preview": "vite preview"
},
"dependencies": {
"framer-plugin": "^0.4.0",
"framer-plugin": "^0.5.0",
"react": "^18",
"react-dom": "^18",
"vite-plugin-mkcert": "^1"
Expand Down
13 changes: 11 additions & 2 deletions plugins/cms-export/src/csv.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Collection, CollectionField, CollectionItem } from "framer-plugin"

import { isFileAsset, isImageAsset } from "framer-plugin"
import { isFileAsset, isImageAsset, isColorStyle } from "framer-plugin"
import { assertNever } from "./assert"

function downloadFile(file: File) {
Expand Down Expand Up @@ -79,9 +79,18 @@ export function getDataForCSV(fields: CollectionField[], items: CollectionItem[]
continue
}

case "color": {
if (isColorStyle(value)) {
columns.push(value.light)
continue
}

columns.push(typeof value === "string" ? value : "")
continue
}

case "string":
case "boolean":
case "color":
case "date":
case "link":
case "number":
Expand Down
2 changes: 1 addition & 1 deletion plugins/color-extract/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"dependencies": {
"extract-colors": "^4.0.2",
"framer-motion": "^11.0.18",
"framer-plugin": "^0.4.0",
"framer-plugin": "^0.5.0",
"react": "^18",
"react-dom": "^18",
"vite-plugin-framer": "^0.0.10",
Expand Down
2 changes: 1 addition & 1 deletion plugins/concentric/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"dependencies": {
"@radix-ui/react-slider": "^1.1.2",
"framer-motion": "^11.0.8",
"framer-plugin": "^0.4.0",
"framer-plugin": "^0.5.0",
"react": "^18",
"react-dom": "^18",
"react-slider": "^2.0.6",
Expand Down
2 changes: 1 addition & 1 deletion plugins/dither/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@radix-ui/react-slider": "^1.2.0",
"clsx": "^2.1.1",
"colorjs.io": "^0.5.2",
"framer-plugin": "^0.4.0",
"framer-plugin": "^0.5.0",
"ogl": "^1.0.8",
"react": "^18",
"react-dom": "^18",
Expand Down
2 changes: 1 addition & 1 deletion plugins/doodles/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@uiw/react-color-shade-slider": "^2.1.1",
"extract-colors": "^4.0.2",
"framer-motion": "^11.0.18",
"framer-plugin": "^0.4.0",
"framer-plugin": "^0.5.0",
"react": "^18",
"react-color": "^2.19.3",
"react-dom": "^18",
Expand Down
2 changes: 1 addition & 1 deletion plugins/flip-image/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"dependencies": {
"comlink": "^4.4.1",
"framer-plugin": "^0.4.0",
"framer-plugin": "^0.5.0",
"react": "^18",
"react-dom": "^18",
"vite-plugin-mkcert": "^1.17.5"
Expand Down
2 changes: 1 addition & 1 deletion plugins/google-search-console/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@ataverascrespo/react18-ts-textfit": "^1.0.0",
"@triozer/framer-toolbox": "^0.1.14",
"aveta": "^1.4.1",
"framer-plugin": "^0.4.0",
"framer-plugin": "^0.5.0",
"react": "^18",
"react-dom": "^18",
"react-error-boundary": "^4.0.13",
Expand Down
2 changes: 1 addition & 1 deletion plugins/google-sheets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"dependencies": {
"@tanstack/react-query": "^5.51.11",
"classnames": "^2.5.1",
"framer-plugin": "^0.4.0",
"framer-plugin": "^0.5.0",
"react": "^18",
"react-dom": "^18",
"react-error-boundary": "^4.0.13",
Expand Down
2 changes: 1 addition & 1 deletion plugins/hubspot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@tanstack/react-query": "^5.49.2",
"classnames": "^2.5.1",
"framer-motion": "^11.2.9",
"framer-plugin": "^0.4.0",
"framer-plugin": "^0.5.0",
"react": "^18",
"react-dom": "^18",
"react-error-boundary": "^4.0.13",
Expand Down
2 changes: 1 addition & 1 deletion plugins/layout-insert/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"preview": "vite preview"
},
"dependencies": {
"framer-plugin": "^0.4.0",
"framer-plugin": "^0.5.0",
"react": "^18",
"react-dom": "^18",
"vite-plugin-mkcert": "^1"
Expand Down
2 changes: 1 addition & 1 deletion plugins/notion/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"@notionhq/client": "^2.2.15",
"@tanstack/react-query": "^5.29.2",
"classnames": "^2.5.1",
"framer-plugin": "^0.4.0",
"framer-plugin": "^0.5.0",
"react": "^18",
"react-dom": "^18",
"react-error-boundary": "^4.0.13",
Expand Down
2 changes: 1 addition & 1 deletion plugins/phosphor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"dependencies": {
"@phosphor-icons/core": "^2.0.8",
"@phosphor-icons/react": "^2.0.15",
"framer-plugin": "^0.4.0",
"framer-plugin": "^0.5.0",
"fuse.js": "^7.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand Down
2 changes: 1 addition & 1 deletion plugins/photobooth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"dependencies": {
"base64-arraybuffer": "^1.0.2",
"framer-motion": "^11.0.8",
"framer-plugin": "^0.4.0",
"framer-plugin": "^0.5.0",
"react": "^18",
"react-dom": "^18",
"react-webcam": "^7.2.0",
Expand Down
2 changes: 1 addition & 1 deletion plugins/pong/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
"framer-plugin": "^0.4.0",
"framer-plugin": "^0.5.0",
"react": "^18",
"react-dom": "^18",
"vite-plugin-mkcert": "^1.17.5"
Expand Down
2 changes: 1 addition & 1 deletion plugins/renamer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
"vite-plugin-mkcert": "^1.17.5"
},
"dependencies": {
"framer-plugin": "^0.3.0"
"framer-plugin": "^0.5.0"
}
}
2 changes: 1 addition & 1 deletion plugins/rss-feeds/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"dependencies": {
"classnames": "^2.5.1",
"framer-plugin": "^0.4.0",
"framer-plugin": "^0.5.0",
"react": "^18",
"react-dom": "^18",
"vite-plugin-mkcert": "^1"
Expand Down
2 changes: 1 addition & 1 deletion plugins/threshold/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"dependencies": {
"comlink": "^4.4.1",
"framer-plugin": "^0.4.0",
"framer-plugin": "^0.5.0",
"react": "^18",
"react-dom": "^18",
"roughjs": "^4.6.6",
Expand Down
2 changes: 1 addition & 1 deletion plugins/tidyup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
"framer-plugin": "^0.4.0",
"framer-plugin": "^0.5.0",
"react": "^18",
"react-dom": "^18",
"vite-plugin-mkcert": "^1.17.5"
Expand Down
2 changes: 1 addition & 1 deletion plugins/unsplash/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"@tanstack/react-query": "^5.28.6",
"blurhash": "^2.0.5",
"classnames": "^2.5.1",
"framer-plugin": "^0.4.0",
"framer-plugin": "^0.5.0",
"react": "^18",
"react-blurhash": "^0.3.0",
"react-dom": "^18",
Expand Down

0 comments on commit a5051c9

Please sign in to comment.