@digigov/nextjs 0.6.5 → 0.6.7
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/CHANGELOG.md +13 -1
- package/Link.js +3 -3
- package/es/Link.js +3 -3
- package/esm/Link.js +3 -3
- package/esm/index.js +1 -1
- package/libs/ui/src/core/Link/index.d.ts +3 -3
- package/libs-ui/react-core/src/LinkBase/index.d.ts +14 -0
- package/package.json +2 -2
- package/libs-ui/react-core/src/Link/index.d.ts +0 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
# Change Log - @digigov/nextjs
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Fri, 02 Dec 2022 11:20:56 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 0.6.7
|
|
6
|
+
Fri, 02 Dec 2022 11:20:56 GMT
|
|
7
|
+
|
|
8
|
+
_Version update only_
|
|
9
|
+
|
|
10
|
+
## 0.6.6
|
|
11
|
+
Fri, 18 Nov 2022 08:33:43 GMT
|
|
12
|
+
|
|
13
|
+
### Patches
|
|
14
|
+
|
|
15
|
+
- Update imports of renamed react components
|
|
4
16
|
|
|
5
17
|
## 0.6.5
|
|
6
18
|
Wed, 16 Nov 2022 14:27:34 GMT
|
package/Link.js
CHANGED
|
@@ -15,7 +15,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
15
15
|
|
|
16
16
|
var _link = _interopRequireDefault(require("next/link"));
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _LinkBase = _interopRequireDefault(require("@digigov/react-core/LinkBase"));
|
|
19
19
|
|
|
20
20
|
var _excluded = ["href"];
|
|
21
21
|
|
|
@@ -27,7 +27,7 @@ var NextLink = function NextLink(props, ref) {
|
|
|
27
27
|
other.target === '_blank';
|
|
28
28
|
|
|
29
29
|
if (isExternalLink) {
|
|
30
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
30
|
+
return /*#__PURE__*/_react["default"].createElement(_LinkBase["default"], (0, _extends2["default"])({
|
|
31
31
|
ref: ref,
|
|
32
32
|
href: href || '#'
|
|
33
33
|
}, other), props.children);
|
|
@@ -35,7 +35,7 @@ var NextLink = function NextLink(props, ref) {
|
|
|
35
35
|
|
|
36
36
|
return /*#__PURE__*/_react["default"].createElement(_link["default"], (0, _extends2["default"])({
|
|
37
37
|
href: href || '#'
|
|
38
|
-
}, other), /*#__PURE__*/_react["default"].createElement(
|
|
38
|
+
}, other), /*#__PURE__*/_react["default"].createElement(_LinkBase["default"], (0, _extends2["default"])({
|
|
39
39
|
ref: ref
|
|
40
40
|
}, other), props.children));
|
|
41
41
|
};
|
package/es/Link.js
CHANGED
|
@@ -3,7 +3,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
var _excluded = ["href"];
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import Link from 'next/link';
|
|
6
|
-
import
|
|
6
|
+
import LinkBase from '@digigov/react-core/LinkBase';
|
|
7
7
|
|
|
8
8
|
var NextLink = function NextLink(props, ref) {
|
|
9
9
|
var href = props.href,
|
|
@@ -14,7 +14,7 @@ var NextLink = function NextLink(props, ref) {
|
|
|
14
14
|
other.target === '_blank';
|
|
15
15
|
|
|
16
16
|
if (isExternalLink) {
|
|
17
|
-
return /*#__PURE__*/React.createElement(
|
|
17
|
+
return /*#__PURE__*/React.createElement(LinkBase, _extends({
|
|
18
18
|
ref: ref,
|
|
19
19
|
href: href || '#'
|
|
20
20
|
}, other), props.children);
|
|
@@ -22,7 +22,7 @@ var NextLink = function NextLink(props, ref) {
|
|
|
22
22
|
|
|
23
23
|
return /*#__PURE__*/React.createElement(Link, _extends({
|
|
24
24
|
href: href || '#'
|
|
25
|
-
}, other), /*#__PURE__*/React.createElement(
|
|
25
|
+
}, other), /*#__PURE__*/React.createElement(LinkBase, _extends({
|
|
26
26
|
ref: ref
|
|
27
27
|
}, other), props.children));
|
|
28
28
|
};
|
package/esm/Link.js
CHANGED
|
@@ -3,7 +3,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
var _excluded = ["href"];
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import Link from 'next/link';
|
|
6
|
-
import
|
|
6
|
+
import LinkBase from '@digigov/react-core/LinkBase';
|
|
7
7
|
|
|
8
8
|
var NextLink = function NextLink(props, ref) {
|
|
9
9
|
var href = props.href,
|
|
@@ -14,7 +14,7 @@ var NextLink = function NextLink(props, ref) {
|
|
|
14
14
|
other.target === '_blank';
|
|
15
15
|
|
|
16
16
|
if (isExternalLink) {
|
|
17
|
-
return /*#__PURE__*/React.createElement(
|
|
17
|
+
return /*#__PURE__*/React.createElement(LinkBase, _extends({
|
|
18
18
|
ref: ref,
|
|
19
19
|
href: href || '#'
|
|
20
20
|
}, other), props.children);
|
|
@@ -22,7 +22,7 @@ var NextLink = function NextLink(props, ref) {
|
|
|
22
22
|
|
|
23
23
|
return /*#__PURE__*/React.createElement(Link, _extends({
|
|
24
24
|
href: href || '#'
|
|
25
|
-
}, other), /*#__PURE__*/React.createElement(
|
|
25
|
+
}, other), /*#__PURE__*/React.createElement(LinkBase, _extends({
|
|
26
26
|
ref: ref
|
|
27
27
|
}, other), props.children));
|
|
28
28
|
};
|
package/esm/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import LinkBase, { LinkBaseProps } from '@digigov/react-core/LinkBase';
|
|
3
3
|
export interface LinkComponentContextProps {
|
|
4
4
|
component: React.ElementType<LinkProps>;
|
|
5
5
|
}
|
|
6
6
|
export declare const CommonLink: React.FC<LinkProps>;
|
|
7
7
|
export declare const LinkProvider: React.FC<LinkComponentContextProps>;
|
|
8
|
-
export interface LinkProps extends
|
|
8
|
+
export interface LinkProps extends LinkBaseProps {
|
|
9
9
|
ref?: React.Ref<HTMLAnchorElement>;
|
|
10
10
|
}
|
|
11
11
|
declare const Link: React.ExoticComponent<LinkProps>;
|
|
12
12
|
export default Link;
|
|
13
|
-
export { Link };
|
|
13
|
+
export { Link, LinkBase };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BaseProps } from '@digigov/react-core/Base';
|
|
3
|
+
export interface LinkBaseProps extends BaseProps<'a'> {
|
|
4
|
+
/**
|
|
5
|
+
* underline is optional. The default value is 'true'.
|
|
6
|
+
* Make it 'false' only if the context tells the user that the text is a link, even without the underline.
|
|
7
|
+
*/
|
|
8
|
+
underline?: boolean;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* This component defines a hyperlink, which is used to link from one page to another.
|
|
12
|
+
*/
|
|
13
|
+
export declare const LinkBase: React.ForwardRefExoticComponent<Pick<LinkBaseProps, "slot" | "style" | "title" | "as" | "className" | "color" | "id" | "lang" | "media" | "target" | "type" | "role" | "tabIndex" | "href" | "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" | "children" | "dangerouslySetInnerHTML" | "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" | "onLoad" | "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" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "download" | "hrefLang" | "ping" | "rel" | "referrerPolicy" | "margin" | "marginTop" | "marginBottom" | "marginLeft" | "marginRight" | "padding" | "paddingTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "printHidden" | "underline"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
14
|
+
export default LinkBase;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digigov/nextjs",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.7",
|
|
4
4
|
"description": "next specific utilities for @digigov apps",
|
|
5
5
|
"author": "GRNET Developers <devs@lists.grnet.gr>",
|
|
6
6
|
"license": "BSD-2-Clause",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"main": "dist/index.js"
|
|
11
11
|
},
|
|
12
12
|
"peerDependencies": {
|
|
13
|
-
"@digigov/ui": "0.28.
|
|
13
|
+
"@digigov/ui": "0.28.3",
|
|
14
14
|
"@material-ui/core": "4.11.3",
|
|
15
15
|
"@material-ui/icons": "4.11.2",
|
|
16
16
|
"clsx": "1.1.1",
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BaseProps } from '@digigov/react-core/Base';
|
|
3
|
-
export interface LinkProps extends BaseProps<'a'> {
|
|
4
|
-
/**
|
|
5
|
-
* underline is optional. The default value is 'true'.
|
|
6
|
-
* Make it 'false' only if the context tells the user that the text is a link, even without the underline.
|
|
7
|
-
*/
|
|
8
|
-
underline?: boolean;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* This component defines a hyperlink, which is used to link from one page to another.
|
|
12
|
-
*/
|
|
13
|
-
export declare const Link: React.ForwardRefExoticComponent<Pick<LinkProps, "slot" | "style" | "title" | "as" | "className" | "color" | "id" | "lang" | "media" | "target" | "type" | "role" | "tabIndex" | "href" | "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" | "children" | "dangerouslySetInnerHTML" | "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" | "onLoad" | "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" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "download" | "hrefLang" | "ping" | "rel" | "referrerPolicy" | "margin" | "marginTop" | "marginBottom" | "marginLeft" | "marginRight" | "padding" | "paddingTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "printHidden" | "underline"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
14
|
-
export default Link;
|