@threadlabs/looma 0.2.19 → 0.3.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/{chunk-A5MSXQ7Y.js → chunk-3NVMCHGR.js} +2225 -1255
- package/dist/chunk-XDNZIKNI.js +2721 -0
- package/dist/declarative-generated.cjs +93 -79
- package/dist/declarative-generated.d.cts +7 -1
- package/dist/declarative-generated.d.ts +7 -1
- package/dist/declarative-generated.js +91 -78
- package/dist/declarative.cjs +1499 -1702
- package/dist/declarative.d.cts +77 -3
- package/dist/declarative.d.ts +77 -3
- package/dist/declarative.js +5 -3
- package/dist/index.cjs +3732 -3025
- package/dist/index.d.cts +211 -35
- package/dist/index.d.ts +211 -35
- package/dist/index.js +6 -61
- package/dist/loader.cjs +3725 -2962
- package/dist/loader.js +2 -2
- package/editor/{chunk-WI7ZA44X.js → chunk-U36XNFJN.js} +111 -77
- package/editor/extensions/index.d.ts +272 -27
- package/editor/index.d.ts +1 -1
- package/editor/index.js +1 -1
- package/editor/{table-overlay-DoiLie4h.d.ts → table-overlay-DZFGHQDt.d.ts} +48 -6
- package/editor/ui.d.ts +15 -11
- package/editor/ui.js +1 -1
- package/layout/index.cjs +197 -340
- package/layout/index.d.cts +11 -0
- package/layout/index.d.ts +11 -0
- package/layout/index.js +197 -340
- package/layout.css +31 -134
- package/package.json +24 -11
- package/react/index.d.ts +1276 -0
- package/react/index.js +1526 -0
- package/styles.css +5 -10
- package/svelte/index.d.ts +204 -0
- package/svelte/index.js +1881 -0
- package/theme-dark.css +81 -2
- package/theme-high-contrast.css +14 -0
- package/theme-light.css +30 -1
- package/tokens.css +45 -1
- package/vue/chunk-UZMTYDP6.js +4355 -0
- package/vue/editor/index.d.ts +78 -8
- package/vue/editor/index.js +59 -49
- package/vue/index.d.ts +67 -78
- package/vue/index.js +3 -9
- package/dist/chunk-ECJQ4YGC.js +0 -2925
- package/dist/valibot.cjs +0 -31
- package/dist/valibot.d.cts +0 -10
- package/dist/valibot.d.ts +0 -10
- package/dist/valibot.js +0 -9
- package/dist/validation-bxcou-l-.d.cts +0 -58
- package/dist/validation-bxcou-l-.d.ts +0 -58
- package/vue/chunk-P7BZ2KJZ.js +0 -3559
package/dist/valibot.cjs
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// src/field/valibot.ts
|
|
20
|
-
var valibot_exports = {};
|
|
21
|
-
__export(valibot_exports, {
|
|
22
|
-
valibotField: () => valibotField
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(valibot_exports);
|
|
25
|
-
function valibotField(schema, options = {}) {
|
|
26
|
-
return { ...options, schema };
|
|
27
|
-
}
|
|
28
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
29
|
-
0 && (module.exports = {
|
|
30
|
-
valibotField
|
|
31
|
-
});
|
package/dist/valibot.d.cts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { GenericSchema, GenericSchemaAsync, InferOutput } from 'valibot';
|
|
2
|
-
import { F as FieldValidation, f as FieldSchema } from './validation-bxcou-l-.cjs';
|
|
3
|
-
|
|
4
|
-
/** Valibot's Standard Schema implementation preserves async transforms and issue paths.
|
|
5
|
-
* Type-only Valibot imports keep the adapter free of a schema-library runtime. */
|
|
6
|
-
declare function valibotField<T extends GenericSchema | GenericSchemaAsync>(schema: T, options?: Omit<FieldValidation, 'schema'>): FieldValidation & {
|
|
7
|
-
schema: FieldSchema<InferOutput<T>>;
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export { valibotField };
|
package/dist/valibot.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { GenericSchema, GenericSchemaAsync, InferOutput } from 'valibot';
|
|
2
|
-
import { F as FieldValidation, f as FieldSchema } from './validation-bxcou-l-.js';
|
|
3
|
-
|
|
4
|
-
/** Valibot's Standard Schema implementation preserves async transforms and issue paths.
|
|
5
|
-
* Type-only Valibot imports keep the adapter free of a schema-library runtime. */
|
|
6
|
-
declare function valibotField<T extends GenericSchema | GenericSchemaAsync>(schema: T, options?: Omit<FieldValidation, 'schema'>): FieldValidation & {
|
|
7
|
-
schema: FieldSchema<InferOutput<T>>;
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export { valibotField };
|
package/dist/valibot.js
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
/** Structural Standard Schema v1 boundary; no schema-library runtime dependency. */
|
|
2
|
-
interface FieldSchema<Output = unknown> {
|
|
3
|
-
readonly '~standard': {
|
|
4
|
-
readonly version: 1;
|
|
5
|
-
readonly vendor: string;
|
|
6
|
-
readonly validate: (value: unknown) => FieldSchemaResult<Output> | Promise<FieldSchemaResult<Output>>;
|
|
7
|
-
readonly types?: {
|
|
8
|
-
readonly input: unknown;
|
|
9
|
-
readonly output: Output;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
interface FieldIssue {
|
|
14
|
-
readonly message: string;
|
|
15
|
-
readonly path?: ReadonlyArray<PropertyKey | {
|
|
16
|
-
readonly key: PropertyKey;
|
|
17
|
-
}>;
|
|
18
|
-
readonly severity?: 'error' | 'warning';
|
|
19
|
-
}
|
|
20
|
-
type FieldSchemaResult<T = unknown> = {
|
|
21
|
-
readonly value: T;
|
|
22
|
-
readonly issues?: undefined;
|
|
23
|
-
} | {
|
|
24
|
-
readonly issues: readonly FieldIssue[];
|
|
25
|
-
};
|
|
26
|
-
interface FieldRequest<Context = unknown> {
|
|
27
|
-
raw: string;
|
|
28
|
-
value: string | null;
|
|
29
|
-
context: Context;
|
|
30
|
-
signal: AbortSignal;
|
|
31
|
-
}
|
|
32
|
-
interface FieldResult<Output = unknown> {
|
|
33
|
-
output?: Output;
|
|
34
|
-
issues: readonly FieldIssue[];
|
|
35
|
-
}
|
|
36
|
-
interface FieldValidation {
|
|
37
|
-
schema?: FieldSchema;
|
|
38
|
-
parse?: (raw: string, request: FieldRequest) => unknown | Promise<unknown>;
|
|
39
|
-
normalize?: (value: unknown, request: FieldRequest) => unknown | Promise<unknown>;
|
|
40
|
-
validator?: (value: unknown, request: FieldRequest) => Partial<FieldResult> | Promise<Partial<FieldResult>>;
|
|
41
|
-
issues?: readonly FieldIssue[];
|
|
42
|
-
}
|
|
43
|
-
interface FieldSelection {
|
|
44
|
-
start: number;
|
|
45
|
-
end: number;
|
|
46
|
-
direction?: 'forward' | 'backward' | 'none';
|
|
47
|
-
}
|
|
48
|
-
interface FieldFormat {
|
|
49
|
-
display: string;
|
|
50
|
-
selection: FieldSelection;
|
|
51
|
-
}
|
|
52
|
-
type FieldFormatter = (raw: string, selection: FieldSelection) => FieldFormat | undefined;
|
|
53
|
-
/** Formatting is additive: every original character must survive in order.
|
|
54
|
-
* Normalization belongs to submitted output, never the visible editing buffer. */
|
|
55
|
-
declare function formatEditingValue(raw: string, selection: FieldSelection, format?: FieldFormatter): FieldFormat;
|
|
56
|
-
declare function validateField(request: FieldRequest, config: FieldValidation): Promise<FieldResult>;
|
|
57
|
-
|
|
58
|
-
export { type FieldValidation as F, type FieldFormatter as a, type FieldIssue as b, type FieldFormat as c, type FieldRequest as d, type FieldResult as e, type FieldSchema as f, type FieldSchemaResult as g, type FieldSelection as h, formatEditingValue as i, validateField as v };
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
/** Structural Standard Schema v1 boundary; no schema-library runtime dependency. */
|
|
2
|
-
interface FieldSchema<Output = unknown> {
|
|
3
|
-
readonly '~standard': {
|
|
4
|
-
readonly version: 1;
|
|
5
|
-
readonly vendor: string;
|
|
6
|
-
readonly validate: (value: unknown) => FieldSchemaResult<Output> | Promise<FieldSchemaResult<Output>>;
|
|
7
|
-
readonly types?: {
|
|
8
|
-
readonly input: unknown;
|
|
9
|
-
readonly output: Output;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
interface FieldIssue {
|
|
14
|
-
readonly message: string;
|
|
15
|
-
readonly path?: ReadonlyArray<PropertyKey | {
|
|
16
|
-
readonly key: PropertyKey;
|
|
17
|
-
}>;
|
|
18
|
-
readonly severity?: 'error' | 'warning';
|
|
19
|
-
}
|
|
20
|
-
type FieldSchemaResult<T = unknown> = {
|
|
21
|
-
readonly value: T;
|
|
22
|
-
readonly issues?: undefined;
|
|
23
|
-
} | {
|
|
24
|
-
readonly issues: readonly FieldIssue[];
|
|
25
|
-
};
|
|
26
|
-
interface FieldRequest<Context = unknown> {
|
|
27
|
-
raw: string;
|
|
28
|
-
value: string | null;
|
|
29
|
-
context: Context;
|
|
30
|
-
signal: AbortSignal;
|
|
31
|
-
}
|
|
32
|
-
interface FieldResult<Output = unknown> {
|
|
33
|
-
output?: Output;
|
|
34
|
-
issues: readonly FieldIssue[];
|
|
35
|
-
}
|
|
36
|
-
interface FieldValidation {
|
|
37
|
-
schema?: FieldSchema;
|
|
38
|
-
parse?: (raw: string, request: FieldRequest) => unknown | Promise<unknown>;
|
|
39
|
-
normalize?: (value: unknown, request: FieldRequest) => unknown | Promise<unknown>;
|
|
40
|
-
validator?: (value: unknown, request: FieldRequest) => Partial<FieldResult> | Promise<Partial<FieldResult>>;
|
|
41
|
-
issues?: readonly FieldIssue[];
|
|
42
|
-
}
|
|
43
|
-
interface FieldSelection {
|
|
44
|
-
start: number;
|
|
45
|
-
end: number;
|
|
46
|
-
direction?: 'forward' | 'backward' | 'none';
|
|
47
|
-
}
|
|
48
|
-
interface FieldFormat {
|
|
49
|
-
display: string;
|
|
50
|
-
selection: FieldSelection;
|
|
51
|
-
}
|
|
52
|
-
type FieldFormatter = (raw: string, selection: FieldSelection) => FieldFormat | undefined;
|
|
53
|
-
/** Formatting is additive: every original character must survive in order.
|
|
54
|
-
* Normalization belongs to submitted output, never the visible editing buffer. */
|
|
55
|
-
declare function formatEditingValue(raw: string, selection: FieldSelection, format?: FieldFormatter): FieldFormat;
|
|
56
|
-
declare function validateField(request: FieldRequest, config: FieldValidation): Promise<FieldResult>;
|
|
57
|
-
|
|
58
|
-
export { type FieldValidation as F, type FieldFormatter as a, type FieldIssue as b, type FieldFormat as c, type FieldRequest as d, type FieldResult as e, type FieldSchema as f, type FieldSchemaResult as g, type FieldSelection as h, formatEditingValue as i, validateField as v };
|