babel-plugin-react-compiler 0.0.0-experimental-ecdd742-20250311 → 0.0.0-experimental-d664a4c-20250313

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 (3) hide show
  1. package/dist/index.d.ts +10 -3
  2. package/dist/index.js +2227 -1251
  3. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -33,7 +33,13 @@ type PropType = {
33
33
  kind: 'Property';
34
34
  objectType: Type;
35
35
  objectName: string;
36
- propertyName: PropertyLiteral;
36
+ propertyName: {
37
+ kind: 'literal';
38
+ value: PropertyLiteral;
39
+ } | {
40
+ kind: 'computed';
41
+ value: Type;
42
+ };
37
43
  };
38
44
  type ObjectMethod$1 = {
39
45
  kind: 'ObjectMethod';
@@ -490,7 +496,8 @@ declare class Environment {
490
496
  type: ReactFunctionType | null;
491
497
  }>;
492
498
  getGlobalDeclaration(binding: NonLocalBinding, loc: SourceLocation): Global | null;
493
- getPropertyType(receiver: Type, property: string): BuiltInType | PolyType | null;
499
+ getFallthroughPropertyType(receiver: Type, _property: Type): BuiltInType | PolyType | null;
500
+ getPropertyType(receiver: Type, property: string | number): BuiltInType | PolyType | null;
494
501
  getFunctionSignature(type: FunctionType): FunctionSignature | null;
495
502
  addHoistedIdentifier(node: t.Identifier): void;
496
503
  }
@@ -1548,4 +1555,4 @@ declare global {
1548
1555
  let __DEV__: boolean | null | undefined;
1549
1556
  }
1550
1557
 
1551
- export { CompilerError, CompilerErrorDetail, type CompilerErrorDetailOptions, type CompilerPipelineValue, CompilerSuggestionOperation, Effect, type EnvironmentConfig, ErrorSeverity, type ExternalFunction, type Hook, OPT_IN_DIRECTIVES, OPT_OUT_DIRECTIVES, type PluginOptions, type SourceLocation, ValueKind, compileFn as compile, compileProgram, BabelPluginReactCompiler as default, findDirectiveDisablingMemoization, findDirectiveEnablingMemoization, parseConfigPragmaForTests, parsePluginOptions, printHIR, printReactiveFunction, runBabelPluginReactCompiler, validateEnvironmentConfig };
1558
+ export { CompilerError, CompilerErrorDetail, type CompilerErrorDetailOptions, type CompilerPipelineValue, CompilerSuggestionOperation, Effect, type EnvironmentConfig, ErrorSeverity, type ExternalFunction, type Hook, type Logger, type LoggerEvent, OPT_IN_DIRECTIVES, OPT_OUT_DIRECTIVES, type PluginOptions, type SourceLocation, ValueKind, compileFn as compile, compileProgram, BabelPluginReactCompiler as default, findDirectiveDisablingMemoization, findDirectiveEnablingMemoization, parseConfigPragmaForTests, parsePluginOptions, printHIR, printReactiveFunction, runBabelPluginReactCompiler, validateEnvironmentConfig };