elm-pages 3.0.0-beta.40 → 3.0.0-beta.42

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 (40) hide show
  1. package/README.md +1 -1
  2. package/codegen/elm-pages-codegen.cjs +251 -285
  3. package/generator/dead-code-review/elm-stuff/tests-0.19.1/elm-stuff/0.19.1/d.dat +0 -0
  4. package/generator/dead-code-review/elm-stuff/tests-0.19.1/js/node_runner.js +1 -1
  5. package/generator/dead-code-review/elm-stuff/tests-0.19.1/js/node_supervisor.js +1 -1
  6. package/generator/review/elm-stuff/tests-0.19.1/elm-stuff/0.19.1/d.dat +0 -0
  7. package/generator/review/elm-stuff/tests-0.19.1/js/node_runner.js +1 -1
  8. package/generator/review/elm-stuff/tests-0.19.1/js/node_supervisor.js +1 -1
  9. package/generator/src/RouteBuilder.elm +19 -60
  10. package/generator/src/SharedTemplate.elm +5 -5
  11. package/generator/src/compatibility-key.js +2 -2
  12. package/package.json +2 -2
  13. package/src/ApiRoute.elm +3 -31
  14. package/src/BackendTask.elm +18 -24
  15. package/src/FormData.elm +21 -1
  16. package/src/Head/Seo.elm +4 -4
  17. package/src/Internal/Request.elm +84 -4
  18. package/src/Pages/ConcurrentSubmission.elm +127 -0
  19. package/src/Pages/Form.elm +151 -40
  20. package/src/Pages/FormData.elm +19 -0
  21. package/src/Pages/Internal/NotFoundReason.elm +4 -4
  22. package/src/Pages/Internal/Platform/Cli.elm +30 -17
  23. package/src/Pages/Internal/Platform/CompatibilityKey.elm +1 -1
  24. package/src/Pages/Internal/Platform.elm +39 -38
  25. package/src/Pages/Internal/ResponseSketch.elm +2 -2
  26. package/src/Pages/Manifest.elm +23 -7
  27. package/src/Pages/Navigation.elm +85 -0
  28. package/src/Pages/PageUrl.elm +3 -3
  29. package/src/Pages/ProgramConfig.elm +13 -11
  30. package/src/Pages/Script.elm +64 -7
  31. package/src/Pages/Url.elm +3 -3
  32. package/src/PagesMsg.elm +9 -3
  33. package/src/RenderRequest.elm +7 -7
  34. package/src/Scaffold/Form.elm +28 -5
  35. package/src/Scaffold/Route.elm +82 -53
  36. package/src/Server/Request.elm +446 -952
  37. package/src/Server/Session.elm +141 -91
  38. package/src/Server/SetCookie.elm +71 -31
  39. package/src/{Path.elm → UrlPath.elm} +21 -21
  40. package/src/Pages/Transition.elm +0 -79
@@ -14905,104 +14905,6 @@ var $author$project$Gen$List$call_ = {
14905
14905
  [unzipArg]));
14906
14906
  }
14907
14907
  };
14908
- var $author$project$Gen$Path$call_ = {
14909
- fromString: function (fromStringArg) {
14910
- return A2(
14911
- $author$project$Elm$apply,
14912
- $author$project$Elm$value(
14913
- {
14914
- annotation: $elm$core$Maybe$Just(
14915
- A2(
14916
- $author$project$Elm$Annotation$function,
14917
- _List_fromArray(
14918
- [$author$project$Elm$Annotation$string]),
14919
- A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'Path', _List_Nil))),
14920
- importFrom: _List_fromArray(
14921
- ['Path']),
14922
- name: 'fromString'
14923
- }),
14924
- _List_fromArray(
14925
- [fromStringArg]));
14926
- },
14927
- join: function (joinArg) {
14928
- return A2(
14929
- $author$project$Elm$apply,
14930
- $author$project$Elm$value(
14931
- {
14932
- annotation: $elm$core$Maybe$Just(
14933
- A2(
14934
- $author$project$Elm$Annotation$function,
14935
- _List_fromArray(
14936
- [
14937
- A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'Path', _List_Nil)
14938
- ]),
14939
- A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'Path', _List_Nil))),
14940
- importFrom: _List_fromArray(
14941
- ['Path']),
14942
- name: 'join'
14943
- }),
14944
- _List_fromArray(
14945
- [joinArg]));
14946
- },
14947
- toAbsolute: function (toAbsoluteArg) {
14948
- return A2(
14949
- $author$project$Elm$apply,
14950
- $author$project$Elm$value(
14951
- {
14952
- annotation: $elm$core$Maybe$Just(
14953
- A2(
14954
- $author$project$Elm$Annotation$function,
14955
- _List_fromArray(
14956
- [
14957
- A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'Path', _List_Nil)
14958
- ]),
14959
- $author$project$Elm$Annotation$string)),
14960
- importFrom: _List_fromArray(
14961
- ['Path']),
14962
- name: 'toAbsolute'
14963
- }),
14964
- _List_fromArray(
14965
- [toAbsoluteArg]));
14966
- },
14967
- toRelative: function (toRelativeArg) {
14968
- return A2(
14969
- $author$project$Elm$apply,
14970
- $author$project$Elm$value(
14971
- {
14972
- annotation: $elm$core$Maybe$Just(
14973
- A2(
14974
- $author$project$Elm$Annotation$function,
14975
- _List_fromArray(
14976
- [
14977
- A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'Path', _List_Nil)
14978
- ]),
14979
- $author$project$Elm$Annotation$string)),
14980
- importFrom: _List_fromArray(
14981
- ['Path']),
14982
- name: 'toRelative'
14983
- }),
14984
- _List_fromArray(
14985
- [toRelativeArg]));
14986
- },
14987
- toSegments: function (toSegmentsArg) {
14988
- return A2(
14989
- $author$project$Elm$apply,
14990
- $author$project$Elm$value(
14991
- {
14992
- annotation: $elm$core$Maybe$Just(
14993
- A2(
14994
- $author$project$Elm$Annotation$function,
14995
- _List_fromArray(
14996
- [$author$project$Elm$Annotation$string]),
14997
- $author$project$Elm$Annotation$list($author$project$Elm$Annotation$string))),
14998
- importFrom: _List_fromArray(
14999
- ['Path']),
15000
- name: 'toSegments'
15001
- }),
15002
- _List_fromArray(
15003
- [toSegmentsArg]));
15004
- }
15005
- };
15006
14908
  var $author$project$Gen$Server$Response$call_ = {
15007
14909
  base64Body: function (base64BodyArg) {
15008
14910
  return A2(
@@ -16404,6 +16306,104 @@ var $author$project$Gen$String$call_ = {
16404
16306
  [wordsArg]));
16405
16307
  }
16406
16308
  };
16309
+ var $author$project$Gen$UrlPath$call_ = {
16310
+ fromString: function (fromStringArg) {
16311
+ return A2(
16312
+ $author$project$Elm$apply,
16313
+ $author$project$Elm$value(
16314
+ {
16315
+ annotation: $elm$core$Maybe$Just(
16316
+ A2(
16317
+ $author$project$Elm$Annotation$function,
16318
+ _List_fromArray(
16319
+ [$author$project$Elm$Annotation$string]),
16320
+ A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'UrlPath', _List_Nil))),
16321
+ importFrom: _List_fromArray(
16322
+ ['UrlPath']),
16323
+ name: 'fromString'
16324
+ }),
16325
+ _List_fromArray(
16326
+ [fromStringArg]));
16327
+ },
16328
+ join: function (joinArg) {
16329
+ return A2(
16330
+ $author$project$Elm$apply,
16331
+ $author$project$Elm$value(
16332
+ {
16333
+ annotation: $elm$core$Maybe$Just(
16334
+ A2(
16335
+ $author$project$Elm$Annotation$function,
16336
+ _List_fromArray(
16337
+ [
16338
+ A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'UrlPath', _List_Nil)
16339
+ ]),
16340
+ A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'UrlPath', _List_Nil))),
16341
+ importFrom: _List_fromArray(
16342
+ ['UrlPath']),
16343
+ name: 'join'
16344
+ }),
16345
+ _List_fromArray(
16346
+ [joinArg]));
16347
+ },
16348
+ toAbsolute: function (toAbsoluteArg) {
16349
+ return A2(
16350
+ $author$project$Elm$apply,
16351
+ $author$project$Elm$value(
16352
+ {
16353
+ annotation: $elm$core$Maybe$Just(
16354
+ A2(
16355
+ $author$project$Elm$Annotation$function,
16356
+ _List_fromArray(
16357
+ [
16358
+ A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'UrlPath', _List_Nil)
16359
+ ]),
16360
+ $author$project$Elm$Annotation$string)),
16361
+ importFrom: _List_fromArray(
16362
+ ['UrlPath']),
16363
+ name: 'toAbsolute'
16364
+ }),
16365
+ _List_fromArray(
16366
+ [toAbsoluteArg]));
16367
+ },
16368
+ toRelative: function (toRelativeArg) {
16369
+ return A2(
16370
+ $author$project$Elm$apply,
16371
+ $author$project$Elm$value(
16372
+ {
16373
+ annotation: $elm$core$Maybe$Just(
16374
+ A2(
16375
+ $author$project$Elm$Annotation$function,
16376
+ _List_fromArray(
16377
+ [
16378
+ A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'UrlPath', _List_Nil)
16379
+ ]),
16380
+ $author$project$Elm$Annotation$string)),
16381
+ importFrom: _List_fromArray(
16382
+ ['UrlPath']),
16383
+ name: 'toRelative'
16384
+ }),
16385
+ _List_fromArray(
16386
+ [toRelativeArg]));
16387
+ },
16388
+ toSegments: function (toSegmentsArg) {
16389
+ return A2(
16390
+ $author$project$Elm$apply,
16391
+ $author$project$Elm$value(
16392
+ {
16393
+ annotation: $elm$core$Maybe$Just(
16394
+ A2(
16395
+ $author$project$Elm$Annotation$function,
16396
+ _List_fromArray(
16397
+ [$author$project$Elm$Annotation$string]),
16398
+ $author$project$Elm$Annotation$list($author$project$Elm$Annotation$string))),
16399
+ importFrom: _List_fromArray(
16400
+ ['UrlPath']),
16401
+ name: 'toSegments'
16402
+ }),
16403
+ _List_fromArray(
16404
+ [toSegmentsArg]));
16405
+ }
16406
+ };
16407
16407
  var $stil4m$elm_syntax$Elm$Syntax$Declaration$CustomTypeDeclaration = function (a) {
16408
16408
  return {$: 'CustomTypeDeclaration', a: a};
16409
16409
  };
@@ -24725,13 +24725,13 @@ var $author$project$Elm$Annotation$alias = F4(
24725
24725
  }()
24726
24726
  });
24727
24727
  });
24728
- var $author$project$Gen$Path$moduleName_ = _List_fromArray(
24729
- ['Path']);
24730
- var $author$project$Gen$Path$annotation_ = {
24731
- path: A4(
24728
+ var $author$project$Gen$UrlPath$moduleName_ = _List_fromArray(
24729
+ ['UrlPath']);
24730
+ var $author$project$Gen$UrlPath$annotation_ = {
24731
+ urlPath: A4(
24732
24732
  $author$project$Elm$Annotation$alias,
24733
- $author$project$Gen$Path$moduleName_,
24734
- 'Path',
24733
+ $author$project$Gen$UrlPath$moduleName_,
24734
+ 'UrlPath',
24735
24735
  _List_Nil,
24736
24736
  $author$project$Elm$Annotation$list($author$project$Elm$Annotation$string))
24737
24737
  };
@@ -24756,7 +24756,7 @@ var $author$project$Generate$splitPath = A3(
24756
24756
  'splitPath',
24757
24757
  _Utils_Tuple2(
24758
24758
  'path',
24759
- $elm$core$Maybe$Just($author$project$Gen$Path$annotation_.path)),
24759
+ $elm$core$Maybe$Just($author$project$Gen$UrlPath$annotation_.urlPath)),
24760
24760
  function (path) {
24761
24761
  return A2(
24762
24762
  $author$project$Gen$List$call_.filter,
@@ -24776,7 +24776,7 @@ var $author$project$Generate$splitPath = A3(
24776
24776
  $author$project$Elm$string('/'),
24777
24777
  path));
24778
24778
  });
24779
- var $author$project$Gen$Path$toAbsolute = function (toAbsoluteArg) {
24779
+ var $author$project$Gen$UrlPath$toAbsolute = function (toAbsoluteArg) {
24780
24780
  return A2(
24781
24781
  $author$project$Elm$apply,
24782
24782
  $author$project$Elm$value(
@@ -24786,11 +24786,11 @@ var $author$project$Gen$Path$toAbsolute = function (toAbsoluteArg) {
24786
24786
  $author$project$Elm$Annotation$function,
24787
24787
  _List_fromArray(
24788
24788
  [
24789
- A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'Path', _List_Nil)
24789
+ A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'UrlPath', _List_Nil)
24790
24790
  ]),
24791
24791
  $author$project$Elm$Annotation$string)),
24792
24792
  importFrom: _List_fromArray(
24793
- ['Path']),
24793
+ ['UrlPath']),
24794
24794
  name: 'toAbsolute'
24795
24795
  }),
24796
24796
  _List_fromArray(
@@ -25140,9 +25140,9 @@ var $author$project$Generate$file = F2(
25140
25140
  A2(
25141
25141
  $author$project$Elm$Annotation$named,
25142
25142
  _List_fromArray(
25143
- ['Path']),
25144
- 'Path'),
25145
- $author$project$Gen$Path$call_.fromString(
25143
+ ['UrlPath']),
25144
+ 'UrlPath'),
25145
+ $author$project$Gen$UrlPath$call_.fromString(
25146
25146
  A2(
25147
25147
  $author$project$Gen$String$call_.join,
25148
25148
  $author$project$Elm$string('/'),
@@ -25162,7 +25162,7 @@ var $author$project$Generate$file = F2(
25162
25162
  return A2(
25163
25163
  $author$project$Elm$withType,
25164
25164
  $author$project$Elm$Annotation$string,
25165
- $author$project$Gen$Path$toAbsolute(
25165
+ $author$project$Gen$UrlPath$toAbsolute(
25166
25166
  toPath.call(route)));
25167
25167
  });
25168
25168
  var redirectTo = A2(
@@ -25868,6 +25868,52 @@ var $author$project$Gen$Json$Encode$annotation_ = {
25868
25868
  'Value',
25869
25869
  _List_Nil)
25870
25870
  };
25871
+ var $author$project$Gen$Pages$ConcurrentSubmission$moduleName_ = _List_fromArray(
25872
+ ['Pages', 'ConcurrentSubmission']);
25873
+ var $author$project$Gen$Pages$ConcurrentSubmission$annotation_ = {
25874
+ concurrentSubmission: function (concurrentSubmissionArg0) {
25875
+ return A4(
25876
+ $author$project$Elm$Annotation$alias,
25877
+ $author$project$Gen$Pages$ConcurrentSubmission$moduleName_,
25878
+ 'ConcurrentSubmission',
25879
+ _List_fromArray(
25880
+ [concurrentSubmissionArg0]),
25881
+ $author$project$Elm$Annotation$record(
25882
+ _List_fromArray(
25883
+ [
25884
+ _Utils_Tuple2(
25885
+ 'status',
25886
+ A3(
25887
+ $author$project$Elm$Annotation$namedWith,
25888
+ _List_Nil,
25889
+ 'Status',
25890
+ _List_fromArray(
25891
+ [
25892
+ $author$project$Elm$Annotation$var('actionData')
25893
+ ]))),
25894
+ _Utils_Tuple2(
25895
+ 'payload',
25896
+ A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'FormData', _List_Nil)),
25897
+ _Utils_Tuple2(
25898
+ 'initiatedAt',
25899
+ A3(
25900
+ $author$project$Elm$Annotation$namedWith,
25901
+ _List_fromArray(
25902
+ ['Time']),
25903
+ 'Posix',
25904
+ _List_Nil))
25905
+ ])));
25906
+ },
25907
+ status: function (statusArg0) {
25908
+ return A3(
25909
+ $author$project$Elm$Annotation$namedWith,
25910
+ _List_fromArray(
25911
+ ['Pages', 'ConcurrentSubmission']),
25912
+ 'Status',
25913
+ _List_fromArray(
25914
+ [statusArg0]));
25915
+ }
25916
+ };
25871
25917
  var $author$project$Gen$Pages$Internal$NotFoundReason$moduleName_ = _List_fromArray(
25872
25918
  ['Pages', 'Internal', 'NotFoundReason']);
25873
25919
  var $author$project$Gen$Pages$Internal$NotFoundReason$annotation_ = {
@@ -25905,7 +25951,7 @@ var $author$project$Gen$Pages$Internal$NotFoundReason$annotation_ = {
25905
25951
  [
25906
25952
  _Utils_Tuple2(
25907
25953
  'path',
25908
- A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'Path', _List_Nil)),
25954
+ A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'UrlPath', _List_Nil)),
25909
25955
  _Utils_Tuple2(
25910
25956
  'reason',
25911
25957
  A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'NotFoundReason', _List_Nil))
@@ -26048,7 +26094,7 @@ var $author$project$Gen$Pages$Internal$Platform$annotation_ = {
26048
26094
  A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'NotFoundReason', _List_Nil)),
26049
26095
  _Utils_Tuple2(
26050
26096
  'path',
26051
- A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'Path', _List_Nil))
26097
+ A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'UrlPath', _List_Nil))
26052
26098
  ]))
26053
26099
  ]))),
26054
26100
  _Utils_Tuple2(
@@ -26073,8 +26119,8 @@ var $author$project$Gen$Pages$Internal$Platform$annotation_ = {
26073
26119
  A3(
26074
26120
  $author$project$Elm$Annotation$namedWith,
26075
26121
  _List_fromArray(
26076
- ['Pages', 'Transition']),
26077
- 'Transition',
26122
+ ['Pages', 'Navigation']),
26123
+ 'Navigation',
26078
26124
  _List_Nil))
26079
26125
  ]))),
26080
26126
  _Utils_Tuple2('nextTransitionKey', $author$project$Elm$Annotation$int),
@@ -26093,8 +26139,8 @@ var $author$project$Gen$Pages$Internal$Platform$annotation_ = {
26093
26139
  A3(
26094
26140
  $author$project$Elm$Annotation$namedWith,
26095
26141
  _List_fromArray(
26096
- ['Pages', 'Transition']),
26097
- 'FetcherState',
26142
+ ['Pages', 'ConcurrentSubmission']),
26143
+ 'ConcurrentSubmission',
26098
26144
  _List_fromArray(
26099
26145
  [
26100
26146
  $author$project$Elm$Annotation$var('actionData')
@@ -26280,94 +26326,6 @@ var $author$project$Gen$Pages$Internal$Platform$Cli$annotation_ = {
26280
26326
  ])));
26281
26327
  }
26282
26328
  };
26283
- var $author$project$Gen$Pages$Transition$moduleName_ = _List_fromArray(
26284
- ['Pages', 'Transition']);
26285
- var $author$project$Gen$Pages$Transition$annotation_ = {
26286
- fetcherState: function (fetcherStateArg0) {
26287
- return A4(
26288
- $author$project$Elm$Annotation$alias,
26289
- $author$project$Gen$Pages$Transition$moduleName_,
26290
- 'FetcherState',
26291
- _List_fromArray(
26292
- [fetcherStateArg0]),
26293
- $author$project$Elm$Annotation$record(
26294
- _List_fromArray(
26295
- [
26296
- _Utils_Tuple2(
26297
- 'status',
26298
- A3(
26299
- $author$project$Elm$Annotation$namedWith,
26300
- _List_Nil,
26301
- 'FetcherSubmitStatus',
26302
- _List_fromArray(
26303
- [
26304
- $author$project$Elm$Annotation$var('actionData')
26305
- ]))),
26306
- _Utils_Tuple2(
26307
- 'payload',
26308
- A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'FormData', _List_Nil)),
26309
- _Utils_Tuple2(
26310
- 'initiatedAt',
26311
- A3(
26312
- $author$project$Elm$Annotation$namedWith,
26313
- _List_fromArray(
26314
- ['Time']),
26315
- 'Posix',
26316
- _List_Nil))
26317
- ])));
26318
- },
26319
- fetcherSubmitStatus: function (fetcherSubmitStatusArg0) {
26320
- return A3(
26321
- $author$project$Elm$Annotation$namedWith,
26322
- _List_fromArray(
26323
- ['Pages', 'Transition']),
26324
- 'FetcherSubmitStatus',
26325
- _List_fromArray(
26326
- [fetcherSubmitStatusArg0]));
26327
- },
26328
- formData: A4(
26329
- $author$project$Elm$Annotation$alias,
26330
- $author$project$Gen$Pages$Transition$moduleName_,
26331
- 'FormData',
26332
- _List_Nil,
26333
- $author$project$Elm$Annotation$record(
26334
- _List_fromArray(
26335
- [
26336
- _Utils_Tuple2(
26337
- 'fields',
26338
- $author$project$Elm$Annotation$list(
26339
- A2($author$project$Elm$Annotation$tuple, $author$project$Elm$Annotation$string, $author$project$Elm$Annotation$string))),
26340
- _Utils_Tuple2(
26341
- 'method',
26342
- A3(
26343
- $author$project$Elm$Annotation$namedWith,
26344
- _List_fromArray(
26345
- ['Form']),
26346
- 'Method',
26347
- _List_Nil)),
26348
- _Utils_Tuple2('action', $author$project$Elm$Annotation$string),
26349
- _Utils_Tuple2(
26350
- 'id',
26351
- A3(
26352
- $author$project$Elm$Annotation$namedWith,
26353
- _List_Nil,
26354
- 'Maybe',
26355
- _List_fromArray(
26356
- [$author$project$Elm$Annotation$string])))
26357
- ]))),
26358
- loadingState: A3(
26359
- $author$project$Elm$Annotation$namedWith,
26360
- _List_fromArray(
26361
- ['Pages', 'Transition']),
26362
- 'LoadingState',
26363
- _List_Nil),
26364
- transition: A3(
26365
- $author$project$Elm$Annotation$namedWith,
26366
- _List_fromArray(
26367
- ['Pages', 'Transition']),
26368
- 'Transition',
26369
- _List_Nil)
26370
- };
26371
26329
  var $author$project$Gen$PagesMsg$moduleName_ = _List_fromArray(
26372
26330
  ['PagesMsg']);
26373
26331
  var $author$project$Gen$PagesMsg$annotation_ = {
@@ -26389,6 +26347,27 @@ var $author$project$Gen$PagesMsg$annotation_ = {
26389
26347
  ])));
26390
26348
  }
26391
26349
  };
26350
+ var $author$project$Gen$Server$Request$moduleName_ = _List_fromArray(
26351
+ ['Server', 'Request']);
26352
+ var $author$project$Gen$Server$Request$annotation_ = {
26353
+ method: A3(
26354
+ $author$project$Elm$Annotation$namedWith,
26355
+ _List_fromArray(
26356
+ ['Server', 'Request']),
26357
+ 'Method',
26358
+ _List_Nil),
26359
+ request: A4(
26360
+ $author$project$Elm$Annotation$alias,
26361
+ $author$project$Gen$Server$Request$moduleName_,
26362
+ 'Request',
26363
+ _List_Nil,
26364
+ A3(
26365
+ $author$project$Elm$Annotation$namedWith,
26366
+ _List_fromArray(
26367
+ ['Internal', 'Request']),
26368
+ 'Request',
26369
+ _List_Nil))
26370
+ };
26392
26371
  var $author$project$Gen$Server$Response$moduleName_ = _List_fromArray(
26393
26372
  ['Server', 'Response']);
26394
26373
  var $author$project$Gen$Server$Response$annotation_ = {
@@ -31218,7 +31197,7 @@ var $author$project$Gen$Maybe$map = F2(
31218
31197
  mapArg0
31219
31198
  ]));
31220
31199
  });
31221
- var $author$project$Gen$Pages$Transition$map = F2(
31200
+ var $author$project$Gen$Pages$ConcurrentSubmission$map = F2(
31222
31201
  function (mapArg, mapArg0) {
31223
31202
  return A2(
31224
31203
  $author$project$Elm$apply,
@@ -31239,7 +31218,7 @@ var $author$project$Gen$Pages$Transition$map = F2(
31239
31218
  A3(
31240
31219
  $author$project$Elm$Annotation$namedWith,
31241
31220
  _List_Nil,
31242
- 'FetcherState',
31221
+ 'ConcurrentSubmission',
31243
31222
  _List_fromArray(
31244
31223
  [
31245
31224
  $author$project$Elm$Annotation$var('a')
@@ -31248,13 +31227,13 @@ var $author$project$Gen$Pages$Transition$map = F2(
31248
31227
  A3(
31249
31228
  $author$project$Elm$Annotation$namedWith,
31250
31229
  _List_Nil,
31251
- 'FetcherState',
31230
+ 'ConcurrentSubmission',
31252
31231
  _List_fromArray(
31253
31232
  [
31254
31233
  $author$project$Elm$Annotation$var('b')
31255
31234
  ])))),
31256
31235
  importFrom: _List_fromArray(
31257
- ['Pages', 'Transition']),
31236
+ ['Pages', 'ConcurrentSubmission']),
31258
31237
  name: 'map'
31259
31238
  }),
31260
31239
  _List_fromArray(
@@ -31524,8 +31503,8 @@ var $author$project$Gen$Tuple$pair = F2(
31524
31503
  var $author$project$GenerateMain$pathType = A2(
31525
31504
  $author$project$Elm$Annotation$named,
31526
31505
  _List_fromArray(
31527
- ['Path']),
31528
- 'Path');
31506
+ ['UrlPath']),
31507
+ 'UrlPath');
31529
31508
  var $author$project$Gen$Server$Response$plainText = function (plainTextArg) {
31530
31509
  return A2(
31531
31510
  $author$project$Elm$apply,
@@ -33228,32 +33207,35 @@ var $author$project$Gen$ApiRoute$values_ = {
33228
33207
  'ApiRouteBuilder',
33229
33208
  _List_fromArray(
33230
33209
  [
33231
- A3(
33232
- $author$project$Elm$Annotation$namedWith,
33233
- _List_fromArray(
33234
- ['Server', 'Request']),
33235
- 'Parser',
33210
+ A2(
33211
+ $author$project$Elm$Annotation$function,
33236
33212
  _List_fromArray(
33237
33213
  [
33238
33214
  A3(
33239
33215
  $author$project$Elm$Annotation$namedWith,
33240
- _List_Nil,
33241
- 'BackendTask',
33242
33216
  _List_fromArray(
33243
- [
33244
- A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'FatalError', _List_Nil),
33245
- A3(
33246
- $author$project$Elm$Annotation$namedWith,
33247
- _List_fromArray(
33248
- ['Server', 'Response']),
33249
- 'Response',
33250
- _List_fromArray(
33251
- [
33252
- A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'Never', _List_Nil),
33253
- A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'Never', _List_Nil)
33254
- ]))
33255
- ]))
33256
- ])),
33217
+ ['Server', 'Request']),
33218
+ 'Request',
33219
+ _List_Nil)
33220
+ ]),
33221
+ A3(
33222
+ $author$project$Elm$Annotation$namedWith,
33223
+ _List_Nil,
33224
+ 'BackendTask',
33225
+ _List_fromArray(
33226
+ [
33227
+ A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'FatalError', _List_Nil),
33228
+ A3(
33229
+ $author$project$Elm$Annotation$namedWith,
33230
+ _List_fromArray(
33231
+ ['Server', 'Response']),
33232
+ 'Response',
33233
+ _List_fromArray(
33234
+ [
33235
+ A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'Never', _List_Nil),
33236
+ A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'Never', _List_Nil)
33237
+ ]))
33238
+ ]))),
33257
33239
  $author$project$Elm$Annotation$var('constructor')
33258
33240
  ]))
33259
33241
  ]),
@@ -35459,22 +35441,22 @@ var $author$project$GenerateMain$otherFile = F2(
35459
35441
  ['Form']),
35460
35442
  'Model'))),
35461
35443
  _Utils_Tuple2(
35462
- 'fetchers',
35444
+ 'concurrentSubmissions',
35463
35445
  $elm$core$Maybe$Just(
35464
35446
  A2(
35465
35447
  $author$project$Gen$Dict$annotation_.dict,
35466
35448
  $author$project$Elm$Annotation$string,
35467
- $author$project$Gen$Pages$Transition$annotation_.fetcherState(
35449
+ $author$project$Gen$Pages$ConcurrentSubmission$annotation_.concurrentSubmission(
35468
35450
  A2($author$project$Elm$Annotation$named, _List_Nil, 'ActionData'))))),
35469
35451
  _Utils_Tuple2(
35470
- 'transition',
35452
+ 'navigation',
35471
35453
  $elm$core$Maybe$Just(
35472
35454
  $author$project$Elm$Annotation$maybe(
35473
35455
  A2(
35474
35456
  $author$project$Elm$Annotation$named,
35475
35457
  _List_fromArray(
35476
- ['Pages', 'Transition']),
35477
- 'Transition')))),
35458
+ ['Pages', 'Navigation']),
35459
+ 'Navigation')))),
35478
35460
  _Utils_Tuple2(
35479
35461
  'page',
35480
35462
  $elm$core$Maybe$Just(
@@ -35486,8 +35468,8 @@ var $author$project$GenerateMain$otherFile = F2(
35486
35468
  A2(
35487
35469
  $author$project$Elm$Annotation$named,
35488
35470
  _List_fromArray(
35489
- ['Path']),
35490
- 'Path')),
35471
+ ['UrlPath']),
35472
+ 'UrlPath')),
35491
35473
  _Utils_Tuple2(
35492
35474
  'route',
35493
35475
  $author$project$Elm$Annotation$maybe(
@@ -35528,9 +35510,9 @@ var $author$project$GenerateMain$otherFile = F2(
35528
35510
  if ((((((((args.b && args.b.b) && args.b.b.b) && args.b.b.b.b) && args.b.b.b.b.b) && args.b.b.b.b.b.b) && args.b.b.b.b.b.b.b) && args.b.b.b.b.b.b.b.b) && (!args.b.b.b.b.b.b.b.b.b)) {
35529
35511
  var pageFormState = args.a;
35530
35512
  var _v42 = args.b;
35531
- var fetchers = _v42.a;
35513
+ var concurrentSubmissions = _v42.a;
35532
35514
  var _v43 = _v42.b;
35533
- var transition = _v43.a;
35515
+ var navigation = _v43.a;
35534
35516
  var _v44 = _v43.b;
35535
35517
  var page = _v44.a;
35536
35518
  var _v45 = _v44.b;
@@ -35818,21 +35800,21 @@ var $author$project$GenerateMain$otherFile = F2(
35818
35800
  'fetcherArg',
35819
35801
  $author$project$Gen$Pages$Fetcher$call_.submit(
35820
35802
  A2($author$project$GenerateMain$decodeRouteType, $author$project$GenerateMain$ActionData, route)))),
35821
- _Utils_Tuple2('transition', transition),
35803
+ _Utils_Tuple2('navigation', navigation),
35822
35804
  _Utils_Tuple2(
35823
- 'fetchers',
35805
+ 'concurrentSubmissions',
35824
35806
  A2(
35825
35807
  $author$project$Gen$Dict$map,
35826
35808
  F2(
35827
35809
  function (_v52, fetcherState) {
35828
35810
  return A2(
35829
- $author$project$Gen$Pages$Transition$map,
35811
+ $author$project$Gen$Pages$ConcurrentSubmission$map,
35830
35812
  function (ad) {
35831
35813
  return actionDataOrNothing(ad);
35832
35814
  },
35833
35815
  fetcherState);
35834
35816
  }),
35835
- fetchers)),
35817
+ concurrentSubmissions)),
35836
35818
  _Utils_Tuple2('pageFormState', pageFormState)
35837
35819
  ]))
35838
35820
  ]))
@@ -35882,8 +35864,8 @@ var $author$project$GenerateMain$otherFile = F2(
35882
35864
  'value',
35883
35865
  $author$project$Gen$Pages$Fetcher$call_.submit(
35884
35866
  A2($author$project$GenerateMain$decodeRouteType, $author$project$GenerateMain$ActionData, route)))),
35885
- _Utils_Tuple2('transition', $author$project$Elm$nothing),
35886
- _Utils_Tuple2('fetchers', $author$project$Gen$Dict$empty),
35867
+ _Utils_Tuple2('navigation', $author$project$Elm$nothing),
35868
+ _Utils_Tuple2('concurrentSubmissions', $author$project$Gen$Dict$empty),
35887
35869
  _Utils_Tuple2('pageFormState', $author$project$Gen$Dict$empty)
35888
35870
  ]))
35889
35871
  ]));
@@ -36117,13 +36099,7 @@ var $author$project$GenerateMain$otherFile = F2(
36117
36099
  $author$project$Elm$Annotation$record(
36118
36100
  _List_fromArray(
36119
36101
  [
36120
- _Utils_Tuple2(
36121
- 'path',
36122
- A2(
36123
- $author$project$Elm$Annotation$named,
36124
- _List_fromArray(
36125
- ['Path']),
36126
- 'Path')),
36102
+ _Utils_Tuple2('path', $author$project$GenerateMain$pathType),
36127
36103
  _Utils_Tuple2(
36128
36104
  'query',
36129
36105
  $author$project$Elm$Annotation$maybe($author$project$Elm$Annotation$string)),
@@ -36339,8 +36315,8 @@ var $author$project$GenerateMain$otherFile = F2(
36339
36315
  [
36340
36316
  A2($author$project$GenerateMain$decodeRouteType, $author$project$GenerateMain$ActionData, route)
36341
36317
  ]))),
36342
- _Utils_Tuple2('transition', $author$project$Elm$nothing),
36343
- _Utils_Tuple2('fetchers', $author$project$Gen$Dict$empty),
36318
+ _Utils_Tuple2('navigation', $author$project$Elm$nothing),
36319
+ _Utils_Tuple2('concurrentSubmissions', $author$project$Gen$Dict$empty),
36344
36320
  _Utils_Tuple2('pageFormState', $author$project$Gen$Dict$empty)
36345
36321
  ]))
36346
36322
  ])));
@@ -36700,22 +36676,22 @@ var $author$project$GenerateMain$otherFile = F2(
36700
36676
  ['Form']),
36701
36677
  'Model'))),
36702
36678
  _Utils_Tuple2(
36703
- 'fetchers',
36679
+ 'concurrentSubmissions',
36704
36680
  $elm$core$Maybe$Just(
36705
36681
  A2(
36706
36682
  $author$project$Gen$Dict$annotation_.dict,
36707
36683
  $author$project$Elm$Annotation$string,
36708
- $author$project$Gen$Pages$Transition$annotation_.fetcherState(
36684
+ $author$project$Gen$Pages$ConcurrentSubmission$annotation_.concurrentSubmission(
36709
36685
  A2($author$project$Elm$Annotation$named, _List_Nil, 'ActionData'))))),
36710
36686
  _Utils_Tuple2(
36711
- 'transition',
36687
+ 'navigation',
36712
36688
  $elm$core$Maybe$Just(
36713
36689
  $author$project$Elm$Annotation$maybe(
36714
36690
  A2(
36715
36691
  $author$project$Elm$Annotation$named,
36716
36692
  _List_fromArray(
36717
- ['Pages', 'Transition']),
36718
- 'Transition')))),
36693
+ ['Pages', 'Navigation']),
36694
+ 'Navigation')))),
36719
36695
  _Utils_Tuple2(
36720
36696
  'sharedData',
36721
36697
  $elm$core$Maybe$Just(
@@ -36750,9 +36726,9 @@ var $author$project$GenerateMain$otherFile = F2(
36750
36726
  if ((((((((args.b && args.b.b) && args.b.b.b) && args.b.b.b.b) && args.b.b.b.b.b) && args.b.b.b.b.b.b) && args.b.b.b.b.b.b.b) && args.b.b.b.b.b.b.b.b) && (!args.b.b.b.b.b.b.b.b.b)) {
36751
36727
  var pageFormState = args.a;
36752
36728
  var _v15 = args.b;
36753
- var fetchers = _v15.a;
36729
+ var concurrentSubmissions = _v15.a;
36754
36730
  var _v16 = _v15.b;
36755
- var transition = _v16.a;
36731
+ var navigation = _v16.a;
36756
36732
  var _v17 = _v16.b;
36757
36733
  var sharedData = _v17.a;
36758
36734
  var _v18 = _v17.b;
@@ -37201,15 +37177,15 @@ var $author$project$GenerateMain$otherFile = F2(
37201
37177
  _Utils_Tuple2('options', $elm$core$Maybe$Nothing),
37202
37178
  $author$project$Gen$Pages$Fetcher$call_.submit(
37203
37179
  A2($author$project$GenerateMain$decodeRouteType, $author$project$GenerateMain$ActionData, route)))),
37204
- _Utils_Tuple2('transition', transition),
37180
+ _Utils_Tuple2('navigation', navigation),
37205
37181
  _Utils_Tuple2(
37206
- 'fetchers',
37182
+ 'concurrentSubmissions',
37207
37183
  A2(
37208
37184
  $author$project$Gen$Dict$map,
37209
37185
  F2(
37210
37186
  function (_v33, fetcherState) {
37211
37187
  return A2(
37212
- $author$project$Gen$Pages$Transition$map,
37188
+ $author$project$Gen$Pages$ConcurrentSubmission$map,
37213
37189
  function (ad) {
37214
37190
  return A3(
37215
37191
  $author$project$Elm$Case$custom,
@@ -37230,7 +37206,7 @@ var $author$project$GenerateMain$otherFile = F2(
37230
37206
  },
37231
37207
  fetcherState);
37232
37208
  }),
37233
- fetchers)),
37209
+ concurrentSubmissions)),
37234
37210
  _Utils_Tuple2('pageFormState', pageFormState)
37235
37211
  ])),
37236
37212
  msg_,
@@ -37584,7 +37560,7 @@ var $author$project$GenerateMain$otherFile = F2(
37584
37560
  'dataForRoute',
37585
37561
  _Utils_Tuple2(
37586
37562
  'requestPayload',
37587
- $elm$core$Maybe$Just($author$project$Gen$Json$Decode$annotation_.value)),
37563
+ $elm$core$Maybe$Just($author$project$Gen$Server$Request$annotation_.request)),
37588
37564
  _Utils_Tuple2(
37589
37565
  'maybeRoute',
37590
37566
  $elm$core$Maybe$Just(
@@ -37809,12 +37785,7 @@ var $author$project$GenerateMain$otherFile = F2(
37809
37785
  'Route')))),
37810
37786
  _Utils_Tuple2(
37811
37787
  'path',
37812
- $elm$core$Maybe$Just(
37813
- A2(
37814
- $author$project$Elm$Annotation$named,
37815
- _List_fromArray(
37816
- ['Path']),
37817
- 'Path'))),
37788
+ $elm$core$Maybe$Just($author$project$GenerateMain$pathType)),
37818
37789
  _Utils_Tuple2(
37819
37790
  'model',
37820
37791
  $elm$core$Maybe$Just(
@@ -37899,12 +37870,7 @@ var $author$project$GenerateMain$otherFile = F2(
37899
37870
  'Route')))),
37900
37871
  _Utils_Tuple2(
37901
37872
  'path',
37902
- $elm$core$Maybe$Just(
37903
- A2(
37904
- $author$project$Elm$Annotation$named,
37905
- _List_fromArray(
37906
- ['Path']),
37907
- 'Path'))),
37873
+ $elm$core$Maybe$Just($author$project$GenerateMain$pathType)),
37908
37874
  _Utils_Tuple2(
37909
37875
  'model',
37910
37876
  $elm$core$Maybe$Just(
@@ -38024,7 +37990,7 @@ var $author$project$GenerateMain$otherFile = F2(
38024
37990
  $author$project$Elm$fn,
38025
37991
  _Utils_Tuple2('route', $elm$core$Maybe$Nothing),
38026
37992
  function (route_) {
38027
- return $author$project$Gen$Path$toAbsolute(
37993
+ return $author$project$Gen$UrlPath$toAbsolute(
38028
37994
  A2(
38029
37995
  $author$project$Elm$apply,
38030
37996
  $author$project$Elm$value(
@@ -38077,7 +38043,7 @@ var $author$project$GenerateMain$otherFile = F2(
38077
38043
  'action',
38078
38044
  _Utils_Tuple2(
38079
38045
  'requestPayload',
38080
- $elm$core$Maybe$Just($author$project$Gen$Json$Decode$annotation_.value)),
38046
+ $elm$core$Maybe$Just($author$project$Gen$Server$Request$annotation_.request)),
38081
38047
  _Utils_Tuple2(
38082
38048
  'maybeRoute',
38083
38049
  $elm$core$Maybe$Just(
@@ -38375,8 +38341,8 @@ var $author$project$GenerateMain$otherFile = F2(
38375
38341
  A2(
38376
38342
  $author$project$Elm$Annotation$named,
38377
38343
  _List_fromArray(
38378
- ['Path']),
38379
- 'Path')),
38344
+ ['UrlPath']),
38345
+ 'UrlPath')),
38380
38346
  _Utils_Tuple2(
38381
38347
  'query',
38382
38348
  $author$project$Elm$Annotation$maybe($author$project$Elm$Annotation$string)),