elm-pages 3.0.0-beta.3 → 3.0.0-beta.5

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.
@@ -25890,6 +25890,370 @@ var $author$project$Gen$Pages$Internal$NotFoundReason$annotation_ = {
25890
25890
  $author$project$Elm$Annotation$list(
25891
25891
  A2($author$project$Elm$Annotation$tuple, $author$project$Elm$Annotation$string, $author$project$Elm$Annotation$string)))
25892
25892
  };
25893
+ var $author$project$Gen$Pages$Internal$Platform$moduleName_ = _List_fromArray(
25894
+ ['Pages', 'Internal', 'Platform']);
25895
+ var $author$project$Elm$Annotation$triple = F3(
25896
+ function (one, two, three) {
25897
+ return $author$project$Internal$Compiler$Annotation(
25898
+ {
25899
+ aliases: A2(
25900
+ $author$project$Internal$Compiler$mergeAliases,
25901
+ A2(
25902
+ $author$project$Internal$Compiler$mergeAliases,
25903
+ $author$project$Elm$Annotation$getAliases(one),
25904
+ $author$project$Elm$Annotation$getAliases(two)),
25905
+ $author$project$Elm$Annotation$getAliases(three)),
25906
+ annotation: $stil4m$elm_syntax$Elm$Syntax$TypeAnnotation$Tupled(
25907
+ $author$project$Internal$Compiler$nodifyAll(
25908
+ _List_fromArray(
25909
+ [
25910
+ $author$project$Internal$Compiler$getInnerAnnotation(one),
25911
+ $author$project$Internal$Compiler$getInnerAnnotation(two),
25912
+ $author$project$Internal$Compiler$getInnerAnnotation(three)
25913
+ ]))),
25914
+ imports: _Utils_ap(
25915
+ $author$project$Internal$Compiler$getAnnotationImports(one),
25916
+ _Utils_ap(
25917
+ $author$project$Internal$Compiler$getAnnotationImports(two),
25918
+ $author$project$Internal$Compiler$getAnnotationImports(three)))
25919
+ });
25920
+ });
25921
+ var $author$project$Gen$Pages$Internal$Platform$annotation_ = {
25922
+ effect: F6(
25923
+ function (effectArg0, effectArg1, effectArg2, effectArg3, effectArg4, effectArg5) {
25924
+ return A3(
25925
+ $author$project$Elm$Annotation$namedWith,
25926
+ _List_fromArray(
25927
+ ['Pages', 'Internal', 'Platform']),
25928
+ 'Effect',
25929
+ _List_fromArray(
25930
+ [effectArg0, effectArg1, effectArg2, effectArg3, effectArg4, effectArg5]));
25931
+ }),
25932
+ flags: A4(
25933
+ $author$project$Elm$Annotation$alias,
25934
+ $author$project$Gen$Pages$Internal$Platform$moduleName_,
25935
+ 'Flags',
25936
+ _List_Nil,
25937
+ A3(
25938
+ $author$project$Elm$Annotation$namedWith,
25939
+ _List_fromArray(
25940
+ ['Decode']),
25941
+ 'Value',
25942
+ _List_Nil)),
25943
+ model: F4(
25944
+ function (modelArg0, modelArg1, modelArg2, modelArg3) {
25945
+ return A4(
25946
+ $author$project$Elm$Annotation$alias,
25947
+ $author$project$Gen$Pages$Internal$Platform$moduleName_,
25948
+ 'Model',
25949
+ _List_fromArray(
25950
+ [modelArg0, modelArg1, modelArg2, modelArg3]),
25951
+ $author$project$Elm$Annotation$record(
25952
+ _List_fromArray(
25953
+ [
25954
+ _Utils_Tuple2(
25955
+ 'key',
25956
+ A3(
25957
+ $author$project$Elm$Annotation$namedWith,
25958
+ _List_Nil,
25959
+ 'Maybe',
25960
+ _List_fromArray(
25961
+ [
25962
+ A3(
25963
+ $author$project$Elm$Annotation$namedWith,
25964
+ _List_fromArray(
25965
+ ['Browser', 'Navigation']),
25966
+ 'Key',
25967
+ _List_Nil)
25968
+ ]))),
25969
+ _Utils_Tuple2(
25970
+ 'url',
25971
+ A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'Url', _List_Nil)),
25972
+ _Utils_Tuple2('currentPath', $author$project$Elm$Annotation$string),
25973
+ _Utils_Tuple2('ariaNavigationAnnouncement', $author$project$Elm$Annotation$string),
25974
+ _Utils_Tuple2(
25975
+ 'pageData',
25976
+ A3(
25977
+ $author$project$Elm$Annotation$namedWith,
25978
+ _List_Nil,
25979
+ 'Result',
25980
+ _List_fromArray(
25981
+ [
25982
+ $author$project$Elm$Annotation$string,
25983
+ $author$project$Elm$Annotation$record(
25984
+ _List_fromArray(
25985
+ [
25986
+ _Utils_Tuple2(
25987
+ 'userModel',
25988
+ $author$project$Elm$Annotation$var('userModel')),
25989
+ _Utils_Tuple2(
25990
+ 'pageData',
25991
+ $author$project$Elm$Annotation$var('pageData')),
25992
+ _Utils_Tuple2(
25993
+ 'sharedData',
25994
+ $author$project$Elm$Annotation$var('sharedData')),
25995
+ _Utils_Tuple2(
25996
+ 'actionData',
25997
+ A3(
25998
+ $author$project$Elm$Annotation$namedWith,
25999
+ _List_Nil,
26000
+ 'Maybe',
26001
+ _List_fromArray(
26002
+ [
26003
+ $author$project$Elm$Annotation$var('actionData')
26004
+ ])))
26005
+ ]))
26006
+ ]))),
26007
+ _Utils_Tuple2(
26008
+ 'notFound',
26009
+ A3(
26010
+ $author$project$Elm$Annotation$namedWith,
26011
+ _List_Nil,
26012
+ 'Maybe',
26013
+ _List_fromArray(
26014
+ [
26015
+ $author$project$Elm$Annotation$record(
26016
+ _List_fromArray(
26017
+ [
26018
+ _Utils_Tuple2(
26019
+ 'reason',
26020
+ A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'NotFoundReason', _List_Nil)),
26021
+ _Utils_Tuple2(
26022
+ 'path',
26023
+ A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'Path', _List_Nil))
26024
+ ]))
26025
+ ]))),
26026
+ _Utils_Tuple2(
26027
+ 'userFlags',
26028
+ A3(
26029
+ $author$project$Elm$Annotation$namedWith,
26030
+ _List_fromArray(
26031
+ ['Decode']),
26032
+ 'Value',
26033
+ _List_Nil)),
26034
+ _Utils_Tuple2(
26035
+ 'transition',
26036
+ A3(
26037
+ $author$project$Elm$Annotation$namedWith,
26038
+ _List_Nil,
26039
+ 'Maybe',
26040
+ _List_fromArray(
26041
+ [
26042
+ A2(
26043
+ $author$project$Elm$Annotation$tuple,
26044
+ $author$project$Elm$Annotation$int,
26045
+ A3(
26046
+ $author$project$Elm$Annotation$namedWith,
26047
+ _List_fromArray(
26048
+ ['Pages', 'Transition']),
26049
+ 'Transition',
26050
+ _List_Nil))
26051
+ ]))),
26052
+ _Utils_Tuple2('nextTransitionKey', $author$project$Elm$Annotation$int),
26053
+ _Utils_Tuple2(
26054
+ 'inFlightFetchers',
26055
+ A3(
26056
+ $author$project$Elm$Annotation$namedWith,
26057
+ _List_Nil,
26058
+ 'Dict',
26059
+ _List_fromArray(
26060
+ [
26061
+ $author$project$Elm$Annotation$string,
26062
+ A2(
26063
+ $author$project$Elm$Annotation$tuple,
26064
+ $author$project$Elm$Annotation$int,
26065
+ A3(
26066
+ $author$project$Elm$Annotation$namedWith,
26067
+ _List_fromArray(
26068
+ ['Pages', 'Transition']),
26069
+ 'FetcherState',
26070
+ _List_fromArray(
26071
+ [
26072
+ $author$project$Elm$Annotation$var('actionData')
26073
+ ])))
26074
+ ]))),
26075
+ _Utils_Tuple2(
26076
+ 'pageFormState',
26077
+ A3(
26078
+ $author$project$Elm$Annotation$namedWith,
26079
+ _List_fromArray(
26080
+ ['Pages', 'FormState']),
26081
+ 'PageFormState',
26082
+ _List_Nil)),
26083
+ _Utils_Tuple2('pendingRedirect', $author$project$Elm$Annotation$bool),
26084
+ _Utils_Tuple2(
26085
+ 'pendingData',
26086
+ A3(
26087
+ $author$project$Elm$Annotation$namedWith,
26088
+ _List_Nil,
26089
+ 'Maybe',
26090
+ _List_fromArray(
26091
+ [
26092
+ A3(
26093
+ $author$project$Elm$Annotation$triple,
26094
+ $author$project$Elm$Annotation$var('pageData'),
26095
+ $author$project$Elm$Annotation$var('sharedData'),
26096
+ A3(
26097
+ $author$project$Elm$Annotation$namedWith,
26098
+ _List_Nil,
26099
+ 'Maybe',
26100
+ _List_fromArray(
26101
+ [
26102
+ $author$project$Elm$Annotation$var('actionData')
26103
+ ])))
26104
+ ])))
26105
+ ])));
26106
+ }),
26107
+ msg: F5(
26108
+ function (msgArg0, msgArg1, msgArg2, msgArg3, msgArg4) {
26109
+ return A3(
26110
+ $author$project$Elm$Annotation$namedWith,
26111
+ _List_fromArray(
26112
+ ['Pages', 'Internal', 'Platform']),
26113
+ 'Msg',
26114
+ _List_fromArray(
26115
+ [msgArg0, msgArg1, msgArg2, msgArg3, msgArg4]));
26116
+ }),
26117
+ program: F6(
26118
+ function (programArg0, programArg1, programArg2, programArg3, programArg4, programArg5) {
26119
+ return A4(
26120
+ $author$project$Elm$Annotation$alias,
26121
+ $author$project$Gen$Pages$Internal$Platform$moduleName_,
26122
+ 'Program',
26123
+ _List_fromArray(
26124
+ [programArg0, programArg1, programArg2, programArg3, programArg4, programArg5]),
26125
+ A3(
26126
+ $author$project$Elm$Annotation$namedWith,
26127
+ _List_fromArray(
26128
+ ['Platform']),
26129
+ 'Program',
26130
+ _List_fromArray(
26131
+ [
26132
+ A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'Flags', _List_Nil),
26133
+ A3(
26134
+ $author$project$Elm$Annotation$namedWith,
26135
+ _List_Nil,
26136
+ 'Model',
26137
+ _List_fromArray(
26138
+ [
26139
+ $author$project$Elm$Annotation$var('userModel'),
26140
+ $author$project$Elm$Annotation$var('pageData'),
26141
+ $author$project$Elm$Annotation$var('actionData'),
26142
+ $author$project$Elm$Annotation$var('sharedData')
26143
+ ])),
26144
+ A3(
26145
+ $author$project$Elm$Annotation$namedWith,
26146
+ _List_Nil,
26147
+ 'Msg',
26148
+ _List_fromArray(
26149
+ [
26150
+ $author$project$Elm$Annotation$var('userMsg'),
26151
+ $author$project$Elm$Annotation$var('pageData'),
26152
+ $author$project$Elm$Annotation$var('actionData'),
26153
+ $author$project$Elm$Annotation$var('sharedData'),
26154
+ $author$project$Elm$Annotation$var('errorPage')
26155
+ ]))
26156
+ ])));
26157
+ }),
26158
+ requestInfo: A4(
26159
+ $author$project$Elm$Annotation$alias,
26160
+ $author$project$Gen$Pages$Internal$Platform$moduleName_,
26161
+ 'RequestInfo',
26162
+ _List_Nil,
26163
+ $author$project$Elm$Annotation$record(
26164
+ _List_fromArray(
26165
+ [
26166
+ _Utils_Tuple2('contentType', $author$project$Elm$Annotation$string),
26167
+ _Utils_Tuple2('body', $author$project$Elm$Annotation$string)
26168
+ ])))
26169
+ };
26170
+ var $author$project$Gen$Pages$Internal$Platform$Cli$moduleName_ = _List_fromArray(
26171
+ ['Pages', 'Internal', 'Platform', 'Cli']);
26172
+ var $author$project$Gen$Pages$Internal$Platform$Cli$annotation_ = {
26173
+ flags: A4(
26174
+ $author$project$Elm$Annotation$alias,
26175
+ $author$project$Gen$Pages$Internal$Platform$Cli$moduleName_,
26176
+ 'Flags',
26177
+ _List_Nil,
26178
+ A3(
26179
+ $author$project$Elm$Annotation$namedWith,
26180
+ _List_fromArray(
26181
+ ['Decode']),
26182
+ 'Value',
26183
+ _List_Nil)),
26184
+ model: function (modelArg0) {
26185
+ return A4(
26186
+ $author$project$Elm$Annotation$alias,
26187
+ $author$project$Gen$Pages$Internal$Platform$Cli$moduleName_,
26188
+ 'Model',
26189
+ _List_fromArray(
26190
+ [modelArg0]),
26191
+ $author$project$Elm$Annotation$record(
26192
+ _List_fromArray(
26193
+ [
26194
+ _Utils_Tuple2(
26195
+ 'staticResponses',
26196
+ A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'StaticResponses', _List_Nil)),
26197
+ _Utils_Tuple2(
26198
+ 'errors',
26199
+ $author$project$Elm$Annotation$list(
26200
+ A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'BuildError', _List_Nil))),
26201
+ _Utils_Tuple2(
26202
+ 'allRawResponses',
26203
+ A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'RequestsAndPending', _List_Nil)),
26204
+ _Utils_Tuple2(
26205
+ 'unprocessedPages',
26206
+ $author$project$Elm$Annotation$list(
26207
+ A2(
26208
+ $author$project$Elm$Annotation$tuple,
26209
+ A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'Path', _List_Nil),
26210
+ $author$project$Elm$Annotation$var('route')))),
26211
+ _Utils_Tuple2(
26212
+ 'maybeRequestJson',
26213
+ A3(
26214
+ $author$project$Elm$Annotation$namedWith,
26215
+ _List_Nil,
26216
+ 'RenderRequest',
26217
+ _List_fromArray(
26218
+ [
26219
+ $author$project$Elm$Annotation$var('route')
26220
+ ]))),
26221
+ _Utils_Tuple2('isDevServer', $author$project$Elm$Annotation$bool)
26222
+ ])));
26223
+ },
26224
+ msg: A3(
26225
+ $author$project$Elm$Annotation$namedWith,
26226
+ _List_fromArray(
26227
+ ['Pages', 'Internal', 'Platform', 'Cli']),
26228
+ 'Msg',
26229
+ _List_Nil),
26230
+ program: function (programArg0) {
26231
+ return A4(
26232
+ $author$project$Elm$Annotation$alias,
26233
+ $author$project$Gen$Pages$Internal$Platform$Cli$moduleName_,
26234
+ 'Program',
26235
+ _List_fromArray(
26236
+ [programArg0]),
26237
+ A3(
26238
+ $author$project$Elm$Annotation$namedWith,
26239
+ _List_fromArray(
26240
+ ['Platform']),
26241
+ 'Program',
26242
+ _List_fromArray(
26243
+ [
26244
+ A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'Flags', _List_Nil),
26245
+ A3(
26246
+ $author$project$Elm$Annotation$namedWith,
26247
+ _List_Nil,
26248
+ 'Model',
26249
+ _List_fromArray(
26250
+ [
26251
+ $author$project$Elm$Annotation$var('route')
26252
+ ])),
26253
+ A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'Msg', _List_Nil)
26254
+ ])));
26255
+ }
26256
+ };
25893
26257
  var $author$project$Gen$Pages$Msg$annotation_ = {
25894
26258
  msg: function (msgArg0) {
25895
26259
  return A3(
@@ -25959,6 +26323,16 @@ var $author$project$Gen$Pages$Transition$annotation_ = {
25959
26323
  'Transition',
25960
26324
  _List_Nil)
25961
26325
  };
26326
+ var $author$project$Gen$Platform$Sub$annotation_ = {
26327
+ sub: function (subArg0) {
26328
+ return A3(
26329
+ $author$project$Elm$Annotation$namedWith,
26330
+ _List_Nil,
26331
+ 'Sub',
26332
+ _List_fromArray(
26333
+ [subArg0]));
26334
+ }
26335
+ };
25962
26336
  var $author$project$Gen$Server$Response$moduleName_ = _List_fromArray(
25963
26337
  ['Server', 'Response']);
25964
26338
  var $author$project$Gen$Server$Response$annotation_ = {
@@ -32318,32 +32692,6 @@ var $author$project$Internal$Compiler$noImports = function (tipe) {
32318
32692
  return $author$project$Internal$Compiler$Annotation(
32319
32693
  {aliases: $author$project$Internal$Compiler$emptyAliases, annotation: tipe, imports: _List_Nil});
32320
32694
  };
32321
- var $author$project$Elm$Annotation$triple = F3(
32322
- function (one, two, three) {
32323
- return $author$project$Internal$Compiler$Annotation(
32324
- {
32325
- aliases: A2(
32326
- $author$project$Internal$Compiler$mergeAliases,
32327
- A2(
32328
- $author$project$Internal$Compiler$mergeAliases,
32329
- $author$project$Elm$Annotation$getAliases(one),
32330
- $author$project$Elm$Annotation$getAliases(two)),
32331
- $author$project$Elm$Annotation$getAliases(three)),
32332
- annotation: $stil4m$elm_syntax$Elm$Syntax$TypeAnnotation$Tupled(
32333
- $author$project$Internal$Compiler$nodifyAll(
32334
- _List_fromArray(
32335
- [
32336
- $author$project$Internal$Compiler$getInnerAnnotation(one),
32337
- $author$project$Internal$Compiler$getInnerAnnotation(two),
32338
- $author$project$Internal$Compiler$getInnerAnnotation(three)
32339
- ]))),
32340
- imports: _Utils_ap(
32341
- $author$project$Internal$Compiler$getAnnotationImports(one),
32342
- _Utils_ap(
32343
- $author$project$Internal$Compiler$getAnnotationImports(two),
32344
- $author$project$Internal$Compiler$getAnnotationImports(three)))
32345
- });
32346
- });
32347
32695
  var $author$project$Elm$triple = F3(
32348
32696
  function (oneExp, twoExp, threeExp) {
32349
32697
  return $author$project$Internal$Compiler$Expression(
@@ -36387,82 +36735,154 @@ var $author$project$GenerateMain$otherFile = F2(
36387
36735
  var fooFn = A6(
36388
36736
  $author$project$Elm$Declare$fn4,
36389
36737
  'fooFn',
36390
- _Utils_Tuple2('wrapModel', $elm$core$Maybe$Nothing),
36391
- _Utils_Tuple2('wrapMsg', $elm$core$Maybe$Nothing),
36738
+ _Utils_Tuple2(
36739
+ 'wrapModel',
36740
+ $elm$core$Maybe$Just(
36741
+ A2(
36742
+ $author$project$Elm$Annotation$function,
36743
+ _List_fromArray(
36744
+ [
36745
+ $author$project$Elm$Annotation$var('a')
36746
+ ]),
36747
+ A2($author$project$Elm$Annotation$named, _List_Nil, 'PageModel')))),
36748
+ _Utils_Tuple2(
36749
+ 'wrapMsg',
36750
+ $elm$core$Maybe$Just(
36751
+ A2(
36752
+ $author$project$Elm$Annotation$function,
36753
+ _List_fromArray(
36754
+ [
36755
+ $author$project$Elm$Annotation$var('b')
36756
+ ]),
36757
+ A2($author$project$Elm$Annotation$named, _List_Nil, 'Msg')))),
36392
36758
  _Utils_Tuple2(
36393
36759
  'model',
36394
36760
  $elm$core$Maybe$Just(
36395
36761
  A2($author$project$Elm$Annotation$named, _List_Nil, 'Model'))),
36396
- _Utils_Tuple2('triple', $elm$core$Maybe$Nothing),
36762
+ _Utils_Tuple2(
36763
+ 'triple',
36764
+ $elm$core$Maybe$Just(
36765
+ A3(
36766
+ $author$project$Elm$Annotation$triple,
36767
+ $author$project$Elm$Annotation$var('a'),
36768
+ A3(
36769
+ $author$project$Elm$Annotation$namedWith,
36770
+ _List_fromArray(
36771
+ ['Effect']),
36772
+ 'Effect',
36773
+ _List_fromArray(
36774
+ [
36775
+ $author$project$Elm$Annotation$var('b')
36776
+ ])),
36777
+ $author$project$Elm$Annotation$maybe(
36778
+ A2(
36779
+ $author$project$Elm$Annotation$named,
36780
+ _List_fromArray(
36781
+ ['Shared']),
36782
+ 'Msg'))))),
36397
36783
  F4(
36398
36784
  function (wrapModel, wrapMsg, model, triple) {
36399
- return A3(
36400
- $author$project$Elm$Case$custom,
36401
- triple,
36402
- $author$project$Elm$Annotation$unit,
36403
- _List_fromArray(
36404
- [
36785
+ return A2(
36786
+ $author$project$Elm$withType,
36787
+ A3(
36788
+ $author$project$Elm$Annotation$triple,
36789
+ A2($author$project$Elm$Annotation$named, _List_Nil, 'PageModel'),
36790
+ A3(
36791
+ $author$project$Elm$Annotation$namedWith,
36792
+ _List_fromArray(
36793
+ ['Effect']),
36794
+ 'Effect',
36795
+ _List_fromArray(
36796
+ [
36797
+ A2($author$project$Elm$Annotation$named, _List_Nil, 'Msg')
36798
+ ])),
36799
+ A2(
36800
+ $author$project$Elm$Annotation$tuple,
36405
36801
  A2(
36406
- $author$project$Elm$Case$patternToBranch,
36407
- function (_v32) {
36408
- var a = _v32.a;
36409
- var b = _v32.b;
36410
- var c = _v32.c;
36411
- return A3(
36412
- $author$project$Elm$triple,
36413
- A2(
36414
- $author$project$Elm$apply,
36415
- wrapModel,
36416
- _List_fromArray(
36417
- [a])),
36418
- A2(
36419
- $author$project$Elm$apply,
36420
- $author$project$Elm$value(
36421
- {
36422
- annotation: $elm$core$Maybe$Nothing,
36423
- importFrom: _List_fromArray(
36424
- ['Effect']),
36425
- name: 'map'
36426
- }),
36802
+ $author$project$Elm$Annotation$named,
36803
+ _List_fromArray(
36804
+ ['Shared']),
36805
+ 'Model'),
36806
+ A3(
36807
+ $author$project$Elm$Annotation$namedWith,
36808
+ _List_fromArray(
36809
+ ['Effect']),
36810
+ 'Effect',
36811
+ _List_fromArray(
36812
+ [
36813
+ A2(
36814
+ $author$project$Elm$Annotation$named,
36427
36815
  _List_fromArray(
36428
- [wrapMsg, b])),
36429
- A2(
36430
- $author$project$Elm$Case$maybe,
36431
- c,
36432
- {
36433
- just: _Utils_Tuple2(
36434
- 'sharedMsg',
36435
- function (sharedMsg) {
36436
- return A2(
36437
- $author$project$Elm$apply,
36438
- A2(
36439
- $author$project$Elm$get,
36440
- 'update',
36441
- $author$project$Elm$value(
36442
- {
36443
- annotation: $elm$core$Maybe$Nothing,
36444
- importFrom: _List_fromArray(
36445
- ['Shared']),
36446
- name: 'template'
36447
- })),
36448
- _List_fromArray(
36449
- [
36450
- sharedMsg,
36451
- A2($author$project$Elm$get, 'global', model)
36452
- ]));
36816
+ ['Shared']),
36817
+ 'Msg')
36818
+ ])))),
36819
+ A3(
36820
+ $author$project$Elm$Case$custom,
36821
+ triple,
36822
+ $author$project$Elm$Annotation$unit,
36823
+ _List_fromArray(
36824
+ [
36825
+ A2(
36826
+ $author$project$Elm$Case$patternToBranch,
36827
+ function (_v32) {
36828
+ var a = _v32.a;
36829
+ var b = _v32.b;
36830
+ var c = _v32.c;
36831
+ return A3(
36832
+ $author$project$Elm$triple,
36833
+ A2(
36834
+ $author$project$Elm$apply,
36835
+ wrapModel,
36836
+ _List_fromArray(
36837
+ [a])),
36838
+ A2(
36839
+ $author$project$Elm$apply,
36840
+ $author$project$Elm$value(
36841
+ {
36842
+ annotation: $elm$core$Maybe$Nothing,
36843
+ importFrom: _List_fromArray(
36844
+ ['Effect']),
36845
+ name: 'map'
36453
36846
  }),
36454
- nothing: A2(
36455
- $author$project$Elm$tuple,
36456
- A2($author$project$Elm$get, 'global', model),
36457
- $author$project$GenerateMain$effectNone)
36458
- }));
36459
- },
36460
- A3(
36461
- $author$project$Elm$Pattern$triple,
36462
- $author$project$Elm$Pattern$var('a'),
36463
- $author$project$Elm$Pattern$var('b'),
36464
- $author$project$Elm$Pattern$var('c')))
36465
- ]));
36847
+ _List_fromArray(
36848
+ [wrapMsg, b])),
36849
+ A2(
36850
+ $author$project$Elm$Case$maybe,
36851
+ c,
36852
+ {
36853
+ just: _Utils_Tuple2(
36854
+ 'sharedMsg',
36855
+ function (sharedMsg) {
36856
+ return A2(
36857
+ $author$project$Elm$apply,
36858
+ A2(
36859
+ $author$project$Elm$get,
36860
+ 'update',
36861
+ $author$project$Elm$value(
36862
+ {
36863
+ annotation: $elm$core$Maybe$Nothing,
36864
+ importFrom: _List_fromArray(
36865
+ ['Shared']),
36866
+ name: 'template'
36867
+ })),
36868
+ _List_fromArray(
36869
+ [
36870
+ sharedMsg,
36871
+ A2($author$project$Elm$get, 'global', model)
36872
+ ]));
36873
+ }),
36874
+ nothing: A2(
36875
+ $author$project$Elm$tuple,
36876
+ A2($author$project$Elm$get, 'global', model),
36877
+ $author$project$GenerateMain$effectNone)
36878
+ }));
36879
+ },
36880
+ A3(
36881
+ $author$project$Elm$Pattern$triple,
36882
+ $author$project$Elm$Pattern$var('a'),
36883
+ $author$project$Elm$Pattern$var('b'),
36884
+ $author$project$Elm$Pattern$var('c')))
36885
+ ])));
36466
36886
  }));
36467
36887
  var update = A3(
36468
36888
  $author$project$Elm$Declare$function,
@@ -37579,99 +37999,125 @@ var $author$project$GenerateMain$otherFile = F2(
37579
37999
  F3(
37580
38000
  function (maybeRoute, path, model) {
37581
38001
  return A2(
37582
- $author$project$Elm$Case$maybe,
37583
- maybeRoute,
37584
- {
37585
- just: _Utils_Tuple2(
37586
- 'justRoute',
37587
- function (justRoute) {
37588
- return A2(
37589
- branchHelper,
37590
- justRoute,
37591
- F2(
37592
- function (route, maybeRouteParams) {
37593
- return A3(
37594
- $author$project$Elm$Case$custom,
37595
- A2($author$project$Elm$get, 'page', model),
37596
- $author$project$Elm$Annotation$unit,
37597
- _List_fromArray(
37598
- [
37599
- A2(
37600
- $author$project$Elm$Case$patternToBranch,
37601
- function (templateModel) {
37602
- return A2(
37603
- $author$project$Gen$Platform$Sub$call_.map,
37604
- A2($author$project$GenerateMain$routeVariantExpression, $author$project$GenerateMain$Msg, route),
37605
- A2(
37606
- $author$project$Elm$apply,
38002
+ $author$project$Elm$withType,
38003
+ $author$project$Gen$Platform$Sub$annotation_.sub(
38004
+ A2($author$project$Elm$Annotation$named, _List_Nil, 'Msg')),
38005
+ A2(
38006
+ $author$project$Elm$Case$maybe,
38007
+ maybeRoute,
38008
+ {
38009
+ just: _Utils_Tuple2(
38010
+ 'justRoute',
38011
+ function (justRoute) {
38012
+ return A2(
38013
+ branchHelper,
38014
+ justRoute,
38015
+ F2(
38016
+ function (route, maybeRouteParams) {
38017
+ return A3(
38018
+ $author$project$Elm$Case$custom,
38019
+ A2($author$project$Elm$get, 'page', model),
38020
+ $author$project$Elm$Annotation$unit,
38021
+ _List_fromArray(
38022
+ [
38023
+ A2(
38024
+ $author$project$Elm$Case$patternToBranch,
38025
+ function (templateModel) {
38026
+ return A2(
38027
+ $author$project$Gen$Platform$Sub$call_.map,
38028
+ A2($author$project$GenerateMain$routeVariantExpression, $author$project$GenerateMain$Msg, route),
37607
38029
  A2(
37608
- $author$project$Elm$get,
37609
- 'subscriptions',
37610
- $author$project$Elm$value(
37611
- {
37612
- annotation: $elm$core$Maybe$Nothing,
37613
- importFrom: A2(
37614
- $elm$core$List$cons,
37615
- 'Route',
37616
- $author$project$Pages$Internal$RoutePattern$toModuleName(route)),
37617
- name: 'route'
37618
- })),
37619
- _List_fromArray(
37620
- [
37621
- $author$project$Elm$nothing,
37622
- A2(
37623
- $elm$core$Maybe$withDefault,
37624
- $author$project$Elm$record(_List_Nil),
37625
- maybeRouteParams),
37626
- path,
37627
- templateModel,
37628
- A2($author$project$Elm$get, 'global', model)
37629
- ])));
37630
- },
37631
- A3($author$project$GenerateMain$destructureRouteVariant, $author$project$GenerateMain$Model, 'templateModel', route)),
37632
- $author$project$Elm$Case$otherwise(
37633
- function (_v6) {
37634
- return $author$project$Gen$Platform$Sub$none;
37635
- })
37636
- ]));
37637
- }));
37638
- }),
37639
- nothing: $author$project$Gen$Platform$Sub$none
37640
- });
38030
+ $author$project$Elm$apply,
38031
+ A2(
38032
+ $author$project$Elm$get,
38033
+ 'subscriptions',
38034
+ $author$project$Elm$value(
38035
+ {
38036
+ annotation: $elm$core$Maybe$Nothing,
38037
+ importFrom: A2(
38038
+ $elm$core$List$cons,
38039
+ 'Route',
38040
+ $author$project$Pages$Internal$RoutePattern$toModuleName(route)),
38041
+ name: 'route'
38042
+ })),
38043
+ _List_fromArray(
38044
+ [
38045
+ $author$project$Elm$nothing,
38046
+ A2(
38047
+ $elm$core$Maybe$withDefault,
38048
+ $author$project$Elm$record(_List_Nil),
38049
+ maybeRouteParams),
38050
+ path,
38051
+ templateModel,
38052
+ A2($author$project$Elm$get, 'global', model)
38053
+ ])));
38054
+ },
38055
+ A3($author$project$GenerateMain$destructureRouteVariant, $author$project$GenerateMain$Model, 'templateModel', route)),
38056
+ $author$project$Elm$Case$otherwise(
38057
+ function (_v6) {
38058
+ return $author$project$Gen$Platform$Sub$none;
38059
+ })
38060
+ ]));
38061
+ }));
38062
+ }),
38063
+ nothing: $author$project$Gen$Platform$Sub$none
38064
+ }));
37641
38065
  }));
37642
38066
  var subscriptions = A5(
37643
38067
  $author$project$Elm$Declare$fn3,
37644
38068
  'subscriptions',
37645
- _Utils_Tuple2('route', $elm$core$Maybe$Nothing),
37646
- _Utils_Tuple2('path', $elm$core$Maybe$Nothing),
37647
- _Utils_Tuple2('model', $elm$core$Maybe$Nothing),
38069
+ _Utils_Tuple2(
38070
+ 'route',
38071
+ $elm$core$Maybe$Just(
38072
+ $author$project$Elm$Annotation$maybe(
38073
+ A2(
38074
+ $author$project$Elm$Annotation$named,
38075
+ _List_fromArray(
38076
+ ['Route']),
38077
+ 'Route')))),
38078
+ _Utils_Tuple2(
38079
+ 'path',
38080
+ $elm$core$Maybe$Just(
38081
+ A2(
38082
+ $author$project$Elm$Annotation$named,
38083
+ _List_fromArray(
38084
+ ['Path']),
38085
+ 'Path'))),
38086
+ _Utils_Tuple2(
38087
+ 'model',
38088
+ $elm$core$Maybe$Just(
38089
+ A2($author$project$Elm$Annotation$named, _List_Nil, 'Model'))),
37648
38090
  F3(
37649
38091
  function (route, path, model) {
37650
- return $author$project$Gen$Platform$Sub$batch(
37651
- _List_fromArray(
37652
- [
37653
- A2(
37654
- $author$project$Gen$Platform$Sub$call_.map,
37655
- $author$project$Elm$val('MsgGlobal'),
37656
- A2(
37657
- $author$project$Elm$apply,
38092
+ return A2(
38093
+ $author$project$Elm$withType,
38094
+ $author$project$Gen$Platform$Sub$annotation_.sub(
38095
+ A2($author$project$Elm$Annotation$named, _List_Nil, 'Msg')),
38096
+ $author$project$Gen$Platform$Sub$batch(
38097
+ _List_fromArray(
38098
+ [
37658
38099
  A2(
37659
- $author$project$Elm$get,
37660
- 'subscriptions',
37661
- $author$project$Elm$value(
37662
- {
37663
- annotation: $elm$core$Maybe$Nothing,
37664
- importFrom: _List_fromArray(
37665
- ['Shared']),
37666
- name: 'template'
37667
- })),
37668
- _List_fromArray(
37669
- [
37670
- path,
37671
- A2($author$project$Elm$get, 'global', model)
37672
- ]))),
37673
- A3(templateSubscriptions.call, route, path, model)
37674
- ]));
38100
+ $author$project$Gen$Platform$Sub$call_.map,
38101
+ $author$project$Elm$val('MsgGlobal'),
38102
+ A2(
38103
+ $author$project$Elm$apply,
38104
+ A2(
38105
+ $author$project$Elm$get,
38106
+ 'subscriptions',
38107
+ $author$project$Elm$value(
38108
+ {
38109
+ annotation: $elm$core$Maybe$Nothing,
38110
+ importFrom: _List_fromArray(
38111
+ ['Shared']),
38112
+ name: 'template'
38113
+ })),
38114
+ _List_fromArray(
38115
+ [
38116
+ path,
38117
+ A2($author$project$Elm$get, 'global', model)
38118
+ ]))),
38119
+ A3(templateSubscriptions.call, route, path, model)
38120
+ ])));
37675
38121
  }));
37676
38122
  var apiPatterns = A2(
37677
38123
  $author$project$Elm$Extra$topLevelValue,
@@ -38301,13 +38747,58 @@ var $author$project$GenerateMain$otherFile = F2(
38301
38747
  A2(
38302
38748
  $author$project$Elm$declaration,
38303
38749
  'main',
38304
- $author$project$Gen$Pages$Internal$Platform$application(config)));
38750
+ A2(
38751
+ $author$project$Elm$withType,
38752
+ A3(
38753
+ $author$project$Elm$Annotation$namedWith,
38754
+ _List_fromArray(
38755
+ ['Platform']),
38756
+ 'Program',
38757
+ _List_fromArray(
38758
+ [
38759
+ $author$project$Gen$Pages$Internal$Platform$annotation_.flags,
38760
+ A4(
38761
+ $author$project$Gen$Pages$Internal$Platform$annotation_.model,
38762
+ A2($author$project$Elm$Annotation$named, _List_Nil, 'Model'),
38763
+ A2($author$project$Elm$Annotation$named, _List_Nil, 'PageData'),
38764
+ A2($author$project$Elm$Annotation$named, _List_Nil, 'ActionData'),
38765
+ A2(
38766
+ $author$project$Elm$Annotation$named,
38767
+ _List_fromArray(
38768
+ ['Shared']),
38769
+ 'Data')),
38770
+ A5(
38771
+ $author$project$Gen$Pages$Internal$Platform$annotation_.msg,
38772
+ A2($author$project$Elm$Annotation$named, _List_Nil, 'Msg'),
38773
+ A2($author$project$Elm$Annotation$named, _List_Nil, 'PageData'),
38774
+ A2($author$project$Elm$Annotation$named, _List_Nil, 'ActionData'),
38775
+ A2(
38776
+ $author$project$Elm$Annotation$named,
38777
+ _List_fromArray(
38778
+ ['Shared']),
38779
+ 'Data'),
38780
+ A2(
38781
+ $author$project$Elm$Annotation$named,
38782
+ _List_fromArray(
38783
+ ['ErrorPage']),
38784
+ 'ErrorPage'))
38785
+ ])),
38786
+ $author$project$Gen$Pages$Internal$Platform$application(config))));
38305
38787
  } else {
38306
38788
  return $author$project$Elm$Extra$expose(
38307
38789
  A2(
38308
38790
  $author$project$Elm$declaration,
38309
38791
  'main',
38310
- $author$project$Gen$Pages$Internal$Platform$Cli$cliApplication(config)));
38792
+ A2(
38793
+ $author$project$Elm$withType,
38794
+ $author$project$Gen$Pages$Internal$Platform$Cli$annotation_.program(
38795
+ $author$project$Elm$Annotation$maybe(
38796
+ A2(
38797
+ $author$project$Elm$Annotation$named,
38798
+ _List_fromArray(
38799
+ ['Route']),
38800
+ 'Route'))),
38801
+ $author$project$Gen$Pages$Internal$Platform$Cli$cliApplication(config))));
38311
38802
  }
38312
38803
  }(),
38313
38804
  dataForRoute.declaration,
@@ -75,7 +75,7 @@ console.elmlog = (str) => logs.push(str + "\n");
75
75
  const { Elm } = require("./Runner.elm.js");
76
76
 
77
77
  // Start the Elm app
78
- const flags = { initialSeed: 412230770, fuzzRuns: 100, filter: null };
78
+ const flags = { initialSeed: 4067606959, fuzzRuns: 100, filter: null };
79
79
  const app = Elm.Runner.init({ flags: flags });
80
80
 
81
81
  // Record the timing at which we received the last "runTest" message
@@ -82,7 +82,7 @@ const verbosity = 0;
82
82
  // Create a long lived reporter worker
83
83
  const { Elm } = require("./Reporter.elm.js");
84
84
  const flags = {
85
- initialSeed: 412230770,
85
+ initialSeed: 4067606959,
86
86
  fuzzRuns: 100,
87
87
  mode: "consoleNoColor",
88
88
  verbosity: verbosity,
@@ -75,7 +75,7 @@ console.elmlog = (str) => logs.push(str + "\n");
75
75
  const { Elm } = require("./Runner.elm.js");
76
76
 
77
77
  // Start the Elm app
78
- const flags = { initialSeed: 2709023394, fuzzRuns: 100, filter: null };
78
+ const flags = { initialSeed: 1129837679, fuzzRuns: 100, filter: null };
79
79
  const app = Elm.Runner.init({ flags: flags });
80
80
 
81
81
  // Record the timing at which we received the last "runTest" message
@@ -82,7 +82,7 @@ const verbosity = 0;
82
82
  // Create a long lived reporter worker
83
83
  const { Elm } = require("./Reporter.elm.js");
84
84
  const flags = {
85
- initialSeed: 2709023394,
85
+ initialSeed: 1129837679,
86
86
  fuzzRuns: 100,
87
87
  mode: "consoleNoColor",
88
88
  verbosity: verbosity,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "elm-pages",
3
- "version": "3.0.0-beta.3",
3
+ "version": "3.0.0-beta.5",
4
4
  "homepage": "https://elm-pages.com",
5
5
  "moduleResolution": "node",
6
6
  "description": "Type-safe static sites, written in pure elm with your own custom elm-markup syntax.",