@ya-accelerators/nextjs-framework 0.0.86 → 0.0.87

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.
Files changed (38) hide show
  1. package/dist/env.d.ts +0 -2
  2. package/dist/env.js +0 -6
  3. package/dist/env.js.map +1 -1
  4. package/dist/hooks/mounted/index.d.ts +1 -0
  5. package/dist/hooks/mounted/index.js +14 -0
  6. package/dist/hooks/mounted/index.js.map +1 -0
  7. package/dist/i18n/strings/ja-JP.json +5 -1
  8. package/dist/lib/index.d.ts +0 -2
  9. package/dist/lib/index.js +0 -2
  10. package/dist/lib/index.js.map +1 -1
  11. package/dist/tsconfig.tsbuildinfo +1 -1
  12. package/dist/ui/composite/index.d.ts +26 -12
  13. package/dist/ui/composite/input/datePicker/index.jsx +14 -6
  14. package/dist/ui/composite/input/datePicker/index.jsx.map +1 -1
  15. package/dist/ui/composite/input/dateTimePicker/index.jsx +12 -2
  16. package/dist/ui/composite/input/dateTimePicker/index.jsx.map +1 -1
  17. package/dist/ui/composite/input/file/index.d.ts +22 -0
  18. package/dist/ui/composite/input/file/index.jsx +225 -0
  19. package/dist/ui/composite/input/file/index.jsx.map +1 -0
  20. package/dist/ui/composite/input/index.d.ts +26 -12
  21. package/dist/ui/composite/input/index.js +2 -0
  22. package/dist/ui/composite/input/index.js.map +1 -1
  23. package/dist/ui/composite/input/list/index.d.ts +5 -15
  24. package/dist/ui/composite/input/list/index.jsx +36 -18
  25. package/dist/ui/composite/input/list/index.jsx.map +1 -1
  26. package/dist/ui/layout/form/index.d.ts +7 -3
  27. package/dist/ui/layout/form/index.jsx +72 -101
  28. package/dist/ui/layout/form/index.jsx.map +1 -1
  29. package/dist/ui/layout/form/renderItem.d.ts +21 -0
  30. package/dist/ui/layout/form/renderItem.jsx +123 -0
  31. package/dist/ui/layout/form/renderItem.jsx.map +1 -0
  32. package/dist/ui/layout/index.d.ts +10 -2
  33. package/dist/ui/types/index.d.ts +17 -4
  34. package/dist/ui/types/index.js.map +1 -1
  35. package/package.json +1 -2
  36. package/dist/lib/s3/index.d.ts +0 -2
  37. package/dist/lib/s3/index.js +0 -18
  38. package/dist/lib/s3/index.js.map +0 -1
package/dist/env.d.ts CHANGED
@@ -5,6 +5,4 @@ export declare const defaultServerEnv: {
5
5
  LOG_LEVEL?: "error" | "debug" | "info" | "warn" | undefined;
6
6
  NEXTAUTH_URL?: string | undefined;
7
7
  NEXTAUTH_SECRET?: string | undefined;
8
- LOCAL_S3_ENDPOINT?: string | undefined;
9
- AWS_REGION?: string | undefined;
10
8
  };
package/dist/env.js CHANGED
@@ -9,9 +9,6 @@ export const defaultServerEnv = Util.createEnvProxy(true, z.object({
9
9
  // NextAuth
10
10
  NEXTAUTH_URL: z.string().optional(),
11
11
  NEXTAUTH_SECRET: z.string().optional(),
12
- // s3 (object storage) — LOCAL_S3_ENDPOINT points the client at MinIO on dev; both fall back to the AWS resolution chain
13
- LOCAL_S3_ENDPOINT: z.string().optional(),
14
- AWS_REGION: z.string().optional(),
15
12
  }), () => ({
16
13
  // common
17
14
  NODE_ENV: process.env.NODE_ENV,
@@ -21,8 +18,5 @@ export const defaultServerEnv = Util.createEnvProxy(true, z.object({
21
18
  // NextAuth
22
19
  NEXTAUTH_URL: process.env.NEXTAUTH_URL,
23
20
  NEXTAUTH_SECRET: process.env.NEXTAUTH_SECRET,
24
- // s3 (object storage)
25
- LOCAL_S3_ENDPOINT: process.env.LOCAL_S3_ENDPOINT,
26
- AWS_REGION: process.env.AWS_REGION,
27
21
  }));
28
22
  //# sourceMappingURL=env.js.map
package/dist/env.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"env.js","sourceRoot":"","sources":["../../src/env.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAEnC,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,CAAC,cAAc,C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ings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAEnC,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,CAAC,cAAc,CACjD,IAAI,EACJ,CAAC,CAAC,MAAM,CAAC;IACP,SAAS;IACT,QAAQ,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,aAAa,EAAE,YAAY,CAAC,CAAC;IAC/C,UAAU,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IACzC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,QAAQ,EAAE;IAChE,WAAW;IACX,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACvC,CAAC,EACF,GAAG,EAAE,CAAC,CAAC;IACL,SAAS;IACT,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,QAAQ;IAC9B,UAAU,EAAE,OAAO,CAAC,GAAG,CAAC,UAAU;IAClC,UAAU,EAAE,OAAO,CAAC,GAAG,CAAC,UAAU;IAClC,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,SAAS;IAChC,WAAW;IACX,YAAY,EAAE,OAAO,CAAC,GAAG,CAAC,YAAY;IACtC,eAAe,EAAE,OAAO,CAAC,GAAG,CAAC,eAAe;CAC7C,CAAC,CACH,CAAA"}
@@ -0,0 +1 @@
1
+ export declare const useMounted: () => boolean;
@@ -0,0 +1,14 @@
1
+ 'use client';
2
+ import { useEffect, useState } from 'react';
3
+ // True only after the first client-side effect runs. Date/time pickers derive their rendered value from
4
+ // runtime-local Date methods (getHours / getFullYear …), which differ between the UTC server and the
5
+ // browser timezone and cause a hydration mismatch. Gating the value render on this flag makes the server
6
+ // and the first client render agree (both render empty), then the real value fills in after mount.
7
+ export const useMounted = () => {
8
+ const [mounted, setMounted] = useState(false);
9
+ useEffect(() => {
10
+ setMounted(true);
11
+ }, []);
12
+ return mounted;
13
+ };
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/hooks/mounted/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAA;AAEZ,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAE3C,wGAAwG;AACxG,qGAAqG;AACrG,yGAAyG;AACzG,mGAAmG;AACnG,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,EAAE;IAC7B,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAA;IAC7C,SAAS,CAAC,GAAG,EAAE;QACb,UAAU,CAAC,IAAI,CAAC,CAAA;IAClB,CAAC,EAAE,EAAE,CAAC,CAAA;IACN,OAAO,OAAO,CAAA;AAChB,CAAC,CAAA"}
@@ -36,5 +36,9 @@
36
36
  "Something went wrong": "問題が発生しました",
37
37
  "Could not display this page. Please try again later.": "ページを表示できませんでした。しばらくしてからもう一度お試しください。",
38
38
  "Retry": "再試行",
39
- "Search": "検索"
39
+ "Search": "検索",
40
+ "Drag & drop to upload": "ドラッグ&ドロップでアップロード",
41
+ "or browse": "またはファイルを選択",
42
+ "Upload": "アップロード",
43
+ "Done": "完了"
40
44
  }
@@ -1,12 +1,10 @@
1
1
  import * as cookie from './cookie';
2
2
  import * as nextAuth from './next-auth';
3
- import * as s3 from './s3';
4
3
  import * as serverAction from './server-action';
5
4
  import * as trpc from './trpc';
6
5
  export declare const Lib: {
7
6
  cookie: typeof cookie;
8
7
  nextAuth: typeof nextAuth;
9
- s3: typeof s3;
10
8
  serverAction: typeof serverAction;
11
9
  trpc: typeof trpc;
12
10
  };
package/dist/lib/index.js CHANGED
@@ -1,12 +1,10 @@
1
1
  import * as cookie from './cookie';
2
2
  import * as nextAuth from './next-auth';
3
- import * as s3 from './s3';
4
3
  import * as serverAction from './server-action';
5
4
  import * as trpc from './trpc';
6
5
  export const Lib = {
7
6
  cookie,
8
7
  nextAuth,
9
- s3,
10
8
  serverAction,
11
9
  trpc,
12
10
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,UAAU,CAAA;AAClC,OAAO,KAAK,QAAQ,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,MAAM,MAAM,CAAA;AAC1B,OAAO,KAAK,YAAY,MAAM,iBAAiB,CAAA;AAC/C,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAA;AAE9B,MAAM,CAAC,MAAM,GAAG,GAAG;IACjB,MAAM;IACN,QAAQ;IACR,EAAE;IACF,YAAY;IACZ,IAAI;CACL,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,UAAU,CAAA;AAClC,OAAO,KAAK,QAAQ,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,YAAY,MAAM,iBAAiB,CAAA;AAC/C,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAA;AAE9B,MAAM,CAAC,MAAM,GAAG,GAAG;IACjB,MAAM;IACN,QAAQ;IACR,YAAY;IACZ,IAAI;CACL,CAAA"}