elm-pages 3.0.18 → 3.0.19

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.
@@ -26079,6 +26079,32 @@ var $author$project$Gen$Pages$Internal$Platform$annotation_ = {
26079
26079
  ]))
26080
26080
  ])));
26081
26081
  }),
26082
+ programConfig: F9(
26083
+ function (programConfigArg0, programConfigArg1, programConfigArg2, programConfigArg3, programConfigArg4, programConfigArg5, programConfigArg6, programConfigArg7, programConfigArg8) {
26084
+ return A4(
26085
+ $mdgriffith$elm_codegen$Elm$Annotation$alias,
26086
+ $author$project$Gen$Pages$Internal$Platform$moduleName_,
26087
+ 'ProgramConfig',
26088
+ _List_fromArray(
26089
+ [programConfigArg0, programConfigArg1, programConfigArg2, programConfigArg3, programConfigArg4, programConfigArg5, programConfigArg6, programConfigArg7, programConfigArg8]),
26090
+ A3(
26091
+ $mdgriffith$elm_codegen$Elm$Annotation$namedWith,
26092
+ _List_fromArray(
26093
+ ['Pages', 'ProgramConfig']),
26094
+ 'ProgramConfig',
26095
+ _List_fromArray(
26096
+ [
26097
+ $mdgriffith$elm_codegen$Elm$Annotation$var('userMsg'),
26098
+ $mdgriffith$elm_codegen$Elm$Annotation$var('userModel'),
26099
+ $mdgriffith$elm_codegen$Elm$Annotation$var('route'),
26100
+ $mdgriffith$elm_codegen$Elm$Annotation$var('pageData'),
26101
+ $mdgriffith$elm_codegen$Elm$Annotation$var('actionData'),
26102
+ $mdgriffith$elm_codegen$Elm$Annotation$var('sharedData'),
26103
+ $mdgriffith$elm_codegen$Elm$Annotation$var('effect'),
26104
+ $mdgriffith$elm_codegen$Elm$Annotation$var('mappedMsg'),
26105
+ $mdgriffith$elm_codegen$Elm$Annotation$var('errorPage')
26106
+ ])));
26107
+ }),
26082
26108
  requestInfo: A4(
26083
26109
  $mdgriffith$elm_codegen$Elm$Annotation$alias,
26084
26110
  $author$project$Gen$Pages$Internal$Platform$moduleName_,
@@ -26202,7 +26228,33 @@ var $author$project$Gen$Pages$Internal$Platform$Cli$annotation_ = {
26202
26228
  'Msg',
26203
26229
  _List_Nil)
26204
26230
  ])));
26205
- }
26231
+ },
26232
+ programConfig: F9(
26233
+ function (programConfigArg0, programConfigArg1, programConfigArg2, programConfigArg3, programConfigArg4, programConfigArg5, programConfigArg6, programConfigArg7, programConfigArg8) {
26234
+ return A4(
26235
+ $mdgriffith$elm_codegen$Elm$Annotation$alias,
26236
+ $author$project$Gen$Pages$Internal$Platform$Cli$moduleName_,
26237
+ 'ProgramConfig',
26238
+ _List_fromArray(
26239
+ [programConfigArg0, programConfigArg1, programConfigArg2, programConfigArg3, programConfigArg4, programConfigArg5, programConfigArg6, programConfigArg7, programConfigArg8]),
26240
+ A3(
26241
+ $mdgriffith$elm_codegen$Elm$Annotation$namedWith,
26242
+ _List_fromArray(
26243
+ ['Pages', 'ProgramConfig']),
26244
+ 'ProgramConfig',
26245
+ _List_fromArray(
26246
+ [
26247
+ $mdgriffith$elm_codegen$Elm$Annotation$var('userMsg'),
26248
+ $mdgriffith$elm_codegen$Elm$Annotation$var('userModel'),
26249
+ $mdgriffith$elm_codegen$Elm$Annotation$var('route'),
26250
+ $mdgriffith$elm_codegen$Elm$Annotation$var('pageData'),
26251
+ $mdgriffith$elm_codegen$Elm$Annotation$var('actionData'),
26252
+ $mdgriffith$elm_codegen$Elm$Annotation$var('sharedData'),
26253
+ $mdgriffith$elm_codegen$Elm$Annotation$var('effect'),
26254
+ $mdgriffith$elm_codegen$Elm$Annotation$var('mappedMsg'),
26255
+ $mdgriffith$elm_codegen$Elm$Annotation$var('errorPage')
26256
+ ])));
26257
+ })
26206
26258
  };
26207
26259
  var $author$project$Gen$PagesMsg$moduleName_ = _List_fromArray(
26208
26260
  ['PagesMsg']);
@@ -26341,7 +26393,7 @@ var $author$project$Gen$Pages$Internal$Platform$application = function (applicat
26341
26393
  A3(
26342
26394
  $mdgriffith$elm_codegen$Elm$Annotation$namedWith,
26343
26395
  _List_fromArray(
26344
- ['Pages', 'ProgramConfig']),
26396
+ ['Pages', 'Internal', 'Platform']),
26345
26397
  'ProgramConfig',
26346
26398
  _List_fromArray(
26347
26399
  [
@@ -31089,7 +31141,7 @@ var $author$project$Gen$Pages$Internal$Platform$Cli$cliApplication = function (c
31089
31141
  A3(
31090
31142
  $mdgriffith$elm_codegen$Elm$Annotation$namedWith,
31091
31143
  _List_fromArray(
31092
- ['Pages', 'ProgramConfig']),
31144
+ ['Pages', 'Internal', 'Platform', 'Cli']),
31093
31145
  'ProgramConfig',
31094
31146
  _List_fromArray(
31095
31147
  [
@@ -292,8 +292,7 @@ export async function render(request) {
292
292
  processedIndexTemplate
293
293
  );
294
294
  } catch (error) {
295
- console.trace(error);
296
- if (error) {
295
+ if(error) {
297
296
  console.error(restoreColorSafe(error));
298
297
  }
299
298
  buildError = true;
@@ -1,3 +1,3 @@
1
1
  export const compatibilityKey = 22;
2
2
 
3
- export const packageVersion = "3.0.16";
3
+ export const packageVersion = "3.0.19";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "elm-pages",
3
3
  "type": "module",
4
- "version": "3.0.18",
4
+ "version": "3.0.19",
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.",
@@ -1,8 +1,8 @@
1
- module Pages.Internal.Platform.Cli exposing (Flags, Model, Msg(..), Program, cliApplication, init, requestDecoder, update, currentCompatibilityKey)
1
+ module Pages.Internal.Platform.Cli exposing (Flags, Model, Msg(..), ProgramConfig, Program, cliApplication, init, requestDecoder, update, currentCompatibilityKey)
2
2
 
3
3
  {-| Exposed for internal use only (used in generated code).
4
4
 
5
- @docs Flags, Model, Msg, Program, cliApplication, init, requestDecoder, update, currentCompatibilityKey
5
+ @docs Flags, Model, Msg, ProgramConfig, Program, cliApplication, init, requestDecoder, update, currentCompatibilityKey
6
6
 
7
7
  -}
8
8
 
@@ -29,7 +29,7 @@ import Pages.Internal.Platform.Effect as Effect exposing (Effect)
29
29
  import Pages.Internal.Platform.StaticResponses as StaticResponses
30
30
  import Pages.Internal.Platform.ToJsPayload as ToJsPayload
31
31
  import Pages.Internal.ResponseSketch as ResponseSketch
32
- import Pages.ProgramConfig exposing (ProgramConfig)
32
+ import Pages.ProgramConfig
33
33
  import Pages.SiteConfig exposing (SiteConfig)
34
34
  import Pages.StaticHttp.Request
35
35
  import PagesMsg exposing (PagesMsg)
@@ -71,6 +71,11 @@ type alias Program route =
71
71
  Platform.Program Flags (Model route) Msg
72
72
 
73
73
 
74
+ {-| -}
75
+ type alias ProgramConfig userMsg userModel route pageData actionData sharedData effect mappedMsg errorPage =
76
+ Pages.ProgramConfig.ProgramConfig userMsg userModel route pageData actionData sharedData effect mappedMsg errorPage
77
+
78
+
74
79
  {-| -}
75
80
  cliApplication :
76
81
  ProgramConfig userMsg userModel (Maybe route) pageData actionData sharedData effect mappedMsg errorPage
@@ -1,11 +1,11 @@
1
1
  module Pages.Internal.Platform exposing
2
- ( Flags, Model, Msg(..), Program, application, init, update
2
+ ( Flags, Model, Msg(..), Program, ProgramConfig, application, init, update
3
3
  , Effect(..), RequestInfo, view
4
4
  )
5
5
 
6
6
  {-| Exposed for internal use only (used in generated code).
7
7
 
8
- @docs Flags, Model, Msg, Program, application, init, update
8
+ @docs Flags, Model, Msg, Program, ProgramConfig, application, init, update
9
9
 
10
10
  @docs Effect, RequestInfo, view
11
11
 
@@ -35,7 +35,7 @@ import Pages.Internal.NotFoundReason exposing (NotFoundReason)
35
35
  import Pages.Internal.ResponseSketch as ResponseSketch exposing (ResponseSketch)
36
36
  import Pages.Internal.String as String
37
37
  import Pages.Navigation
38
- import Pages.ProgramConfig exposing (ProgramConfig)
38
+ import Pages.ProgramConfig
39
39
  import Pages.StaticHttpRequest as StaticHttpRequest
40
40
  import PagesMsg exposing (PagesMsg)
41
41
  import QueryParams
@@ -50,6 +50,11 @@ type alias Program userModel userMsg pageData actionData sharedData errorPage =
50
50
  Platform.Program Flags (Model userModel pageData actionData sharedData) (Msg userMsg pageData actionData sharedData errorPage)
51
51
 
52
52
 
53
+ {-| -}
54
+ type alias ProgramConfig userMsg userModel route pageData actionData sharedData effect mappedMsg errorPage =
55
+ Pages.ProgramConfig.ProgramConfig userMsg userModel route pageData actionData sharedData effect mappedMsg errorPage
56
+
57
+
53
58
  mainView :
54
59
  ProgramConfig userMsg userModel route pageData actionData sharedData effect (Msg userMsg pageData actionData sharedData errorPage) errorPage
55
60
  -> Model userModel pageData actionData sharedData