@arcanewizards/timecode-toolbox 0.2.0 → 0.2.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.
@@ -25658,6 +25658,7 @@ var MS_FORMAT = new Intl.NumberFormat(void 0, {
25658
25658
  maximumFractionDigits: 0
25659
25659
  });
25660
25660
  var SOURCE_CODE_URL = "https://github.com/ArcaneWizards/open-source/tree/main/apps/timecode-toolbox";
25661
+ var HELP_AND_SUPPORT_URL = "https://arcanewizards.com/discord";
25661
25662
  var STRINGS = {
25662
25663
  title: "Timecode Toolbox",
25663
25664
  debugger: "Debug Tools & Log",
@@ -25671,6 +25672,7 @@ var STRINGS = {
25671
25672
  acceptLicense: "Accept License",
25672
25673
  licensePrompt: "Please review and accept the license to use Timecode Toolbox",
25673
25674
  sourceCode: "Source Code",
25675
+ helpAndSupport: "Get Help & Support",
25674
25676
  protocols: {
25675
25677
  artnet: {
25676
25678
  short: "ArtNet",
@@ -33921,7 +33923,9 @@ var Footer = ({ openLicenseDetails }) => {
33921
33923
  openLicenseDetails && /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_jsx_runtime49.Fragment, { children: [
33922
33924
  /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(ToolbarDivider, {}),
33923
33925
  /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(TextButton, { onClick: openLicenseDetails, children: STRINGS.license })
33924
- ] })
33926
+ ] }),
33927
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(ToolbarDivider, {}),
33928
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(ExternalLink, { href: HELP_AND_SUPPORT_URL, children: STRINGS.helpAndSupport })
33925
33929
  ]
33926
33930
  }
33927
33931
  );
@@ -34003,6 +34007,7 @@ var LicenseContent = ({ license }) => {
34003
34007
  return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "flex flex-col gap-2 rounded-md bg-sigil-bg-light p-2", children: license.split("\n\n").map((paragraph, index2) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("p", { className: "m-0", children: paragraph.replace(/\n/g, " ").trim() }, index2)) });
34004
34008
  };
34005
34009
  var License = ({ license, setWindowMode }) => {
34010
+ const { openExternalLink } = useBrowserContext();
34006
34011
  return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "flex grow flex-col", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
34007
34012
  "div",
34008
34013
  {
@@ -34010,15 +34015,29 @@ var License = ({ license, setWindowMode }) => {
34010
34015
  children: [
34011
34016
  /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(TimecodeToolboxLogo, { className: "h-[20%] max-h-[420px] min-h-[110px] w-full" }),
34012
34017
  /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(LicenseContent, { license }),
34013
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "flex justify-center p-2", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
34014
- ControlButton,
34015
- {
34016
- onClick: () => setWindowMode(null),
34017
- variant: "large",
34018
- icon: "close",
34019
- children: STRINGS.close(STRINGS.license)
34020
- }
34021
- ) })
34018
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex justify-center p-2", children: [
34019
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
34020
+ ControlButton,
34021
+ {
34022
+ onClick: () => setWindowMode(null),
34023
+ variant: "large",
34024
+ icon: "close",
34025
+ children: STRINGS.close(STRINGS.license)
34026
+ }
34027
+ ),
34028
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
34029
+ ControlButton,
34030
+ {
34031
+ onClick: (e) => {
34032
+ e.preventDefault();
34033
+ openExternalLink(HELP_AND_SUPPORT_URL);
34034
+ },
34035
+ variant: "large",
34036
+ icon: "help",
34037
+ children: STRINGS.helpAndSupport
34038
+ }
34039
+ )
34040
+ ] })
34022
34041
  ]
34023
34042
  }
34024
34043
  ) });
@@ -25690,6 +25690,7 @@ var MS_FORMAT = new Intl.NumberFormat(void 0, {
25690
25690
  maximumFractionDigits: 0
25691
25691
  });
25692
25692
  var SOURCE_CODE_URL = "https://github.com/ArcaneWizards/open-source/tree/main/apps/timecode-toolbox";
25693
+ var HELP_AND_SUPPORT_URL = "https://arcanewizards.com/discord";
25693
25694
  var STRINGS = {
25694
25695
  title: "Timecode Toolbox",
25695
25696
  debugger: "Debug Tools & Log",
@@ -25703,6 +25704,7 @@ var STRINGS = {
25703
25704
  acceptLicense: "Accept License",
25704
25705
  licensePrompt: "Please review and accept the license to use Timecode Toolbox",
25705
25706
  sourceCode: "Source Code",
25707
+ helpAndSupport: "Get Help & Support",
25706
25708
  protocols: {
25707
25709
  artnet: {
25708
25710
  short: "ArtNet",
@@ -33986,7 +33988,9 @@ var Footer = ({ openLicenseDetails }) => {
33986
33988
  openLicenseDetails && /* @__PURE__ */ jsxs17(Fragment13, { children: [
33987
33989
  /* @__PURE__ */ jsx37(ToolbarDivider, {}),
33988
33990
  /* @__PURE__ */ jsx37(TextButton, { onClick: openLicenseDetails, children: STRINGS.license })
33989
- ] })
33991
+ ] }),
33992
+ /* @__PURE__ */ jsx37(ToolbarDivider, {}),
33993
+ /* @__PURE__ */ jsx37(ExternalLink, { href: HELP_AND_SUPPORT_URL, children: STRINGS.helpAndSupport })
33990
33994
  ]
33991
33995
  }
33992
33996
  );
@@ -34068,6 +34072,7 @@ var LicenseContent = ({ license }) => {
34068
34072
  return /* @__PURE__ */ jsx39("div", { className: "flex flex-col gap-2 rounded-md bg-sigil-bg-light p-2", children: license.split("\n\n").map((paragraph, index2) => /* @__PURE__ */ jsx39("p", { className: "m-0", children: paragraph.replace(/\n/g, " ").trim() }, index2)) });
34069
34073
  };
34070
34074
  var License = ({ license, setWindowMode }) => {
34075
+ const { openExternalLink } = useBrowserContext();
34071
34076
  return /* @__PURE__ */ jsx39("div", { className: "flex grow flex-col", children: /* @__PURE__ */ jsxs19(
34072
34077
  "div",
34073
34078
  {
@@ -34075,15 +34080,29 @@ var License = ({ license, setWindowMode }) => {
34075
34080
  children: [
34076
34081
  /* @__PURE__ */ jsx39(TimecodeToolboxLogo, { className: "h-[20%] max-h-[420px] min-h-[110px] w-full" }),
34077
34082
  /* @__PURE__ */ jsx39(LicenseContent, { license }),
34078
- /* @__PURE__ */ jsx39("div", { className: "flex justify-center p-2", children: /* @__PURE__ */ jsx39(
34079
- ControlButton,
34080
- {
34081
- onClick: () => setWindowMode(null),
34082
- variant: "large",
34083
- icon: "close",
34084
- children: STRINGS.close(STRINGS.license)
34085
- }
34086
- ) })
34083
+ /* @__PURE__ */ jsxs19("div", { className: "flex justify-center p-2", children: [
34084
+ /* @__PURE__ */ jsx39(
34085
+ ControlButton,
34086
+ {
34087
+ onClick: () => setWindowMode(null),
34088
+ variant: "large",
34089
+ icon: "close",
34090
+ children: STRINGS.close(STRINGS.license)
34091
+ }
34092
+ ),
34093
+ /* @__PURE__ */ jsx39(
34094
+ ControlButton,
34095
+ {
34096
+ onClick: (e) => {
34097
+ e.preventDefault();
34098
+ openExternalLink(HELP_AND_SUPPORT_URL);
34099
+ },
34100
+ variant: "large",
34101
+ icon: "help",
34102
+ children: STRINGS.helpAndSupport
34103
+ }
34104
+ )
34105
+ ] })
34087
34106
  ]
34088
34107
  }
34089
34108
  ) });
@@ -47097,6 +47097,7 @@ Data Directory: ${system.dataDirectory}`
47097
47097
  maximumFractionDigits: 0
47098
47098
  });
47099
47099
  var SOURCE_CODE_URL = "https://github.com/ArcaneWizards/open-source/tree/main/apps/timecode-toolbox";
47100
+ var HELP_AND_SUPPORT_URL = "https://arcanewizards.com/discord";
47100
47101
  var STRINGS = {
47101
47102
  title: "Timecode Toolbox",
47102
47103
  debugger: "Debug Tools & Log",
@@ -47110,6 +47111,7 @@ Data Directory: ${system.dataDirectory}`
47110
47111
  acceptLicense: "Accept License",
47111
47112
  licensePrompt: "Please review and accept the license to use Timecode Toolbox",
47112
47113
  sourceCode: "Source Code",
47114
+ helpAndSupport: "Get Help & Support",
47113
47115
  protocols: {
47114
47116
  artnet: {
47115
47117
  short: "ArtNet",
@@ -56833,7 +56835,7 @@ Data Directory: ${system.dataDirectory}`
56833
56835
  var import_compiler_runtime16 = __toESM(require_compiler_runtime());
56834
56836
  var import_jsx_runtime51 = __toESM(require_jsx_runtime());
56835
56837
  var Footer = (t0) => {
56836
- const $ = (0, import_compiler_runtime16.c)(7);
56838
+ const $ = (0, import_compiler_runtime16.c)(9);
56837
56839
  const {
56838
56840
  openLicenseDetails
56839
56841
  } = t0;
@@ -56874,17 +56876,31 @@ Data Directory: ${system.dataDirectory}`
56874
56876
  t4 = $[4];
56875
56877
  }
56876
56878
  let t5;
56877
- if ($[5] !== t4) {
56878
- t5 = /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", {
56879
+ let t6;
56880
+ if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
56881
+ t5 = /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(ToolbarDivider, {});
56882
+ t6 = /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(ExternalLink, {
56883
+ href: HELP_AND_SUPPORT_URL,
56884
+ children: STRINGS.helpAndSupport
56885
+ });
56886
+ $[5] = t5;
56887
+ $[6] = t6;
56888
+ } else {
56889
+ t5 = $[5];
56890
+ t6 = $[6];
56891
+ }
56892
+ let t7;
56893
+ if ($[7] !== t4) {
56894
+ t7 = /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", {
56879
56895
  className: "\n flex items-center justify-center gap-1 border-t border-sigil-border\n bg-sigil-bg-dark p-1 text-[80%]\n ",
56880
- children: [t1, t2, t3, t4]
56896
+ children: [t1, t2, t3, t4, t5, t6]
56881
56897
  });
56882
- $[5] = t4;
56883
- $[6] = t5;
56898
+ $[7] = t4;
56899
+ $[8] = t7;
56884
56900
  } else {
56885
- t5 = $[6];
56901
+ t7 = $[8];
56886
56902
  }
56887
- return t5;
56903
+ return t7;
56888
56904
  };
56889
56905
 
56890
56906
  // ../../packages/sigil/dist/frontend/styling.hooks.js
@@ -57077,11 +57093,14 @@ Data Directory: ${system.dataDirectory}`
57077
57093
  return t2;
57078
57094
  };
57079
57095
  var License = (t0) => {
57080
- const $ = (0, import_compiler_runtime19.c)(11);
57096
+ const $ = (0, import_compiler_runtime19.c)(16);
57081
57097
  const {
57082
57098
  license,
57083
57099
  setWindowMode
57084
57100
  } = t0;
57101
+ const {
57102
+ openExternalLink
57103
+ } = useBrowserContext();
57085
57104
  let t1;
57086
57105
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
57087
57106
  t1 = /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(TimecodeToolboxLogo, {
@@ -57118,14 +57137,11 @@ Data Directory: ${system.dataDirectory}`
57118
57137
  }
57119
57138
  let t5;
57120
57139
  if ($[6] !== t3) {
57121
- t5 = /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", {
57122
- className: "flex justify-center p-2",
57123
- children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(ControlButton, {
57124
- onClick: t3,
57125
- variant: "large",
57126
- icon: "close",
57127
- children: t4
57128
- })
57140
+ t5 = /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(ControlButton, {
57141
+ onClick: t3,
57142
+ variant: "large",
57143
+ icon: "close",
57144
+ children: t4
57129
57145
  });
57130
57146
  $[6] = t3;
57131
57147
  $[7] = t5;
@@ -57133,21 +57149,49 @@ Data Directory: ${system.dataDirectory}`
57133
57149
  t5 = $[7];
57134
57150
  }
57135
57151
  let t6;
57136
- if ($[8] !== t2 || $[9] !== t5) {
57137
- t6 = /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", {
57152
+ if ($[8] !== openExternalLink) {
57153
+ t6 = /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(ControlButton, {
57154
+ onClick: (e) => {
57155
+ e.preventDefault();
57156
+ openExternalLink(HELP_AND_SUPPORT_URL);
57157
+ },
57158
+ variant: "large",
57159
+ icon: "help",
57160
+ children: STRINGS.helpAndSupport
57161
+ });
57162
+ $[8] = openExternalLink;
57163
+ $[9] = t6;
57164
+ } else {
57165
+ t6 = $[9];
57166
+ }
57167
+ let t7;
57168
+ if ($[10] !== t5 || $[11] !== t6) {
57169
+ t7 = /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", {
57170
+ className: "flex justify-center p-2",
57171
+ children: [t5, t6]
57172
+ });
57173
+ $[10] = t5;
57174
+ $[11] = t6;
57175
+ $[12] = t7;
57176
+ } else {
57177
+ t7 = $[12];
57178
+ }
57179
+ let t8;
57180
+ if ($[13] !== t2 || $[14] !== t7) {
57181
+ t8 = /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", {
57138
57182
  className: "flex grow flex-col",
57139
57183
  children: /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", {
57140
57184
  className: "\n flex grow basis-0 flex-col overflow-y-auto px-2 pb-2 scrollbar-sigil\n ",
57141
- children: [t1, t2, t5]
57185
+ children: [t1, t2, t7]
57142
57186
  })
57143
57187
  });
57144
- $[8] = t2;
57145
- $[9] = t5;
57146
- $[10] = t6;
57188
+ $[13] = t2;
57189
+ $[14] = t7;
57190
+ $[15] = t8;
57147
57191
  } else {
57148
- t6 = $[10];
57192
+ t8 = $[15];
57149
57193
  }
57150
- return t6;
57194
+ return t8;
57151
57195
  };
57152
57196
  var LicenseGate = (t0) => {
57153
57197
  const $ = (0, import_compiler_runtime19.c)(14);