Skip to content

Commit e5502c4

Browse files
committed
ref: migrate to jaspr_content for markdown
1 parent 1e73bf1 commit e5502c4

File tree

4 files changed

+105
-11
lines changed

4 files changed

+105
-11
lines changed

lib/components/privacy_policy_from_markdown.dart

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import 'package:http/http.dart' as http;
22
import 'package:jaspr/server.dart';
3-
import 'package:jaspr_markdown/jaspr_markdown.dart';
3+
import 'package:jaspr_content/components/markdown.dart';
4+
import 'package:jaspr_content/jaspr_content.dart';
5+
import 'package:jaspr_content/theme.dart';
46

57
class PrivacyPolicyFromMarkdown extends AsyncStatelessComponent {
68
const PrivacyPolicyFromMarkdown({super.key});
@@ -18,6 +20,9 @@ class PrivacyPolicyFromMarkdown extends AsyncStatelessComponent {
1820
);
1921
final markdown = response.body;
2022

21-
return Markdown(markdown: markdown);
23+
return Content.wrapTheme(
24+
const ContentTheme.none(),
25+
child: Markdown(content: markdown),
26+
);
2227
}
2328
}

lib/jaspr_options.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,5 @@ JasprOptions get defaultJasprOptions => JasprOptions(
3131
'components/rough_notation_initiator',
3232
),
3333
},
34+
styles: () => [],
3435
);

pubspec.lock

Lines changed: 96 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,14 @@ packages:
121121
url: "https://pub.dev"
122122
source: hosted
123123
version: "8.12.1"
124+
characters:
125+
dependency: transitive
126+
description:
127+
name: characters
128+
sha256: faf38497bda5ead2a8c7615f4f7939df04333478bf32e4173fcb06d428b5716b
129+
url: "https://pub.dev"
130+
source: hosted
131+
version: "1.4.1"
124132
checked_yaml:
125133
dependency: transitive
126134
description:
@@ -145,6 +153,14 @@ packages:
145153
url: "https://pub.dev"
146154
source: hosted
147155
version: "0.4.2"
156+
clock:
157+
dependency: transitive
158+
description:
159+
name: clock
160+
sha256: fddb70d9b5277016c77a80201021d40a2247104d9f4aa7bab7157b7e3f05b84b
161+
url: "https://pub.dev"
162+
source: hosted
163+
version: "1.1.2"
148164
code_builder:
149165
dependency: transitive
150166
description:
@@ -225,6 +241,14 @@ packages:
225241
url: "https://pub.dev"
226242
source: hosted
227243
version: "3.1.3"
244+
fbh_front_matter:
245+
dependency: transitive
246+
description:
247+
name: fbh_front_matter
248+
sha256: "18b2f355326ff2b7ebd64eb1d969c091895ffa755ab55ede5de68f59cf115024"
249+
url: "https://pub.dev"
250+
source: hosted
251+
version: "0.0.1"
228252
ffi:
229253
dependency: transitive
230254
description:
@@ -257,6 +281,14 @@ packages:
257281
url: "https://pub.dev"
258282
source: hosted
259283
version: "3.1.0"
284+
gato:
285+
dependency: transitive
286+
description:
287+
name: gato
288+
sha256: "03fa3a33d50f71a912e30827ddf47c89e06e9acfd2b6b178aff0e1aa2f1e8b90"
289+
url: "https://pub.dev"
290+
source: hosted
291+
version: "0.0.5+1"
260292
glob:
261293
dependency: transitive
262294
description:
@@ -289,6 +321,14 @@ packages:
289321
url: "https://pub.dev"
290322
source: hosted
291323
version: "0.15.6"
324+
html_unescape:
325+
dependency: transitive
326+
description:
327+
name: html_unescape
328+
sha256: "15362d7a18f19d7b742ef8dcb811f5fd2a2df98db9f80ea393c075189e0b61e3"
329+
url: "https://pub.dev"
330+
source: hosted
331+
version: "2.0.0"
292332
http:
293333
dependency: "direct main"
294334
description:
@@ -313,6 +353,14 @@ packages:
313353
url: "https://pub.dev"
314354
source: hosted
315355
version: "4.1.2"
356+
intl:
357+
dependency: transitive
358+
description:
359+
name: intl
360+
sha256: "3df61194eb431efc39c4ceba583b95633a403f46c9fd341e550ce0bfa50e9aa5"
361+
url: "https://pub.dev"
362+
source: hosted
363+
version: "0.20.2"
316364
io:
317365
dependency: transitive
318366
description:
@@ -337,6 +385,14 @@ packages:
337385
url: "https://pub.dev"
338386
source: hosted
339387
version: "0.21.7"
388+
jaspr_content:
389+
dependency: "direct main"
390+
description:
391+
name: jaspr_content
392+
sha256: "955be1b9d1b178e5514eade3a65a765a814cb290f0acc2d77fc82e31229fef2e"
393+
url: "https://pub.dev"
394+
source: hosted
395+
version: "0.4.4"
340396
jaspr_lints:
341397
dependency: "direct dev"
342398
description:
@@ -345,14 +401,6 @@ packages:
345401
url: "https://pub.dev"
346402
source: hosted
347403
version: "0.5.1"
348-
jaspr_markdown:
349-
dependency: "direct main"
350-
description:
351-
name: jaspr_markdown
352-
sha256: "165efd90f6ff14987473dcb05dcfb6fe3ba632052c9ef8ac97c051091b603ac9"
353-
url: "https://pub.dev"
354-
source: hosted
355-
version: "0.2.0"
356404
jaspr_router:
357405
dependency: "direct main"
358406
description:
@@ -385,6 +433,14 @@ packages:
385433
url: "https://pub.dev"
386434
source: hosted
387435
version: "6.0.0"
436+
liquify:
437+
dependency: transitive
438+
description:
439+
name: liquify
440+
sha256: "9ebe78ab8ea7559fb8d48a4b5977b92bd5754962838833a76ff713c82711a988"
441+
url: "https://pub.dev"
442+
source: hosted
443+
version: "1.3.1"
388444
logging:
389445
dependency: transitive
390446
description:
@@ -425,6 +481,14 @@ packages:
425481
url: "https://pub.dev"
426482
source: hosted
427483
version: "2.0.0"
484+
mustache_template:
485+
dependency: transitive
486+
description:
487+
name: mustache_template
488+
sha256: daa42be75f2ccfb287c24a75e7ac594f2ea0b32bf9ebe7c15154aa45b2dfb2de
489+
url: "https://pub.dev"
490+
source: hosted
491+
version: "2.0.2"
428492
package_config:
429493
dependency: transitive
430494
description:
@@ -441,6 +505,14 @@ packages:
441505
url: "https://pub.dev"
442506
source: hosted
443507
version: "1.9.1"
508+
petitparser:
509+
dependency: transitive
510+
description:
511+
name: petitparser
512+
sha256: "1a97266a94f7350d30ae522c0af07890c70b8e62c71e8e3920d1db4d23c057d1"
513+
url: "https://pub.dev"
514+
source: hosted
515+
version: "7.0.1"
444516
pool:
445517
dependency: transitive
446518
description:
@@ -593,6 +665,14 @@ packages:
593665
url: "https://pub.dev"
594666
source: hosted
595667
version: "1.4.1"
668+
syntax_highlight_lite:
669+
dependency: transitive
670+
description:
671+
name: syntax_highlight_lite
672+
sha256: ff54f69159263e26b843c64a2dc556ac7bbbc66690eb6d500aefb341cf4957a0
673+
url: "https://pub.dev"
674+
source: hosted
675+
version: "0.0.1"
596676
term_glyph:
597677
dependency: transitive
598678
description:
@@ -609,6 +689,14 @@ packages:
609689
url: "https://pub.dev"
610690
source: hosted
611691
version: "0.7.8"
692+
timezone:
693+
dependency: transitive
694+
description:
695+
name: timezone
696+
sha256: dd14a3b83cfd7cb19e7888f1cbc20f258b8d71b54c06f79ac585f14093a287d1
697+
url: "https://pub.dev"
698+
source: hosted
699+
version: "0.10.1"
612700
typed_data:
613701
dependency: transitive
614702
description:

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ environment:
88
dependencies:
99
http: ^1.4.0
1010
jaspr: ^0.21.7
11-
jaspr_markdown: ^0.2.0
11+
jaspr_content: ^0.4.4
1212
jaspr_router: ^0.8.0
1313
universal_web: ^1.1.0+2
1414

0 commit comments

Comments
 (0)