rescript-relay 0.0.0-test-rust-compiler-66f73645 → 0.0.0-test-rust-compiler-82199d2f

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": "rescript-relay",
3
- "version": "0.0.0-test-rust-compiler-66f73645",
3
+ "version": "0.0.0-test-rust-compiler-82199d2f",
4
4
  "main": "src/RescriptRelay.res",
5
5
  "license": "MIT",
6
6
  "author": "Gabriel Nordeborn",
Binary file
Binary file
Binary file
@@ -39,6 +39,8 @@ type featureFlags = {
39
39
  mutable enableRelayContainersSuspense: bool,
40
40
  @as("ENABLE_PRECISE_TYPE_REFINEMENT")
41
41
  mutable enablePrecisTypeRefinement: bool,
42
+ @as("ENABLE_REQUIRED_DIRECTIVES")
43
+ mutable enableRequiredDirective: bool,
42
44
  }
43
45
 
44
46
  @module("relay-runtime")
@@ -98,6 +98,8 @@ type featureFlags = {
98
98
  mutable enableRelayContainersSuspense: bool,
99
99
  @as("ENABLE_PRECISE_TYPE_REFINEMENT")
100
100
  mutable enablePrecisTypeRefinement: bool,
101
+ @as("ENABLE_REQUIRED_DIRECTIVES")
102
+ mutable enableRequiredDirective: bool,
101
103
  }
102
104
 
103
105
  @ocaml.doc(
@@ -315,6 +315,7 @@ function RescriptRelayRouter$Link(Props) {
315
315
  var className = Props.className;
316
316
  var classNameDynamic = Props.classNameDynamic;
317
317
  var browserTarget = Props.target;
318
+ var tabIndex = Props.tabIndex;
318
319
  var mode = Props.mode;
319
320
  var render = Props.render;
320
321
  var preloadOnHover = Props.preloadOnHover;
@@ -393,6 +394,9 @@ function RescriptRelayRouter$Link(Props) {
393
394
  if (id !== undefined) {
394
395
  tmp.id = Caml_option.valFromOption(id);
395
396
  }
397
+ if (tabIndex !== undefined) {
398
+ tmp.tabIndex = Caml_option.valFromOption(tabIndex);
399
+ }
396
400
  if (title !== undefined) {
397
401
  tmp.title = Caml_option.valFromOption(title);
398
402
  }
@@ -306,6 +306,7 @@ module Link = {
306
306
  ~className=?,
307
307
  ~classNameDynamic=?,
308
308
  ~target as browserTarget=?,
309
+ ~tabIndex=?,
309
310
  ~mode=?,
310
311
  ~render=?,
311
312
  ~preloadOnHover=?,
@@ -351,6 +352,7 @@ module Link = {
351
352
  }}
352
353
  ?title
353
354
  ?id
355
+ ?tabIndex
354
356
  className={className->Belt.Option.getWithDefault("") ++
355
357
  switch classNameDynamic {
356
358
  | Some(f) => " " ++ f(url, to_->Url.make)
@@ -56,6 +56,7 @@ module Link: {
56
56
  ~className: string=?,
57
57
  ~classNameDynamic: (RescriptReactRouter.url, RescriptReactRouter.url) => string=?,
58
58
  ~target: [#self | #blank]=?,
59
+ ~tabIndex: int=?,
59
60
  ~mode: [#push | #replace]=?,
60
61
  ~render: (
61
62
  ~preload: unit => unit,
package/src/utils.js CHANGED
@@ -270,7 +270,7 @@ function traverse(
270
270
  */
271
271
  function traverser(
272
272
  root,
273
- _instructionMaps,
273
+ instructionMaps_,
274
274
  theConverters,
275
275
  nullableValue,
276
276
  rootObjectKey
@@ -279,7 +279,7 @@ function traverser(
279
279
  return nullableValue;
280
280
  }
281
281
 
282
- var instructionMaps = _instructionMaps || {};
282
+ var instructionMaps = instructionMaps_ || {};
283
283
  var instructionMap = instructionMaps[rootObjectKey || "__root"];
284
284
 
285
285
  // No instructions