@planningcenter/tapestry 0.4.1 → 0.4.2-qa-93.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.
Files changed (2) hide show
  1. package/dist/react-jsx.d.ts +31 -0
  2. package/package.json +11 -5
@@ -0,0 +1,31 @@
1
+ import React from "react"
2
+
3
+ declare namespace ReactJSX {
4
+ interface MyComponent {
5
+ /**
6
+ * The first name
7
+ */
8
+ "first"?: string;
9
+ /**
10
+ * The last name
11
+ */
12
+ "last"?: string;
13
+ /**
14
+ * The middle name
15
+ */
16
+ "middle"?: string;
17
+ }
18
+
19
+ interface IntrinsicElements {
20
+ "my-component": MyComponent;
21
+ }
22
+ }
23
+
24
+ declare module "react" {
25
+ export namespace JSX {
26
+ interface IntrinsicElements {
27
+ "my-component": ReactJSX.MyComponent &
28
+ React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>
29
+ }
30
+ }
31
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@planningcenter/tapestry",
3
- "version": "0.4.1",
3
+ "version": "0.4.2-qa-93.0",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -10,8 +10,9 @@
10
10
  "scripts": {
11
11
  "prepare": "yarn build:tokens",
12
12
  "prebuild": "rimraf dist",
13
- "build": "yarn build:tokens && rollup -c",
13
+ "build": "yarn build:wc-jsx-types && yarn build:tokens && rollup -c",
14
14
  "build:storybook": "storybook build",
15
+ "build:wc-jsx-types": "node ./generate-react-types.js",
15
16
  "build:tokens": "node ./src/tokens/style-dictionary.build.js",
16
17
  "storybook": "storybook dev -p 6006",
17
18
  "lint": "eslint .",
@@ -31,7 +32,11 @@
31
32
  "./index.css": "./dist/index.css",
32
33
  "./unstable": "./dist/unstable.js",
33
34
  "./unstable.css": "./dist/unstable.css",
34
- "./tokens.css": "./dist/tokens.css"
35
+ "./tokens.css": "./dist/tokens.css",
36
+ "./react": {
37
+ "types": "./dist/react-jsx.d.ts",
38
+ "default": "./dist/index.js"
39
+ }
35
40
  },
36
41
  "types": "./dist/index.d.ts",
37
42
  "devDependencies": {
@@ -72,13 +77,14 @@
72
77
  "react-syntax-highlighter": "^15.5.0",
73
78
  "rimraf": "^6.0.1",
74
79
  "rollup": "^4.22.4",
80
+ "rollup-plugin-copy": "^3.5.0",
75
81
  "rollup-plugin-node-externals": "^7.1.3",
76
82
  "rollup-plugin-postcss": "^4.0.2",
77
83
  "rollup-plugin-rename-node-modules": "^1.3.1",
78
84
  "shadow-dom-testing-library": "^1.11.3",
79
85
  "storybook": "^8.2.9",
80
86
  "style-dictionary": "^4.2.0",
81
- "tapestry-wc": "^0.4.1",
87
+ "tapestry-wc": "^0.4.2-qa-93.0",
82
88
  "typescript": "^5.5.3",
83
89
  "vitest": "^3.0.0"
84
90
  },
@@ -99,5 +105,5 @@
99
105
  }
100
106
  }
101
107
  },
102
- "gitHead": "cc2f5d0889ade8fa82872f8050225c81b95d867e"
108
+ "gitHead": "ab45f9cb5ce1af85c02488f173d5a7de5798a935"
103
109
  }