@koine/next 1.0.87 → 1.0.90
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.
- package/AnalyticsGoogle.js +2 -2
- package/Link.d.ts +1 -1
- package/app/css/auth/index.d.ts +3 -1
- package/app/em/auth/index.d.ts +3 -1
- package/app/sc/auth/index.d.ts +3 -1
- package/node/AnalyticsGoogle.js +2 -2
- package/node/useBackUrl.js +2 -2
- package/package.json +17 -15
- package/seoBuildTags.d.ts +1 -1
- package/useBackUrl.js +1 -1
package/AnalyticsGoogle.js
CHANGED
|
@@ -3,7 +3,7 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
|
|
|
3
3
|
import { useState, useEffect } from "react";
|
|
4
4
|
import { useRouter } from "next/router";
|
|
5
5
|
import Script from "next/script";
|
|
6
|
-
import {
|
|
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"];
|
|
@@ -23,7 +23,7 @@ export var AnalyticsGoogle = function (_a) {
|
|
|
23
23
|
useEffect(function () {
|
|
24
24
|
if (routed && ready && asPath) {
|
|
25
25
|
// const search = query;
|
|
26
|
-
|
|
26
|
+
gtagPageview(asPath);
|
|
27
27
|
}
|
|
28
28
|
}, [asPath, query, routed, ready]);
|
|
29
29
|
if (!uid) {
|
package/Link.d.ts
CHANGED
|
@@ -6,5 +6,5 @@ export declare type LinkProps = Omit<React.ComponentPropsWithRef<"a">, "href"> &
|
|
|
6
6
|
/**
|
|
7
7
|
* @see https://next.js.org/docs/api-reference/next/link
|
|
8
8
|
*/
|
|
9
|
-
export declare const Link: React.ForwardRefExoticComponent<Pick<LinkProps, "key" | "title" | "replace" | "slot" | "style" | "children" | "hidden" | "type" | "locale" | "rel" | "href" | "hrefLang" | "property" | "id" | "prefetch" | "onLoad" | "dangerouslySetInnerHTML" | "color" | "download" | "media" | "ping" | "target" | "referrerPolicy" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "
|
|
9
|
+
export declare const Link: React.ForwardRefExoticComponent<Pick<LinkProps, "key" | "title" | "replace" | "slot" | "style" | "children" | "hidden" | "type" | "locale" | "rel" | "href" | "hrefLang" | "property" | "id" | "prefetch" | "onLoad" | "dangerouslySetInnerHTML" | "color" | "download" | "media" | "ping" | "target" | "referrerPolicy" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "scroll" | "shallow" | "legacyBehavior" | "Link"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
10
10
|
export default Link;
|
package/app/css/auth/index.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { AppProps } from "next/app";
|
|
2
2
|
import { AppThemeProps } from "../AppTheme";
|
|
3
3
|
import { AppMainProps } from "../AppMain";
|
|
4
|
-
export declare type NextAppProps = AppProps
|
|
4
|
+
export declare type NextAppProps = AppProps<{
|
|
5
|
+
session: any;
|
|
6
|
+
}> & AppThemeProps & AppMainProps;
|
|
5
7
|
/**
|
|
6
8
|
* App with authentication provided by `next-auth`
|
|
7
9
|
*/
|
package/app/em/auth/index.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { AppProps } from "next/app";
|
|
2
2
|
import { AppThemeProps } from "../AppTheme";
|
|
3
3
|
import { AppMainProps } from "../AppMain";
|
|
4
|
-
export declare type NextAppProps = AppProps
|
|
4
|
+
export declare type NextAppProps = AppProps<{
|
|
5
|
+
session: any;
|
|
6
|
+
}> & AppThemeProps & AppMainProps;
|
|
5
7
|
/**
|
|
6
8
|
* App with authentication provided by `next-auth`
|
|
7
9
|
*/
|
package/app/sc/auth/index.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { AppProps } from "next/app";
|
|
2
2
|
import { AppThemeProps } from "../AppTheme";
|
|
3
3
|
import { AppMainProps } from "../AppMain";
|
|
4
|
-
export declare type NextAppProps = AppProps
|
|
4
|
+
export declare type NextAppProps = AppProps<{
|
|
5
|
+
session: any;
|
|
6
|
+
}> & AppThemeProps & AppMainProps;
|
|
5
7
|
/**
|
|
6
8
|
* App with authentication provided by `next-auth`
|
|
7
9
|
*/
|
package/node/AnalyticsGoogle.js
CHANGED
|
@@ -6,7 +6,7 @@ var jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
6
6
|
var react_1 = require("react");
|
|
7
7
|
var router_1 = require("next/router");
|
|
8
8
|
var script_1 = tslib_1.__importDefault(require("next/script"));
|
|
9
|
-
var
|
|
9
|
+
var browser_1 = require("@koine/browser");
|
|
10
10
|
var AnalyticsGoogle = function (_a) {
|
|
11
11
|
var id = _a.id;
|
|
12
12
|
var uid = id || process.env["NEXT_PUBLIC_GTM_ID"];
|
|
@@ -26,7 +26,7 @@ var AnalyticsGoogle = function (_a) {
|
|
|
26
26
|
(0, react_1.useEffect)(function () {
|
|
27
27
|
if (routed && ready && asPath) {
|
|
28
28
|
// const search = query;
|
|
29
|
-
(0,
|
|
29
|
+
(0, browser_1.gtagPageview)(asPath);
|
|
30
30
|
}
|
|
31
31
|
}, [asPath, query, routed, ready]);
|
|
32
32
|
if (!uid) {
|
package/node/useBackUrl.js
CHANGED
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.useBackUrl = void 0;
|
|
4
4
|
var react_1 = require("react");
|
|
5
5
|
var router_1 = require("next/router");
|
|
6
|
-
var
|
|
7
|
-
var back = (0,
|
|
6
|
+
var browser_1 = require("@koine/browser");
|
|
7
|
+
var back = (0, browser_1.createStorage)({
|
|
8
8
|
lastUrl: "",
|
|
9
9
|
});
|
|
10
10
|
function useBackUrl() {
|
package/package.json
CHANGED
|
@@ -16,33 +16,35 @@
|
|
|
16
16
|
"typings": "./index.d.ts",
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"react": "^18.2.0",
|
|
19
|
-
"next": "^12.
|
|
20
|
-
"@koine/
|
|
19
|
+
"next": "^12.3.1",
|
|
20
|
+
"@koine/browser": "1.0.90",
|
|
21
|
+
"@koine/utils": "1.0.90",
|
|
21
22
|
"ts-debounce": "^4.0.0",
|
|
23
|
+
"@koine/dom": "1.0.90",
|
|
22
24
|
"date-fns-tz": "^1.3.7",
|
|
23
|
-
"framer-motion": "^7.
|
|
24
|
-
"@koine/react": "1.0.
|
|
25
|
-
"styled-components": "^5.3.
|
|
26
|
-
"@mui/base": "^5.0.0-alpha.
|
|
25
|
+
"framer-motion": "^7.5.3",
|
|
26
|
+
"@koine/react": "1.0.90",
|
|
27
|
+
"styled-components": "^5.3.6",
|
|
28
|
+
"@mui/base": "^5.0.0-alpha.101",
|
|
27
29
|
"react-icons": "^4.4.0",
|
|
28
|
-
"date-fns": "^2.29.
|
|
30
|
+
"date-fns": "^2.29.3",
|
|
29
31
|
"react-swipeable": "^7.0.0",
|
|
30
|
-
"@tiptap/react": "^2.0.0-beta.
|
|
31
|
-
"@tiptap/starter-kit": "^2.0.0-beta.
|
|
32
|
+
"@tiptap/react": "^2.0.0-beta.199",
|
|
33
|
+
"@tiptap/starter-kit": "^2.0.0-beta.199",
|
|
32
34
|
"@kuus/yup": "^1.0.0-beta.4",
|
|
33
|
-
"react-hook-form": "^7.
|
|
35
|
+
"react-hook-form": "^7.37.0",
|
|
34
36
|
"react-popper": "^2.3.0",
|
|
35
37
|
"tslib": "^2.4.0",
|
|
36
|
-
"next-auth": "^4.
|
|
37
|
-
"@mui/material": "^5.10.
|
|
38
|
+
"next-auth": "^4.13.0",
|
|
39
|
+
"@mui/material": "^5.10.9",
|
|
38
40
|
"@emotion/react": "^11.10.4",
|
|
39
41
|
"@emotion/server": "^11.10.0",
|
|
40
|
-
"next-translate": "^1.
|
|
42
|
+
"next-translate": "^1.6.0",
|
|
41
43
|
"next-seo": "^5.5.0",
|
|
42
|
-
"@hookform/resolvers": "^2.9.
|
|
44
|
+
"@hookform/resolvers": "^2.9.8"
|
|
43
45
|
},
|
|
44
46
|
"peerDependencies": {},
|
|
45
|
-
"version": "1.0.
|
|
47
|
+
"version": "1.0.90",
|
|
46
48
|
"module": "./index.js",
|
|
47
49
|
"types": "./index.d.ts"
|
|
48
50
|
}
|
package/seoBuildTags.d.ts
CHANGED
|
@@ -17,5 +17,5 @@ declare type BuildTagsParams = SeoProps & SeoDefaultsProps;
|
|
|
17
17
|
*
|
|
18
18
|
* @returns
|
|
19
19
|
*/
|
|
20
|
-
export declare const seoBuildTags: ({ seo, hidden, keywords, title, titleTemplate, defaultTitle, noindex, nofollow, description, languageAlternates, twitter, facebook, openGraph, og, canonical, metaTags, linkTags, }?: BuildTagsParams) => React.ReactNode[];
|
|
20
|
+
export declare const seoBuildTags: ({ seo, hidden, keywords, title, titleTemplate, defaultTitle, noindex, nofollow, description, languageAlternates, twitter, facebook, openGraph, og: ogAlias, canonical, metaTags, linkTags, }?: BuildTagsParams) => React.ReactNode[];
|
|
21
21
|
export default seoBuildTags;
|
package/useBackUrl.js
CHANGED