@netlify/spark-ui 1.8.2-alpha.0 → 1.8.2

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.
Files changed (23) hide show
  1. package/dist/chunks/compat.module.DJD78v1z.js +175 -0
  2. package/dist/chunks/hooks.module.D9IrxdEh.js +138 -0
  3. package/dist/chunks/{useTimeout.Cq4aqnDe.js → useTimeout.YR4eKwj7.js} +1 -1
  4. package/dist/components/preact/AskNetlify/AskNetlify.js +9 -8
  5. package/dist/components/preact/AskNetlify/components/ChatInterface.js +51 -8
  6. package/dist/components/preact/AskNetlify/components/ChatMessages.js +12 -1574
  7. package/dist/components/preact/Modal/Modal.js +1 -1
  8. package/dist/components/preact/SearchModal/components/SearchInput.js +2 -2
  9. package/dist/components/preact/SearchModal/components/SearchLink/SearchLink.js +1 -1
  10. package/dist/components/preact/SearchModal/components/SearchModal/SearchModal.js +1 -1
  11. package/dist/components/preact/SearchModal/components/SearchToggle/SearchToggle.js +1 -1
  12. package/dist/components/preact/SearchModal/components/SearchWindow.js +1 -1
  13. package/dist/components/preact/SearchModal/hooks/useKeyboardNav.js +1 -1
  14. package/dist/components/preact/SearchModal/hooks/useSearch.js +2 -2
  15. package/dist/components/preact/SearchModal/hooks/useSearchHotkeys.js +1 -1
  16. package/dist/components/preact/SearchModal/hooks/useSearchLogger.js +1 -1
  17. package/dist/components/preact/SearchModal/hooks/useSearchParams.js +1 -1
  18. package/dist/components/preact/SearchModal/hooks/useSearchToggles.js +1 -1
  19. package/dist/components/preact/index.js +1 -1
  20. package/package.json +2 -2
  21. package/dist/chunks/ChatInterface.BMDJO4i6.js +0 -4162
  22. package/dist/chunks/compat.module.BNbXPLVY.js +0 -298
  23. package/dist/chunks/hooks.module.DGkdD5n9.js +0 -177
@@ -1,5 +1,5 @@
1
1
  import { u as l } from "../../../chunks/jsxRuntime.module.Bzuv3cXw.js";
2
- import { D as d } from "../../../chunks/compat.module.BNbXPLVY.js";
2
+ import { D as d } from "../../../chunks/compat.module.DJD78v1z.js";
3
3
  const u = d(function({ children: o, className: r, ...a }, t) {
4
4
  return /* @__PURE__ */ l("dialog", { ref: t, className: r, role: "dialog", "aria-modal": "true", ...a, children: o });
5
5
  });
@@ -1,6 +1,6 @@
1
1
  import { u as e } from "../../../../chunks/jsxRuntime.module.Bzuv3cXw.js";
2
- import { d as u, y as h } from "../../../../chunks/hooks.module.DGkdD5n9.js";
3
- import { u as o } from "../../../../chunks/useTimeout.Cq4aqnDe.js";
2
+ import { d as u, y as h } from "../../../../chunks/hooks.module.D9IrxdEh.js";
3
+ import { u as o } from "../../../../chunks/useTimeout.YR4eKwj7.js";
4
4
  import d from "../../Icon/index.js";
5
5
  const I = (a) => {
6
6
  const [r, t] = u(""), { reset: c, run: i } = o((l) => {
@@ -1,5 +1,5 @@
1
1
  import { u as a } from "../../../../../chunks/jsxRuntime.module.Bzuv3cXw.js";
2
- import "../../../../../chunks/hooks.module.DGkdD5n9.js";
2
+ import "../../../../../chunks/hooks.module.D9IrxdEh.js";
3
3
  import { useSearchLogger as d } from "../../hooks/useSearchLogger.js";
4
4
  import c from "../../../Icon/index.js";
5
5
  import '../../../../../assets/SearchLink.css';const g = ({
@@ -1,5 +1,5 @@
1
1
  import { u as e } from "../../../../../chunks/jsxRuntime.module.Bzuv3cXw.js";
2
- import { A as N, y as l, d as h } from "../../../../../chunks/hooks.module.DGkdD5n9.js";
2
+ import { A as N, y as l, d as h } from "../../../../../chunks/hooks.module.D9IrxdEh.js";
3
3
  import w from "../../../Modal/Modal.js";
4
4
  import p from "../../../KeyboardKey/KeyboardKey.js";
5
5
  import I from "../SearchWindow.js";
@@ -1,5 +1,5 @@
1
1
  import { u as e } from "../../../../../chunks/jsxRuntime.module.Bzuv3cXw.js";
2
- import { D as a } from "../../../../../chunks/compat.module.BNbXPLVY.js";
2
+ import { D as a } from "../../../../../chunks/compat.module.DJD78v1z.js";
3
3
  import o from "../../../Icon/index.js";
4
4
  import '../../../../../assets/SearchToggle.css';const s = a(function(r, t) {
5
5
  return /* @__PURE__ */ e("button", { id: r.id, ref: t, class: "n-search-toggle button", disabled: !0, "data-ntl-search-toggle": !0, children: [
@@ -1,5 +1,5 @@
1
1
  import { u as e } from "../../../../chunks/jsxRuntime.module.Bzuv3cXw.js";
2
- import { T as h } from "../../../../chunks/hooks.module.DGkdD5n9.js";
2
+ import { T as h } from "../../../../chunks/hooks.module.D9IrxdEh.js";
3
3
  import s from "./SearchHeading/SearchHeading.js";
4
4
  import a from "./SearchLink/SearchLink.js";
5
5
  import { Fragment as d } from "preact";
@@ -1,4 +1,4 @@
1
- import { y as f } from "../../../../chunks/hooks.module.DGkdD5n9.js";
1
+ import { y as f } from "../../../../chunks/hooks.module.D9IrxdEh.js";
2
2
  function k(r, t, o, c) {
3
3
  f(() => {
4
4
  if (!r) return;
@@ -1,5 +1,5 @@
1
- import { d as g, A as w } from "../../../../chunks/hooks.module.DGkdD5n9.js";
2
- import { u as S } from "../../../../chunks/useTimeout.Cq4aqnDe.js";
1
+ import { d as g, A as w } from "../../../../chunks/hooks.module.D9IrxdEh.js";
2
+ import { u as S } from "../../../../chunks/useTimeout.YR4eKwj7.js";
3
3
  function x() {
4
4
  const [l, r] = g({
5
5
  searchTerm: "",
@@ -1,4 +1,4 @@
1
- import { y as u } from "../../../../chunks/hooks.module.DGkdD5n9.js";
1
+ import { y as u } from "../../../../chunks/hooks.module.D9IrxdEh.js";
2
2
  function a(t, r, n, o) {
3
3
  u(() => {
4
4
  if (!t) return;
@@ -1,4 +1,4 @@
1
- import { A as y, y as h, q as k } from "../../../../chunks/hooks.module.DGkdD5n9.js";
1
+ import { A as y, y as h, q as k } from "../../../../chunks/hooks.module.D9IrxdEh.js";
2
2
  class s {
3
3
  /**
4
4
  * Pushes an event payload into the dataLayer.
@@ -1,4 +1,4 @@
1
- import { y as c } from "../../../../chunks/hooks.module.DGkdD5n9.js";
1
+ import { y as c } from "../../../../chunks/hooks.module.D9IrxdEh.js";
2
2
  function n(r, o, a) {
3
3
  c(() => {
4
4
  if (typeof location > "u" || r) return;
@@ -1,4 +1,4 @@
1
- import { y as a } from "../../../../chunks/hooks.module.DGkdD5n9.js";
1
+ import { y as a } from "../../../../chunks/hooks.module.D9IrxdEh.js";
2
2
  function s(c, t, l) {
3
3
  a(() => {
4
4
  if (!c) return;
@@ -6,7 +6,7 @@ import { default as x } from "./SearchModal/components/SearchHeading/SearchHeadi
6
6
  import { default as i } from "./SearchModal/components/SearchToggle/SearchToggle.js";
7
7
  import { default as S } from "./AskNetlify/AskNetlify.js";
8
8
  import "preact";
9
- import "../../chunks/hooks.module.DGkdD5n9.js";
9
+ import "../../chunks/hooks.module.D9IrxdEh.js";
10
10
  import { default as n } from "./SearchModal/components/SearchModal/SearchModal.js";
11
11
  export {
12
12
  S as AskNetlify,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@netlify/spark-ui",
3
3
  "description": "Assets, design tokens, components, and utilities",
4
- "version": "1.8.2-alpha.0",
4
+ "version": "1.8.2",
5
5
  "type": "module",
6
6
  "main": "dist/components/preact/index.js",
7
7
  "types": "dist/components/preact/index.d.ts",
@@ -68,4 +68,4 @@
68
68
  "prettier": "^3.5.3",
69
69
  "prettier-plugin-astro": "^0.14.1"
70
70
  }
71
- }
71
+ }