elm-pages 3.0.0-beta.26 → 3.0.0-beta.27
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/README.md +1 -1
- package/codegen/elm-pages-codegen.cjs +88 -239
- package/generator/dead-code-review/elm-stuff/tests-0.19.1/elm-stuff/0.19.1/d.dat +0 -0
- package/generator/dead-code-review/elm-stuff/tests-0.19.1/js/node_runner.js +1 -1
- package/generator/dead-code-review/elm-stuff/tests-0.19.1/js/node_supervisor.js +1 -1
- package/generator/review/elm-stuff/tests-0.19.1/elm-stuff/0.19.1/d.dat +0 -0
- package/generator/review/elm-stuff/tests-0.19.1/js/node_runner.js +1 -1
- package/generator/review/elm-stuff/tests-0.19.1/js/node_supervisor.js +1 -1
- package/generator/src/RouteBuilder.elm +5 -5
- package/generator/src/compatibility-key.js +2 -2
- package/generator/template/app/Route/Index.elm +2 -2
- package/package.json +1 -1
- package/src/Form.elm +23 -22
- package/src/Pages/FormState.elm +6 -5
- package/src/Pages/{Msg.elm → Internal/Msg.elm} +26 -16
- package/src/Pages/Internal/Platform/Cli.elm +5 -5
- package/src/Pages/Internal/Platform/CompatibilityKey.elm +1 -1
- package/src/Pages/Internal/Platform.elm +22 -10
- package/src/Pages/ProgramConfig.elm +2 -2
- package/src/PagesMsg.elm +93 -0
- package/src/Pages/Internal/Platform/Cli.elm.bak +0 -1276
package/README.md
CHANGED
|
@@ -81,7 +81,7 @@ https://github.com/dillonkearns/elm-pages/projects
|
|
|
81
81
|
You will see an error if the NPM and Elm package do not have a matching Compatibility Key. Usually it's best to upgrade to the latest version of both the Elm and NPM
|
|
82
82
|
packages when you upgrade. However, in case you want to install versions that are behind the latest, the Compatibility Key is included here for reference.
|
|
83
83
|
|
|
84
|
-
Current Compatibility Key:
|
|
84
|
+
Current Compatibility Key: 11.
|
|
85
85
|
|
|
86
86
|
## Contributors ✨
|
|
87
87
|
|
|
@@ -26254,17 +26254,6 @@ var $author$project$Gen$Pages$Internal$Platform$Cli$annotation_ = {
|
|
|
26254
26254
|
])));
|
|
26255
26255
|
}
|
|
26256
26256
|
};
|
|
26257
|
-
var $author$project$Gen$Pages$Msg$annotation_ = {
|
|
26258
|
-
msg: function (msgArg0) {
|
|
26259
|
-
return A3(
|
|
26260
|
-
$author$project$Elm$Annotation$namedWith,
|
|
26261
|
-
_List_fromArray(
|
|
26262
|
-
['Pages', 'Msg']),
|
|
26263
|
-
'Msg',
|
|
26264
|
-
_List_fromArray(
|
|
26265
|
-
[msgArg0]));
|
|
26266
|
-
}
|
|
26267
|
-
};
|
|
26268
26257
|
var $author$project$Gen$Pages$Transition$moduleName_ = _List_fromArray(
|
|
26269
26258
|
['Pages', 'Transition']);
|
|
26270
26259
|
var $author$project$Gen$Pages$Transition$annotation_ = {
|
|
@@ -26323,11 +26312,33 @@ var $author$project$Gen$Pages$Transition$annotation_ = {
|
|
|
26323
26312
|
'Transition',
|
|
26324
26313
|
_List_Nil)
|
|
26325
26314
|
};
|
|
26315
|
+
var $author$project$Gen$PagesMsg$moduleName_ = _List_fromArray(
|
|
26316
|
+
['PagesMsg']);
|
|
26317
|
+
var $author$project$Gen$PagesMsg$annotation_ = {
|
|
26318
|
+
pagesMsg: function (pagesMsgArg0) {
|
|
26319
|
+
return A4(
|
|
26320
|
+
$author$project$Elm$Annotation$alias,
|
|
26321
|
+
$author$project$Gen$PagesMsg$moduleName_,
|
|
26322
|
+
'PagesMsg',
|
|
26323
|
+
_List_fromArray(
|
|
26324
|
+
[pagesMsgArg0]),
|
|
26325
|
+
A3(
|
|
26326
|
+
$author$project$Elm$Annotation$namedWith,
|
|
26327
|
+
_List_fromArray(
|
|
26328
|
+
['Pages', 'Internal', 'Msg']),
|
|
26329
|
+
'Msg',
|
|
26330
|
+
_List_fromArray(
|
|
26331
|
+
[
|
|
26332
|
+
$author$project$Elm$Annotation$var('userMsg')
|
|
26333
|
+
])));
|
|
26334
|
+
}
|
|
26335
|
+
};
|
|
26326
26336
|
var $author$project$Gen$Platform$Sub$annotation_ = {
|
|
26327
26337
|
sub: function (subArg0) {
|
|
26328
26338
|
return A3(
|
|
26329
26339
|
$author$project$Elm$Annotation$namedWith,
|
|
26330
|
-
|
|
26340
|
+
_List_fromArray(
|
|
26341
|
+
['Sub']),
|
|
26331
26342
|
'Sub',
|
|
26332
26343
|
_List_fromArray(
|
|
26333
26344
|
[subArg0]));
|
|
@@ -26978,7 +26989,7 @@ var $author$project$Gen$Platform$Sub$batch = function (batchArg) {
|
|
|
26978
26989
|
$author$project$Elm$Annotation$var('msg')
|
|
26979
26990
|
])))),
|
|
26980
26991
|
importFrom: _List_fromArray(
|
|
26981
|
-
['
|
|
26992
|
+
['Sub']),
|
|
26982
26993
|
name: 'batch'
|
|
26983
26994
|
}),
|
|
26984
26995
|
_List_fromArray(
|
|
@@ -29638,71 +29649,34 @@ var $author$project$Gen$Pages$Fetcher$call_ = {
|
|
|
29638
29649
|
[submitArg, submitArg0]));
|
|
29639
29650
|
})
|
|
29640
29651
|
};
|
|
29641
|
-
var $author$project$Gen$
|
|
29642
|
-
|
|
29643
|
-
|
|
29644
|
-
|
|
29645
|
-
|
|
29646
|
-
|
|
29647
|
-
|
|
29648
|
-
|
|
29649
|
-
|
|
29650
|
-
|
|
29652
|
+
var $author$project$Gen$PagesMsg$call_ = {
|
|
29653
|
+
fromMsg: function (fromMsgArg) {
|
|
29654
|
+
return A2(
|
|
29655
|
+
$author$project$Elm$apply,
|
|
29656
|
+
$author$project$Elm$value(
|
|
29657
|
+
{
|
|
29658
|
+
annotation: $elm$core$Maybe$Just(
|
|
29659
|
+
A2(
|
|
29660
|
+
$author$project$Elm$Annotation$function,
|
|
29661
|
+
_List_fromArray(
|
|
29662
|
+
[
|
|
29663
|
+
$author$project$Elm$Annotation$var('userMsg')
|
|
29664
|
+
]),
|
|
29665
|
+
A3(
|
|
29666
|
+
$author$project$Elm$Annotation$namedWith,
|
|
29667
|
+
_List_Nil,
|
|
29668
|
+
'PagesMsg',
|
|
29651
29669
|
_List_fromArray(
|
|
29652
29670
|
[
|
|
29653
|
-
|
|
29654
|
-
|
|
29655
|
-
|
|
29656
|
-
|
|
29657
|
-
|
|
29658
|
-
|
|
29659
|
-
|
|
29660
|
-
|
|
29661
|
-
|
|
29662
|
-
[
|
|
29663
|
-
$author$project$Elm$Annotation$record(
|
|
29664
|
-
_List_fromArray(
|
|
29665
|
-
[
|
|
29666
|
-
_Utils_Tuple2(
|
|
29667
|
-
'fields',
|
|
29668
|
-
$author$project$Elm$Annotation$list(
|
|
29669
|
-
A2($author$project$Elm$Annotation$tuple, $author$project$Elm$Annotation$string, $author$project$Elm$Annotation$string)))
|
|
29670
|
-
]))
|
|
29671
|
-
]),
|
|
29672
|
-
$author$project$Elm$Annotation$var('userMsg'))
|
|
29673
|
-
])),
|
|
29674
|
-
$author$project$Elm$Annotation$string,
|
|
29675
|
-
A2(
|
|
29676
|
-
$author$project$Elm$Annotation$function,
|
|
29677
|
-
_List_fromArray(
|
|
29678
|
-
[
|
|
29679
|
-
$author$project$Elm$Annotation$list(
|
|
29680
|
-
A2($author$project$Elm$Annotation$tuple, $author$project$Elm$Annotation$string, $author$project$Elm$Annotation$string))
|
|
29681
|
-
]),
|
|
29682
|
-
$author$project$Elm$Annotation$bool)
|
|
29683
|
-
]),
|
|
29684
|
-
A3(
|
|
29685
|
-
$author$project$Elm$Annotation$namedWith,
|
|
29686
|
-
_List_Nil,
|
|
29687
|
-
'Attribute',
|
|
29688
|
-
_List_fromArray(
|
|
29689
|
-
[
|
|
29690
|
-
A3(
|
|
29691
|
-
$author$project$Elm$Annotation$namedWith,
|
|
29692
|
-
_List_Nil,
|
|
29693
|
-
'Msg',
|
|
29694
|
-
_List_fromArray(
|
|
29695
|
-
[
|
|
29696
|
-
$author$project$Elm$Annotation$var('userMsg')
|
|
29697
|
-
]))
|
|
29698
|
-
])))),
|
|
29699
|
-
importFrom: _List_fromArray(
|
|
29700
|
-
['Pages', 'Msg']),
|
|
29701
|
-
name: 'fetcherOnSubmit'
|
|
29702
|
-
}),
|
|
29703
|
-
_List_fromArray(
|
|
29704
|
-
[fetcherOnSubmitArg, fetcherOnSubmitArg0, fetcherOnSubmitArg1]));
|
|
29705
|
-
}),
|
|
29671
|
+
$author$project$Elm$Annotation$var('userMsg')
|
|
29672
|
+
])))),
|
|
29673
|
+
importFrom: _List_fromArray(
|
|
29674
|
+
['PagesMsg']),
|
|
29675
|
+
name: 'fromMsg'
|
|
29676
|
+
}),
|
|
29677
|
+
_List_fromArray(
|
|
29678
|
+
[fromMsgArg]));
|
|
29679
|
+
},
|
|
29706
29680
|
map: F2(
|
|
29707
29681
|
function (mapArg, mapArg0) {
|
|
29708
29682
|
return A2(
|
|
@@ -29724,7 +29698,7 @@ var $author$project$Gen$Pages$Msg$call_ = {
|
|
|
29724
29698
|
A3(
|
|
29725
29699
|
$author$project$Elm$Annotation$namedWith,
|
|
29726
29700
|
_List_Nil,
|
|
29727
|
-
'
|
|
29701
|
+
'PagesMsg',
|
|
29728
29702
|
_List_fromArray(
|
|
29729
29703
|
[
|
|
29730
29704
|
$author$project$Elm$Annotation$var('a')
|
|
@@ -29733,60 +29707,17 @@ var $author$project$Gen$Pages$Msg$call_ = {
|
|
|
29733
29707
|
A3(
|
|
29734
29708
|
$author$project$Elm$Annotation$namedWith,
|
|
29735
29709
|
_List_Nil,
|
|
29736
|
-
'
|
|
29710
|
+
'PagesMsg',
|
|
29737
29711
|
_List_fromArray(
|
|
29738
29712
|
[
|
|
29739
29713
|
$author$project$Elm$Annotation$var('b')
|
|
29740
29714
|
])))),
|
|
29741
29715
|
importFrom: _List_fromArray(
|
|
29742
|
-
['
|
|
29716
|
+
['PagesMsg']),
|
|
29743
29717
|
name: 'map'
|
|
29744
29718
|
}),
|
|
29745
29719
|
_List_fromArray(
|
|
29746
29720
|
[mapArg, mapArg0]));
|
|
29747
|
-
}),
|
|
29748
|
-
submitIfValid: F2(
|
|
29749
|
-
function (submitIfValidArg, submitIfValidArg0) {
|
|
29750
|
-
return A2(
|
|
29751
|
-
$author$project$Elm$apply,
|
|
29752
|
-
$author$project$Elm$value(
|
|
29753
|
-
{
|
|
29754
|
-
annotation: $elm$core$Maybe$Just(
|
|
29755
|
-
A2(
|
|
29756
|
-
$author$project$Elm$Annotation$function,
|
|
29757
|
-
_List_fromArray(
|
|
29758
|
-
[
|
|
29759
|
-
$author$project$Elm$Annotation$string,
|
|
29760
|
-
A2(
|
|
29761
|
-
$author$project$Elm$Annotation$function,
|
|
29762
|
-
_List_fromArray(
|
|
29763
|
-
[
|
|
29764
|
-
$author$project$Elm$Annotation$list(
|
|
29765
|
-
A2($author$project$Elm$Annotation$tuple, $author$project$Elm$Annotation$string, $author$project$Elm$Annotation$string))
|
|
29766
|
-
]),
|
|
29767
|
-
$author$project$Elm$Annotation$bool)
|
|
29768
|
-
]),
|
|
29769
|
-
A3(
|
|
29770
|
-
$author$project$Elm$Annotation$namedWith,
|
|
29771
|
-
_List_Nil,
|
|
29772
|
-
'Attribute',
|
|
29773
|
-
_List_fromArray(
|
|
29774
|
-
[
|
|
29775
|
-
A3(
|
|
29776
|
-
$author$project$Elm$Annotation$namedWith,
|
|
29777
|
-
_List_Nil,
|
|
29778
|
-
'Msg',
|
|
29779
|
-
_List_fromArray(
|
|
29780
|
-
[
|
|
29781
|
-
$author$project$Elm$Annotation$var('userMsg')
|
|
29782
|
-
]))
|
|
29783
|
-
])))),
|
|
29784
|
-
importFrom: _List_fromArray(
|
|
29785
|
-
['Pages', 'Msg']),
|
|
29786
|
-
name: 'submitIfValid'
|
|
29787
|
-
}),
|
|
29788
|
-
_List_fromArray(
|
|
29789
|
-
[submitIfValidArg, submitIfValidArg0]));
|
|
29790
29721
|
})
|
|
29791
29722
|
};
|
|
29792
29723
|
var $author$project$Gen$Platform$Sub$call_ = {
|
|
@@ -29819,7 +29750,7 @@ var $author$project$Gen$Platform$Sub$call_ = {
|
|
|
29819
29750
|
$author$project$Elm$Annotation$var('msg')
|
|
29820
29751
|
])))),
|
|
29821
29752
|
importFrom: _List_fromArray(
|
|
29822
|
-
['
|
|
29753
|
+
['Sub']),
|
|
29823
29754
|
name: 'batch'
|
|
29824
29755
|
}),
|
|
29825
29756
|
_List_fromArray(
|
|
@@ -29861,7 +29792,7 @@ var $author$project$Gen$Platform$Sub$call_ = {
|
|
|
29861
29792
|
$author$project$Elm$Annotation$var('msg')
|
|
29862
29793
|
])))),
|
|
29863
29794
|
importFrom: _List_fromArray(
|
|
29864
|
-
['
|
|
29795
|
+
['Sub']),
|
|
29865
29796
|
name: 'map'
|
|
29866
29797
|
}),
|
|
29867
29798
|
_List_fromArray(
|
|
@@ -31236,6 +31167,33 @@ var $author$project$Elm$Extra$fnIgnore = function (expression) {
|
|
|
31236
31167
|
return expression;
|
|
31237
31168
|
});
|
|
31238
31169
|
};
|
|
31170
|
+
var $author$project$Gen$PagesMsg$fromMsg = function (fromMsgArg) {
|
|
31171
|
+
return A2(
|
|
31172
|
+
$author$project$Elm$apply,
|
|
31173
|
+
$author$project$Elm$value(
|
|
31174
|
+
{
|
|
31175
|
+
annotation: $elm$core$Maybe$Just(
|
|
31176
|
+
A2(
|
|
31177
|
+
$author$project$Elm$Annotation$function,
|
|
31178
|
+
_List_fromArray(
|
|
31179
|
+
[
|
|
31180
|
+
$author$project$Elm$Annotation$var('userMsg')
|
|
31181
|
+
]),
|
|
31182
|
+
A3(
|
|
31183
|
+
$author$project$Elm$Annotation$namedWith,
|
|
31184
|
+
_List_Nil,
|
|
31185
|
+
'PagesMsg',
|
|
31186
|
+
_List_fromArray(
|
|
31187
|
+
[
|
|
31188
|
+
$author$project$Elm$Annotation$var('userMsg')
|
|
31189
|
+
])))),
|
|
31190
|
+
importFrom: _List_fromArray(
|
|
31191
|
+
['PagesMsg']),
|
|
31192
|
+
name: 'fromMsg'
|
|
31193
|
+
}),
|
|
31194
|
+
_List_fromArray(
|
|
31195
|
+
[fromMsgArg]));
|
|
31196
|
+
};
|
|
31239
31197
|
var $author$project$Pages$Internal$RoutePattern$isStatic = function (routeParam) {
|
|
31240
31198
|
if (routeParam.$ === 'StaticParam') {
|
|
31241
31199
|
return true;
|
|
@@ -31383,115 +31341,6 @@ var $author$project$Gen$ApiRoute$literal = F2(
|
|
|
31383
31341
|
literalArg0
|
|
31384
31342
|
]));
|
|
31385
31343
|
});
|
|
31386
|
-
var $author$project$Gen$Pages$Msg$make_ = {
|
|
31387
|
-
formFieldEvent: function (ar0) {
|
|
31388
|
-
return A2(
|
|
31389
|
-
$author$project$Elm$apply,
|
|
31390
|
-
$author$project$Elm$value(
|
|
31391
|
-
{
|
|
31392
|
-
annotation: $elm$core$Maybe$Just(
|
|
31393
|
-
A3(
|
|
31394
|
-
$author$project$Elm$Annotation$namedWith,
|
|
31395
|
-
_List_Nil,
|
|
31396
|
-
'Msg',
|
|
31397
|
-
_List_fromArray(
|
|
31398
|
-
[
|
|
31399
|
-
$author$project$Elm$Annotation$var('userMsg')
|
|
31400
|
-
]))),
|
|
31401
|
-
importFrom: _List_fromArray(
|
|
31402
|
-
['Pages', 'Msg']),
|
|
31403
|
-
name: 'FormFieldEvent'
|
|
31404
|
-
}),
|
|
31405
|
-
_List_fromArray(
|
|
31406
|
-
[ar0]));
|
|
31407
|
-
},
|
|
31408
|
-
submit: function (ar0) {
|
|
31409
|
-
return A2(
|
|
31410
|
-
$author$project$Elm$apply,
|
|
31411
|
-
$author$project$Elm$value(
|
|
31412
|
-
{
|
|
31413
|
-
annotation: $elm$core$Maybe$Just(
|
|
31414
|
-
A3(
|
|
31415
|
-
$author$project$Elm$Annotation$namedWith,
|
|
31416
|
-
_List_Nil,
|
|
31417
|
-
'Msg',
|
|
31418
|
-
_List_fromArray(
|
|
31419
|
-
[
|
|
31420
|
-
$author$project$Elm$Annotation$var('userMsg')
|
|
31421
|
-
]))),
|
|
31422
|
-
importFrom: _List_fromArray(
|
|
31423
|
-
['Pages', 'Msg']),
|
|
31424
|
-
name: 'Submit'
|
|
31425
|
-
}),
|
|
31426
|
-
_List_fromArray(
|
|
31427
|
-
[ar0]));
|
|
31428
|
-
},
|
|
31429
|
-
submitFetcher: F4(
|
|
31430
|
-
function (ar0, ar1, ar2, ar3) {
|
|
31431
|
-
return A2(
|
|
31432
|
-
$author$project$Elm$apply,
|
|
31433
|
-
$author$project$Elm$value(
|
|
31434
|
-
{
|
|
31435
|
-
annotation: $elm$core$Maybe$Just(
|
|
31436
|
-
A3(
|
|
31437
|
-
$author$project$Elm$Annotation$namedWith,
|
|
31438
|
-
_List_Nil,
|
|
31439
|
-
'Msg',
|
|
31440
|
-
_List_fromArray(
|
|
31441
|
-
[
|
|
31442
|
-
$author$project$Elm$Annotation$var('userMsg')
|
|
31443
|
-
]))),
|
|
31444
|
-
importFrom: _List_fromArray(
|
|
31445
|
-
['Pages', 'Msg']),
|
|
31446
|
-
name: 'SubmitFetcher'
|
|
31447
|
-
}),
|
|
31448
|
-
_List_fromArray(
|
|
31449
|
-
[ar0, ar1, ar2, ar3]));
|
|
31450
|
-
}),
|
|
31451
|
-
submitIfValid: F3(
|
|
31452
|
-
function (ar0, ar1, ar2) {
|
|
31453
|
-
return A2(
|
|
31454
|
-
$author$project$Elm$apply,
|
|
31455
|
-
$author$project$Elm$value(
|
|
31456
|
-
{
|
|
31457
|
-
annotation: $elm$core$Maybe$Just(
|
|
31458
|
-
A3(
|
|
31459
|
-
$author$project$Elm$Annotation$namedWith,
|
|
31460
|
-
_List_Nil,
|
|
31461
|
-
'Msg',
|
|
31462
|
-
_List_fromArray(
|
|
31463
|
-
[
|
|
31464
|
-
$author$project$Elm$Annotation$var('userMsg')
|
|
31465
|
-
]))),
|
|
31466
|
-
importFrom: _List_fromArray(
|
|
31467
|
-
['Pages', 'Msg']),
|
|
31468
|
-
name: 'SubmitIfValid'
|
|
31469
|
-
}),
|
|
31470
|
-
_List_fromArray(
|
|
31471
|
-
[ar0, ar1, ar2]));
|
|
31472
|
-
}),
|
|
31473
|
-
userMsg: function (ar0) {
|
|
31474
|
-
return A2(
|
|
31475
|
-
$author$project$Elm$apply,
|
|
31476
|
-
$author$project$Elm$value(
|
|
31477
|
-
{
|
|
31478
|
-
annotation: $elm$core$Maybe$Just(
|
|
31479
|
-
A3(
|
|
31480
|
-
$author$project$Elm$Annotation$namedWith,
|
|
31481
|
-
_List_Nil,
|
|
31482
|
-
'Msg',
|
|
31483
|
-
_List_fromArray(
|
|
31484
|
-
[
|
|
31485
|
-
$author$project$Elm$Annotation$var('userMsg')
|
|
31486
|
-
]))),
|
|
31487
|
-
importFrom: _List_fromArray(
|
|
31488
|
-
['Pages', 'Msg']),
|
|
31489
|
-
name: 'UserMsg'
|
|
31490
|
-
}),
|
|
31491
|
-
_List_fromArray(
|
|
31492
|
-
[ar0]));
|
|
31493
|
-
}
|
|
31494
|
-
};
|
|
31495
31344
|
var $elm$core$Tuple$pair = F2(
|
|
31496
31345
|
function (a, b) {
|
|
31497
31346
|
return _Utils_Tuple2(a, b);
|
|
@@ -32032,7 +31881,7 @@ var $author$project$Gen$Platform$Sub$none = $author$project$Elm$value(
|
|
|
32032
31881
|
$author$project$Elm$Annotation$var('msg')
|
|
32033
31882
|
]))),
|
|
32034
31883
|
importFrom: _List_fromArray(
|
|
32035
|
-
['
|
|
31884
|
+
['Sub']),
|
|
32036
31885
|
name: 'none'
|
|
32037
31886
|
});
|
|
32038
31887
|
var $author$project$Elm$nothing = $author$project$Elm$maybe($elm$core$Maybe$Nothing);
|
|
@@ -36073,7 +35922,7 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
36073
35922
|
'body',
|
|
36074
35923
|
$author$project$Elm$Annotation$list(
|
|
36075
35924
|
$author$project$Gen$Html$annotation_.html(
|
|
36076
|
-
$author$project$Gen$
|
|
35925
|
+
$author$project$Gen$PagesMsg$annotation_.pagesMsg(
|
|
36077
35926
|
A2($author$project$Elm$Annotation$named, _List_Nil, 'Msg')))))
|
|
36078
35927
|
])))),
|
|
36079
35928
|
_Utils_Tuple2(
|
|
@@ -36133,7 +35982,7 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
36133
35982
|
$author$project$Elm$fn,
|
|
36134
35983
|
_Utils_Tuple2('myMsg', $elm$core$Maybe$Nothing),
|
|
36135
35984
|
function (myMsg) {
|
|
36136
|
-
return $author$project$Gen$
|
|
35985
|
+
return $author$project$Gen$PagesMsg$fromMsg(
|
|
36137
35986
|
A2(
|
|
36138
35987
|
$author$project$Elm$apply,
|
|
36139
35988
|
$author$project$Elm$val('MsgGlobal'),
|
|
@@ -36155,7 +36004,7 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
36155
36004
|
$author$project$Elm$functionReduced,
|
|
36156
36005
|
'myMsg',
|
|
36157
36006
|
function (myMsg) {
|
|
36158
|
-
return $author$project$Gen$
|
|
36007
|
+
return $author$project$Gen$PagesMsg$fromMsg(
|
|
36159
36008
|
A2(
|
|
36160
36009
|
$author$project$Elm$apply,
|
|
36161
36010
|
$author$project$Elm$val('MsgErrorPage____'),
|
|
@@ -36274,7 +36123,7 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
36274
36123
|
$author$project$Elm$fn,
|
|
36275
36124
|
_Utils_Tuple2('myMsg', $elm$core$Maybe$Nothing),
|
|
36276
36125
|
function (myMsg) {
|
|
36277
|
-
return $author$project$Gen$
|
|
36126
|
+
return $author$project$Gen$PagesMsg$fromMsg(
|
|
36278
36127
|
A2(
|
|
36279
36128
|
$author$project$Elm$apply,
|
|
36280
36129
|
$author$project$Elm$val('MsgGlobal'),
|
|
@@ -36295,7 +36144,7 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
36295
36144
|
A2(
|
|
36296
36145
|
$author$project$Elm$functionReduced,
|
|
36297
36146
|
'innerPageMsg',
|
|
36298
|
-
$author$project$Gen$
|
|
36147
|
+
$author$project$Gen$PagesMsg$call_.map(
|
|
36299
36148
|
A2($author$project$GenerateMain$routeVariantExpression, $author$project$GenerateMain$Msg, route))),
|
|
36300
36149
|
A2(
|
|
36301
36150
|
$author$project$Elm$apply,
|
|
Binary file
|
|
@@ -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:
|
|
78
|
+
const flags = { initialSeed: 4148740016, 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
|
|
Binary file
|
|
@@ -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:
|
|
78
|
+
const flags = { initialSeed: 1833568720, 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
|
|
@@ -97,7 +97,7 @@ import Pages.Fetcher
|
|
|
97
97
|
import Pages.FormState
|
|
98
98
|
import Pages.Internal.NotFoundReason exposing (NotFoundReason)
|
|
99
99
|
import Pages.Internal.RoutePattern exposing (RoutePattern)
|
|
100
|
-
import
|
|
100
|
+
import PagesMsg exposing (PagesMsg)
|
|
101
101
|
import Pages.PageUrl exposing (PageUrl)
|
|
102
102
|
import Pages.Transition
|
|
103
103
|
import Path exposing (Path)
|
|
@@ -117,7 +117,7 @@ type alias StatefulRoute routeParams data action model msg =
|
|
|
117
117
|
-> Shared.Model
|
|
118
118
|
-> model
|
|
119
119
|
-> StaticPayload data action routeParams
|
|
120
|
-
-> View (
|
|
120
|
+
-> View (PagesMsg msg)
|
|
121
121
|
, head :
|
|
122
122
|
StaticPayload data action routeParams
|
|
123
123
|
-> List Head.Tag
|
|
@@ -176,7 +176,7 @@ buildNoState :
|
|
|
176
176
|
Maybe PageUrl
|
|
177
177
|
-> Shared.Model
|
|
178
178
|
-> StaticPayload data action routeParams
|
|
179
|
-
-> View (
|
|
179
|
+
-> View (PagesMsg ())
|
|
180
180
|
}
|
|
181
181
|
-> Builder routeParams data action
|
|
182
182
|
-> StatefulRoute routeParams data action {} ()
|
|
@@ -212,7 +212,7 @@ buildWithLocalState :
|
|
|
212
212
|
-> Shared.Model
|
|
213
213
|
-> model
|
|
214
214
|
-> StaticPayload data action routeParams
|
|
215
|
-
-> View (
|
|
215
|
+
-> View (PagesMsg msg)
|
|
216
216
|
, init : Maybe PageUrl -> Shared.Model -> StaticPayload data action routeParams -> ( model, Effect msg )
|
|
217
217
|
, update : PageUrl -> Shared.Model -> StaticPayload data action routeParams -> msg -> model -> ( model, Effect msg )
|
|
218
218
|
, subscriptions : Maybe PageUrl -> routeParams -> Path -> Shared.Model -> model -> Sub msg
|
|
@@ -258,7 +258,7 @@ buildWithSharedState :
|
|
|
258
258
|
-> Shared.Model
|
|
259
259
|
-> model
|
|
260
260
|
-> StaticPayload data action routeParams
|
|
261
|
-
-> View (
|
|
261
|
+
-> View (PagesMsg msg)
|
|
262
262
|
, init : Maybe PageUrl -> Shared.Model -> StaticPayload data action routeParams -> ( model, Effect msg )
|
|
263
263
|
, update : PageUrl -> Shared.Model -> StaticPayload data action routeParams -> msg -> model -> ( model, Effect msg, Maybe Shared.Msg )
|
|
264
264
|
, subscriptions : Maybe PageUrl -> routeParams -> Path -> Shared.Model -> model -> Sub msg
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export const compatibilityKey =
|
|
1
|
+
export const compatibilityKey = 11;
|
|
2
2
|
|
|
3
|
-
export const packageVersion = "3.0.0-beta.
|
|
3
|
+
export const packageVersion = "3.0.0-beta.27";
|
|
@@ -6,7 +6,7 @@ import Head
|
|
|
6
6
|
import Head.Seo as Seo
|
|
7
7
|
import Html
|
|
8
8
|
import Html.Styled.Attributes as Attr
|
|
9
|
-
import
|
|
9
|
+
import PagesMsg exposing (PagesMsg)
|
|
10
10
|
import Pages.PageUrl exposing (PageUrl)
|
|
11
11
|
import Pages.Url
|
|
12
12
|
import Path
|
|
@@ -74,7 +74,7 @@ view :
|
|
|
74
74
|
Maybe PageUrl
|
|
75
75
|
-> Shared.Model
|
|
76
76
|
-> StaticPayload Data ActionData RouteParams
|
|
77
|
-
-> View (
|
|
77
|
+
-> View (PagesMsg Msg)
|
|
78
78
|
view maybeUrl sharedModel static =
|
|
79
79
|
{ title = "elm-pages is running"
|
|
80
80
|
, body =
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "elm-pages",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.0.0-beta.
|
|
4
|
+
"version": "3.0.0-beta.27",
|
|
5
5
|
"homepage": "https://elm-pages.com",
|
|
6
6
|
"moduleResolution": "node",
|
|
7
7
|
"description": "Type-safe static sites, written in pure elm with your own custom elm-markup syntax.",
|