@planningcenter/tapestry 0.4.1 → 0.4.2-qa-93.1

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/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.1",
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 .",
@@ -23,7 +24,8 @@
23
24
  "react-dom": "^17 || ^18 || ^19"
24
25
  },
25
26
  "files": [
26
- "dist"
27
+ "dist",
28
+ "react-types"
27
29
  ],
28
30
  "main": "./dist/index.js",
29
31
  "exports": {
@@ -72,13 +74,14 @@
72
74
  "react-syntax-highlighter": "^15.5.0",
73
75
  "rimraf": "^6.0.1",
74
76
  "rollup": "^4.22.4",
77
+ "rollup-plugin-copy": "^3.5.0",
75
78
  "rollup-plugin-node-externals": "^7.1.3",
76
79
  "rollup-plugin-postcss": "^4.0.2",
77
80
  "rollup-plugin-rename-node-modules": "^1.3.1",
78
81
  "shadow-dom-testing-library": "^1.11.3",
79
82
  "storybook": "^8.2.9",
80
83
  "style-dictionary": "^4.2.0",
81
- "tapestry-wc": "^0.4.1",
84
+ "tapestry-wc": "^0.4.2-qa-93.1",
82
85
  "typescript": "^5.5.3",
83
86
  "vitest": "^3.0.0"
84
87
  },
@@ -99,5 +102,5 @@
99
102
  }
100
103
  }
101
104
  },
102
- "gitHead": "cc2f5d0889ade8fa82872f8050225c81b95d867e"
105
+ "gitHead": "2cb7c500015c270467fc121b5769a852f760a4fb"
103
106
  }
@@ -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 global {
25
+ export namespace JSX {
26
+ interface IntrinsicElements {
27
+ "my-component": ReactJSX.MyComponent &
28
+ React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>
29
+ }
30
+ }
31
+ }