@lssm/lib.design-system 0.0.0-canary-20251217034842 → 0.0.0-canary-20251217053014
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/package.json +8 -7
- package/dist/node_modules/@swc/helpers/cjs/_interop_require_default.js +0 -14
- package/dist/node_modules/@swc/helpers/cjs/_interop_require_wildcard.js +0 -35
- package/dist/node_modules/next/dist/client/add-base-path.js +0 -30
- package/dist/node_modules/next/dist/client/add-locale.js +0 -29
- package/dist/node_modules/next/dist/client/detect-domain-locale.js +0 -26
- package/dist/node_modules/next/dist/client/get-domain-locale.js +0 -41
- package/dist/node_modules/next/dist/client/has-base-path.js +0 -28
- package/dist/node_modules/next/dist/client/link.js +0 -311
- package/dist/node_modules/next/dist/client/normalize-locale-path.js +0 -30
- package/dist/node_modules/next/dist/client/normalize-trailing-slash.js +0 -34
- package/dist/node_modules/next/dist/client/request-idle-callback.js +0 -44
- package/dist/node_modules/next/dist/client/resolve-href.js +0 -86
- package/dist/node_modules/next/dist/client/use-intersection.js +0 -104
- package/dist/node_modules/next/dist/client/use-merged-ref.js +0 -56
- package/dist/node_modules/next/dist/compiled/path-to-regexp/index.js +0 -372
- package/dist/node_modules/next/dist/lib/constants.js +0 -316
- package/dist/node_modules/next/dist/lib/route-pattern-normalizer.js +0 -69
- package/dist/node_modules/next/dist/shared/lib/escape-regexp.js +0 -23
- package/dist/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js +0 -22
- package/dist/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js +0 -42
- package/dist/node_modules/next/dist/shared/lib/invariant-error.js +0 -23
- package/dist/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js +0 -23
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-locale.js +0 -30
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js +0 -24
- package/dist/node_modules/next/dist/shared/lib/router/utils/app-paths.js +0 -41
- package/dist/node_modules/next/dist/shared/lib/router/utils/format-url.js +0 -78
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js +0 -151
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-segment-param.js +0 -77
- package/dist/node_modules/next/dist/shared/lib/router/utils/index.js +0 -32
- package/dist/node_modules/next/dist/shared/lib/router/utils/interception-routes.js +0 -92
- package/dist/node_modules/next/dist/shared/lib/router/utils/interpolate-as.js +0 -41
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js +0 -26
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-local-url.js +0 -31
- package/dist/node_modules/next/dist/shared/lib/router/utils/omit.js +0 -24
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.js +0 -33
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-path.js +0 -36
- package/dist/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js +0 -24
- package/dist/node_modules/next/dist/shared/lib/router/utils/querystring.js +0 -56
- package/dist/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js +0 -26
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-match-utils.js +0 -94
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-matcher.js +0 -46
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-regex.js +0 -203
- package/dist/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js +0 -167
- package/dist/node_modules/next/dist/shared/lib/router-context.shared-runtime.js +0 -20
- package/dist/node_modules/next/dist/shared/lib/segment.js +0 -80
- package/dist/node_modules/next/dist/shared/lib/utils/error-once.js +0 -25
- package/dist/node_modules/next/dist/shared/lib/utils.js +0 -172
- package/dist/node_modules/next/link.js +0 -12
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin } from "../../../../../_virtual/rolldown_runtime.js";
|
|
2
|
-
|
|
3
|
-
//#region ../../../node_modules/next/dist/shared/lib/segment.js
|
|
4
|
-
var require_segment = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
function _export(target, all) {
|
|
7
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: all[name]
|
|
10
|
-
});
|
|
11
|
-
}
|
|
12
|
-
_export(exports, {
|
|
13
|
-
DEFAULT_SEGMENT_KEY: function() {
|
|
14
|
-
return DEFAULT_SEGMENT_KEY;
|
|
15
|
-
},
|
|
16
|
-
PAGE_SEGMENT_KEY: function() {
|
|
17
|
-
return PAGE_SEGMENT_KEY;
|
|
18
|
-
},
|
|
19
|
-
addSearchParamsIfPageSegment: function() {
|
|
20
|
-
return addSearchParamsIfPageSegment;
|
|
21
|
-
},
|
|
22
|
-
computeSelectedLayoutSegment: function() {
|
|
23
|
-
return computeSelectedLayoutSegment;
|
|
24
|
-
},
|
|
25
|
-
getSegmentValue: function() {
|
|
26
|
-
return getSegmentValue;
|
|
27
|
-
},
|
|
28
|
-
getSelectedLayoutSegmentPath: function() {
|
|
29
|
-
return getSelectedLayoutSegmentPath;
|
|
30
|
-
},
|
|
31
|
-
isGroupSegment: function() {
|
|
32
|
-
return isGroupSegment;
|
|
33
|
-
},
|
|
34
|
-
isParallelRouteSegment: function() {
|
|
35
|
-
return isParallelRouteSegment;
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
function getSegmentValue(segment) {
|
|
39
|
-
return Array.isArray(segment) ? segment[1] : segment;
|
|
40
|
-
}
|
|
41
|
-
function isGroupSegment(segment) {
|
|
42
|
-
return segment[0] === "(" && segment.endsWith(")");
|
|
43
|
-
}
|
|
44
|
-
function isParallelRouteSegment(segment) {
|
|
45
|
-
return segment.startsWith("@") && segment !== "@children";
|
|
46
|
-
}
|
|
47
|
-
function addSearchParamsIfPageSegment(segment, searchParams) {
|
|
48
|
-
if (segment.includes(PAGE_SEGMENT_KEY)) {
|
|
49
|
-
const stringifiedQuery = JSON.stringify(searchParams);
|
|
50
|
-
return stringifiedQuery !== "{}" ? PAGE_SEGMENT_KEY + "?" + stringifiedQuery : PAGE_SEGMENT_KEY;
|
|
51
|
-
}
|
|
52
|
-
return segment;
|
|
53
|
-
}
|
|
54
|
-
function computeSelectedLayoutSegment(segments, parallelRouteKey) {
|
|
55
|
-
if (!segments || segments.length === 0) return null;
|
|
56
|
-
const rawSegment = parallelRouteKey === "children" ? segments[0] : segments[segments.length - 1];
|
|
57
|
-
return rawSegment === DEFAULT_SEGMENT_KEY ? null : rawSegment;
|
|
58
|
-
}
|
|
59
|
-
function getSelectedLayoutSegmentPath(tree, parallelRouteKey, first = true, segmentPath = []) {
|
|
60
|
-
let node;
|
|
61
|
-
if (first) node = tree[1][parallelRouteKey];
|
|
62
|
-
else {
|
|
63
|
-
const parallelRoutes = tree[1];
|
|
64
|
-
node = parallelRoutes.children ?? Object.values(parallelRoutes)[0];
|
|
65
|
-
}
|
|
66
|
-
if (!node) return segmentPath;
|
|
67
|
-
const segment = node[0];
|
|
68
|
-
let segmentValue = getSegmentValue(segment);
|
|
69
|
-
if (!segmentValue || segmentValue.startsWith(PAGE_SEGMENT_KEY)) return segmentPath;
|
|
70
|
-
segmentPath.push(segmentValue);
|
|
71
|
-
return getSelectedLayoutSegmentPath(node, parallelRouteKey, false, segmentPath);
|
|
72
|
-
}
|
|
73
|
-
const PAGE_SEGMENT_KEY = "__PAGE__";
|
|
74
|
-
const DEFAULT_SEGMENT_KEY = "__DEFAULT__";
|
|
75
|
-
}));
|
|
76
|
-
|
|
77
|
-
//#endregion
|
|
78
|
-
export default require_segment();
|
|
79
|
-
|
|
80
|
-
export { require_segment };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin } from "../../../../../../_virtual/rolldown_runtime.js";
|
|
2
|
-
|
|
3
|
-
//#region ../../../node_modules/next/dist/shared/lib/utils/error-once.js
|
|
4
|
-
var require_error_once = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
Object.defineProperty(exports, "errorOnce", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function() {
|
|
9
|
-
return errorOnce;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
let errorOnce = (_) => {};
|
|
13
|
-
{
|
|
14
|
-
const errors = /* @__PURE__ */ new Set();
|
|
15
|
-
errorOnce = (msg) => {
|
|
16
|
-
if (!errors.has(msg)) console.error(msg);
|
|
17
|
-
errors.add(msg);
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
}));
|
|
21
|
-
|
|
22
|
-
//#endregion
|
|
23
|
-
export default require_error_once();
|
|
24
|
-
|
|
25
|
-
export { require_error_once };
|
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin } from "../../../../../_virtual/rolldown_runtime.js";
|
|
2
|
-
|
|
3
|
-
//#region ../../../node_modules/next/dist/shared/lib/utils.js
|
|
4
|
-
var require_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
function _export(target, all) {
|
|
7
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: all[name]
|
|
10
|
-
});
|
|
11
|
-
}
|
|
12
|
-
_export(exports, {
|
|
13
|
-
DecodeError: function() {
|
|
14
|
-
return DecodeError;
|
|
15
|
-
},
|
|
16
|
-
MiddlewareNotFoundError: function() {
|
|
17
|
-
return MiddlewareNotFoundError;
|
|
18
|
-
},
|
|
19
|
-
MissingStaticPage: function() {
|
|
20
|
-
return MissingStaticPage;
|
|
21
|
-
},
|
|
22
|
-
NormalizeError: function() {
|
|
23
|
-
return NormalizeError;
|
|
24
|
-
},
|
|
25
|
-
PageNotFoundError: function() {
|
|
26
|
-
return PageNotFoundError;
|
|
27
|
-
},
|
|
28
|
-
SP: function() {
|
|
29
|
-
return SP;
|
|
30
|
-
},
|
|
31
|
-
ST: function() {
|
|
32
|
-
return ST;
|
|
33
|
-
},
|
|
34
|
-
WEB_VITALS: function() {
|
|
35
|
-
return WEB_VITALS;
|
|
36
|
-
},
|
|
37
|
-
execOnce: function() {
|
|
38
|
-
return execOnce;
|
|
39
|
-
},
|
|
40
|
-
getDisplayName: function() {
|
|
41
|
-
return getDisplayName;
|
|
42
|
-
},
|
|
43
|
-
getLocationOrigin: function() {
|
|
44
|
-
return getLocationOrigin;
|
|
45
|
-
},
|
|
46
|
-
getURL: function() {
|
|
47
|
-
return getURL;
|
|
48
|
-
},
|
|
49
|
-
isAbsoluteUrl: function() {
|
|
50
|
-
return isAbsoluteUrl;
|
|
51
|
-
},
|
|
52
|
-
isResSent: function() {
|
|
53
|
-
return isResSent;
|
|
54
|
-
},
|
|
55
|
-
loadGetInitialProps: function() {
|
|
56
|
-
return loadGetInitialProps;
|
|
57
|
-
},
|
|
58
|
-
normalizeRepeatedSlashes: function() {
|
|
59
|
-
return normalizeRepeatedSlashes;
|
|
60
|
-
},
|
|
61
|
-
stringifyError: function() {
|
|
62
|
-
return stringifyError;
|
|
63
|
-
}
|
|
64
|
-
});
|
|
65
|
-
const WEB_VITALS = [
|
|
66
|
-
"CLS",
|
|
67
|
-
"FCP",
|
|
68
|
-
"FID",
|
|
69
|
-
"INP",
|
|
70
|
-
"LCP",
|
|
71
|
-
"TTFB"
|
|
72
|
-
];
|
|
73
|
-
function execOnce(fn) {
|
|
74
|
-
let used = false;
|
|
75
|
-
let result;
|
|
76
|
-
return (...args) => {
|
|
77
|
-
if (!used) {
|
|
78
|
-
used = true;
|
|
79
|
-
result = fn(...args);
|
|
80
|
-
}
|
|
81
|
-
return result;
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
const ABSOLUTE_URL_REGEX = /^[a-zA-Z][a-zA-Z\d+\-.]*?:/;
|
|
85
|
-
const isAbsoluteUrl = (url) => ABSOLUTE_URL_REGEX.test(url);
|
|
86
|
-
function getLocationOrigin() {
|
|
87
|
-
const { protocol, hostname, port } = window.location;
|
|
88
|
-
return `${protocol}//${hostname}${port ? ":" + port : ""}`;
|
|
89
|
-
}
|
|
90
|
-
function getURL() {
|
|
91
|
-
const { href } = window.location;
|
|
92
|
-
const origin = getLocationOrigin();
|
|
93
|
-
return href.substring(origin.length);
|
|
94
|
-
}
|
|
95
|
-
function getDisplayName(Component) {
|
|
96
|
-
return typeof Component === "string" ? Component : Component.displayName || Component.name || "Unknown";
|
|
97
|
-
}
|
|
98
|
-
function isResSent(res) {
|
|
99
|
-
return res.finished || res.headersSent;
|
|
100
|
-
}
|
|
101
|
-
function normalizeRepeatedSlashes(url) {
|
|
102
|
-
const urlParts = url.split("?");
|
|
103
|
-
return urlParts[0].replace(/\\/g, "/").replace(/\/\/+/g, "/") + (urlParts[1] ? `?${urlParts.slice(1).join("?")}` : "");
|
|
104
|
-
}
|
|
105
|
-
async function loadGetInitialProps(App, ctx) {
|
|
106
|
-
if (App.prototype?.getInitialProps) {
|
|
107
|
-
const message = `"${getDisplayName(App)}.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.`;
|
|
108
|
-
throw Object.defineProperty(new Error(message), "__NEXT_ERROR_CODE", {
|
|
109
|
-
value: "E394",
|
|
110
|
-
enumerable: false,
|
|
111
|
-
configurable: true
|
|
112
|
-
});
|
|
113
|
-
}
|
|
114
|
-
const res = ctx.res || ctx.ctx && ctx.ctx.res;
|
|
115
|
-
if (!App.getInitialProps) {
|
|
116
|
-
if (ctx.ctx && ctx.Component) return { pageProps: await loadGetInitialProps(ctx.Component, ctx.ctx) };
|
|
117
|
-
return {};
|
|
118
|
-
}
|
|
119
|
-
const props = await App.getInitialProps(ctx);
|
|
120
|
-
if (res && isResSent(res)) return props;
|
|
121
|
-
if (!props) {
|
|
122
|
-
const message = `"${getDisplayName(App)}.getInitialProps()" should resolve to an object. But found "${props}" instead.`;
|
|
123
|
-
throw Object.defineProperty(new Error(message), "__NEXT_ERROR_CODE", {
|
|
124
|
-
value: "E394",
|
|
125
|
-
enumerable: false,
|
|
126
|
-
configurable: true
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
if (Object.keys(props).length === 0 && !ctx.ctx) console.warn(`${getDisplayName(App)} returned an empty object from \`getInitialProps\`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps`);
|
|
130
|
-
return props;
|
|
131
|
-
}
|
|
132
|
-
const SP = typeof performance !== "undefined";
|
|
133
|
-
const ST = SP && [
|
|
134
|
-
"mark",
|
|
135
|
-
"measure",
|
|
136
|
-
"getEntriesByName"
|
|
137
|
-
].every((method) => typeof performance[method] === "function");
|
|
138
|
-
var DecodeError = class extends Error {};
|
|
139
|
-
var NormalizeError = class extends Error {};
|
|
140
|
-
var PageNotFoundError = class extends Error {
|
|
141
|
-
constructor(page) {
|
|
142
|
-
super();
|
|
143
|
-
this.code = "ENOENT";
|
|
144
|
-
this.name = "PageNotFoundError";
|
|
145
|
-
this.message = `Cannot find module for page: ${page}`;
|
|
146
|
-
}
|
|
147
|
-
};
|
|
148
|
-
var MissingStaticPage = class extends Error {
|
|
149
|
-
constructor(page, message) {
|
|
150
|
-
super();
|
|
151
|
-
this.message = `Failed to load static file for page: ${page} ${message}`;
|
|
152
|
-
}
|
|
153
|
-
};
|
|
154
|
-
var MiddlewareNotFoundError = class extends Error {
|
|
155
|
-
constructor() {
|
|
156
|
-
super();
|
|
157
|
-
this.code = "ENOENT";
|
|
158
|
-
this.message = `Cannot find the middleware module`;
|
|
159
|
-
}
|
|
160
|
-
};
|
|
161
|
-
function stringifyError(error) {
|
|
162
|
-
return JSON.stringify({
|
|
163
|
-
message: error.message,
|
|
164
|
-
stack: error.stack
|
|
165
|
-
});
|
|
166
|
-
}
|
|
167
|
-
}));
|
|
168
|
-
|
|
169
|
-
//#endregion
|
|
170
|
-
export default require_utils();
|
|
171
|
-
|
|
172
|
-
export { require_utils };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin } from "../../_virtual/rolldown_runtime.js";
|
|
2
|
-
import { require_link as require_link$1 } from "./dist/client/link.js";
|
|
3
|
-
|
|
4
|
-
//#region ../../../node_modules/next/link.js
|
|
5
|
-
var require_link = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6
|
-
module.exports = require_link$1();
|
|
7
|
-
}));
|
|
8
|
-
|
|
9
|
-
//#endregion
|
|
10
|
-
export default require_link();
|
|
11
|
-
|
|
12
|
-
export { require_link };
|