@datawheel/bespoke 0.2.8 → 0.2.9

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/dist/index.js CHANGED
@@ -8091,7 +8091,7 @@ function Section({ section }) {
8091
8091
  )
8092
8092
  ] }),
8093
8093
  idx + 1 < previews.length && /* @__PURE__ */ jsx(Divider, {})
8094
- ] }, image.image_id)
8094
+ ] }, image.id)
8095
8095
  ) })
8096
8096
  ] })
8097
8097
  ]
@@ -14419,12 +14419,14 @@ function BespokeRenderer({
14419
14419
  translations,
14420
14420
  bespokeStyles,
14421
14421
  buildTime,
14422
- profilePrefix = "/defaultPath"
14422
+ profilePrefix = "/defaultPath",
14423
+ loader = /* @__PURE__ */ jsx(LoadingOverlay, { visible: true }),
14424
+ mantineProviderProps = {}
14423
14425
  }) {
14424
14426
  const loading = useInitialState(pathSegmentsKey);
14425
14427
  if (loading)
14426
- return /* @__PURE__ */ jsx(LoadingOverlay, { visible: true });
14427
- return /* @__PURE__ */ jsx(MantineProvider, { theme: { other: { bespokeStyles } }, inherit: true, children: /* @__PURE__ */ jsxs(ResourceProvider, { pathSegment: "bespoke", profilePrefix, children: [
14428
+ return /* @__PURE__ */ jsx(Fragment, { children: loader });
14429
+ return /* @__PURE__ */ jsx(MantineProvider, { ...mantineProviderProps, theme: { other: { bespokeStyles } }, inherit: true, children: /* @__PURE__ */ jsxs(ResourceProvider, { pathSegment: "bespoke", profilePrefix, children: [
14428
14430
  /* @__PURE__ */ jsx(TranslationsProvider, { translations, children: /* @__PURE__ */ jsx(Report_default, {}) }),
14429
14431
  /* @__PURE__ */ jsx("small", { children: buildTime })
14430
14432
  ] }) });
package/dist/server.js CHANGED
@@ -705,10 +705,6 @@ var libraries = {
705
705
  stats: stats_default
706
706
  };
707
707
  var declaredFormatters = {};
708
- var REPORT_TYPES = {
709
- REPORT: "report",
710
- STORY: "story"
711
- };
712
708
  var REPORT_MODES = {
713
709
  UNILATERAL: "uni",
714
710
  MULTILATERAL: "multi"
@@ -717,15 +713,6 @@ var SELECTOR_TYPES = {
717
713
  SINGLE: "single",
718
714
  MULTI: "multi"
719
715
  };
720
- var REPORT_FIELDS = {
721
- TITLE: "title",
722
- SUBTITLE: "subtitle",
723
- LABEL: "label"
724
- };
725
- ({
726
- [REPORT_TYPES.REPORT]: Object.values(REPORT_FIELDS),
727
- [REPORT_TYPES.STORY]: Object.values(REPORT_FIELDS)
728
- });
729
716
  var BLOCK_CONTENT_TYPES = {
730
717
  // AUTHOR: "author",
731
718
  // FOOTNOTE: "footnote",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datawheel/bespoke",
3
- "version": "0.2.8",
3
+ "version": "0.2.9",
4
4
  "description": "Content management system for creating automated data reports",
5
5
  "exports": {
6
6
  ".": {
@@ -42,14 +42,14 @@
42
42
  "@auth0/nextjs-auth0": "^2.4.0",
43
43
  "@emotion/react": "^11.10.4",
44
44
  "@hello-pangea/dnd": "^16.2.0",
45
- "@mantine/core": "^6.0.6",
46
- "@mantine/dates": "^6.0.6",
47
- "@mantine/dropzone": "^6.0.6",
48
- "@mantine/form": "^6.0.6",
49
- "@mantine/hooks": "^6.0.6",
50
- "@mantine/next": "^6.0.6",
51
- "@mantine/notifications": "^6.0.6",
52
- "@mantine/prism": "^6.0.6",
45
+ "@mantine/core": "^6.0.19",
46
+ "@mantine/dates": "^6.0.19",
47
+ "@mantine/dropzone": "^6.0.19",
48
+ "@mantine/form": "^6.0.19",
49
+ "@mantine/hooks": "^6.0.19",
50
+ "@mantine/next": "^6.0.19",
51
+ "@mantine/notifications": "^6.0.19",
52
+ "@mantine/prism": "^6.0.19",
53
53
  "@monaco-editor/react": "^4.4.5",
54
54
  "@reduxjs/toolkit": "^1.8.4",
55
55
  "@tabler/icons-react": "^2.15.0",