Skip to content

Commit e695253

Browse files
committed
feat(code-connect-urls): udpated dependecies
1 parent e29fe06 commit e695253

3 files changed

Lines changed: 49 additions & 25 deletions

File tree

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,18 @@
1-
import React from "react"
2-
import { AboutModal } from "./AboutModal"
3-
import figma from "@figma/code-connect"
1+
// import React from 'react';
2+
// import { AboutModal } from './AboutModal';
3+
// import figma from '@figma/code-connect';
44

5-
/**
6-
* -- This file was auto-generated by Code Connect --
7-
* `props` includes a mapping from Figma properties and variants to
8-
* suggested values. You should update this to match the props of your
9-
* code component, and update the `example` function to return the
10-
* code example you'd like to see in Figma
11-
*/
5+
// /**
6+
// * -- This file was auto-generated by Code Connect --
7+
// * `props` includes a mapping from Figma properties and variants to
8+
// * suggested values. You should update this to match the props of your
9+
// * code component, and update the `example` function to return the
10+
// * code example you'd like to see in Figma
11+
// */
1212

13-
figma.connect(
14-
AboutModal,
15-
"[object Object]2879-13973",
16-
{
17-
props: {
18-
productName: figma.string("Product name"),
19-
},
20-
example: (props) => <AboutModal />,
21-
},
22-
)
13+
// figma.connect(AboutModal, '[object Object]2879-13973', {
14+
// props: {
15+
// productName: figma.string('Product name')
16+
// },
17+
// example: (props) => <AboutModal />
18+
// });

packages/react-core/figma.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"name": "PatternFly Icons",
3+
"description": "PatternFly icon components with Figma integration",
4+
"figmaFileUrl": "https://www.figma.com/design/VMEX8Xg2nzhBX8rfBx53jp/branch/H3LonYnwH26v9zNEa2SXFk/PatternFly-6%3A-Components",
5+
"components": [
6+
{
7+
"name": "Icon",
8+
"description": "PatternFly Icon component with instance swapper for different icons",
9+
"url": "https://www.figma.com/design/aEBBvq0J3EPXxHvv6WgDx9/PatternFly-6%3A-Components-Test?node-id=198-1573"
10+
}
11+
]
12+
}

packages/react-core/package.json

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
22
"name": "@patternfly/react-core",
3-
"version": "6.2.0-prerelease.34",
3+
"version": "6.2.1",
44
"description": "This library provides a set of common React components for use with the PatternFly reference implementation.",
55
"main": "dist/js/index.js",
6+
"type": "module",
67
"module": "dist/esm/index.js",
78
"types": "dist/esm/index.d.ts",
89
"typesVersions": {
@@ -38,25 +39,40 @@
3839
"url": "https://github.com/patternfly/patternfly-react/issues"
3940
},
4041
"homepage": "https://github.com/patternfly/patternfly-react#readme",
42+
"exports": {
43+
".": {
44+
"import": "./index.js",
45+
"require": "./index.js"
46+
},
47+
"./icons": {
48+
"import": "./icons/index.js",
49+
"require": "./icons/index.js"
50+
}
51+
},
4152
"scripts": {
42-
"build:umd": "rollup -c --environment IS_PRODUCTION",
4353
"build:single:packages": "node ../../scripts/build-single-packages.mjs --config single-packages.config.json",
4454
"clean": "rimraf dist components layouts helpers next deprecated",
45-
"generate": "node scripts/copyStyles.mjs",
46-
"subpaths": "node ../../scripts/exportSubpaths.mjs --config subpaths.config.json",
4755
"figma:watchUrls": "node codeConnect/scripts/figma-url-watcher.mjs",
4856
"figma:fixUrls": "node codeConnect/scripts/figma-url-fixer.mjs"
4957
},
5058
"dependencies": {
59+
"-": "^0.0.1",
5160
"@patternfly/react-icons": "workspace:^",
5261
"@patternfly/react-styles": "workspace:^",
5362
"@patternfly/react-tokens": "workspace:^",
63+
"@types/glob": "^8.1.0",
64+
"@types/node": "^22.13.5",
5465
"focus-trap": "7.6.4",
66+
"react": "^18.2.0",
67+
"react-dom": "^18.2.0",
5568
"react-dropzone": "^14.3.5",
5669
"tslib": "^2.8.1"
5770
},
5871
"devDependencies": {
59-
"@patternfly/patternfly": "6.2.0-prerelease.25",
72+
"@figma/code-connect": "^1.3.1",
73+
"@patternfly/patternfly": "6.2.0-prerelease.15",
74+
"@types/react": "^18.0.0",
75+
"@vitejs/plugin-react": "^4.3.4",
6076
"case-anything": "^3.1.2",
6177
"css": "^3.0.0",
6278
"fs-extra": "^11.3.0"

0 commit comments

Comments
 (0)