@versini/sassysaint 4.2.0 → 4.3.0

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,7 +1,7 @@
1
1
  import { jsxs as N, Fragment as be, jsx as l } from "react/jsx-runtime";
2
2
  import i from "clsx";
3
3
  import H, { useContext as O, useRef as w, useState as J, useLayoutEffect as M, useSyncExternalStore as fe, useCallback as q, useEffect as ke } from "react";
4
- import { A as _e, i as xe, f as we, S as Ne, f$1 as Te, M as ve, U as Se, r as Ce, o as Ie, n as ae, l as Ee, a as j, MODEL_GPT4 as He } from "./index.BvXbpfqe.js";
4
+ import { A as _e, i as xe, f as we, S as Ne, f$1 as Te, M as ve, U as Se, r as Ce, o as Ie, n as ae, l as Ee, a as j, MODEL_GPT4 as He } from "./index.B6eo37ct.js";
5
5
  const Oe = (e) => {
6
6
  let r = "";
7
7
  if (typeof e == "number" || typeof e == "string")
@@ -99,7 +99,7 @@ const Ae = ({
99
99
  /* @__PURE__ */ l("path", { d: "M137.4 470.6c12.5 12.5 32.8 12.5 45.3 0l96-96c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 370.7V64c0-17.7-14.3-32-32-32s-32 14.3-32 32V370.7L86.6 329.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l96 96z" })
100
100
  ]
101
101
  }
102
- ), Be = ({
102
+ ), $e = ({
103
103
  className: e,
104
104
  viewBox: r,
105
105
  spacing: t,
@@ -127,7 +127,7 @@ const Ae = ({
127
127
  /* @__PURE__ */ l("path", { d: "M128 480c9 0 17.5-3.8 23.6-10.4l88-96c11.9-13 11.1-33.3-2-45.2s-33.3-11.1-45.2 2L160 365.7V64c0-17.7-14.3-32-32-32s-32 14.3-32 32V365.7L63.6 330.4c-11.9-13-32.2-13.9-45.2-2s-13.9 32.2-2 45.2l88 96C110.5 476.2 119 480 128 480z" })
128
128
  ]
129
129
  }
130
- ), $e = ({
130
+ ), Be = ({
131
131
  className: e,
132
132
  viewBox: r,
133
133
  spacing: t,
@@ -175,8 +175,8 @@ const Ae = ({
175
175
  noBackground: C = !1,
176
176
  align: x = "center",
177
177
  active: A = !1,
178
- ...B
179
- }, $) => {
178
+ ...$
179
+ }, B) => {
180
180
  const V = _e({
181
181
  type: we,
182
182
  mode: t,
@@ -217,12 +217,12 @@ const Ae = ({
217
217
  return /* @__PURE__ */ l("div", { className: G, children: /* @__PURE__ */ N(
218
218
  xe,
219
219
  {
220
- ref: $,
220
+ ref: B,
221
221
  className: V,
222
222
  disabled: r,
223
223
  type: c,
224
224
  "aria-label": m || h,
225
- ...B,
225
+ ...$,
226
226
  children: [
227
227
  _ && /* @__PURE__ */ l("span", { className: "pr-2", children: _ }),
228
228
  /* @__PURE__ */ l("div", { className: z, children: e }),
@@ -452,7 +452,7 @@ const S = H.createContext({
452
452
  mode: o,
453
453
  fullWidth: !0,
454
454
  labelRight: r,
455
- children: d === U.ASC && n === m ? /* @__PURE__ */ l($e, { className: "size-4", monotone: !0 }) : d === U.DESC && n === m ? /* @__PURE__ */ l(Be, { className: "size-4", monotone: !0 }) : /* @__PURE__ */ l(Ae, { className: "size-4", monotone: !0 })
455
+ children: d === U.ASC && n === m ? /* @__PURE__ */ l(Be, { className: "size-4", monotone: !0 }) : d === U.DESC && n === m ? /* @__PURE__ */ l($e, { className: "size-4", monotone: !0 }) : /* @__PURE__ */ l(Ae, { className: "size-4", monotone: !0 })
456
456
  }
457
457
  )
458
458
  }
@@ -628,8 +628,8 @@ const De = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
628
628
  helperTextOnFocus: C = !1,
629
629
  rightElement: x,
630
630
  onChange: A,
631
- onFocus: B,
632
- onBlur: $,
631
+ onFocus: $,
632
+ onBlur: B,
633
633
  spacing: V,
634
634
  ...z
635
635
  }, G) => {
@@ -658,9 +658,9 @@ const De = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
658
658
  }), he = (u) => {
659
659
  ue(u.target.value);
660
660
  }, pe = (u) => {
661
- C && g && Z(!0), B && B(u);
661
+ C && g && Z(!0), $ && $(u);
662
662
  }, ge = (u) => {
663
- C && g && !f && Z(!1), $ && $(u);
663
+ C && g && !f && Z(!1), B && B(u);
664
664
  };
665
665
  return M(() => {
666
666
  !s && x && L.current && L.current.offsetWidth > 0 && ie(L.current.offsetWidth + 18 + 10);
@@ -806,10 +806,19 @@ const k = {
806
806
  }
807
807
  }`,
808
808
  GET_CUSTOM_INSTRUCTIONS: `query GetCustomInstructions($user: String!) {
809
- getCustomInstructions(user: $user)
809
+ getCustomInstructions(user: $user) {
810
+ instructions
811
+ location
812
+ }
810
813
  }`,
811
- SET_CUSTOM_INSTRUCTIONS: `mutation SetCustomInstructions($user: String!, $instructions: String!) {
812
- setCustomInstructions(user: $user, instructions: $instructions)
814
+ SET_CUSTOM_INSTRUCTIONS: `mutation SetCustomInstructions(
815
+ $user: String!,
816
+ $instructions: String!,
817
+ $location: String) {
818
+ setCustomInstructions(
819
+ user: $user,
820
+ instructions: $instructions,
821
+ location: $location)
813
822
  }`
814
823
  }, nt = {
815
824
  GET_LOCATION: {
@@ -866,7 +875,8 @@ const k = {
866
875
  method: "setCustomInstructions",
867
876
  data: (e) => ({
868
877
  user: e.user,
869
- instructions: e.instructions
878
+ instructions: e.instructions,
879
+ location: e.location
870
880
  })
871
881
  }
872
882
  }, oe = process.env.PUBLIC_SASSY_API_SERVER_URL, Ke = async ({
@@ -1,5 +1,5 @@
1
1
  import "react/jsx-runtime";
2
- import { SassySaint as a } from "../../chunks/index.BvXbpfqe.js";
2
+ import { SassySaint as a } from "../../chunks/index.B6eo37ct.js";
3
3
  export {
4
4
  a as SassySaint
5
5
  };
package/dist/index.js CHANGED
@@ -1,12 +1,12 @@
1
- import { SassySaint as r } from "./chunks/index.BvXbpfqe.js";
1
+ import { SassySaint as r } from "./chunks/index.B6eo37ct.js";
2
2
  /*!
3
- @sassysaint/client v4.2.0
3
+ @sassysaint/client v4.3.0
4
4
  © 2024 gizmette.com
5
5
  */
6
6
  try {
7
7
  window.__VERSINI_SASSY_GLOBAL__ || (window.__VERSINI_SASSY_GLOBAL__ = {
8
- version: "4.2.0",
9
- buildTime: "09/03/2024 04:42 PM EDT",
8
+ version: "4.3.0",
9
+ buildTime: "09/06/2024 10:29 AM EDT",
10
10
  license: "MIT"
11
11
  });
12
12
  } catch {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@versini/sassysaint",
3
- "version": "4.2.0",
3
+ "version": "4.3.0",
4
4
  "license": "MIT",
5
5
  "author": "Arno Versini",
6
6
  "publishConfig": {
@@ -30,7 +30,7 @@
30
30
  "react-dom": "18.3.1"
31
31
  },
32
32
  "devDependencies": {
33
- "@sassysaint/client": "4.2.0",
33
+ "@sassysaint/client": "4.3.0",
34
34
  "@versini/ui-styles": "1.9.5"
35
35
  },
36
36
  "dependencies": {
@@ -41,5 +41,5 @@
41
41
  "sideEffects": [
42
42
  "**/*.css"
43
43
  ],
44
- "gitHead": "0a7ea9e4c91eb49d507609441ef3a06f1786bfe2"
44
+ "gitHead": "d02d1fec4cfdcd4325757629ed13f7e44b0cbf02"
45
45
  }