@datawheel/bespoke 0.2.5 → 0.2.6
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 +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6208,6 +6208,8 @@ function DataTab(props) {
|
|
|
6208
6208
|
const PREVIEW_SIZE = 50;
|
|
6209
6209
|
const formatterFunctions = useFormatterFunctionsForLocale(locale);
|
|
6210
6210
|
const router = useRouter();
|
|
6211
|
+
const optionsTranslations = useBespokeTranslations("options");
|
|
6212
|
+
const translations = { ...DEFAULT_TRANSLATIONS2, ...optionsTranslations["data_tab"] };
|
|
6211
6213
|
const sourcesOptions = useAppSelector((state) => {
|
|
6212
6214
|
const dataInformation = [];
|
|
6213
6215
|
blocksIds.map((blockId) => state.records.entities.block[blockId]).filter((block) => [BLOCK_TYPES.GENERATOR, BLOCK_TYPES.VIZ].includes(block.type)).map((block) => {
|
|
@@ -6288,8 +6290,6 @@ function DataTab(props) {
|
|
|
6288
6290
|
const [fileFormat, setFileFormat] = useState(formatOptions.csv);
|
|
6289
6291
|
const [previewsSource, setPreviewsSource] = useState({});
|
|
6290
6292
|
const [loadingPreview, setLoadingPreview] = useState(false);
|
|
6291
|
-
const optionsTranslations = useBespokeTranslations("options");
|
|
6292
|
-
const translations = { ...DEFAULT_TRANSLATIONS2, ...optionsTranslations["data_tab"] };
|
|
6293
6293
|
useEffect(() => {
|
|
6294
6294
|
if (sourcesOptions[0]) {
|
|
6295
6295
|
setSelectedSource(sourcesOptions[0]);
|