@luzzle/web.utils 0.0.12 → 0.0.13

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 (49) hide show
  1. package/dist/src/index.d.ts +5 -0
  2. package/dist/src/index.js +3 -0
  3. package/dist/src/index.js.map +1 -0
  4. package/dist/src/lib/assets.d.ts +17 -0
  5. package/dist/src/lib/assets.js +52 -0
  6. package/dist/src/lib/assets.js.map +1 -0
  7. package/dist/src/lib/assets.test.d.ts +1 -0
  8. package/dist/src/lib/assets.test.js +67 -0
  9. package/dist/src/lib/assets.test.js.map +1 -0
  10. package/dist/src/lib/config/config.d.ts +9 -0
  11. package/dist/src/lib/config/config.js +56 -0
  12. package/dist/src/lib/config/config.js.map +1 -0
  13. package/dist/src/lib/config/config.test.d.ts +1 -0
  14. package/dist/src/lib/config/config.test.js +71 -0
  15. package/dist/src/lib/config/config.test.js.map +1 -0
  16. package/dist/src/lib/config/config.test.ts +88 -0
  17. package/dist/src/lib/config/config.ts +74 -0
  18. package/dist/src/lib/config/defaults.json +145 -0
  19. package/dist/src/lib/config/defaults.yaml +151 -0
  20. package/dist/src/lib/config/schema.d.ts +172 -0
  21. package/dist/src/lib/config/schema.js +8 -0
  22. package/dist/src/lib/config/schema.js.map +1 -0
  23. package/dist/src/lib/config/schema.json +663 -0
  24. package/dist/src/lib/config/schema.ts +294 -0
  25. package/dist/src/lib/config/user-error.config.yaml +2 -0
  26. package/dist/src/lib/config/user.config.yaml +2 -0
  27. package/dist/src/lib/deep-merge.d.ts +1 -0
  28. package/dist/src/lib/deep-merge.js +27 -0
  29. package/dist/src/lib/deep-merge.js.map +1 -0
  30. package/dist/src/lib/deep-merge.test.d.ts +1 -0
  31. package/dist/src/lib/deep-merge.test.js +29 -0
  32. package/dist/src/lib/deep-merge.test.js.map +1 -0
  33. package/dist/src/lib/sqlite.d.ts +22 -0
  34. package/dist/src/lib/sqlite.js +2 -0
  35. package/dist/src/lib/sqlite.js.map +1 -0
  36. package/dist/src/lib/types.d.ts +42 -0
  37. package/dist/src/lib/types.js +2 -0
  38. package/dist/src/lib/types.js.map +1 -0
  39. package/dist/src/lib/vibrant.d.ts +16 -0
  40. package/dist/src/lib/vibrant.js +78 -0
  41. package/dist/src/lib/vibrant.js.map +1 -0
  42. package/dist/src/lib/vibrant.test.d.ts +1 -0
  43. package/dist/src/lib/vibrant.test.js +150 -0
  44. package/dist/src/lib/vibrant.test.js.map +1 -0
  45. package/dist/src/server.d.ts +3 -0
  46. package/dist/src/server.js +4 -0
  47. package/dist/src/server.js.map +1 -0
  48. package/dist/tsconfig.tsbuildinfo +1 -0
  49. package/package.json +1 -1
@@ -0,0 +1,151 @@
1
+ # Default configuration for Luzzle Web Explorer.
2
+ # These values can be overridden by a user-provided config.yaml
3
+ # or by environment variables.
4
+
5
+ # Defines the key URLs required for the application to function correctly.
6
+ url:
7
+ # The primary, public-facing URL of this Luzzle Explorer instance.
8
+ app: ''
9
+
10
+ # The base URL for _app assets hosted on a separate CDN or file server.
11
+ app_assets: ''
12
+
13
+ # The base URL for assets hosted on a separate CDN or file server.
14
+ luzzle_assets: ''
15
+
16
+ # The URL for the Luzzle Editor instance, used for edit links.
17
+ editor: 'http://editor.localhost'
18
+
19
+ # general app text strings
20
+ text:
21
+ title: 'Luzzle Explorer'
22
+ description: 'A Luzzle Explorer instance'
23
+
24
+ paths:
25
+ # The connection URL for the database.
26
+ database: './data/luzzle.sqlite'
27
+
28
+ pieces: []
29
+
30
+ theme:
31
+ globals:
32
+ shadow-raised: '0px 3px 1px -2px rgba(251 241 199 / 20%), 0px 2px 2px 0px rgba(251 241 199 / 14%), 0px 1px 5px 0px rgba(0 0 0 / 12%)'
33
+ font-sans-name: '"Noto Sans"'
34
+ font-mono-name: '"monaco, monospace"'
35
+ font-sans-url: '"/fonts/noto-sans.woff2"'
36
+ font-sans-weight: '300 600'
37
+ font-size-xxs: '0.7rem'
38
+ font-size-xs: '0.825rem'
39
+ font-size-small: '1rem'
40
+ font-size-normal: '1.25rem'
41
+ font-size-medium: '1.5rem'
42
+ font-size-large: '1.75rem'
43
+ font-size-xl: '2rem'
44
+ font-size-xxl: '2.25rem'
45
+ font-size-mobile-responsive-factor: 0.8
46
+ font-size-root: 22
47
+ font-weight-light: 300
48
+ font-weight-normal: 400
49
+ font-weight-medium: 500
50
+ font-weight-semibold: 550
51
+ font-weight-bold: 600
52
+ radius-none: '0'
53
+ radius-small: '0.25rem'
54
+ radius-medium: '0.375rem'
55
+ radius-large: '0.5rem'
56
+ radius-xl: '0.75rem'
57
+ radius-x2l: '1rem'
58
+ radius-x3l: '1.5rem'
59
+ radius-x4l: '2.5rem'
60
+ radius-full: '9999px'
61
+ breakpoint-phone: 640
62
+ breakpoint-tablet: 768
63
+ breakpoint-laptop: 1024
64
+ breakpoint-desktop: 1280
65
+ space-1: '0.25rem'
66
+ space-2: '0.5rem'
67
+ space-3: '0.75rem'
68
+ space-4: '1rem'
69
+ space-5: '1.25rem'
70
+ space-6: '1.5rem'
71
+ space-7: '1.75rem'
72
+ space-8: '2rem'
73
+ space-9: '2.25rem'
74
+ space-10: '2.5rem'
75
+ space-0-5: '0.125rem'
76
+ space-1-5: '0.375rem'
77
+ space-2-5: '0.625rem'
78
+ space-3-5: '0.875rem'
79
+ dark:
80
+ color-primary: '#3b82f6'
81
+ color-on-primary: '#ffffff'
82
+ color-primary-container: '#0d6efd'
83
+ color-on-primary-container: '#cfe2ff'
84
+ color-secondary: '#adb5bd'
85
+ color-on-secondary: '#212529'
86
+ color-secondary-container: '#495057'
87
+ color-on-secondary-container: '#d3d3d4'
88
+ color-tertiary: '#adb5bd'
89
+ color-on-tertiary: '#212529'
90
+ color-tertiary-container: '#495057'
91
+ color-on-tertiary-container: '#d3d3d4'
92
+ color-error: '#f87171'
93
+ color-on-error: '#4f0b0b'
94
+ color-error-container: '#dc3545'
95
+ color-on-error-container: '#f8d7da'
96
+ color-surface: '#121212'
97
+ color-surface-dim: '#1f1f1f'
98
+ color-surface-bright: '#333333'
99
+ color-surface-inverse: '#e9ecef'
100
+ color-on-surface: '#e9ecef'
101
+ color-on-surface-variant: '#adb5bd'
102
+ color-on-surface-inverse: '#121212'
103
+ color-surface-container-lowest: '#1f1f1f'
104
+ color-surface-container-low: '#333333'
105
+ color-surface-container: '#4f4f4f'
106
+ color-surface-container-high: '#666666'
107
+ color-surface-container-highest: '#7f7f7f'
108
+ color-shadow: 'hsla(0, 0%, 0%, 0.5)'
109
+ color-outline: '#6c757d'
110
+ color-outline-variant: '#495057'
111
+ light:
112
+ color-primary: '#0d6efd'
113
+ color-on-primary: '#ffffff'
114
+ color-primary-container: '#cfe2ff'
115
+ color-on-primary-container: '#084298'
116
+ color-secondary: '#6c757d'
117
+ color-on-secondary: '#ffffff'
118
+ color-secondary-container: '#d3d3d4'
119
+ color-on-secondary-container: '#41464b'
120
+ color-tertiary: '#6c757d'
121
+ color-on-tertiary: '#ffffff'
122
+ color-tertiary-container: '#d3d3d4'
123
+ color-on-tertiary-container: '#41464b'
124
+ color-error: '#dc3545'
125
+ color-on-error: '#ffffff'
126
+ color-error-container: '#f8d7da'
127
+ color-on-error-container: '#842029'
128
+ color-surface: '#f8f9fa'
129
+ color-surface-dim: '#e9ecef'
130
+ color-surface-bright: '#ffffff'
131
+ color-surface-inverse: '#212529'
132
+ color-on-surface: '#212529'
133
+ color-on-surface-variant: '#495057'
134
+ color-on-surface-inverse: '#f8f9fa'
135
+ color-surface-container-lowest: '#ffffff'
136
+ color-surface-container-low: '#e9ecef'
137
+ color-surface-container: '#dee2e6'
138
+ color-surface-container-high: '#ced4da'
139
+ color-surface-container-highest: '#adb5bd'
140
+ color-shadow: 'hsla(0, 0%, 0%, 0.15)'
141
+ color-outline: '#6c757d'
142
+ color-outline-variant: '#ced4da'
143
+ markdown:
144
+ code:
145
+ light: 'github-light'
146
+ dark: 'github-dark'
147
+ sidenote:
148
+ sidenote-callout-before-content: '"[ "'
149
+ sidenote-callout-after-content: '" ]"'
150
+ sidenote-citation-before-content: '""'
151
+ sidenote-citation-after-content: '":"'
@@ -0,0 +1,172 @@
1
+ /**
2
+ * This file was automatically generated by json-schema-to-typescript.
3
+ * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
4
+ * and run json-schema-to-typescript to regenerate this file.
5
+ */
6
+ export interface Schema {
7
+ url: {
8
+ app: string;
9
+ app_assets: string;
10
+ luzzle_assets: string;
11
+ editor: string;
12
+ };
13
+ text: {
14
+ title: string;
15
+ description: string;
16
+ };
17
+ paths: {
18
+ database: string;
19
+ config?: string;
20
+ };
21
+ content?: {
22
+ block?: {
23
+ root?: string;
24
+ feed?: string;
25
+ };
26
+ };
27
+ pieces: {
28
+ type: string;
29
+ fields: {
30
+ media?: string;
31
+ title: string;
32
+ summary?: string;
33
+ date_consumed: string;
34
+ tags?: string;
35
+ assets?: string[];
36
+ };
37
+ components?: {
38
+ icon?: string;
39
+ opengraph?: string;
40
+ page?: string;
41
+ };
42
+ }[];
43
+ theme: {
44
+ light: {
45
+ "color-primary"?: string;
46
+ "color-on-primary"?: string;
47
+ "color-primary-container"?: string;
48
+ "color-on-primary-container"?: string;
49
+ "color-secondary"?: string;
50
+ "color-on-secondary"?: string;
51
+ "color-secondary-container"?: string;
52
+ "color-on-secondary-container"?: string;
53
+ "color-tertiary"?: string;
54
+ "color-on-tertiary"?: string;
55
+ "color-tertiary-container"?: string;
56
+ "color-on-tertiary-container"?: string;
57
+ "color-error"?: string;
58
+ "color-on-error"?: string;
59
+ "color-error-container"?: string;
60
+ "color-on-error-container"?: string;
61
+ "color-surface"?: string;
62
+ "color-surface-dim"?: string;
63
+ "color-surface-bright"?: string;
64
+ "color-surface-inverse"?: string;
65
+ "color-on-surface"?: string;
66
+ "color-on-surface-variant"?: string;
67
+ "color-on-surface-inverse"?: string;
68
+ "color-surface-container-lowest"?: string;
69
+ "color-surface-container-low"?: string;
70
+ "color-surface-container"?: string;
71
+ "color-surface-container-high"?: string;
72
+ "color-surface-container-highest"?: string;
73
+ "color-shadow"?: string;
74
+ "color-outline"?: string;
75
+ "color-outline-variant"?: string;
76
+ };
77
+ dark: {
78
+ "color-primary"?: string;
79
+ "color-on-primary"?: string;
80
+ "color-primary-container"?: string;
81
+ "color-on-primary-container"?: string;
82
+ "color-secondary"?: string;
83
+ "color-on-secondary"?: string;
84
+ "color-secondary-container"?: string;
85
+ "color-on-secondary-container"?: string;
86
+ "color-tertiary"?: string;
87
+ "color-on-tertiary"?: string;
88
+ "color-tertiary-container"?: string;
89
+ "color-on-tertiary-container"?: string;
90
+ "color-error"?: string;
91
+ "color-on-error"?: string;
92
+ "color-error-container"?: string;
93
+ "color-on-error-container"?: string;
94
+ "color-surface"?: string;
95
+ "color-surface-dim"?: string;
96
+ "color-surface-bright"?: string;
97
+ "color-surface-inverse"?: string;
98
+ "color-on-surface"?: string;
99
+ "color-on-surface-variant"?: string;
100
+ "color-on-surface-inverse"?: string;
101
+ "color-surface-container-lowest"?: string;
102
+ "color-surface-container-low"?: string;
103
+ "color-surface-container"?: string;
104
+ "color-surface-container-high"?: string;
105
+ "color-surface-container-highest"?: string;
106
+ "color-shadow"?: string;
107
+ "color-outline"?: string;
108
+ "color-outline-variant"?: string;
109
+ };
110
+ globals: {
111
+ "shadow-raised"?: string;
112
+ "font-mono-name"?: string;
113
+ "font-sans-name"?: string;
114
+ "font-sans-url"?: string;
115
+ "font-sans-weight"?: string;
116
+ "font-size-xxs"?: string;
117
+ "font-size-xs"?: string;
118
+ "font-size-small"?: string;
119
+ "font-size-normal"?: string;
120
+ "font-size-medium"?: string;
121
+ "font-size-large"?: string;
122
+ "font-size-xl"?: string;
123
+ "font-size-xxl"?: string;
124
+ "font-size-mobile-responsive-factor"?: number;
125
+ "font-size-root"?: number;
126
+ "font-weight-light"?: number;
127
+ "font-weight-normal"?: number;
128
+ "font-weight-medium"?: number;
129
+ "font-weight-semibold"?: number;
130
+ "font-weight-bold"?: number;
131
+ "radius-none"?: string;
132
+ "radius-small"?: string;
133
+ "radius-medium"?: string;
134
+ "radius-large"?: string;
135
+ "radius-xl"?: string;
136
+ "radius-x2l"?: string;
137
+ "radius-x3l"?: string;
138
+ "radius-x4l"?: string;
139
+ "radius-full"?: string;
140
+ "breakpoint-phone"?: number;
141
+ "breakpoint-tablet"?: number;
142
+ "breakpoint-laptop"?: number;
143
+ "breakpoint-desktop"?: number;
144
+ "space-1"?: string;
145
+ "space-2"?: string;
146
+ "space-3"?: string;
147
+ "space-4"?: string;
148
+ "space-5"?: string;
149
+ "space-6"?: string;
150
+ "space-7"?: string;
151
+ "space-8"?: string;
152
+ "space-9"?: string;
153
+ "space-10"?: string;
154
+ "space-0-5"?: string;
155
+ "space-1-5"?: string;
156
+ "space-2-5"?: string;
157
+ "space-3-5"?: string;
158
+ };
159
+ markdown: {
160
+ sidenote: {
161
+ "sidenote-callout-before-content"?: string;
162
+ "sidenote-callout-after-content"?: string;
163
+ "sidenote-citation-before-content"?: string;
164
+ "sidenote-citation-after-content"?: string;
165
+ };
166
+ code: {
167
+ light: "andromeeda" | "aurora-x" | "ayu-dark" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "everforest-dark" | "everforest-light" | "github-dark" | "github-dark-default" | "github-dark-dimmed" | "github-dark-high-contrast" | "github-light" | "github-light-default" | "github-light-high-contrast" | "gruvbox-dark-hard" | "gruvbox-dark-medium" | "gruvbox-dark-soft" | "gruvbox-light-hard" | "gruvbox-light-medium" | "gruvbox-light-soft" | "houston" | "kanagawa-dragon" | "kanagawa-lotus" | "kanagawa-wave" | "laserwave" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "night-owl" | "nord" | "one-dark-pro" | "one-light" | "plastic" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "snazzy-light" | "solarized-dark" | "solarized-light" | "synthwave-84" | "tokyo-night" | "vesper" | "vitesse-black" | "vitesse-dark" | "vitesse-light";
168
+ dark: "andromeeda" | "aurora-x" | "ayu-dark" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "everforest-dark" | "everforest-light" | "github-dark" | "github-dark-default" | "github-dark-dimmed" | "github-dark-high-contrast" | "github-light" | "github-light-default" | "github-light-high-contrast" | "gruvbox-dark-hard" | "gruvbox-dark-medium" | "gruvbox-dark-soft" | "gruvbox-light-hard" | "gruvbox-light-medium" | "gruvbox-light-soft" | "houston" | "kanagawa-dragon" | "kanagawa-lotus" | "kanagawa-wave" | "laserwave" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "night-owl" | "nord" | "one-dark-pro" | "one-light" | "plastic" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "snazzy-light" | "solarized-dark" | "solarized-light" | "synthwave-84" | "tokyo-night" | "vesper" | "vitesse-black" | "vitesse-dark" | "vitesse-light";
169
+ };
170
+ };
171
+ };
172
+ }
@@ -0,0 +1,8 @@
1
+ /* eslint-disable */
2
+ /**
3
+ * This file was automatically generated by json-schema-to-typescript.
4
+ * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
5
+ * and run json-schema-to-typescript to regenerate this file.
6
+ */
7
+ export {};
8
+ //# sourceMappingURL=schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/lib/config/schema.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB;;;;GAIG"}