@krak-stack/registry 0.10.11 → 0.10.13
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/CHANGELOG.md +25 -0
- package/dist/components/support-dialog.d.ts +49 -0
- package/dist/components/support-dialog.js +651 -0
- package/dist/components/ui/data-table.d.ts +14 -0
- package/dist/components/ui/data-table.js +353 -79
- package/dist/components/ui/pagination.js +1 -1
- package/dist/lib/query.d.ts +1 -0
- package/dist/lib/query.js +5 -3
- package/dist/services/events/browser.js +4 -3
- package/dist/services/events/client/audit-log-table.js +353 -79
- package/dist/services/events/index.js +4 -3
- package/dist/services/events/schema.js +4 -3
- package/dist/services/webhooks/client/delivery-table.js +353 -79
- package/dist/services/webhooks/index.js +4 -3
- package/dist/services/webhooks/schema.js +4 -3
- package/package.json +5 -1
|
@@ -279,14 +279,15 @@ var ColumnFilters = Schema.declare(Schema.is(ColumnFiltersArray), {
|
|
|
279
279
|
toCodec: () => Schema.link()(ColumnFiltersArray, SchemaTransformation.passthrough()),
|
|
280
280
|
toCodecStringTree: () => Schema.link()(Schema.fromJsonString(ColumnFiltersArray), SchemaTransformation.passthrough())
|
|
281
281
|
});
|
|
282
|
+
var DEFAULT_PAGE_SIZE = 100;
|
|
282
283
|
var Query = Schema.Struct({
|
|
283
284
|
page: Schema.optional(Schema.Union([Schema.Finite, Schema.FiniteFromString]).check(Schema.isInt(), Schema.isGreaterThanOrEqualTo(0))).pipe(Schema.decodeTo(Schema.Int.check(Schema.isGreaterThanOrEqualTo(0)), {
|
|
284
285
|
decode: SchemaGetter.withDefault(Effect3.succeed(0)),
|
|
285
286
|
encode: SchemaGetter.transformOptional(Option.filter((page) => page !== 0))
|
|
286
287
|
})),
|
|
287
288
|
pageSize: Schema.optional(Schema.Union([Schema.Finite, Schema.FiniteFromString]).check(Schema.isInt(), Schema.isBetween({ minimum: 1, maximum: 100 }))).pipe(Schema.decodeTo(Schema.Int.check(Schema.isBetween({ minimum: 1, maximum: 100 })), {
|
|
288
|
-
decode: SchemaGetter.withDefault(Effect3.succeed(
|
|
289
|
-
encode: SchemaGetter.transformOptional(Option.filter((pageSize) => pageSize !==
|
|
289
|
+
decode: SchemaGetter.withDefault(Effect3.succeed(DEFAULT_PAGE_SIZE)),
|
|
290
|
+
encode: SchemaGetter.transformOptional(Option.filter((pageSize) => pageSize !== DEFAULT_PAGE_SIZE))
|
|
290
291
|
})),
|
|
291
292
|
globalFilter: Schema.optional(Schema.String),
|
|
292
293
|
sort: Schema.optional(SortParams),
|
|
@@ -298,7 +299,7 @@ var Query = Schema.Struct({
|
|
|
298
299
|
examples: [
|
|
299
300
|
{
|
|
300
301
|
page: 0,
|
|
301
|
-
pageSize:
|
|
302
|
+
pageSize: DEFAULT_PAGE_SIZE,
|
|
302
303
|
globalFilter: "housing",
|
|
303
304
|
sort: [
|
|
304
305
|
{ id: "publicName", direction: "desc" },
|
|
@@ -168,14 +168,15 @@ var ColumnFilters = Schema.declare(Schema.is(ColumnFiltersArray), {
|
|
|
168
168
|
toCodec: () => Schema.link()(ColumnFiltersArray, SchemaTransformation.passthrough()),
|
|
169
169
|
toCodecStringTree: () => Schema.link()(Schema.fromJsonString(ColumnFiltersArray), SchemaTransformation.passthrough())
|
|
170
170
|
});
|
|
171
|
+
var DEFAULT_PAGE_SIZE = 100;
|
|
171
172
|
var Query = Schema.Struct({
|
|
172
173
|
page: Schema.optional(Schema.Union([Schema.Finite, Schema.FiniteFromString]).check(Schema.isInt(), Schema.isGreaterThanOrEqualTo(0))).pipe(Schema.decodeTo(Schema.Int.check(Schema.isGreaterThanOrEqualTo(0)), {
|
|
173
174
|
decode: SchemaGetter.withDefault(Effect.succeed(0)),
|
|
174
175
|
encode: SchemaGetter.transformOptional(Option.filter((page) => page !== 0))
|
|
175
176
|
})),
|
|
176
177
|
pageSize: Schema.optional(Schema.Union([Schema.Finite, Schema.FiniteFromString]).check(Schema.isInt(), Schema.isBetween({ minimum: 1, maximum: 100 }))).pipe(Schema.decodeTo(Schema.Int.check(Schema.isBetween({ minimum: 1, maximum: 100 })), {
|
|
177
|
-
decode: SchemaGetter.withDefault(Effect.succeed(
|
|
178
|
-
encode: SchemaGetter.transformOptional(Option.filter((pageSize) => pageSize !==
|
|
178
|
+
decode: SchemaGetter.withDefault(Effect.succeed(DEFAULT_PAGE_SIZE)),
|
|
179
|
+
encode: SchemaGetter.transformOptional(Option.filter((pageSize) => pageSize !== DEFAULT_PAGE_SIZE))
|
|
179
180
|
})),
|
|
180
181
|
globalFilter: Schema.optional(Schema.String),
|
|
181
182
|
sort: Schema.optional(SortParams),
|
|
@@ -187,7 +188,7 @@ var Query = Schema.Struct({
|
|
|
187
188
|
examples: [
|
|
188
189
|
{
|
|
189
190
|
page: 0,
|
|
190
|
-
pageSize:
|
|
191
|
+
pageSize: DEFAULT_PAGE_SIZE,
|
|
191
192
|
globalFilter: "housing",
|
|
192
193
|
sort: [
|
|
193
194
|
{ id: "publicName", direction: "desc" },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@krak-stack/registry",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.13",
|
|
4
4
|
"description": "Tree-shakable KrakStack components and Effect services.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -17,6 +17,10 @@
|
|
|
17
17
|
"type": "module",
|
|
18
18
|
"sideEffects": false,
|
|
19
19
|
"exports": {
|
|
20
|
+
"./support-dialog": {
|
|
21
|
+
"types": "./dist/components/support-dialog.d.ts",
|
|
22
|
+
"import": "./dist/components/support-dialog.js"
|
|
23
|
+
},
|
|
20
24
|
"./rich-text-editor": {
|
|
21
25
|
"types": "./dist/components/ui/rich-text-editor.d.ts",
|
|
22
26
|
"import": "./dist/components/ui/rich-text-editor.js"
|