@koine/next 2.0.0-beta.15 → 2.0.0-beta.16

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.
@@ -3,7 +3,7 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
3
3
  import { useRouter } from "next/router";
4
4
  import Script from "next/script";
5
5
  import { useEffect, useState } from "react";
6
- import gtagPageview from "@koine/browser/gtagPageview";
6
+ import { gtagPageview } from "@koine/browser";
7
7
  export var AnalyticsGoogle = function (_a) {
8
8
  var id = _a.id;
9
9
  var uid = id || process.env["NEXT_PUBLIC_GTM_ID"];
@@ -1,5 +1,5 @@
1
1
  import type { Simplify } from "@koine/utils";
2
- import type { WithComponents } from "@koine/react/helpers";
2
+ import type { WithComponents } from "@koine/react";
3
3
  type OwnProps = {
4
4
  startAt?: number;
5
5
  showOnShallow?: boolean;
@@ -1,6 +1,6 @@
1
1
  import { __assign } from "tslib";
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
- import isArray from "@koine/utils/isArray";
3
+ import { isArray } from "@koine/utils";
4
4
  var defaults = {
5
5
  tplTitle: "",
6
6
  };
package/12/useBackUrl.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { useRouter } from "next/router";
3
3
  import { useEffect, useRef, useState } from "react";
4
- import createStorage from "@koine/browser/createStorage";
4
+ import { createStorage } from "@koine/browser";
5
5
  var back = createStorage({
6
6
  lastUrl: "",
7
7
  });
@@ -3,7 +3,7 @@ import { __assign } from "tslib";
3
3
  import format from "date-fns/format";
4
4
  import { useRouter } from "next/router";
5
5
  import { useEffect, useState } from "react";
6
- import useDateLocale from "@koine/react/hooks/useDateLocale";
6
+ import { useDateLocale } from "@koine/react";
7
7
  export var useDateFormat = function () {
8
8
  var _a = useState(function () {
9
9
  return function () {
package/ThemeProvider.js CHANGED
@@ -3,7 +3,7 @@ import { __spreadArray } from "tslib";
3
3
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
4
4
  import NextScript from "next/script";
5
5
  import { memo, useCallback, useEffect, useState } from "react";
6
- import isServer from "@koine/utils/isServer";
6
+ import { isServer } from "@koine/utils";
7
7
  import { ThemeContext } from "./ThemeContext.js";
8
8
  var colorSchemes = ["light", "dark"];
9
9
  var MEDIA = "(prefers-color-scheme: dark)";
package/getSiteUrl.js CHANGED
@@ -1,4 +1,4 @@
1
- import normaliseUrl from "@koine/utils/normaliseUrl";
1
+ import { normaliseUrl } from "@koine/utils";
2
2
  export function getSiteUrl(path) {
3
3
  if (path === void 0) { path = ""; }
4
4
  return normaliseUrl("".concat(process.env["NEXT_PUBLIC_APP_URL"], "/").concat(path));
package/package.json CHANGED
@@ -2,9 +2,9 @@
2
2
  "name": "@koine/next",
3
3
  "sideEffects": false,
4
4
  "dependencies": {
5
- "@koine/browser": "2.0.0-beta.15",
6
- "@koine/react": "2.0.0-beta.15",
7
- "@koine/utils": "2.0.0-beta.15"
5
+ "@koine/browser": "2.0.0-beta.16",
6
+ "@koine/react": "2.0.0-beta.16",
7
+ "@koine/utils": "2.0.0-beta.16"
8
8
  },
9
9
  "peerDependenciesMeta": {
10
10
  "@hookform/resolvers": {
@@ -215,5 +215,5 @@
215
215
  }
216
216
  },
217
217
  "peerDependencies": {},
218
- "version": "2.0.0-beta.15"
218
+ "version": "2.0.0-beta.16"
219
219
  }