maquinaweb-ui 2.67.0 → 2.69.0
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/actions.js +3 -5
- package/dist/actions.js.map +1 -1
- package/dist/container-animation/container-animation.d.ts +2 -2
- package/dist/container-animation/container-animation.d.ts.map +1 -1
- package/dist/date-field/DateField.d.ts +2 -2
- package/dist/date-hour-field/DateHourField.d.ts +2 -2
- package/dist/input-suggest/input-suggest.d.ts +2 -2
- package/dist/landing-text/client-landing-text.js +2 -3
- package/dist/landing-text/client-landing-text.js.map +1 -1
- package/dist/landing-text/landing-content.d.ts.map +1 -1
- package/dist/landing-text/landing-content.js +4 -1
- package/dist/landing-text/landing-content.js.map +1 -1
- package/dist/landing-text/landing-text.d.ts +2 -2
- package/dist/landing-text/server-landing-text.d.ts +2 -2
- package/dist/landing-text/server-landing-text.d.ts.map +1 -1
- package/dist/page-header/page-header.d.ts +2 -2
- package/dist/remote-selector/remote-selector.d.ts +3 -3
- package/dist/text-field/TextField.d.ts +5 -5
- package/dist/toggle-field/ToggleGroup.d.ts +2 -2
- package/package.json +1 -1
- package/dist/_virtual/rolldown_runtime.js +0 -31
- package/dist/node_modules/next/cache.js +0 -79
- package/dist/node_modules/next/cache.js.map +0 -1
- package/dist/node_modules/next/dist/build/output/log.js +0 -119
- package/dist/node_modules/next/dist/build/output/log.js.map +0 -1
- package/dist/node_modules/next/dist/client/components/app-router-headers.js +0 -119
- package/dist/node_modules/next/dist/client/components/app-router-headers.js.map +0 -1
- package/dist/node_modules/next/dist/client/components/hooks-server-context.js +0 -41
- package/dist/node_modules/next/dist/client/components/hooks-server-context.js.map +0 -1
- package/dist/node_modules/next/dist/client/components/static-generation-bailout.js +0 -41
- package/dist/node_modules/next/dist/client/components/static-generation-bailout.js.map +0 -1
- package/dist/node_modules/next/dist/compiled/@edge-runtime/cookies/index.js +0 -312
- package/dist/node_modules/next/dist/compiled/@edge-runtime/cookies/index.js.map +0 -1
- package/dist/node_modules/next/dist/compiled/@opentelemetry/api/index.js +0 -1286
- package/dist/node_modules/next/dist/compiled/@opentelemetry/api/index.js.map +0 -1
- package/dist/node_modules/next/dist/lib/batcher.js +0 -63
- package/dist/node_modules/next/dist/lib/batcher.js.map +0 -1
- package/dist/node_modules/next/dist/lib/constants.js +0 -325
- package/dist/node_modules/next/dist/lib/constants.js.map +0 -1
- package/dist/node_modules/next/dist/lib/detached-promise.js +0 -30
- package/dist/node_modules/next/dist/lib/detached-promise.js.map +0 -1
- package/dist/node_modules/next/dist/lib/framework/boundary-constants.js +0 -36
- package/dist/node_modules/next/dist/lib/framework/boundary-constants.js.map +0 -1
- package/dist/node_modules/next/dist/lib/picocolors.js +0 -141
- package/dist/node_modules/next/dist/lib/picocolors.js.map +0 -1
- package/dist/node_modules/next/dist/lib/scheduler.js +0 -49
- package/dist/node_modules/next/dist/lib/scheduler.js.map +0 -1
- package/dist/node_modules/next/dist/server/app-render/async-local-storage.js +0 -67
- package/dist/node_modules/next/dist/server/app-render/async-local-storage.js.map +0 -1
- package/dist/node_modules/next/dist/server/app-render/dynamic-rendering.js +0 -763
- package/dist/node_modules/next/dist/server/app-render/dynamic-rendering.js.map +0 -1
- package/dist/node_modules/next/dist/server/app-render/instant-validation/boundary-constants.js +0 -19
- package/dist/node_modules/next/dist/server/app-render/instant-validation/boundary-constants.js.map +0 -1
- package/dist/node_modules/next/dist/server/app-render/staged-rendering.js +0 -215
- package/dist/node_modules/next/dist/server/app-render/staged-rendering.js.map +0 -1
- package/dist/node_modules/next/dist/server/app-render/work-async-storage-instance.js +0 -20
- package/dist/node_modules/next/dist/server/app-render/work-async-storage-instance.js.map +0 -1
- package/dist/node_modules/next/dist/server/app-render/work-async-storage.external.js +0 -20
- package/dist/node_modules/next/dist/server/app-render/work-async-storage.external.js.map +0 -1
- package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js +0 -20
- package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js.map +0 -1
- package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js +0 -214
- package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js.map +0 -1
- package/dist/node_modules/next/dist/server/base-http/helpers.js +0 -36
- package/dist/node_modules/next/dist/server/base-http/helpers.js.map +0 -1
- package/dist/node_modules/next/dist/server/client-component-renderer-logger.js +0 -65
- package/dist/node_modules/next/dist/server/client-component-renderer-logger.js.map +0 -1
- package/dist/node_modules/next/dist/server/dynamic-rendering-utils.js +0 -85
- package/dist/node_modules/next/dist/server/dynamic-rendering-utils.js.map +0 -1
- package/dist/node_modules/next/dist/server/lib/clone-response.js +0 -55
- package/dist/node_modules/next/dist/server/lib/clone-response.js.map +0 -1
- package/dist/node_modules/next/dist/server/lib/dedupe-fetch.js +0 -106
- package/dist/node_modules/next/dist/server/lib/dedupe-fetch.js.map +0 -1
- package/dist/node_modules/next/dist/server/lib/lru-cache.js +0 -179
- package/dist/node_modules/next/dist/server/lib/lru-cache.js.map +0 -1
- package/dist/node_modules/next/dist/server/lib/patch-fetch.js +0 -703
- package/dist/node_modules/next/dist/server/lib/patch-fetch.js.map +0 -1
- package/dist/node_modules/next/dist/server/lib/trace/constants.js +0 -186
- package/dist/node_modules/next/dist/server/lib/trace/constants.js.map +0 -1
- package/dist/node_modules/next/dist/server/lib/trace/tracer.js +0 -229
- package/dist/node_modules/next/dist/server/lib/trace/tracer.js.map +0 -1
- package/dist/node_modules/next/dist/server/pipe-readable.js +0 -112
- package/dist/node_modules/next/dist/server/pipe-readable.js.map +0 -1
- package/dist/node_modules/next/dist/server/render-result.js +0 -156
- package/dist/node_modules/next/dist/server/render-result.js.map +0 -1
- package/dist/node_modules/next/dist/server/request-meta.js +0 -54
- package/dist/node_modules/next/dist/server/request-meta.js.map +0 -1
- package/dist/node_modules/next/dist/server/response-cache/index.js +0 -255
- package/dist/node_modules/next/dist/server/response-cache/index.js.map +0 -1
- package/dist/node_modules/next/dist/server/response-cache/types.js +0 -43
- package/dist/node_modules/next/dist/server/response-cache/types.js.map +0 -1
- package/dist/node_modules/next/dist/server/response-cache/utils.js +0 -100
- package/dist/node_modules/next/dist/server/response-cache/utils.js.map +0 -1
- package/dist/node_modules/next/dist/server/route-kind.js +0 -38
- package/dist/node_modules/next/dist/server/route-kind.js.map +0 -1
- package/dist/node_modules/next/dist/server/stream-utils/encoded-tags.js +0 -115
- package/dist/node_modules/next/dist/server/stream-utils/encoded-tags.js.map +0 -1
- package/dist/node_modules/next/dist/server/stream-utils/node-web-streams-helper.js +0 -635
- package/dist/node_modules/next/dist/server/stream-utils/node-web-streams-helper.js.map +0 -1
- package/dist/node_modules/next/dist/server/stream-utils/uint8array-helpers.js +0 -58
- package/dist/node_modules/next/dist/server/stream-utils/uint8array-helpers.js.map +0 -1
- package/dist/node_modules/next/dist/server/use-cache/cache-life.js +0 -140
- package/dist/node_modules/next/dist/server/use-cache/cache-life.js.map +0 -1
- package/dist/node_modules/next/dist/server/use-cache/cache-tag.js +0 -52
- package/dist/node_modules/next/dist/server/use-cache/cache-tag.js.map +0 -1
- package/dist/node_modules/next/dist/server/web/error.js +0 -55
- package/dist/node_modules/next/dist/server/web/error.js.map +0 -1
- package/dist/node_modules/next/dist/server/web/next-url.js +0 -203
- package/dist/node_modules/next/dist/server/web/next-url.js.map +0 -1
- package/dist/node_modules/next/dist/server/web/spec-extension/adapters/next-request.js +0 -103
- package/dist/node_modules/next/dist/server/web/spec-extension/adapters/next-request.js.map +0 -1
- package/dist/node_modules/next/dist/server/web/spec-extension/cookies.js +0 -31
- package/dist/node_modules/next/dist/server/web/spec-extension/cookies.js.map +0 -1
- package/dist/node_modules/next/dist/server/web/spec-extension/request.js +0 -98
- package/dist/node_modules/next/dist/server/web/spec-extension/request.js.map +0 -1
- package/dist/node_modules/next/dist/server/web/spec-extension/revalidate.js +0 -162
- package/dist/node_modules/next/dist/server/web/spec-extension/revalidate.js.map +0 -1
- package/dist/node_modules/next/dist/server/web/spec-extension/unstable-cache.js +0 -187
- package/dist/node_modules/next/dist/server/web/spec-extension/unstable-cache.js.map +0 -1
- package/dist/node_modules/next/dist/server/web/spec-extension/unstable-no-store.js +0 -49
- package/dist/node_modules/next/dist/server/web/spec-extension/unstable-no-store.js.map +0 -1
- package/dist/node_modules/next/dist/server/web/utils.js +0 -113
- package/dist/node_modules/next/dist/server/web/utils.js.map +0 -1
- package/dist/node_modules/next/dist/shared/lib/action-revalidation-kind.js +0 -32
- package/dist/node_modules/next/dist/shared/lib/action-revalidation-kind.js.map +0 -1
- package/dist/node_modules/next/dist/shared/lib/errors/constants.js +0 -24
- package/dist/node_modules/next/dist/shared/lib/errors/constants.js.map +0 -1
- package/dist/node_modules/next/dist/shared/lib/get-hostname.js +0 -25
- package/dist/node_modules/next/dist/shared/lib/get-hostname.js.map +0 -1
- package/dist/node_modules/next/dist/shared/lib/hash.js +0 -37
- package/dist/node_modules/next/dist/shared/lib/hash.js.map +0 -1
- package/dist/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js +0 -23
- package/dist/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js.map +0 -1
- package/dist/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js +0 -43
- package/dist/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js.map +0 -1
- package/dist/node_modules/next/dist/shared/lib/invariant-error.js +0 -24
- package/dist/node_modules/next/dist/shared/lib/invariant-error.js.map +0 -1
- package/dist/node_modules/next/dist/shared/lib/is-thenable.js +0 -21
- package/dist/node_modules/next/dist/shared/lib/is-thenable.js.map +0 -1
- package/dist/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js +0 -36
- package/dist/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js.map +0 -1
- package/dist/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js +0 -21
- package/dist/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js.map +0 -1
- package/dist/node_modules/next/dist/shared/lib/promise-with-resolvers.js +0 -31
- package/dist/node_modules/next/dist/shared/lib/promise-with-resolvers.js.map +0 -1
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-locale.js +0 -31
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-locale.js.map +0 -1
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js +0 -25
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js.map +0 -1
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-suffix.js +0 -25
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-suffix.js.map +0 -1
- package/dist/node_modules/next/dist/shared/lib/router/utils/app-paths.js +0 -52
- package/dist/node_modules/next/dist/shared/lib/router/utils/app-paths.js.map +0 -1
- package/dist/node_modules/next/dist/shared/lib/router/utils/cache-busting-search-param.js +0 -29
- package/dist/node_modules/next/dist/shared/lib/router/utils/cache-busting-search-param.js.map +0 -1
- package/dist/node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.js +0 -33
- package/dist/node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.js.map +0 -1
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-next-pathname-info.js +0 -52
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-next-pathname-info.js.map +0 -1
- package/dist/node_modules/next/dist/shared/lib/router/utils/index.js +0 -33
- package/dist/node_modules/next/dist/shared/lib/router/utils/index.js.map +0 -1
- package/dist/node_modules/next/dist/shared/lib/router/utils/interception-routes.js +0 -93
- package/dist/node_modules/next/dist/shared/lib/router/utils/interception-routes.js.map +0 -1
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js +0 -27
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js.map +0 -1
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-path.js +0 -33
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-path.js.map +0 -1
- package/dist/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js +0 -25
- package/dist/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js.map +0 -1
- package/dist/node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.js +0 -26
- package/dist/node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.js.map +0 -1
- package/dist/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js +0 -21
- package/dist/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js.map +0 -1
- package/dist/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js +0 -168
- package/dist/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js.map +0 -1
- package/dist/node_modules/next/dist/shared/lib/segment.js +0 -85
- package/dist/node_modules/next/dist/shared/lib/segment.js.map +0 -1
package/dist/actions.js
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
'use server';
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
import {
|
|
5
|
-
import { require_cache } from "./node_modules/next/cache.js";
|
|
4
|
+
import { updateTag } from "next/cache";
|
|
6
5
|
|
|
7
6
|
//#region src/components/actions.ts
|
|
8
|
-
var import_cache = /* @__PURE__ */ __toESM(require_cache(), 1);
|
|
9
7
|
async function refreshTag(tag) {
|
|
10
|
-
if (Array.isArray(tag)) tag.forEach((t) =>
|
|
11
|
-
else
|
|
8
|
+
if (Array.isArray(tag)) tag.forEach((t) => updateTag(t));
|
|
9
|
+
else updateTag(tag);
|
|
12
10
|
}
|
|
13
11
|
|
|
14
12
|
//#endregion
|
package/dist/actions.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.js","names":[],"sources":["../src/components/actions.ts"],"sourcesContent":["'use server';\n\nimport { updateTag } from 'next/cache';\n\nexport async function refreshTag(tag: string | string[]) {\n if (Array.isArray(tag)) {\n tag.forEach((t) => updateTag(t));\n } else {\n updateTag(tag);\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"actions.js","names":[],"sources":["../src/components/actions.ts"],"sourcesContent":["'use server';\n\nimport { updateTag } from 'next/cache';\n\nexport async function refreshTag(tag: string | string[]) {\n if (Array.isArray(tag)) {\n tag.forEach((t) => updateTag(t));\n } else {\n updateTag(tag);\n }\n}\n"],"mappings":";;;;;;AAIA,eAAsB,WAAW,KAAwB;AACvD,KAAI,MAAM,QAAQ,IAAI,CACpB,KAAI,SAAS,MAAM,UAAU,EAAE,CAAC;KAEhC,WAAU,IAAI"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentProps, ElementType } from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/container-animation/container-animation.d.ts
|
|
5
5
|
type ContainerAnimationProps<T extends ElementType = 'div'> = ComponentProps<'div'> & ComponentProps<T> & {
|
|
@@ -23,7 +23,7 @@ declare const ContainerAnimation: <T extends ElementType = "div">({
|
|
|
23
23
|
distance,
|
|
24
24
|
hideNotInView,
|
|
25
25
|
...props
|
|
26
|
-
}: ContainerAnimationProps<T>) =>
|
|
26
|
+
}: ContainerAnimationProps<T>) => react_jsx_runtime0.JSX.Element;
|
|
27
27
|
//#endregion
|
|
28
28
|
export { ContainerAnimation, ContainerAnimationProps };
|
|
29
29
|
//# sourceMappingURL=container-animation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"container-animation.d.ts","names":[],"sources":["../../src/components/container-animation/container-animation.tsx"],"sourcesContent":[],"mappings":";;;;KAiDY,kCAAkC,uBAC5C,wBACE,eAAe;;;EAFP,KAAA,CAAA,EAAA,MAAA;EAAkC,QAAA,CAAA,EAAA,MAAA;EAC5C,QAAA,CAAA,EAAA,CAAA,MAAA,EAAA,MAAA,CAAA;EACiB,aAAA,CAAA,EAAA,OAAA;EAAf,EAAA,CAAA,EAOO,CAPP,GAAA,MAAA;EAOO,SAAA,CAAA,EAAA,MAAA;CAAC;AAEN,cAEA,kBAkCL,EAAA,CAAA,UAlCqC,WAkCrC,GAAA,KAAA,CAAA,CAAA;EAAA,SAAA;EAAA,QAAA;EAAA,QAAA;EAAA,KAAA;EAAA,KAAA;EAAA,QAAA;EAAA,EAAA,EAlC0D,EAkC1D;EAAA,QAAA;EAAA,aAAA;EAAA,GAAA;AAAA,CAAA,EAvBE,uBAuBF,CAvB0B,CAuB1B,CAAA,EAAA,GAvB4B,
|
|
1
|
+
{"version":3,"file":"container-animation.d.ts","names":[],"sources":["../../src/components/container-animation/container-animation.tsx"],"sourcesContent":[],"mappings":";;;;KAiDY,kCAAkC,uBAC5C,wBACE,eAAe;;;EAFP,KAAA,CAAA,EAAA,MAAA;EAAkC,QAAA,CAAA,EAAA,MAAA;EAC5C,QAAA,CAAA,EAAA,CAAA,MAAA,EAAA,MAAA,CAAA;EACiB,aAAA,CAAA,EAAA,OAAA;EAAf,EAAA,CAAA,EAOO,CAPP,GAAA,MAAA;EAOO,SAAA,CAAA,EAAA,MAAA;CAAC;AAEN,cAEA,kBAkCL,EAAA,CAAA,UAlCqC,WAkCrC,GAAA,KAAA,CAAA,CAAA;EAAA,SAAA;EAAA,QAAA;EAAA,QAAA;EAAA,KAAA;EAAA,KAAA;EAAA,QAAA;EAAA,EAAA,EAlC0D,EAkC1D;EAAA,QAAA;EAAA,aAAA;EAAA,GAAA;AAAA,CAAA,EAvBE,uBAuBF,CAvB0B,CAuB1B,CAAA,EAAA,GAvB4B,kBAAA,CAAA,GAAA,CAAA,OAuB5B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FieldPath, FieldValues, UseControllerProps } from "react-hook-form";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
3
3
|
import { Matcher } from "react-day-picker";
|
|
4
4
|
|
|
5
5
|
//#region src/components/date-field/DateField.d.ts
|
|
@@ -29,7 +29,7 @@ declare function DateField<TFieldValues extends FieldValues = FieldValues, TFiel
|
|
|
29
29
|
required,
|
|
30
30
|
help,
|
|
31
31
|
dateOnly
|
|
32
|
-
}: DateFieldProps<TFieldValues, TFieldName>):
|
|
32
|
+
}: DateFieldProps<TFieldValues, TFieldName>): react_jsx_runtime1.JSX.Element;
|
|
33
33
|
//#endregion
|
|
34
34
|
export { DateField, DateFieldProps };
|
|
35
35
|
//# sourceMappingURL=DateField.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FieldPath, FieldValues, UseControllerProps } from "react-hook-form";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
import { Matcher } from "react-day-picker";
|
|
4
4
|
|
|
5
5
|
//#region src/components/date-hour-field/DateHourField.d.ts
|
|
@@ -29,7 +29,7 @@ declare function DateHourField<TFieldValues extends FieldValues = FieldValues, T
|
|
|
29
29
|
help,
|
|
30
30
|
hourPlaceholder,
|
|
31
31
|
valueType
|
|
32
|
-
}: DateHourFieldProps<TFieldValues, TFieldName>):
|
|
32
|
+
}: DateHourFieldProps<TFieldValues, TFieldName>): react_jsx_runtime0.JSX.Element;
|
|
33
33
|
//#endregion
|
|
34
34
|
export { DateHourField, DateHourFieldProps };
|
|
35
35
|
//# sourceMappingURL=DateHourField.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Mask, Options } from "../src/hooks/with-mask.js";
|
|
2
2
|
import { FieldPath, FieldValues, UseControllerProps } from "react-hook-form";
|
|
3
3
|
import { Dispatch, SetStateAction } from "react";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime6 from "react/jsx-runtime";
|
|
5
5
|
import { PopoverProps } from "@radix-ui/react-popover";
|
|
6
6
|
|
|
7
7
|
//#region src/components/input-suggest/input-suggest.d.ts
|
|
@@ -71,7 +71,7 @@ declare function InputSuggest<TFieldValues extends FieldValues = FieldValues, TF
|
|
|
71
71
|
debounceTime,
|
|
72
72
|
maxWait,
|
|
73
73
|
...props
|
|
74
|
-
}: InputSuggestProps<TFieldValues, TFieldName> & PopoverProps):
|
|
74
|
+
}: InputSuggestProps<TFieldValues, TFieldName> & PopoverProps): react_jsx_runtime6.JSX.Element;
|
|
75
75
|
//#endregion
|
|
76
76
|
export { InputSuggest, InputSuggestProps };
|
|
77
77
|
//# sourceMappingURL=input-suggest.d.ts.map
|
|
@@ -32,7 +32,7 @@ async function persistLandingContent(item, value) {
|
|
|
32
32
|
if (!baseUrl) return;
|
|
33
33
|
const token = getCookieValue("token");
|
|
34
34
|
if (!token || !organization) throw new Error("Credenciais de edição indisponíveis para salvar conteúdo.");
|
|
35
|
-
|
|
35
|
+
if (!(await fetch(`${normalizeBaseUrl(baseUrl)}/landing-page-contents/upsert/`, {
|
|
36
36
|
method: "POST",
|
|
37
37
|
headers: {
|
|
38
38
|
"Content-Type": "application/json",
|
|
@@ -51,9 +51,8 @@ async function persistLandingContent(item, value) {
|
|
|
51
51
|
metadata: item.metadata
|
|
52
52
|
}),
|
|
53
53
|
credentials: "include"
|
|
54
|
-
});
|
|
54
|
+
})).ok) throw new Error("Nao foi possivel salvar o conteudo.");
|
|
55
55
|
await refreshTag(`landing-page-content-${item.pageKey}`);
|
|
56
|
-
if (!response.ok) throw new Error("Nao foi possivel salvar o conteudo.");
|
|
57
56
|
}
|
|
58
57
|
function ClientLandingText({ item, editable, children }) {
|
|
59
58
|
const [isEditing, setIsEditing] = useState(false);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client-landing-text.js","names":[],"sources":["../../src/components/landing-text/client-landing-text.tsx"],"sourcesContent":["'use client';\n\nimport { useRef, useState } from 'react';\n\nimport { Slot } from '@radix-ui/react-slot';\nimport { Button } from '../ui/button';\n\nimport { Check, X } from 'lucide-react';\n\nimport { cn } from '@/lib/utils';\nimport { refreshTag } from '../actions';\nimport type { LandingTextItem } from './types';\n\ninterface ClientLandingTextProps {\n item: LandingTextItem;\n editable: boolean;\n children: React.ReactNode;\n}\n\nfunction labelFromKey(value: string) {\n if (!value) {\n return '';\n }\n\n return value\n .split(/[-_\\.]/g)\n .filter(Boolean)\n .map((word) => word.charAt(0).toUpperCase() + word.slice(1))\n .join(' ');\n}\n\nfunction normalizeBaseUrl(baseUrl: string): string {\n return baseUrl.endsWith('/') ? baseUrl.slice(0, -1) : baseUrl;\n}\n\nfunction getCookieValue(name: string): string | undefined {\n if (typeof document === 'undefined') {\n return undefined;\n }\n\n const key = `${encodeURIComponent(name)}=`;\n const cookies = document.cookie ? document.cookie.split('; ') : [];\n\n for (const cookie of cookies) {\n if (!cookie.startsWith(key)) {\n continue;\n }\n\n return decodeURIComponent(cookie.slice(key.length));\n }\n\n return undefined;\n}\n\nasync function persistLandingContent(item: LandingTextItem, value: string) {\n const baseUrl = String(process.env.NEXT_PUBLIC_BASE_URL || '');\n const organization = process.env.NEXT_PUBLIC_ORGANIZATION_ID || '';\n\n if (!baseUrl) {\n return;\n }\n\n const token = getCookieValue('token');\n\n if (!token || !organization) {\n throw new Error(\n 'Credenciais de edição indisponíveis para salvar conteúdo.'\n );\n }\n\n const endpoint = '/landing-page-contents/upsert/';\n const response = await fetch(`${normalizeBaseUrl(baseUrl)}${endpoint}`, {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json',\n Authorization: `Token ${token}`,\n 'X-Organization': organization,\n },\n body: JSON.stringify({\n page_key: item.pageKey,\n page_title: labelFromKey(item.pageKey),\n section_key: item.sectionKey,\n section_title: labelFromKey(item.sectionKey),\n content_key: item.contentKey,\n content_title: labelFromKey(item.contentKey),\n value,\n default_value: item.defaultValue,\n metadata: item.metadata,\n }),\n credentials: 'include',\n });\n\n
|
|
1
|
+
{"version":3,"file":"client-landing-text.js","names":[],"sources":["../../src/components/landing-text/client-landing-text.tsx"],"sourcesContent":["'use client';\n\nimport { useRef, useState } from 'react';\n\nimport { Slot } from '@radix-ui/react-slot';\nimport { Button } from '../ui/button';\n\nimport { Check, X } from 'lucide-react';\n\nimport { cn } from '@/lib/utils';\nimport { refreshTag } from '../actions';\nimport type { LandingTextItem } from './types';\n\ninterface ClientLandingTextProps {\n item: LandingTextItem;\n editable: boolean;\n children: React.ReactNode;\n}\n\nfunction labelFromKey(value: string) {\n if (!value) {\n return '';\n }\n\n return value\n .split(/[-_\\.]/g)\n .filter(Boolean)\n .map((word) => word.charAt(0).toUpperCase() + word.slice(1))\n .join(' ');\n}\n\nfunction normalizeBaseUrl(baseUrl: string): string {\n return baseUrl.endsWith('/') ? baseUrl.slice(0, -1) : baseUrl;\n}\n\nfunction getCookieValue(name: string): string | undefined {\n if (typeof document === 'undefined') {\n return undefined;\n }\n\n const key = `${encodeURIComponent(name)}=`;\n const cookies = document.cookie ? document.cookie.split('; ') : [];\n\n for (const cookie of cookies) {\n if (!cookie.startsWith(key)) {\n continue;\n }\n\n return decodeURIComponent(cookie.slice(key.length));\n }\n\n return undefined;\n}\n\nasync function persistLandingContent(item: LandingTextItem, value: string) {\n const baseUrl = String(process.env.NEXT_PUBLIC_BASE_URL || '');\n const organization = process.env.NEXT_PUBLIC_ORGANIZATION_ID || '';\n\n if (!baseUrl) {\n return;\n }\n\n const token = getCookieValue('token');\n\n if (!token || !organization) {\n throw new Error(\n 'Credenciais de edição indisponíveis para salvar conteúdo.'\n );\n }\n\n const endpoint = '/landing-page-contents/upsert/';\n const response = await fetch(`${normalizeBaseUrl(baseUrl)}${endpoint}`, {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json',\n Authorization: `Token ${token}`,\n 'X-Organization': organization,\n },\n body: JSON.stringify({\n page_key: item.pageKey,\n page_title: labelFromKey(item.pageKey),\n section_key: item.sectionKey,\n section_title: labelFromKey(item.sectionKey),\n content_key: item.contentKey,\n content_title: labelFromKey(item.contentKey),\n value,\n default_value: item.defaultValue,\n metadata: item.metadata,\n }),\n credentials: 'include',\n });\n\n if (!response.ok) {\n throw new Error('Nao foi possivel salvar o conteudo.');\n }\n\n await refreshTag(`landing-page-content-${item.pageKey}`);\n}\n\nfunction ClientLandingText({\n item,\n editable,\n children,\n}: ClientLandingTextProps) {\n const [isEditing, setIsEditing] = useState(false);\n const [isSaving, setIsSaving] = useState(false);\n const [currentValue, setCurrentValue] = useState(item.value);\n const [draftValue, setDraftValue] = useState(item.value);\n const ref = useRef<HTMLElement | null>(null);\n\n const handleEdit = (event: React.MouseEvent<HTMLElement>) => {\n if (!editable || isSaving) {\n return;\n }\n\n event.preventDefault();\n event.stopPropagation();\n\n const nextDraft = ref.current?.innerText ?? currentValue;\n setDraftValue(nextDraft);\n setIsEditing(true);\n\n requestAnimationFrame(() => {\n ref.current?.focus();\n });\n };\n\n const handleCancel = () => {\n if (ref.current) {\n ref.current.innerText = currentValue;\n }\n setDraftValue(currentValue);\n setIsEditing(false);\n };\n\n const handleSave = async () => {\n try {\n setIsSaving(true);\n await persistLandingContent(item, draftValue);\n setCurrentValue(draftValue);\n if (ref.current) {\n ref.current.innerText = draftValue;\n }\n setIsEditing(false);\n } finally {\n setIsSaving(false);\n }\n };\n\n const handleInput = (event: React.FormEvent<HTMLElement>) => {\n if (!isEditing) {\n return;\n }\n setDraftValue(event.currentTarget.innerText);\n };\n\n return (\n <div className=\"relative\">\n {editable && isEditing && (\n <div className=\"absolute right-0 z-10 h-fit -top-7 flex\">\n <Button\n className=\"size-6 rounded-none p-0\"\n disabled={isSaving}\n onClick={handleCancel}\n size=\"icon\"\n type=\"button\"\n variant=\"outline\"\n >\n <X />\n </Button>\n <Button\n className=\"size-6 rounded-none p-0\"\n disabled={isSaving}\n onClick={handleSave}\n size=\"icon\"\n type=\"button\"\n >\n <Check />\n </Button>\n </div>\n )}\n\n <Slot\n className={cn(\n 'relative',\n 'after:z-10 after:w-full after:h-full after:absolute after:left-1/2 after:-translate-x-1/2 after:top-1/2 after:-translate-y-1/2 after:box-content after:p-1',\n editable && 'hover:after:border hover:after:border-input',\n isEditing && 'after:border after:border-input',\n isEditing && 'outline-none cursor-text before:bg-red-500',\n !editable && 'after:hidden'\n )}\n contentEditable={editable && isEditing}\n onClick={handleEdit}\n onInput={handleInput}\n ref={ref}\n suppressContentEditableWarning\n >\n {children}\n </Slot>\n </div>\n );\n}\n\nexport {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W,GACT,YACA,8JACA,YAAY,+CACZ,aAAa,mCACb,aAAa,8CACb,CAAC,YAAY,eACd;GACD,iBAAiB,YAAY;GAC7B,SAAS;GACT,SAAS;GACJ;GACL;GAEC;IACI;GACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"landing-content.d.ts","names":[],"sources":["../../src/components/landing-text/landing-content.ts"],"sourcesContent":[],"mappings":";;;;iBAsBgB,sBAAA,WACJ,OAAO,gBAAgB;iBAQnB,cAAA;AATA,
|
|
1
|
+
{"version":3,"file":"landing-content.d.ts","names":[],"sources":["../../src/components/landing-text/landing-content.ts"],"sourcesContent":[],"mappings":";;;;iBAsBgB,sBAAA,WACJ,OAAO,gBAAgB;iBAQnB,cAAA;AATA,iBA6DM,qBAAA,CA7DgB,OAAA,EA8D3B,cA9D2B,CAAA,EA+DnC,OA/DmC,CA+D3B,0BA/D2B,CAAA;AACnB,iBA8GH,uBAAA,CA9GG,IAAA,EAAA,MAAA,CAAA,EAAA;EAAgB,OAAA,EAAA,MAAA;EAAvB,UAAA,EAAA,MAAA;EAAM,UAAA,EAAA,MAAA;AAQlB,CAAA,GAAgB,IAAA;AAoDM,iBAsEN,qBAAA,CAtE2B,OAAA,EAuEhC,0BAvEgC,EAAA,UAAA,EAAA,MAAA,EAAA,UAAA,EAAA,MAAA,CAAA,EAyEvB,0BAzEuB;AAChC,iBAsFW,uBAAA,CAtFX,IAAA,EAsFyC,kBAtFzC,CAAA,EAsF2D,OAtF3D,CAAA;EACA,QAAA,EAAA,OAAA;EAAR,IAAA,EAkGQ,0BAlGR;CAAO,CAAA"}
|
|
@@ -28,7 +28,10 @@ async function getLandingOverrides(pageKey) {
|
|
|
28
28
|
try {
|
|
29
29
|
const response = await fetch(url, {
|
|
30
30
|
headers: { "X-Organization": organizationId },
|
|
31
|
-
next: {
|
|
31
|
+
next: {
|
|
32
|
+
revalidate: 3600,
|
|
33
|
+
tags: ["landing-page-content", `landing-page-content-${pageKey}`]
|
|
34
|
+
}
|
|
32
35
|
});
|
|
33
36
|
if (!response.ok) return [];
|
|
34
37
|
return response.json();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"landing-content.js","names":["pageDefaults: Record<LandingPageKey, LandingPageContentDefinition>"],"sources":["../../src/components/landing-text/landing-content.ts"],"sourcesContent":["import 'server-only';\n\nimport { cache } from 'react';\nimport { cookies } from 'next/headers';\n\nimport type {\n LandingContentName,\n LandingPageContentApiItem,\n LandingPageContentDefinition,\n LandingPageKey,\n ResolvedLandingContentItem,\n ResolvedLandingPageContent,\n} from './types';\n\ntype NextFetchInit = RequestInit & {\n next?: {\n tags?: string[];\n };\n};\n\nlet pageDefaults: Record<LandingPageKey, LandingPageContentDefinition> = {};\n\nexport function setLandingPageDefaults(\n defaults: Record<LandingPageKey, LandingPageContentDefinition>\n) {\n pageDefaults = {\n ...pageDefaults,\n ...defaults,\n };\n}\n\nexport function buildContentId(sectionKey: string, contentKey: string) {\n return `${sectionKey}.${contentKey}`;\n}\n\nfunction toApiUrl(path: string) {\n const baseUrl = String(process.env.NEXT_PUBLIC_BASE_URL || '').replace(\n /\\/$/,\n ''\n );\n return baseUrl ? `${baseUrl}${path}` : '';\n}\n\nasync function getEditableState() {\n const cookieStore = await cookies();\n return Boolean(\n cookieStore.get('token')?.value && cookieStore.get('organization')?.value\n );\n}\n\nasync function getLandingOverrides(\n pageKey: LandingPageKey\n): Promise<LandingPageContentApiItem[]> {\n const organizationId = process.env.NEXT_PUBLIC_ORGANIZATION_ID;\n const url = toApiUrl(\n `/public/landing-page-contents/?page_key=${encodeURIComponent(pageKey)}`\n );\n\n if (!organizationId || !url) {\n return [];\n }\n\n try {\n const response = await fetch(url, {\n headers: {\n 'X-Organization': organizationId,\n },\n next: {\n tags: ['landing-page-content', `landing-page-content-${pageKey}`],\n },\n } satisfies NextFetchInit);\n\n if (!response.ok) {\n return [];\n }\n\n return response.json();\n } catch {\n return [];\n }\n}\n\nexport async function getLandingPageContent(\n pageKey: LandingPageKey\n): Promise<ResolvedLandingPageContent> {\n const defaults = pageDefaults[pageKey] ?? {\n pageKey,\n sections: [],\n };\n\n const [editable, overrides] = await Promise.all([\n getEditableState(),\n getLandingOverrides(pageKey),\n ]);\n\n const byId = new Map<string, LandingPageContentApiItem>(\n overrides.map((item) => [\n buildContentId(item.section_key, item.content_key),\n item,\n ])\n );\n\n const contents = Object.fromEntries(\n defaults.sections.flatMap((section) =>\n section.contents.map((item) => {\n const id = buildContentId(section.sectionKey, item.contentKey);\n const override = byId.get(id);\n\n return [\n id,\n {\n pageKey: defaults.pageKey,\n sectionKey: section.sectionKey,\n contentKey: item.contentKey,\n value: override?.value ?? item.value,\n defaultValue: item.value,\n metadata: override?.metadata ?? item.metadata ?? {},\n },\n ] as const;\n })\n )\n );\n\n return {\n pageKey: defaults.pageKey,\n editable,\n contents,\n };\n}\n\nconst getLandingPageContentCached = cache(getLandingPageContent);\n\nexport function parseLandingContentName(name: string) {\n const [rawPageKey, rawSectionKey, ...contentParts] = name\n .split('.')\n .map((part) => part.trim());\n\n const pageKey = rawPageKey || '';\n const sectionKey = rawSectionKey || '';\n const contentKey = contentParts.join('.').trim();\n\n if (!pageDefaults[pageKey] || !sectionKey || !contentKey) {\n return null;\n }\n\n return {\n pageKey,\n sectionKey,\n contentKey,\n };\n}\n\nexport function getLandingContentItem(\n content: ResolvedLandingPageContent,\n sectionKey: string,\n contentKey: string\n) {\n return (\n content.contents[buildContentId(sectionKey, contentKey)] ?? {\n pageKey: content.pageKey,\n sectionKey,\n contentKey,\n value: '',\n defaultValue: '',\n metadata: {},\n }\n );\n}\n\nexport async function getLandingContentByName(name: LandingContentName) {\n const parsed = parseLandingContentName(name);\n\n if (!parsed) {\n return {\n editable: false,\n item: {\n pageKey: 'unknown',\n sectionKey: 'invalid',\n contentKey: name,\n value: '',\n defaultValue: '',\n metadata: {},\n } as ResolvedLandingContentItem,\n };\n }\n\n const content = await getLandingPageContentCached(parsed.pageKey);\n\n return {\n editable: content.editable,\n item: getLandingContentItem(content, parsed.sectionKey, parsed.contentKey),\n };\n}\n"],"mappings":";;;;;AAoBA,IAAIA,eAAqE,EAAE;AAE3E,SAAgB,uBACd,UACA;AACA,gBAAe;EACb,GAAG;EACH,GAAG;EACJ;;AAGH,SAAgB,eAAe,YAAoB,YAAoB;AACrE,QAAO,GAAG,WAAW,GAAG;;AAG1B,SAAS,SAAS,MAAc;CAC9B,MAAM,UAAU,OAAO,QAAQ,IAAI,wBAAwB,GAAG,CAAC,QAC7D,OACA,GACD;AACD,QAAO,UAAU,GAAG,UAAU,SAAS;;AAGzC,eAAe,mBAAmB;CAChC,MAAM,cAAc,MAAM,SAAS;AACnC,QAAO,QACL,YAAY,IAAI,QAAQ,EAAE,SAAS,YAAY,IAAI,eAAe,EAAE,MACrE;;AAGH,eAAe,oBACb,SACsC;CACtC,MAAM,iBAAiB,QAAQ,IAAI;CACnC,MAAM,MAAM,SACV,2CAA2C,mBAAmB,QAAQ,GACvE;AAED,KAAI,CAAC,kBAAkB,CAAC,IACtB,QAAO,EAAE;AAGX,KAAI;EACF,MAAM,WAAW,MAAM,MAAM,KAAK;GAChC,SAAS,EACP,kBAAkB,gBACnB;GACD,MAAM,
|
|
1
|
+
{"version":3,"file":"landing-content.js","names":["pageDefaults: Record<LandingPageKey, LandingPageContentDefinition>"],"sources":["../../src/components/landing-text/landing-content.ts"],"sourcesContent":["import 'server-only';\n\nimport { cache } from 'react';\nimport { cookies } from 'next/headers';\n\nimport type {\n LandingContentName,\n LandingPageContentApiItem,\n LandingPageContentDefinition,\n LandingPageKey,\n ResolvedLandingContentItem,\n ResolvedLandingPageContent,\n} from './types';\n\ntype NextFetchInit = RequestInit & {\n next?: {\n tags?: string[];\n };\n};\n\nlet pageDefaults: Record<LandingPageKey, LandingPageContentDefinition> = {};\n\nexport function setLandingPageDefaults(\n defaults: Record<LandingPageKey, LandingPageContentDefinition>\n) {\n pageDefaults = {\n ...pageDefaults,\n ...defaults,\n };\n}\n\nexport function buildContentId(sectionKey: string, contentKey: string) {\n return `${sectionKey}.${contentKey}`;\n}\n\nfunction toApiUrl(path: string) {\n const baseUrl = String(process.env.NEXT_PUBLIC_BASE_URL || '').replace(\n /\\/$/,\n ''\n );\n return baseUrl ? `${baseUrl}${path}` : '';\n}\n\nasync function getEditableState() {\n const cookieStore = await cookies();\n return Boolean(\n cookieStore.get('token')?.value && cookieStore.get('organization')?.value\n );\n}\n\nasync function getLandingOverrides(\n pageKey: LandingPageKey\n): Promise<LandingPageContentApiItem[]> {\n const organizationId = process.env.NEXT_PUBLIC_ORGANIZATION_ID;\n const url = toApiUrl(\n `/public/landing-page-contents/?page_key=${encodeURIComponent(pageKey)}`\n );\n\n if (!organizationId || !url) {\n return [];\n }\n\n try {\n const response = await fetch(url, {\n headers: {\n 'X-Organization': organizationId,\n },\n next: {\n revalidate: 3600,\n tags: ['landing-page-content', `landing-page-content-${pageKey}`],\n },\n } satisfies NextFetchInit);\n\n if (!response.ok) {\n return [];\n }\n\n return response.json();\n } catch {\n return [];\n }\n}\n\nexport async function getLandingPageContent(\n pageKey: LandingPageKey\n): Promise<ResolvedLandingPageContent> {\n const defaults = pageDefaults[pageKey] ?? {\n pageKey,\n sections: [],\n };\n\n const [editable, overrides] = await Promise.all([\n getEditableState(),\n getLandingOverrides(pageKey),\n ]);\n\n const byId = new Map<string, LandingPageContentApiItem>(\n overrides.map((item) => [\n buildContentId(item.section_key, item.content_key),\n item,\n ])\n );\n\n const contents = Object.fromEntries(\n defaults.sections.flatMap((section) =>\n section.contents.map((item) => {\n const id = buildContentId(section.sectionKey, item.contentKey);\n const override = byId.get(id);\n\n return [\n id,\n {\n pageKey: defaults.pageKey,\n sectionKey: section.sectionKey,\n contentKey: item.contentKey,\n value: override?.value ?? item.value,\n defaultValue: item.value,\n metadata: override?.metadata ?? item.metadata ?? {},\n },\n ] as const;\n })\n )\n );\n\n return {\n pageKey: defaults.pageKey,\n editable,\n contents,\n };\n}\n\nconst getLandingPageContentCached = cache(getLandingPageContent);\n\nexport function parseLandingContentName(name: string) {\n const [rawPageKey, rawSectionKey, ...contentParts] = name\n .split('.')\n .map((part) => part.trim());\n\n const pageKey = rawPageKey || '';\n const sectionKey = rawSectionKey || '';\n const contentKey = contentParts.join('.').trim();\n\n if (!pageDefaults[pageKey] || !sectionKey || !contentKey) {\n return null;\n }\n\n return {\n pageKey,\n sectionKey,\n contentKey,\n };\n}\n\nexport function getLandingContentItem(\n content: ResolvedLandingPageContent,\n sectionKey: string,\n contentKey: string\n) {\n return (\n content.contents[buildContentId(sectionKey, contentKey)] ?? {\n pageKey: content.pageKey,\n sectionKey,\n contentKey,\n value: '',\n defaultValue: '',\n metadata: {},\n }\n );\n}\n\nexport async function getLandingContentByName(name: LandingContentName) {\n const parsed = parseLandingContentName(name);\n\n if (!parsed) {\n return {\n editable: false,\n item: {\n pageKey: 'unknown',\n sectionKey: 'invalid',\n contentKey: name,\n value: '',\n defaultValue: '',\n metadata: {},\n } as ResolvedLandingContentItem,\n };\n }\n\n const content = await getLandingPageContentCached(parsed.pageKey);\n\n return {\n editable: content.editable,\n item: getLandingContentItem(content, parsed.sectionKey, parsed.contentKey),\n };\n}\n"],"mappings":";;;;;AAoBA,IAAIA,eAAqE,EAAE;AAE3E,SAAgB,uBACd,UACA;AACA,gBAAe;EACb,GAAG;EACH,GAAG;EACJ;;AAGH,SAAgB,eAAe,YAAoB,YAAoB;AACrE,QAAO,GAAG,WAAW,GAAG;;AAG1B,SAAS,SAAS,MAAc;CAC9B,MAAM,UAAU,OAAO,QAAQ,IAAI,wBAAwB,GAAG,CAAC,QAC7D,OACA,GACD;AACD,QAAO,UAAU,GAAG,UAAU,SAAS;;AAGzC,eAAe,mBAAmB;CAChC,MAAM,cAAc,MAAM,SAAS;AACnC,QAAO,QACL,YAAY,IAAI,QAAQ,EAAE,SAAS,YAAY,IAAI,eAAe,EAAE,MACrE;;AAGH,eAAe,oBACb,SACsC;CACtC,MAAM,iBAAiB,QAAQ,IAAI;CACnC,MAAM,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AM,aAAa,iBAAiB;CACpC,MAAM,aAAa,aAAa,KAAK,IAAI,CAAC,MAAM;AAEhD,KAAI,CAAC,aAAa,YAAY,CAAC,cAAc,CAAC,WAC5C,QAAO;AAGT,QAAO;EACL;EACA;EACA;EACD;;AAGH,SAAgB,sBACd,SACA,YACA,YACA;AACA,QACE,QAAQ,SAAS,eAAe,YAAY,WAAW,KAAK;EAC1D,SAAS,QAAQ;EACjB;EACA;EACA,OAAO;EACP,cAAc;EACd,UAAU,EAAE;EACb;;AAIL,eAAsB,wBAAwB,MAA0B;CACtE,MAAM,SAAS,wBAAwB,KAAK;AAE5C,KAAI,CAAC,OACH,QAAO;EACL,UAAU;EACV,MAAM;GACJ,SAAS;GACT,YAAY;GACZ,YAAY;GACZ,OAAO;GACP,cAAc;GACd,UAAU,EAAE;GACb;EACF;CAGH,MAAM,UAAU,MAAM,4BAA4B,OAAO,QAAQ;AAEjE,QAAO;EACL,UAAU,QAAQ;EAClB,MAAM,sBAAsB,SAAS,OAAO,YAAY,OAAO,WAAW;EAC3E"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { LandingTextProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime11 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/landing-text/landing-text.d.ts
|
|
5
|
-
declare function LandingText(props: LandingTextProps): Promise<
|
|
5
|
+
declare function LandingText(props: LandingTextProps): Promise<react_jsx_runtime11.JSX.Element>;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { LandingText };
|
|
8
8
|
//# sourceMappingURL=landing-text.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ServerLandingTextProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime10 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/landing-text/server-landing-text.d.ts
|
|
5
5
|
declare function ServerLandingText({
|
|
@@ -8,7 +8,7 @@ declare function ServerLandingText({
|
|
|
8
8
|
className,
|
|
9
9
|
registration,
|
|
10
10
|
...props
|
|
11
|
-
}: ServerLandingTextProps):
|
|
11
|
+
}: ServerLandingTextProps): react_jsx_runtime10.JSX.Element;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { ServerLandingText };
|
|
14
14
|
//# sourceMappingURL=server-landing-text.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-landing-text.d.ts","names":[],"sources":["../../src/components/landing-text/server-landing-text.tsx"],"sourcesContent":[],"mappings":";;;;iBAGS,iBAAA;MACH;;;;;GAKH,yBAAsB,
|
|
1
|
+
{"version":3,"file":"server-landing-text.d.ts","names":[],"sources":["../../src/components/landing-text/server-landing-text.tsx"],"sourcesContent":[],"mappings":";;;;iBAGS,iBAAA;MACH;;;;;GAKH,yBAAsB,mBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime7 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/page-header/page-header.d.ts
|
|
4
4
|
interface PageHeaderProps {
|
|
@@ -10,7 +10,7 @@ declare function PageHeader({
|
|
|
10
10
|
title,
|
|
11
11
|
help,
|
|
12
12
|
description
|
|
13
|
-
}: PageHeaderProps):
|
|
13
|
+
}: PageHeaderProps): react_jsx_runtime7.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { PageHeader, PageHeaderProps };
|
|
16
16
|
//# sourceMappingURL=page-header.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SelectorProps } from "../ui/selector.js";
|
|
2
2
|
import { FieldPath, FieldPathValue, FieldValues, UseControllerProps } from "react-hook-form";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime8 from "react/jsx-runtime";
|
|
4
4
|
import { Options } from "nuqs";
|
|
5
5
|
|
|
6
6
|
//#region src/components/remote-selector/remote-selector.d.ts
|
|
@@ -38,7 +38,7 @@ declare function RemoteSelectorField<T, TFieldValues extends FieldValues = Field
|
|
|
38
38
|
...props
|
|
39
39
|
}: RemoteSelectorFieldProps<TFieldValues, TFieldName> & BaseRemoteSelectorProps<T> & {
|
|
40
40
|
withPortal?: boolean;
|
|
41
|
-
}):
|
|
41
|
+
}): react_jsx_runtime8.JSX.Element;
|
|
42
42
|
interface RemoteSelectorQueryProps<T> extends BaseRemoteSelectorProps<T> {
|
|
43
43
|
name: string;
|
|
44
44
|
defaultValue?: string;
|
|
@@ -58,7 +58,7 @@ declare function RemoteSelectorQuery<T>({
|
|
|
58
58
|
fieldLabel,
|
|
59
59
|
type,
|
|
60
60
|
...props
|
|
61
|
-
}: RemoteSelectorQueryProps<T>):
|
|
61
|
+
}: RemoteSelectorQueryProps<T>): react_jsx_runtime8.JSX.Element;
|
|
62
62
|
//#endregion
|
|
63
63
|
export { BaseRemoteSelectorProps, RemoteSelectorField, RemoteSelectorFieldProps, RemoteSelectorQuery, RemoteSelectorQueryProps, TUseData };
|
|
64
64
|
//# sourceMappingURL=remote-selector.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Options as Options$1 } from "../src/hooks/with-mask.js";
|
|
2
2
|
import { FieldPath, FieldPathValue, FieldValues, UseControllerProps } from "react-hook-form";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime2 from "react/jsx-runtime";
|
|
4
4
|
import { Options } from "nuqs";
|
|
5
5
|
|
|
6
6
|
//#region src/components/text-field/TextField.d.ts
|
|
@@ -57,7 +57,7 @@ declare function InputText({
|
|
|
57
57
|
name,
|
|
58
58
|
onChange,
|
|
59
59
|
...props
|
|
60
|
-
}: InputTextProps):
|
|
60
|
+
}: InputTextProps): react_jsx_runtime2.JSX.Element;
|
|
61
61
|
interface TextFieldProps<TFieldValues extends FieldValues = FieldValues, TFieldName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> extends UseControllerProps<TFieldValues, TFieldName> {
|
|
62
62
|
disabled?: boolean;
|
|
63
63
|
required?: boolean;
|
|
@@ -75,7 +75,7 @@ declare function TextField<TFieldValues extends FieldValues = FieldValues, TFiel
|
|
|
75
75
|
transform,
|
|
76
76
|
prefix,
|
|
77
77
|
...props
|
|
78
|
-
}: TextFieldProps<TFieldValues, TFieldName> & Omit<InputTextProps, 'onChange'>):
|
|
78
|
+
}: TextFieldProps<TFieldValues, TFieldName> & Omit<InputTextProps, 'onChange'>): react_jsx_runtime2.JSX.Element;
|
|
79
79
|
interface QueryTextFieldProps extends Omit<InputTextProps, 'onChange'> {
|
|
80
80
|
name: string;
|
|
81
81
|
defaultValue?: string;
|
|
@@ -87,7 +87,7 @@ declare function QueryTextField({
|
|
|
87
87
|
defaultValue,
|
|
88
88
|
options,
|
|
89
89
|
...props
|
|
90
|
-
}: QueryTextFieldProps):
|
|
90
|
+
}: QueryTextFieldProps): react_jsx_runtime2.JSX.Element;
|
|
91
91
|
interface CookieTextFieldProps extends InputTextProps {
|
|
92
92
|
name: string;
|
|
93
93
|
maxAge?: number;
|
|
@@ -97,7 +97,7 @@ declare function CookieTextField({
|
|
|
97
97
|
maxAge,
|
|
98
98
|
onChange,
|
|
99
99
|
...inputProps
|
|
100
|
-
}: CookieTextFieldProps):
|
|
100
|
+
}: CookieTextFieldProps): react_jsx_runtime2.JSX.Element;
|
|
101
101
|
//#endregion
|
|
102
102
|
export { CookieTextField, CookieTextFieldProps, InputText, InputTextProps, QueryTextField, QueryTextFieldProps, TextField, TextFieldProps };
|
|
103
103
|
//# sourceMappingURL=TextField.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime12 from "react/jsx-runtime";
|
|
3
3
|
import { Item, Root } from "@radix-ui/react-toggle-group";
|
|
4
4
|
import { VariantProps } from "class-variance-authority";
|
|
5
5
|
import * as class_variance_authority_types0 from "class-variance-authority/types";
|
|
@@ -28,7 +28,7 @@ declare function ToggleGroup({
|
|
|
28
28
|
transition,
|
|
29
29
|
activeClassName,
|
|
30
30
|
...props
|
|
31
|
-
}: ToggleGroupProps):
|
|
31
|
+
}: ToggleGroupProps): react_jsx_runtime12.JSX.Element;
|
|
32
32
|
//#endregion
|
|
33
33
|
export { ToggleGroup };
|
|
34
34
|
//# sourceMappingURL=ToggleGroup.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
//#region rolldown:runtime
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __commonJS = (cb, mod) => function() {
|
|
9
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
13
|
-
key = keys[i];
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
15
|
-
get: ((k) => from[k]).bind(null, key),
|
|
16
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
return to;
|
|
20
|
-
};
|
|
21
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
22
|
-
value: mod,
|
|
23
|
-
enumerable: true
|
|
24
|
-
}) : target, mod));
|
|
25
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
|
|
26
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
27
|
-
throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function.");
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
//#endregion
|
|
31
|
-
export { __commonJS, __require, __toESM };
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { __commonJS } from "../../_virtual/rolldown_runtime.js";
|
|
2
|
-
import { require_unstable_cache } from "./dist/server/web/spec-extension/unstable-cache.js";
|
|
3
|
-
import { require_revalidate } from "./dist/server/web/spec-extension/revalidate.js";
|
|
4
|
-
import { require_unstable_no_store } from "./dist/server/web/spec-extension/unstable-no-store.js";
|
|
5
|
-
import { require_cache_life } from "./dist/server/use-cache/cache-life.js";
|
|
6
|
-
import { require_cache_tag } from "./dist/server/use-cache/cache-tag.js";
|
|
7
|
-
|
|
8
|
-
//#region node_modules/next/cache.js
|
|
9
|
-
var require_cache = /* @__PURE__ */ __commonJS({ "node_modules/next/cache.js": ((exports, module) => {
|
|
10
|
-
let cacheExports;
|
|
11
|
-
if (process.env.NEXT_RUNTIME === "") {
|
|
12
|
-
const notAvailableInClient = (name) => {
|
|
13
|
-
return function notAvailable() {
|
|
14
|
-
throw new Error(`\`${name}\` is only available in a Server Component.`);
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
cacheExports = {
|
|
18
|
-
unstable_cache: function unstable_cache(cb) {
|
|
19
|
-
if (typeof cb !== "function") return cb;
|
|
20
|
-
return function cached() {
|
|
21
|
-
return cb.apply(this, arguments);
|
|
22
|
-
};
|
|
23
|
-
},
|
|
24
|
-
unstable_noStore: function unstable_noStore() {},
|
|
25
|
-
updateTag: notAvailableInClient("updateTag"),
|
|
26
|
-
revalidateTag: notAvailableInClient("revalidateTag"),
|
|
27
|
-
revalidatePath: notAvailableInClient("revalidatePath"),
|
|
28
|
-
refresh: notAvailableInClient("refresh"),
|
|
29
|
-
cacheLife: notAvailableInClient("cacheLife"),
|
|
30
|
-
cacheTag: notAvailableInClient("cacheTag")
|
|
31
|
-
};
|
|
32
|
-
} else cacheExports = {
|
|
33
|
-
unstable_cache: require_unstable_cache().unstable_cache,
|
|
34
|
-
updateTag: require_revalidate().updateTag,
|
|
35
|
-
revalidateTag: require_revalidate().revalidateTag,
|
|
36
|
-
revalidatePath: require_revalidate().revalidatePath,
|
|
37
|
-
refresh: require_revalidate().refresh,
|
|
38
|
-
unstable_noStore: require_unstable_no_store().unstable_noStore,
|
|
39
|
-
cacheLife: require_cache_life().cacheLife,
|
|
40
|
-
cacheTag: require_cache_tag().cacheTag
|
|
41
|
-
};
|
|
42
|
-
let didWarnCacheLife = false;
|
|
43
|
-
function unstable_cacheLife() {
|
|
44
|
-
if (!didWarnCacheLife) {
|
|
45
|
-
didWarnCacheLife = true;
|
|
46
|
-
const error = /* @__PURE__ */ new Error("`unstable_cacheLife` was recently stabilized and should be imported as `cacheLife`. The `unstable` prefixed form will be removed in a future version of Next.js.");
|
|
47
|
-
console.error(error);
|
|
48
|
-
}
|
|
49
|
-
return cacheExports.cacheLife.apply(this, arguments);
|
|
50
|
-
}
|
|
51
|
-
let didWarnCacheTag = false;
|
|
52
|
-
function unstable_cacheTag() {
|
|
53
|
-
if (!didWarnCacheTag) {
|
|
54
|
-
didWarnCacheTag = true;
|
|
55
|
-
const error = /* @__PURE__ */ new Error("`unstable_cacheTag` was recently stabilized and should be imported as `cacheTag`. The `unstable` prefixed form will be removed in a future version of Next.js.");
|
|
56
|
-
console.error(error);
|
|
57
|
-
}
|
|
58
|
-
return cacheExports.cacheTag.apply(this, arguments);
|
|
59
|
-
}
|
|
60
|
-
cacheExports.unstable_cacheLife = unstable_cacheLife;
|
|
61
|
-
cacheExports.unstable_cacheTag = unstable_cacheTag;
|
|
62
|
-
module.exports = cacheExports;
|
|
63
|
-
exports.unstable_cache = cacheExports.unstable_cache;
|
|
64
|
-
exports.revalidatePath = cacheExports.revalidatePath;
|
|
65
|
-
exports.revalidateTag = cacheExports.revalidateTag;
|
|
66
|
-
exports.updateTag = cacheExports.updateTag;
|
|
67
|
-
exports.unstable_noStore = cacheExports.unstable_noStore;
|
|
68
|
-
exports.cacheLife = cacheExports.cacheLife;
|
|
69
|
-
exports.unstable_cacheLife = cacheExports.unstable_cacheLife;
|
|
70
|
-
exports.cacheTag = cacheExports.cacheTag;
|
|
71
|
-
exports.unstable_cacheTag = cacheExports.unstable_cacheTag;
|
|
72
|
-
exports.refresh = cacheExports.refresh;
|
|
73
|
-
}) });
|
|
74
|
-
|
|
75
|
-
//#endregion
|
|
76
|
-
export default require_cache();
|
|
77
|
-
|
|
78
|
-
export { require_cache };
|
|
79
|
-
//# sourceMappingURL=cache.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cache.js","names":[],"sources":["../../../node_modules/next/cache.js"],"sourcesContent":["let cacheExports\n\nif (process.env.NEXT_RUNTIME === '') {\n const notAvailableInClient = (name) => {\n return function notAvailable() {\n throw new Error(`\\`${name}\\` is only available in a Server Component.`)\n }\n }\n\n cacheExports = {\n unstable_cache: function unstable_cache(cb) {\n // Legacy behavior: allow importing/using unstable_cache from client bundles\n // without pulling in server internals.\n if (typeof cb !== 'function') return cb\n return function cached() {\n return cb.apply(this, arguments)\n }\n },\n unstable_noStore: function unstable_noStore() {},\n\n updateTag: notAvailableInClient('updateTag'),\n revalidateTag: notAvailableInClient('revalidateTag'),\n revalidatePath: notAvailableInClient('revalidatePath'),\n refresh: notAvailableInClient('refresh'),\n cacheLife: notAvailableInClient('cacheLife'),\n cacheTag: notAvailableInClient('cacheTag'),\n }\n} else {\n // Keep server requires in this branch so browser builds can DCE them.\n cacheExports = {\n unstable_cache:\n require('next/dist/server/web/spec-extension/unstable-cache')\n .unstable_cache,\n\n updateTag: require('next/dist/server/web/spec-extension/revalidate')\n .updateTag,\n\n revalidateTag: require('next/dist/server/web/spec-extension/revalidate')\n .revalidateTag,\n revalidatePath: require('next/dist/server/web/spec-extension/revalidate')\n .revalidatePath,\n\n refresh: require('next/dist/server/web/spec-extension/revalidate').refresh,\n\n unstable_noStore:\n require('next/dist/server/web/spec-extension/unstable-no-store')\n .unstable_noStore,\n cacheLife: require('next/dist/server/use-cache/cache-life').cacheLife,\n cacheTag: require('next/dist/server/use-cache/cache-tag').cacheTag,\n }\n}\n\nlet didWarnCacheLife = false\nfunction unstable_cacheLife() {\n if (!didWarnCacheLife) {\n didWarnCacheLife = true\n const error = new Error(\n '`unstable_cacheLife` was recently stabilized and should be imported as `cacheLife`. The `unstable` prefixed form will be removed in a future version of Next.js.'\n )\n console.error(error)\n }\n return cacheExports.cacheLife.apply(this, arguments)\n}\n\nlet didWarnCacheTag = false\nfunction unstable_cacheTag() {\n if (!didWarnCacheTag) {\n didWarnCacheTag = true\n const error = new Error(\n '`unstable_cacheTag` was recently stabilized and should be imported as `cacheTag`. The `unstable` prefixed form will be removed in a future version of Next.js.'\n )\n console.error(error)\n }\n return cacheExports.cacheTag.apply(this, arguments)\n}\n\ncacheExports.unstable_cacheLife = unstable_cacheLife\ncacheExports.unstable_cacheTag = unstable_cacheTag\n\n// https://nodejs.org/api/esm.html#commonjs-namespaces\n// When importing CommonJS modules, the module.exports object is provided as the default export\nmodule.exports = cacheExports\n\n// make import { xxx } from 'next/cache' work\nexports.unstable_cache = cacheExports.unstable_cache\nexports.revalidatePath = cacheExports.revalidatePath\nexports.revalidateTag = cacheExports.revalidateTag\nexports.updateTag = cacheExports.updateTag\nexports.unstable_noStore = cacheExports.unstable_noStore\nexports.cacheLife = cacheExports.cacheLife\nexports.unstable_cacheLife = cacheExports.unstable_cacheLife\nexports.cacheTag = cacheExports.cacheTag\nexports.unstable_cacheTag = cacheExports.unstable_cacheTag\nexports.refresh = cacheExports.refresh\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;CAAA,IAAI;AAEJ,KAAI,QAAQ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a;AAC1C,SAAQ,WAAW,aAAa;AAChC,SAAQ,oBAAoB,aAAa;AACzC,SAAQ,UAAU,aAAa"}
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import { __commonJS } from "../../../../../_virtual/rolldown_runtime.js";
|
|
2
|
-
import { require_lru_cache } from "../../server/lib/lru-cache.js";
|
|
3
|
-
import { require_picocolors } from "../../lib/picocolors.js";
|
|
4
|
-
|
|
5
|
-
//#region node_modules/next/dist/build/output/log.js
|
|
6
|
-
var require_log = /* @__PURE__ */ __commonJS({ "node_modules/next/dist/build/output/log.js": ((exports) => {
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
function _export(target, all) {
|
|
9
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
10
|
-
enumerable: true,
|
|
11
|
-
get: all[name]
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
_export(exports, {
|
|
15
|
-
bootstrap: function() {
|
|
16
|
-
return bootstrap;
|
|
17
|
-
},
|
|
18
|
-
error: function() {
|
|
19
|
-
return error;
|
|
20
|
-
},
|
|
21
|
-
errorOnce: function() {
|
|
22
|
-
return errorOnce;
|
|
23
|
-
},
|
|
24
|
-
event: function() {
|
|
25
|
-
return event;
|
|
26
|
-
},
|
|
27
|
-
info: function() {
|
|
28
|
-
return info;
|
|
29
|
-
},
|
|
30
|
-
prefixes: function() {
|
|
31
|
-
return prefixes;
|
|
32
|
-
},
|
|
33
|
-
ready: function() {
|
|
34
|
-
return ready;
|
|
35
|
-
},
|
|
36
|
-
trace: function() {
|
|
37
|
-
return trace;
|
|
38
|
-
},
|
|
39
|
-
wait: function() {
|
|
40
|
-
return wait;
|
|
41
|
-
},
|
|
42
|
-
warn: function() {
|
|
43
|
-
return warn;
|
|
44
|
-
},
|
|
45
|
-
warnOnce: function() {
|
|
46
|
-
return warnOnce;
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
const _picocolors = require_picocolors();
|
|
50
|
-
const _lrucache = require_lru_cache();
|
|
51
|
-
const prefixes = {
|
|
52
|
-
wait: (0, _picocolors.white)((0, _picocolors.bold)("○")),
|
|
53
|
-
error: (0, _picocolors.red)((0, _picocolors.bold)("⨯")),
|
|
54
|
-
warn: (0, _picocolors.yellow)((0, _picocolors.bold)("⚠")),
|
|
55
|
-
ready: "▲",
|
|
56
|
-
info: (0, _picocolors.white)((0, _picocolors.bold)(" ")),
|
|
57
|
-
event: (0, _picocolors.green)((0, _picocolors.bold)("✓")),
|
|
58
|
-
trace: (0, _picocolors.magenta)((0, _picocolors.bold)("»"))
|
|
59
|
-
};
|
|
60
|
-
const LOGGING_METHOD = {
|
|
61
|
-
log: "log",
|
|
62
|
-
warn: "warn",
|
|
63
|
-
error: "error"
|
|
64
|
-
};
|
|
65
|
-
function prefixedLog(prefixType, ...message) {
|
|
66
|
-
if ((message[0] === "" || message[0] === void 0) && message.length === 1) message.shift();
|
|
67
|
-
const consoleMethod = prefixType in LOGGING_METHOD ? LOGGING_METHOD[prefixType] : "log";
|
|
68
|
-
const prefix = prefixes[prefixType];
|
|
69
|
-
if (message.length === 0) console[consoleMethod]("");
|
|
70
|
-
else if (message.length === 1 && typeof message[0] === "string") console[consoleMethod](prefix + " " + message[0]);
|
|
71
|
-
else console[consoleMethod](prefix, ...message);
|
|
72
|
-
}
|
|
73
|
-
function bootstrap(message) {
|
|
74
|
-
console.log(message);
|
|
75
|
-
}
|
|
76
|
-
function wait(...message) {
|
|
77
|
-
prefixedLog("wait", ...message);
|
|
78
|
-
}
|
|
79
|
-
function error(...message) {
|
|
80
|
-
prefixedLog("error", ...message);
|
|
81
|
-
}
|
|
82
|
-
function warn(...message) {
|
|
83
|
-
prefixedLog("warn", ...message);
|
|
84
|
-
}
|
|
85
|
-
function ready(...message) {
|
|
86
|
-
prefixedLog("ready", ...message);
|
|
87
|
-
}
|
|
88
|
-
function info(...message) {
|
|
89
|
-
prefixedLog("info", ...message);
|
|
90
|
-
}
|
|
91
|
-
function event(...message) {
|
|
92
|
-
prefixedLog("event", ...message);
|
|
93
|
-
}
|
|
94
|
-
function trace(...message) {
|
|
95
|
-
prefixedLog("trace", ...message);
|
|
96
|
-
}
|
|
97
|
-
const warnOnceCache = new _lrucache.LRUCache(1e4, (value) => value.length);
|
|
98
|
-
function warnOnce(...message) {
|
|
99
|
-
const key = message.join(" ");
|
|
100
|
-
if (!warnOnceCache.has(key)) {
|
|
101
|
-
warnOnceCache.set(key, key);
|
|
102
|
-
warn(...message);
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
const errorOnceCache = new _lrucache.LRUCache(1e4, (value) => value.length);
|
|
106
|
-
function errorOnce(...message) {
|
|
107
|
-
const key = message.join(" ");
|
|
108
|
-
if (!errorOnceCache.has(key)) {
|
|
109
|
-
errorOnceCache.set(key, key);
|
|
110
|
-
error(...message);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
}) });
|
|
114
|
-
|
|
115
|
-
//#endregion
|
|
116
|
-
export default require_log();
|
|
117
|
-
|
|
118
|
-
export { require_log };
|
|
119
|
-
//# sourceMappingURL=log.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"log.js","names":[],"sources":["../../../../../../node_modules/next/dist/build/output/log.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n0 && (module.exports = {\n bootstrap: null,\n error: null,\n errorOnce: null,\n event: null,\n info: null,\n prefixes: null,\n ready: null,\n trace: null,\n wait: null,\n warn: null,\n warnOnce: null\n});\nfunction _export(target, all) {\n for(var name in all)Object.defineProperty(target, name, {\n enumerable: true,\n get: all[name]\n });\n}\n_export(exports, {\n bootstrap: function() {\n return bootstrap;\n },\n error: function() {\n return error;\n },\n errorOnce: function() {\n return errorOnce;\n },\n event: function() {\n return event;\n },\n info: function() {\n return info;\n },\n prefixes: function() {\n return prefixes;\n },\n ready: function() {\n return ready;\n },\n trace: function() {\n return trace;\n },\n wait: function() {\n return wait;\n },\n warn: function() {\n return warn;\n },\n warnOnce: function() {\n return warnOnce;\n }\n});\nconst _picocolors = require(\"../../lib/picocolors\");\nconst _lrucache = require(\"../../server/lib/lru-cache\");\nconst prefixes = {\n wait: (0, _picocolors.white)((0, _picocolors.bold)('○')),\n error: (0, _picocolors.red)((0, _picocolors.bold)('⨯')),\n warn: (0, _picocolors.yellow)((0, _picocolors.bold)('⚠')),\n ready: '▲',\n info: (0, _picocolors.white)((0, _picocolors.bold)(' ')),\n event: (0, _picocolors.green)((0, _picocolors.bold)('✓')),\n trace: (0, _picocolors.magenta)((0, _picocolors.bold)('»'))\n};\nconst LOGGING_METHOD = {\n log: 'log',\n warn: 'warn',\n error: 'error'\n};\nfunction prefixedLog(prefixType, ...message) {\n if ((message[0] === '' || message[0] === undefined) && message.length === 1) {\n message.shift();\n }\n const consoleMethod = prefixType in LOGGING_METHOD ? LOGGING_METHOD[prefixType] : 'log';\n const prefix = prefixes[prefixType];\n // If there's no message, don't print the prefix but a new line\n if (message.length === 0) {\n console[consoleMethod]('');\n } else {\n // Ensure if there's ANSI escape codes it's concatenated into one string.\n // Chrome DevTool can only handle color if it's in one string.\n if (message.length === 1 && typeof message[0] === 'string') {\n console[consoleMethod](prefix + ' ' + message[0]);\n } else {\n console[consoleMethod](prefix, ...message);\n }\n }\n}\nfunction bootstrap(message) {\n console.log(message);\n}\nfunction wait(...message) {\n prefixedLog('wait', ...message);\n}\nfunction error(...message) {\n prefixedLog('error', ...message);\n}\nfunction warn(...message) {\n prefixedLog('warn', ...message);\n}\nfunction ready(...message) {\n prefixedLog('ready', ...message);\n}\nfunction info(...message) {\n prefixedLog('info', ...message);\n}\nfunction event(...message) {\n prefixedLog('event', ...message);\n}\nfunction trace(...message) {\n prefixedLog('trace', ...message);\n}\nconst warnOnceCache = new _lrucache.LRUCache(10000, (value)=>value.length);\nfunction warnOnce(...message) {\n const key = message.join(' ');\n if (!warnOnceCache.has(key)) {\n warnOnceCache.set(key, key);\n warn(...message);\n }\n}\nconst errorOnceCache = new _lrucache.LRUCache(10000, (value)=>value.length);\nfunction errorOnce(...message) {\n const key = message.join(' ');\n if (!errorOnceCache.has(key)) {\n errorOnceCache.set(key, key);\n error(...message);\n }\n}\n\n//# sourceMappingURL=log.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;AACA,QAAO,eAAe,SAAS,cAAc,EACzC,OAAO,MACV,CAAC;CAcF,SAAS,QAAQ,QAAQ,KAAK;AAC1B,OAAI,IAAI,QAAQ,IAAI,QAAO,eAAe,QAAQ,MAAM;GACpD,YAAY;GACZ,KAAK,IAAI;GACZ,CAAC;;AAEN,SAAQ,SAAS;EACb,WAAW,WAAW;AAClB,UAAO;;EAEX,OAAO,WAAW;AACd,UAAO;;EAEX,WAAW,WAAW;AAClB,UAAO;;EAEX,OAAO,WAAW;AACd,UAAO;;EAEX,MAAM,WAAW;AACb,UAAO;;EAEX,UAAU,WAAW;AACjB,UAAO;;EAEX,OAAO,WAAW;AACd,UAAO;;EAEX,OAAO,WAAW;AACd,UAAO;;EAEX,MAAM,WAAW;AACb,UAAO;;EAEX,MAAM,WAAW;AACb,UAAO;;EAEX,UAAU,WAAW;AACjB,UAAO;;EAEd,CAAC;CACF,MAAM;CACN,MAAM;CACN,MAAM,WAAW;EACb,OAAO,GAAG,YAAY,QAAQ,GAAG,YAAY,MAAM,IAAI,CAAC;EACxD,QAAQ,GAAG,YAAY,MAAM,GAAG,YAAY,MAAM,IAAI,CAAC;EACvD,OAAO,GAAG,YAAY,SAAS,GAAG,YAAY,MAAM,IAAI,CAAC;EACzD,OAAO;EACP,OAAO,GAAG,YAAY,QAAQ,GAAG,YAAY,MAAM,IAAI,CAAC;EACxD,QAAQ,GAAG,YAAY,QAAQ,GAAG,YAAY,MAAM,IAAI,CAAC;EACzD,QAAQ,GAAG,YAAY,UAAU,GAAG,YAAY,MAAM,IAAI,CAAC;EAC9D;CACD,MAAM,iBAAiB;EACnB,KAAK;EACL,MAAM;EACN,OAAO;EACV;CACD,SAAS,YAAY,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