@lynx-js/react 0.123.3 → 0.124.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.
@@ -275,6 +275,17 @@ export interface CompatVisitorConfig {
275
275
  * ```
276
276
  */
277
277
  simplifyCtorLikeReactLynx2: boolean
278
+ /**
279
+ * @public
280
+ * Whether to transform legacy event attribute names on Lynx elements.
281
+ *
282
+ * When enabled, legacy event attributes such as `onClick` and
283
+ * `onClickCatch` are transformed to `bindtap` and `catchtap`.
284
+ * Disable this when another transform owns event attribute-name conversion.
285
+ *
286
+ * @defaultValue `true`
287
+ */
288
+ transformLegacyEventAttributeNames?: boolean
278
289
  /**
279
290
  * @public
280
291
  * Regular expression used to remove component attributes
@@ -750,6 +761,35 @@ export interface TransformNodiffOutput {
750
761
  uiSourceMapRecords: Array<UiSourceMapRecord>
751
762
  /** @internal */
752
763
  elementTemplates?: Array<ElementTemplateAsset>
764
+ /** @internal */
765
+ definesForSnapshot?: Array<Define>
766
+ /** @internal */
767
+ definesForWorklet?: Array<Define>
768
+ }
769
+ /**
770
+ * @internal
771
+ * A snapshot or worklet definition collected from the module. The same
772
+ * definition is emitted regardless of the compile target.
773
+ */
774
+ export interface Define {
775
+ /**
776
+ * @internal
777
+ * The snapshot uid or the worklet hash. Definitions that share an id are
778
+ * interchangeable, so duplicates can be dropped.
779
+ */
780
+ id: string
781
+ /**
782
+ * @internal
783
+ * A self-contained statement list registering the definition.
784
+ */
785
+ code: string
786
+ /**
787
+ * @internal
788
+ * Set when the definition cannot run inside an injected module, e.g. a
789
+ * worklet closing over a shared-runtime import. The build must fail when
790
+ * the main thread lacks such a definition.
791
+ */
792
+ unmergeable?: boolean
753
793
  }
754
794
  /** @internal */
755
795
  export interface ElementTemplateAsset {