@aparte/react 0.13.0 → 0.14.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.
package/dist/index.d.ts CHANGED
@@ -31,10 +31,12 @@ import type * as React from 'react';
31
31
  /**
32
32
  * An aparté tag in JSX: the standard HTML props, plus the element's own attributes.
33
33
  *
34
- * `Omit` puts the ELEMENT's contract first where the two collide, and one collision is
35
- * real: `<aparte-chat-bubble role="assistant">` is the message role, while React types
36
- * `role` as an `AriaRole` union. Intersecting them would leave no assignable value at
37
- * all, so the element wins and ARIA's narrower type steps aside.
34
+ * `Omit` puts the ELEMENT's contract first where the two collide. The motivating
35
+ * collision was `<aparte-chat-bubble role="assistant">` the message role on an
36
+ * attribute React types as an `AriaRole` union, where intersecting the two left no
37
+ * assignable value. The bubble now reads its message role from `data-role` only and
38
+ * `role` is ARIA's again, but the rule stays: an element's own attribute type wins
39
+ * over React's guess for it.
38
40
  */
39
41
  type AparteTagProps<T> = Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, keyof T> & AparteTemplateAttrs<T>;
40
42
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,YAAY,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAKlE,YAAY,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC;AAG5D,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,YAAY,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAG9D,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,YAAY,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAC3E,YAAY,EAAE,sB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CAAC;QACV,UAAU,iBAAkB,SAAQ,uBAAuB;SAAG;KACjE;CACJ"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aparte/react",
3
- "version": "0.13.0",
3
+ "version": "0.14.0",
4
4
  "description": "React 18+ wrapper for aparté — an ergonomic <AparteChat> component plus hooks over the framework-agnostic web components.",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -24,7 +24,7 @@
24
24
  "node": ">=18"
25
25
  },
26
26
  "peerDependencies": {
27
- "@aparte/core": ">=0.13.0 <1.0.0",
27
+ "@aparte/core": ">=0.14.0 <1.0.0",
28
28
  "react": "^18.0.0 || ^19.0.0",
29
29
  "react-dom": "^18.0.0 || ^19.0.0"
30
30
  },
@@ -39,7 +39,7 @@
39
39
  "react-dom": "^19.2.7",
40
40
  "typescript": "^5.4.0",
41
41
  "vite": "^6.0.0",
42
- "@aparte/core": "0.13.0"
42
+ "@aparte/core": "0.14.0"
43
43
  },
44
44
  "keywords": [
45
45
  "react",