@rikstv/shared-components 1.1.96 → 1.1.97
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/dist/components/breadcrumb/Breadcrumb.d.ts +2 -2
- package/dist/components/button/BaseLinkButton.d.ts +1 -1
- package/dist/components/core/Core.d.ts +3 -3
- package/dist/components/core/RiksTV.d.ts +2 -2
- package/dist/components/core/RiksTV.js +10 -83
- package/dist/components/core/Strim.d.ts +2 -2
- package/dist/components/core/hooks/useIntersectionObserver.d.ts +2 -2
- package/package.json +3 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FC, HTMLAttributes, ReactNode } from "react";
|
|
1
|
+
import { FC, HTMLAttributes, PropsWithChildren, ReactNode } from "react";
|
|
2
2
|
import "./breadcrumb.scss";
|
|
3
3
|
interface Props extends HTMLAttributes<HTMLElement> {
|
|
4
4
|
crumbs: Array<{
|
|
@@ -9,5 +9,5 @@ interface Props extends HTMLAttributes<HTMLElement> {
|
|
|
9
9
|
className?: string;
|
|
10
10
|
}
|
|
11
11
|
export declare const Breadcrumb: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<HTMLElement>>;
|
|
12
|
-
export declare const BreadcrumbCurrent: FC
|
|
12
|
+
export declare const BreadcrumbCurrent: FC<PropsWithChildren>;
|
|
13
13
|
export {};
|
|
@@ -16,5 +16,5 @@ interface BaseLinkButtonPropsWithElement<ElementProps> {
|
|
|
16
16
|
}
|
|
17
17
|
declare type Props<ElementProps> = BaseLinkButtonPropsWithElement<ElementProps> & ElementProps;
|
|
18
18
|
export declare type BaseLinkButtonProps<ElementProps> = Omit<Props<ElementProps>, "element">;
|
|
19
|
-
export declare const BaseLinkButton: import("react").ForwardRefExoticComponent<
|
|
19
|
+
export declare const BaseLinkButton: import("react").ForwardRefExoticComponent<Omit<any, "ref"> & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
20
20
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
|
-
export declare const Core: FC<{
|
|
1
|
+
import { FC, PropsWithChildren } from "react";
|
|
2
|
+
export declare const Core: FC<PropsWithChildren<{
|
|
3
3
|
brand: "strm" | "rtv";
|
|
4
|
-
}
|
|
4
|
+
}>>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
1
|
+
import { FC, PropsWithChildren } from "react";
|
|
2
2
|
import "./rtv.scss";
|
|
3
|
-
export declare const RiksTVProvider: FC
|
|
3
|
+
export declare const RiksTVProvider: FC<PropsWithChildren>;
|
|
@@ -2,75 +2,8 @@ import require$$0 from "react";
|
|
|
2
2
|
import { C as Core } from "./Core.js";
|
|
3
3
|
var jsxRuntime = { exports: {} };
|
|
4
4
|
var reactJsxRuntime_production_min = {};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
(c) Sindre Sorhus
|
|
8
|
-
@license MIT
|
|
9
|
-
*/
|
|
10
|
-
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
11
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
12
|
-
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
13
|
-
function toObject(val) {
|
|
14
|
-
if (val === null || val === void 0) {
|
|
15
|
-
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
16
|
-
}
|
|
17
|
-
return Object(val);
|
|
18
|
-
}
|
|
19
|
-
function shouldUseNative() {
|
|
20
|
-
try {
|
|
21
|
-
if (!Object.assign) {
|
|
22
|
-
return false;
|
|
23
|
-
}
|
|
24
|
-
var test1 = new String("abc");
|
|
25
|
-
test1[5] = "de";
|
|
26
|
-
if (Object.getOwnPropertyNames(test1)[0] === "5") {
|
|
27
|
-
return false;
|
|
28
|
-
}
|
|
29
|
-
var test2 = {};
|
|
30
|
-
for (var i = 0; i < 10; i++) {
|
|
31
|
-
test2["_" + String.fromCharCode(i)] = i;
|
|
32
|
-
}
|
|
33
|
-
var order2 = Object.getOwnPropertyNames(test2).map(function(n2) {
|
|
34
|
-
return test2[n2];
|
|
35
|
-
});
|
|
36
|
-
if (order2.join("") !== "0123456789") {
|
|
37
|
-
return false;
|
|
38
|
-
}
|
|
39
|
-
var test3 = {};
|
|
40
|
-
"abcdefghijklmnopqrst".split("").forEach(function(letter) {
|
|
41
|
-
test3[letter] = letter;
|
|
42
|
-
});
|
|
43
|
-
if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") {
|
|
44
|
-
return false;
|
|
45
|
-
}
|
|
46
|
-
return true;
|
|
47
|
-
} catch (err) {
|
|
48
|
-
return false;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
shouldUseNative() ? Object.assign : function(target, source) {
|
|
52
|
-
var from;
|
|
53
|
-
var to = toObject(target);
|
|
54
|
-
var symbols;
|
|
55
|
-
for (var s = 1; s < arguments.length; s++) {
|
|
56
|
-
from = Object(arguments[s]);
|
|
57
|
-
for (var key in from) {
|
|
58
|
-
if (hasOwnProperty.call(from, key)) {
|
|
59
|
-
to[key] = from[key];
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
if (getOwnPropertySymbols) {
|
|
63
|
-
symbols = getOwnPropertySymbols(from);
|
|
64
|
-
for (var i = 0; i < symbols.length; i++) {
|
|
65
|
-
if (propIsEnumerable.call(from, symbols[i])) {
|
|
66
|
-
to[symbols[i]] = from[symbols[i]];
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
return to;
|
|
72
|
-
};
|
|
73
|
-
/** @license React v17.0.2
|
|
5
|
+
/**
|
|
6
|
+
* @license React
|
|
74
7
|
* react-jsx-runtime.production.min.js
|
|
75
8
|
*
|
|
76
9
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -78,26 +11,20 @@ shouldUseNative() ? Object.assign : function(target, source) {
|
|
|
78
11
|
* This source code is licensed under the MIT license found in the
|
|
79
12
|
* LICENSE file in the root directory of this source tree.
|
|
80
13
|
*/
|
|
81
|
-
var f = require$$0,
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
g = h("react.element");
|
|
86
|
-
reactJsxRuntime_production_min.Fragment = h("react.fragment");
|
|
87
|
-
}
|
|
88
|
-
var m = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, n = Object.prototype.hasOwnProperty, p = { key: true, ref: true, __self: true, __source: true };
|
|
89
|
-
function q(c, a, k) {
|
|
90
|
-
var b, d = {}, e = null, l = null;
|
|
91
|
-
k !== void 0 && (e = "" + k);
|
|
14
|
+
var f = require$$0, k = Symbol.for("react.element"), l = Symbol.for("react.fragment"), m = Object.prototype.hasOwnProperty, n = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p = { key: true, ref: true, __self: true, __source: true };
|
|
15
|
+
function q(c, a, g) {
|
|
16
|
+
var b, d = {}, e = null, h = null;
|
|
17
|
+
g !== void 0 && (e = "" + g);
|
|
92
18
|
a.key !== void 0 && (e = "" + a.key);
|
|
93
|
-
a.ref !== void 0 && (
|
|
19
|
+
a.ref !== void 0 && (h = a.ref);
|
|
94
20
|
for (b in a)
|
|
95
|
-
|
|
21
|
+
m.call(a, b) && !p.hasOwnProperty(b) && (d[b] = a[b]);
|
|
96
22
|
if (c && c.defaultProps)
|
|
97
23
|
for (b in a = c.defaultProps, a)
|
|
98
24
|
d[b] === void 0 && (d[b] = a[b]);
|
|
99
|
-
return { $$typeof:
|
|
25
|
+
return { $$typeof: k, type: c, key: e, ref: h, props: d, _owner: n.current };
|
|
100
26
|
}
|
|
27
|
+
reactJsxRuntime_production_min.Fragment = l;
|
|
101
28
|
reactJsxRuntime_production_min.jsx = q;
|
|
102
29
|
reactJsxRuntime_production_min.jsxs = q;
|
|
103
30
|
{
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
1
|
+
import { FC, PropsWithChildren } from "react";
|
|
2
2
|
import "./strm.scss";
|
|
3
|
-
export declare const StrimProvider: FC
|
|
3
|
+
export declare const StrimProvider: FC<PropsWithChildren>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const useIntersectionObserver: (callback: IntersectionObserverCallback, options?: IntersectionObserverInit, fallback?: VoidFunction, enabled?: boolean) => ((refNode:
|
|
2
|
-
export declare const useElementVisible: (options?: IntersectionObserverInit, enabled?: boolean) => readonly [(refNode:
|
|
1
|
+
export declare const useIntersectionObserver: (callback: IntersectionObserverCallback, options?: IntersectionObserverInit, fallback?: VoidFunction, enabled?: boolean) => ((refNode: Element | null) => void)[];
|
|
2
|
+
export declare const useElementVisible: (options?: IntersectionObserverInit, enabled?: boolean) => readonly [(refNode: Element | null) => void, boolean];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rikstv/shared-components",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.97",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
"build": "tsc src/*.ts* && vite build && tsc src/components/index.ts --declaration --emitDeclarationOnly --jsx react-jsx --esModuleInterop --outDir dist",
|
|
21
21
|
"serve": "vite preview",
|
|
22
22
|
"test": "cypress run --component",
|
|
23
|
-
"test:open": "cypress open --component"
|
|
23
|
+
"test:open": "cypress open --component",
|
|
24
|
+
"typecheck": "tsc --noEmit"
|
|
24
25
|
},
|
|
25
26
|
"devDependencies": {
|
|
26
27
|
"@testing-library/cypress": "^8.0.3",
|