@krak-stack/assets 0.1.6 → 0.1.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.
- package/CHANGELOG.md +14 -0
- package/README.md +1 -1
- package/dist/components/asset-input/html.d.ts +4 -2
- package/dist/components/asset-input/html.js +301 -276
- package/dist/components/asset-input/index.d.ts +51 -0
- package/dist/components/asset-input/react.d.ts +1 -1
- package/dist/components/asset-input/react.js +61 -33
- package/dist/components/asset-input/schema.d.ts +15 -0
- package/dist/components/asset-table/html.js +903 -843
- package/dist/components/asset-table/index.d.ts +99 -0
- package/dist/components/asset-table/react.d.ts +3 -2
- package/dist/components/asset-table/react.js +191 -115
- package/dist/services/assets/library.d.ts +55 -0
- package/dist/services/assets/library.d.ts.map +1 -1
- package/dist/services/assets/library.js +37 -16
- package/dist/services/assets/library.js.map +1 -1
- package/package.json +2 -2
|
@@ -81,6 +81,105 @@ export declare const assetTableManagementOptions: {
|
|
|
81
81
|
}>;
|
|
82
82
|
readonly restore: false;
|
|
83
83
|
};
|
|
84
|
+
export declare const assetTableLibraryOptions: {
|
|
85
|
+
readonly name: "AssetTableLibraryRead";
|
|
86
|
+
readonly props: Schema.Struct<{
|
|
87
|
+
readonly assets: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
88
|
+
readonly id: Schema.NonEmptyString;
|
|
89
|
+
readonly name: Schema.String;
|
|
90
|
+
readonly mimeType: Schema.String;
|
|
91
|
+
readonly byteSize: Schema.Finite;
|
|
92
|
+
readonly createdAt: Schema.Date;
|
|
93
|
+
readonly updatedAt: Schema.Date;
|
|
94
|
+
readonly url: Schema.optionalKey<Schema.String>;
|
|
95
|
+
}>>>;
|
|
96
|
+
readonly access: Schema.optionalKey<Schema.Struct<{
|
|
97
|
+
readonly scopeKey: Schema.NonEmptyString;
|
|
98
|
+
readonly permissions: Schema.$Array<Schema.Literals<readonly ["list", "read", "create", "update", "delete"]>>;
|
|
99
|
+
}>>;
|
|
100
|
+
readonly locale: Schema.optionalKey<Schema.String>;
|
|
101
|
+
readonly timeZone: Schema.optionalKey<Schema.String>;
|
|
102
|
+
readonly messages: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
|
|
103
|
+
readonly id: Schema.optionalKey<Schema.String>;
|
|
104
|
+
readonly name: Schema.optionalKey<Schema.String>;
|
|
105
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
106
|
+
readonly size: Schema.optionalKey<Schema.String>;
|
|
107
|
+
readonly created: Schema.optionalKey<Schema.String>;
|
|
108
|
+
readonly updated: Schema.optionalKey<Schema.String>;
|
|
109
|
+
readonly download: Schema.optionalKey<Schema.String>;
|
|
110
|
+
readonly replace: Schema.optionalKey<Schema.String>;
|
|
111
|
+
readonly delete: Schema.optionalKey<Schema.String>;
|
|
112
|
+
readonly deleteSelected: Schema.optionalKey<Schema.String>;
|
|
113
|
+
readonly empty: Schema.optionalKey<Schema.String>;
|
|
114
|
+
readonly loadFailed: Schema.optionalKey<Schema.String>;
|
|
115
|
+
readonly deleteFailed: Schema.optionalKey<Schema.String>;
|
|
116
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
117
|
+
readonly copyLink: Schema.optionalKey<Schema.String>;
|
|
118
|
+
readonly linkCopied: Schema.optionalKey<Schema.String>;
|
|
119
|
+
readonly copyLinkUnavailable: Schema.optionalKey<Schema.String>;
|
|
120
|
+
readonly close: Schema.optionalKey<Schema.String>;
|
|
121
|
+
}>>>;
|
|
122
|
+
}>;
|
|
123
|
+
readonly model: Schema.Null;
|
|
124
|
+
readonly message: Schema.Never;
|
|
125
|
+
readonly restore: false;
|
|
126
|
+
readonly queries: {
|
|
127
|
+
readonly library: {
|
|
128
|
+
query: typeof import("../../services/assets/library.js").AssetList;
|
|
129
|
+
dropPrevious: boolean;
|
|
130
|
+
args: ({ props }: {
|
|
131
|
+
props: {
|
|
132
|
+
readonly assets?: readonly {
|
|
133
|
+
readonly id: string;
|
|
134
|
+
readonly name: string;
|
|
135
|
+
readonly mimeType: string;
|
|
136
|
+
readonly byteSize: number;
|
|
137
|
+
readonly createdAt: Date;
|
|
138
|
+
readonly updatedAt: Date;
|
|
139
|
+
readonly url?: string | undefined;
|
|
140
|
+
}[] | undefined;
|
|
141
|
+
readonly access?: {
|
|
142
|
+
readonly scopeKey: string;
|
|
143
|
+
readonly permissions: readonly ("create" | "delete" | "list" | "read" | "update")[];
|
|
144
|
+
} | undefined;
|
|
145
|
+
readonly locale?: string | undefined;
|
|
146
|
+
readonly timeZone?: string | undefined;
|
|
147
|
+
readonly messages?: {
|
|
148
|
+
readonly [x: string]: {
|
|
149
|
+
readonly id?: string | undefined;
|
|
150
|
+
readonly name?: string | undefined;
|
|
151
|
+
readonly type?: string | undefined;
|
|
152
|
+
readonly size?: string | undefined;
|
|
153
|
+
readonly created?: string | undefined;
|
|
154
|
+
readonly updated?: string | undefined;
|
|
155
|
+
readonly download?: string | undefined;
|
|
156
|
+
readonly replace?: string | undefined;
|
|
157
|
+
readonly delete?: string | undefined;
|
|
158
|
+
readonly deleteSelected?: string | undefined;
|
|
159
|
+
readonly empty?: string | undefined;
|
|
160
|
+
readonly loadFailed?: string | undefined;
|
|
161
|
+
readonly deleteFailed?: string | undefined;
|
|
162
|
+
readonly title?: string | undefined;
|
|
163
|
+
readonly copyLink?: string | undefined;
|
|
164
|
+
readonly linkCopied?: string | undefined;
|
|
165
|
+
readonly copyLinkUnavailable?: string | undefined;
|
|
166
|
+
readonly close?: string | undefined;
|
|
167
|
+
};
|
|
168
|
+
} | undefined;
|
|
169
|
+
};
|
|
170
|
+
}) => {
|
|
171
|
+
readonly search?: string | undefined;
|
|
172
|
+
readonly kind?: "caption" | "document" | "image" | "video" | undefined;
|
|
173
|
+
readonly scopeKey: string;
|
|
174
|
+
readonly showFiles: boolean;
|
|
175
|
+
} | undefined;
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
export declare const assetTableLibraryBehaviours: {
|
|
180
|
+
init: () => null;
|
|
181
|
+
update: () => null;
|
|
182
|
+
};
|
|
84
183
|
type ManagementModel = typeof assetTableManagementOptions.model.Type;
|
|
85
184
|
type ManagementMessage = typeof Manage.Type;
|
|
86
185
|
type ManagementEvent = typeof assetTableManagementOptions.events.Type;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type JSX } from "react";
|
|
1
2
|
import type { AssetLibraryRuntime } from "../../services/assets/library.js";
|
|
2
3
|
import { type DataTableStatus } from "@krak-stack/registry/data-table/react";
|
|
3
4
|
import type { AssetTableItem, AssetTableSharedProps } from "./schema.js";
|
|
@@ -17,5 +18,5 @@ export type ConnectedAssetTableProps = Omit<AssetTableProps, "assets"> & {
|
|
|
17
18
|
runtime: AssetLibraryRuntime;
|
|
18
19
|
access: NonNullable<AssetTableSharedProps["access"]>;
|
|
19
20
|
};
|
|
20
|
-
export declare function AssetTable<T extends AssetTableItem>(props: AssetTableProps<T>):
|
|
21
|
-
export declare function AssetTable(props: ConnectedAssetTableProps):
|
|
21
|
+
export declare function AssetTable<T extends AssetTableItem>(props: AssetTableProps<T>): JSX.Element;
|
|
22
|
+
export declare function AssetTable(props: ConnectedAssetTableProps): JSX.Element;
|