@blinkk/root-cms 1.0.1-alpha.0 → 1.0.1
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/LICENSE +22 -0
- package/README.md +66 -0
- package/bin/root-cms.js +17 -0
- package/dist/app.js +212 -0
- package/dist/cli.js +346 -0
- package/dist/client.d.ts +273 -0
- package/dist/client.js +600 -0
- package/dist/core.d.ts +55 -0
- package/dist/core.js +865 -0
- package/dist/functions.d.ts +13 -0
- package/dist/functions.js +714 -0
- package/dist/plugin.d.ts +76 -0
- package/dist/plugin.js +1091 -0
- package/dist/project.d.ts +16 -0
- package/dist/project.js +21 -0
- package/dist/richtext.d.ts +73 -0
- package/dist/richtext.js +129 -0
- package/dist/schema--v3Ho5Lj.d.ts +211 -0
- package/dist/ui/signin.css +173 -0
- package/dist/ui/signin.js +9167 -0
- package/dist/ui/ui.css +2352 -0
- package/dist/ui/ui.js +67731 -0
- package/package.json +118 -13
package/dist/core.d.ts
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { LoadTranslationsOptions, TranslationsMap, LocaleTranslations } from './client.js';
|
|
2
|
+
export { ArrayObject, DataSource, DataSourceData, DataSourceMode, Doc, DocMode, GetCountOptions, GetDocOptions, HttpMethod, ListDocsOptions, Release, RootCMSClient, SetDocOptions, Translation, getCmsPlugin, marshalArray, normalizeData, translationsForLocale, unmarshalArray, unmarshalData } from './client.js';
|
|
3
|
+
import { RootConfig } from '@blinkk/root';
|
|
4
|
+
import { Query } from 'firebase-admin/firestore';
|
|
5
|
+
export { s as schema } from './schema--v3Ho5Lj.js';
|
|
6
|
+
import './plugin.js';
|
|
7
|
+
import 'firebase-admin/app';
|
|
8
|
+
import 'preact';
|
|
9
|
+
|
|
10
|
+
/** @deprecated Use client.ts instead. */
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Retrieves a doc from Root.js CMS.
|
|
14
|
+
* @deprecated Use RootCMSClient.getDoc() instead.
|
|
15
|
+
*/
|
|
16
|
+
declare function getDoc<T>(rootConfig: RootConfig, collectionId: string, slug: string, options: {
|
|
17
|
+
mode: 'draft' | 'published';
|
|
18
|
+
}): Promise<T | null>;
|
|
19
|
+
/**
|
|
20
|
+
* Lists docs from a Root.js CMS collection.
|
|
21
|
+
* @deprecated Use RootCMSClient.listDocs() instead.
|
|
22
|
+
*/
|
|
23
|
+
declare function listDocs<T>(rootConfig: RootConfig, collectionId: string, options: {
|
|
24
|
+
mode: 'draft' | 'published';
|
|
25
|
+
offset?: number;
|
|
26
|
+
limit?: number;
|
|
27
|
+
orderBy?: string;
|
|
28
|
+
orderByDirection?: 'asc' | 'desc';
|
|
29
|
+
query?: (query: Query) => Query;
|
|
30
|
+
}): Promise<{
|
|
31
|
+
docs: T[];
|
|
32
|
+
}>;
|
|
33
|
+
/**
|
|
34
|
+
* Returns the number of docs in a Root.js CMS collection.
|
|
35
|
+
* @deprecated Use RootCMSClient.getDocsCount() instead.
|
|
36
|
+
*/
|
|
37
|
+
declare function numDocs(rootConfig: RootConfig, collectionId: string, options: {
|
|
38
|
+
mode: 'draft' | 'published';
|
|
39
|
+
query?: (query: Query) => Query;
|
|
40
|
+
}): Promise<number>;
|
|
41
|
+
/**
|
|
42
|
+
* Publishes scheduled docs.
|
|
43
|
+
* @deprecated Use RootCMSClient.publishScheduledDocs() instead.
|
|
44
|
+
*/
|
|
45
|
+
declare function publishScheduledDocs(rootConfig: RootConfig): Promise<any[]>;
|
|
46
|
+
/**
|
|
47
|
+
* @deprecated Use `RootCMSClient.loadTranslations()`.
|
|
48
|
+
*/
|
|
49
|
+
declare function loadTranslations(rootConfig: RootConfig, options?: LoadTranslationsOptions): Promise<TranslationsMap>;
|
|
50
|
+
/**
|
|
51
|
+
* @deprecated Use `RootCMSClient.loadTranslationsForLocale()`.
|
|
52
|
+
*/
|
|
53
|
+
declare function loadTranslationsForLocale(rootConfig: RootConfig, locale: string, options?: LoadTranslationsOptions): Promise<LocaleTranslations>;
|
|
54
|
+
|
|
55
|
+
export { LoadTranslationsOptions, LocaleTranslations, TranslationsMap, getDoc, listDocs, loadTranslations, loadTranslationsForLocale, numDocs, publishScheduledDocs };
|