@jant/core 0.2.6 → 0.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,42 +1,42 @@
1
1
  {
2
2
  "../../node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.8_drizzle-orm@0.45.1_@cloudflare+workers-types@4.20_a31fcad55de5b8c118775528fba151d7/node_modules/better-auth/dist/adapters/kysely-adapter/bun-sqlite-dialect.mjs": {
3
- "file": "assets/bun-sqlite-dialect-DmKw6ndf.js",
3
+ "file": "assets/bun-sqlite-dialect-B0Ne_8k6.js",
4
4
  "name": "bun-sqlite-dialect",
5
5
  "src": "../../node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.8_drizzle-orm@0.45.1_@cloudflare+workers-types@4.20_a31fcad55de5b8c118775528fba151d7/node_modules/better-auth/dist/adapters/kysely-adapter/bun-sqlite-dialect.mjs",
6
6
  "isDynamicEntry": true,
7
7
  "imports": [
8
- "_worker-entry-CAzIsRGm.js"
8
+ "_worker-entry-DWNZHBc4.js"
9
9
  ]
10
10
  },
11
11
  "../../node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.8_drizzle-orm@0.45.1_@cloudflare+workers-types@4.20_a31fcad55de5b8c118775528fba151d7/node_modules/better-auth/dist/adapters/kysely-adapter/index.mjs": {
12
- "file": "assets/index-DhnBrk-n.js",
12
+ "file": "assets/index-RJeuizBo.js",
13
13
  "name": "index",
14
14
  "src": "../../node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.8_drizzle-orm@0.45.1_@cloudflare+workers-types@4.20_a31fcad55de5b8c118775528fba151d7/node_modules/better-auth/dist/adapters/kysely-adapter/index.mjs",
15
15
  "isDynamicEntry": true,
16
16
  "imports": [
17
- "_worker-entry-CAzIsRGm.js"
17
+ "_worker-entry-DWNZHBc4.js"
18
18
  ]
19
19
  },
20
20
  "../../node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.8_drizzle-orm@0.45.1_@cloudflare+workers-types@4.20_a31fcad55de5b8c118775528fba151d7/node_modules/better-auth/dist/adapters/kysely-adapter/node-sqlite-dialect.mjs": {
21
- "file": "assets/node-sqlite-dialect-BzlVRd6O.js",
21
+ "file": "assets/node-sqlite-dialect-bZ-6E1mH.js",
22
22
  "name": "node-sqlite-dialect",
23
23
  "src": "../../node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.8_drizzle-orm@0.45.1_@cloudflare+workers-types@4.20_a31fcad55de5b8c118775528fba151d7/node_modules/better-auth/dist/adapters/kysely-adapter/node-sqlite-dialect.mjs",
24
24
  "isDynamicEntry": true,
25
25
  "imports": [
26
- "_worker-entry-CAzIsRGm.js"
26
+ "_worker-entry-DWNZHBc4.js"
27
27
  ]
28
28
  },
29
29
  "../../node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.8_drizzle-orm@0.45.1_@cloudflare+workers-types@4.20_a31fcad55de5b8c118775528fba151d7/node_modules/better-auth/dist/adapters/memory-adapter/index.mjs": {
30
- "file": "assets/index-1wipnXVC.js",
30
+ "file": "assets/index-Cg7EsRQZ.js",
31
31
  "name": "index",
32
32
  "src": "../../node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.8_drizzle-orm@0.45.1_@cloudflare+workers-types@4.20_a31fcad55de5b8c118775528fba151d7/node_modules/better-auth/dist/adapters/memory-adapter/index.mjs",
33
33
  "isDynamicEntry": true,
34
34
  "imports": [
35
- "_worker-entry-CAzIsRGm.js"
35
+ "_worker-entry-DWNZHBc4.js"
36
36
  ]
37
37
  },
38
- "_worker-entry-CAzIsRGm.js": {
39
- "file": "assets/worker-entry-CAzIsRGm.js",
38
+ "_worker-entry-DWNZHBc4.js": {
39
+ "file": "assets/worker-entry-DWNZHBc4.js",
40
40
  "name": "worker-entry",
41
41
  "dynamicImports": [
42
42
  "../../node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.8_drizzle-orm@0.45.1_@cloudflare+workers-types@4.20_a31fcad55de5b8c118775528fba151d7/node_modules/better-auth/dist/adapters/memory-adapter/index.mjs",
@@ -52,7 +52,7 @@
52
52
  "src": "virtual:cloudflare/worker-entry",
53
53
  "isEntry": true,
54
54
  "imports": [
55
- "_worker-entry-CAzIsRGm.js"
55
+ "_worker-entry-DWNZHBc4.js"
56
56
  ]
57
57
  }
58
58
  }
@@ -1,4 +1,4 @@
1
- import { C as CompiledQuery, D as DefaultQueryCompiler, b as DEFAULT_MIGRATION_TABLE, d as DEFAULT_MIGRATION_LOCK_TABLE, s as sql } from './worker-entry-CAzIsRGm.js';
1
+ import { C as CompiledQuery, D as DefaultQueryCompiler, b as DEFAULT_MIGRATION_TABLE, d as DEFAULT_MIGRATION_LOCK_TABLE, s as sql } from './worker-entry-DWNZHBc4.js';
2
2
  import 'node:events';
3
3
 
4
4
  //#region src/adapters/kysely-adapter/bun-sqlite-dialect.ts
@@ -1,4 +1,4 @@
1
- import { c as createAdapterFactory, l as logger } from './worker-entry-CAzIsRGm.js';
1
+ import { c as createAdapterFactory, l as logger } from './worker-entry-DWNZHBc4.js';
2
2
  import 'node:events';
3
3
 
4
4
  //#region src/adapters/memory-adapter/memory-adapter.ts
@@ -1,5 +1,5 @@
1
- import { c as createAdapterFactory, s as sql, a as createKyselyAdapter } from './worker-entry-CAzIsRGm.js';
2
- export { g as getKyselyDatabaseType } from './worker-entry-CAzIsRGm.js';
1
+ import { c as createAdapterFactory, s as sql, a as createKyselyAdapter } from './worker-entry-DWNZHBc4.js';
2
+ export { g as getKyselyDatabaseType } from './worker-entry-DWNZHBc4.js';
3
3
  import 'node:events';
4
4
 
5
5
  //#region src/adapters/kysely-adapter/kysely-adapter.ts
@@ -1,4 +1,4 @@
1
- import { C as CompiledQuery, D as DefaultQueryCompiler, b as DEFAULT_MIGRATION_TABLE, d as DEFAULT_MIGRATION_LOCK_TABLE, s as sql } from './worker-entry-CAzIsRGm.js';
1
+ import { C as CompiledQuery, D as DefaultQueryCompiler, b as DEFAULT_MIGRATION_TABLE, d as DEFAULT_MIGRATION_LOCK_TABLE, s as sql } from './worker-entry-DWNZHBc4.js';
2
2
  import 'node:events';
3
3
 
4
4
  //#region src/adapters/kysely-adapter/node-sqlite-dialect.ts
@@ -33098,7 +33098,7 @@ async function getBaseAdapter(options, handleDirectDatabase) {
33098
33098
  acc[key] = [];
33099
33099
  return acc;
33100
33100
  }, {});
33101
- const { memoryAdapter } = await import('./index-1wipnXVC.js');
33101
+ const { memoryAdapter } = await import('./index-Cg7EsRQZ.js');
33102
33102
  adapter = memoryAdapter(memoryDB)(options);
33103
33103
  } else if (typeof options.database === "function") adapter = options.database(options);
33104
33104
  else adapter = await handleDirectDatabase(options);
@@ -33114,10 +33114,10 @@ async function getBaseAdapter(options, handleDirectDatabase) {
33114
33114
  //#region src/db/adapter-kysely.ts
33115
33115
  async function getAdapter(options) {
33116
33116
  return getBaseAdapter(options, async (opts) => {
33117
- const { createKyselyAdapter } = await import('./index-DhnBrk-n.js');
33117
+ const { createKyselyAdapter } = await import('./index-RJeuizBo.js');
33118
33118
  const { kysely, databaseType, transaction } = await createKyselyAdapter(opts);
33119
33119
  if (!kysely) throw new BetterAuthError("Failed to initialize database adapter");
33120
- const { kyselyAdapter } = await import('./index-DhnBrk-n.js');
33120
+ const { kyselyAdapter } = await import('./index-RJeuizBo.js');
33121
33121
  return kyselyAdapter(kysely, {
33122
33122
  type: databaseType || "sqlite",
33123
33123
  debugLogs: opts.database && "debugLogs" in opts.database ? opts.database.debugLogs : false,
@@ -51000,7 +51000,7 @@ const createKyselyAdapter = async (config) => {
51000
51000
  if ("getConnection" in db) dialect = new MysqlDialect(db);
51001
51001
  if ("connect" in db) dialect = new PostgresDialect({ pool: db });
51002
51002
  if ("fileControl" in db) {
51003
- const { BunSqliteDialect } = await import('./bun-sqlite-dialect-DmKw6ndf.js');
51003
+ const { BunSqliteDialect } = await import('./bun-sqlite-dialect-B0Ne_8k6.js');
51004
51004
  dialect = new BunSqliteDialect({ database: db });
51005
51005
  }
51006
51006
  if ("createSession" in db) {
@@ -51016,7 +51016,7 @@ const createKyselyAdapter = async (config) => {
51016
51016
  if (error !== null && typeof error === "object" && "code" in error && error.code !== "ERR_UNKNOWN_BUILTIN_MODULE") throw error;
51017
51017
  }
51018
51018
  if (DatabaseSync && db instanceof DatabaseSync) {
51019
- const { NodeSqliteDialect } = await import('./node-sqlite-dialect-BzlVRd6O.js');
51019
+ const { NodeSqliteDialect } = await import('./node-sqlite-dialect-bZ-6E1mH.js');
51020
51020
  dialect = new NodeSqliteDialect({ database: db });
51021
51021
  }
51022
51022
  }
@@ -60764,7 +60764,23 @@ const LANGUAGE_COOKIE_NAME = "lang";
60764
60764
 
60765
60765
  const __vite_import_meta_env__ = {};
60766
60766
  var loadManifest = () => {
60767
- const MANIFEST = "__VITE_MANIFEST_CONTENT__";
60767
+ const MANIFEST = { "__manifest__": { default: {
60768
+ "src/client.ts": {
60769
+ "file": "assets/client-DKznU4dt.js",
60770
+ "name": "client",
60771
+ "src": "src/client.ts",
60772
+ "isEntry": true
60773
+ },
60774
+ "src/style.css": {
60775
+ "file": "assets/style-DF1PM9l5.css",
60776
+ "src": "src/style.css",
60777
+ "isEntry": true,
60778
+ "name": "style",
60779
+ "names": [
60780
+ "style.css"
60781
+ ]
60782
+ }
60783
+ } } };
60768
60784
  let manifestData = {};
60769
60785
  for (const [, manifestFile] of Object.entries(MANIFEST)) {
60770
60786
  manifestData = { ...manifestData, ...manifestFile.default };
@@ -1,2 +1,2 @@
1
- export { P as POST_TYPES, V as VISIBILITY_LEVELS, e as createApp, w as default, m as markdown, f as sqid, t as time, u as url } from './assets/worker-entry-CAzIsRGm.js';
1
+ export { P as POST_TYPES, V as VISIBILITY_LEVELS, e as createApp, w as default, m as markdown, f as sqid, t as time, u as url } from './assets/worker-entry-DWNZHBc4.js';
2
2
  import 'node:events';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jant/core",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "description": "A modern, open-source microblogging platform built on Cloudflare Workers",
5
5
  "type": "module",
6
6
  "bin": {
package/src/preset.css CHANGED
@@ -1,21 +1,13 @@
1
1
  /**
2
2
  * Jant Core Preset
3
3
  *
4
- * Includes basecoat UI, component styles, and source scanning for @jant/core components.
5
- * This file should be imported in user's style.css after tailwindcss.
4
+ * Includes basecoat UI and component styles.
5
+ * Source scanning is handled by tailwind.config.ts in user projects.
6
6
  */
7
7
 
8
- /* BaseCoat UI framework */
9
8
  @import "basecoat-css";
10
-
11
- /* Jant component styles */
12
9
  @import "./styles/components.css";
13
10
 
14
- /* Scan @jant/core source files for Tailwind classes */
15
- /* These paths are relative to this CSS file's location */
16
- @source "./theme/**/*.{ts,tsx}";
17
- @source "./routes/**/*.{ts,tsx}";
18
-
19
11
  @theme {
20
12
  --radius-default: 0.5rem;
21
13
  }
package/src/style.css CHANGED
@@ -5,11 +5,9 @@
5
5
  * User projects should NOT use this file - use preset.css instead.
6
6
  */
7
7
 
8
- /* Tailwind CSS v4 */
8
+ /* Tailwind CSS v4 + Jant Core preset */
9
9
  @import "tailwindcss";
10
-
11
- /* Jant Core preset (basecoat, component styles, theme, source scanning) */
12
10
  @import "./preset.css";
13
11
 
14
- /* Scan local project files */
15
- @source "./**/*.{ts,tsx}";
12
+ /* Load JS config for content scanning */
13
+ @config "../tailwind.config.ts";