zs_library 0.8.0 → 0.8.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,4 +1,3 @@
1
1
  import { ExifData, ExifParamsForm } from '../types';
2
2
  export declare function extractExifData(imageSource: string | File): Promise<ExifData[]>;
3
3
  export declare function parseExifData(data: ExifData[]): Partial<ExifParamsForm>;
4
- export declare function getDefaultExifData(): Partial<ExifParamsForm>;
package/dist/index.js CHANGED
@@ -13,7 +13,7 @@ import { ReactSortable as wo } from "react-sortablejs";
13
13
  import { v4 as He } from "uuid";
14
14
  import { useLocalStorageState as Ji, useDebounceEffect as Qi, useRequest as ta } from "ahooks";
15
15
  import { motion as dt, AnimatePresence as Pt, useMotionValue as $n, useTransform as be, useSpring as $e } from "motion/react";
16
- import { useMotionValue as H1 } from "motion/react";
16
+ import { useMotionValue as O1 } from "motion/react";
17
17
  import ea from "rc-dialog";
18
18
  import oa from "react-json-view";
19
19
  import { RiFunctionFill as na, RiSearchLine as ra, RiCloseLine as te, RiArrowRightSLine as ia, RiCheckLine as co, RiIndeterminateCircleLine as aa, RiShare2Line as la, RiInformationLine as sa, RiApps2Line as ca, RiArrowUpDownLine as da, RiArrowLeftRightLine as ua, RiArrowRightLine as fa, RiArrowLeftLine as Pn, RiZoomOutLine as pa, RiZoomInLine as ha, RiClockwise2Line as ga, RiAnticlockwise2Line as ma, RiMoreLine as ba, RiH6 as ya, RiH5 as va, RiH4 as wa, RiH3 as xa, RiH2 as Ca, RiH1 as ka, RiHeading as za, RiArrowDownSLine as xo, RiImageAddLine as Sa, RiListCheck3 as Un, RiListOrdered as On, RiListUnordered as Co, RiQuoteText as La, RiCodeBlock as Ma, RiTable2 as Ia, RiInsertColumnLeft as Ea, RiInsertColumnRight as Na, RiDeleteColumn as Aa, RiInsertRowTop as Ta, RiInsertRowBottom as Ba, RiDeleteRow as Ra, RiMergeCellsHorizontal as Fa, RiSplitCellsHorizontal as Da, RiDeleteBinLine as Hn, RiMarkPenLine as ko, RiForbidLine as _n, RiFontColor as zo, RiLinksLine as So, RiCornerDownLeftLine as $a, RiExternalLinkLine as Pa, RiDeleteBin7Line as Ua, RiSubscript as Oa, RiSuperscript as Ha, RiCodeSSlashLine as _a, RiStrikethrough as qa, RiUnderline as Wa, RiItalic as Va, RiBold as Ga, RiAlignJustify as ja, RiAlignRight as qn, RiAlignCenter as Wn, RiAlignLeft as Lo, RiArrowGoForwardLine as Xa, RiArrowGoBackLine as Ya, RiQuillPenLine as pn, RiEraserLine as Za, RiAi as Ka, RiArrowUpLine as hn, RiStopCircleFill as Ja, RiSparklingLine as Qa, RiMoonClearLine as tl, RiSunLine as el } from "@remixicon/react";
@@ -10818,7 +10818,7 @@ async function Wi(t) {
10818
10818
  function yo(t) {
10819
10819
  var c, d;
10820
10820
  if (!t.length)
10821
- return Ad();
10821
+ return {};
10822
10822
  const e = new Map(t.map((p) => [p.tag, p.value])), o = new Map(
10823
10823
  t.map((p) => [p.tag, p.value_with_unit])
10824
10824
  ), n = (e.get("Make") || "").replace(/[",]/g, ""), r = gd(n || "unknown"), i = {
@@ -10853,17 +10853,7 @@ function yo(t) {
10853
10853
  brand: r
10854
10854
  };
10855
10855
  }
10856
- function Ad() {
10857
- const t = /* @__PURE__ */ new Date();
10858
- return {
10859
- model: "PICSEAL CAMERA",
10860
- date: `${t.getFullYear()}.${String(t.getMonth() + 1).padStart(2, "0")}.${String(t.getDate()).padStart(2, "0")} ${String(t.getHours()).padStart(2, "0")}:${String(t.getMinutes()).padStart(2, "0")}`,
10861
- gps: `39°54'26"N 116°23'44"E`,
10862
- device: "50mm f/1.8 1/125s ISO200",
10863
- brand: "unknown"
10864
- };
10865
- }
10866
- const Td = ({
10856
+ const Ad = ({
10867
10857
  image: t,
10868
10858
  template: e = "xiaomiLeica",
10869
10859
  renderer: o = "canvas",
@@ -10978,7 +10968,7 @@ const Td = ({
10978
10968
  onRenderComplete: h
10979
10969
  }
10980
10970
  ) });
10981
- }, P1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10971
+ }, $1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10982
10972
  __proto__: null,
10983
10973
  Desktop: Ys,
10984
10974
  DesktopAppItem: fe,
@@ -11001,7 +10991,7 @@ const Td = ({
11001
10991
  HtmlRenderer: $i,
11002
10992
  Markdown: Fr,
11003
10993
  MdEditor: Dr,
11004
- PhotoWatermark: Td,
10994
+ PhotoWatermark: Ad,
11005
10995
  SimpleEditor: Ti,
11006
10996
  SimpleEditorViewer: Vc,
11007
10997
  SortableUtils: Dt,
@@ -11041,12 +11031,12 @@ export {
11041
11031
  $i as HtmlRenderer,
11042
11032
  Fr as Markdown,
11043
11033
  Dr as MdEditor,
11044
- Td as PhotoWatermark,
11034
+ Ad as PhotoWatermark,
11045
11035
  Ti as SimpleEditor,
11046
11036
  Vc as SimpleEditorViewer,
11047
11037
  Dt as SortableUtils,
11048
11038
  qi as availableTemplates,
11049
- P1 as default,
11039
+ $1 as default,
11050
11040
  Xe as desktopThemeDark,
11051
11041
  ue as desktopThemeLight,
11052
11042
  Wi as extractExifData,
@@ -11055,6 +11045,6 @@ export {
11055
11045
  Di as htmlToJson,
11056
11046
  cn as jsonToHtml,
11057
11047
  yo as parseExifData,
11058
- H1 as useDockDesktopMouseX,
11048
+ O1 as useDockDesktopMouseX,
11059
11049
  Ni as useSimpleEditor
11060
11050
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zs_library",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "homepage": "https://zs-library.virs.xyz/",
5
5
  "bugs": {
6
6
  "url": "https://github.com/virzs/zs_library/issues"