@pipelex/mthds-form 0.12.0 → 0.12.1

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.
@@ -1,5 +1,5 @@
1
- import { planStuffSave, planFileSave } from './chunk-V7T4DM63.js';
2
- import { readStuffFile } from './chunk-VS5JMFUV.js';
1
+ import { planStuffSave, planFileSave } from './chunk-7KQXGG6J.js';
2
+ import { readStuffFile } from './chunk-RRTI7AIR.js';
3
3
  import { viewableUrl, isNativeDateNode, isNativeHtmlNode, readHtmlContent, isNativeCompositeNode, readCompositeContent, isNativeValueNode, readDateContent, formatDateContent, readImageContent, readDataUrl, readDocumentContent } from './chunk-CM4KVG53.js';
4
4
  import { conceptCategory } from './chunk-FABY3DEY.js';
5
5
  import { acceptLabel, acceptMap, isAcceptedFile, formatOfFilename, DOCUMENT_FORMATS, IMAGE_FORMATS } from './chunk-XCO6GTEC.js';
@@ -2243,9 +2243,9 @@ function FileDownloadButton({ file }) {
2243
2243
  );
2244
2244
  return () => window.clearTimeout(timer);
2245
2245
  }, [attempt]);
2246
- if (!shown) return null;
2246
+ if (!shown || !location) return null;
2247
2247
  const planned = planFileSave(file, {
2248
- baseName: location?.baseName ?? file.path,
2248
+ baseName: location.baseName,
2249
2249
  ...resolve ? { resolveUrl: resolve } : {}
2250
2250
  });
2251
2251
  if (!planned) return null;
@@ -3128,5 +3128,5 @@ function StuffPanel({
3128
3128
  }
3129
3129
 
3130
3130
  export { BooleanField, ConceptPill, DEFAULT_FIELD_STRINGS, DateField, DocumentField, EnumField, FieldDomIdProvider, FieldPresentationProvider, FieldRenderer, FieldShell, FieldStringsProvider, HtmlPreview, ImageField, JsonView, ListField, Markdown, NumberField, ObjectField, OptionalToggle, ProseField, ResultEnvProvider, ResultField, ResultRoot, Select, SelectContent, SelectItem, SelectTrigger, SelectValue, StuffViewer, Switch, TextField, ToggleGroup, ToggleGroupItem, UnknownField, cn, fieldControlClass, humanizeFieldName, saveInBrowser, useFieldDomId, useFieldPresentation, useFieldStrings, useProseImages, useResolveShareUrl, useResolveUrl, useResolvedUrl };
3131
- //# sourceMappingURL=chunk-4KX6YTLW.js.map
3132
- //# sourceMappingURL=chunk-4KX6YTLW.js.map
3131
+ //# sourceMappingURL=chunk-2D4NEFUH.js.map
3132
+ //# sourceMappingURL=chunk-2D4NEFUH.js.map