@blinkk/root-cms 1.4.6 → 1.4.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/dist/app.js CHANGED
@@ -7,7 +7,7 @@ import { render as renderToString } from "preact-render-to-string";
7
7
  // package.json
8
8
  var package_default = {
9
9
  name: "@blinkk/root-cms",
10
- version: "1.4.6",
10
+ version: "1.4.7",
11
11
  author: "s@blinkk.com",
12
12
  license: "MIT",
13
13
  engines: {
@@ -140,7 +140,7 @@ var package_default = {
140
140
  vitest: "0.34.6"
141
141
  },
142
142
  peerDependencies: {
143
- "@blinkk/root": "1.4.6",
143
+ "@blinkk/root": "1.4.7",
144
144
  "firebase-admin": ">=11",
145
145
  "firebase-functions": ">=4",
146
146
  preact: ">=10",
@@ -377,6 +377,8 @@ interface DataSource {
377
377
  interface DataSourceData<T = any> {
378
378
  dataSource: DataSource;
379
379
  data: T;
380
+ /** Optional list of column headers (for gsheet sources). */
381
+ headers?: string[];
380
382
  }
381
383
  type DataSourceMode = 'draft' | 'published';
382
384
  interface GetDocOptions {
package/dist/client.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  import '@blinkk/root';
2
2
  import 'firebase-admin/app';
3
3
  import 'firebase-admin/firestore';
4
- export { A as Action, p as ArrayObject, c as DataSource, d as DataSourceData, e as DataSourceMode, D as Doc, b as DocMode, h as GetCountOptions, G as GetDocOptions, H as HttpMethod, j as ListActionsOptions, g as ListDocsOptions, L as LoadTranslationsOptions, a as LocaleTranslations, R as Release, k as RootCMSClient, f as SaveDraftOptions, S as SetDocOptions, i as Translation, T as TranslationsMap, U as UserRole, m as getCmsPlugin, l as isRichTextData, q as marshalArray, n as marshalData, o as normalizeData, v as parseDocId, t as toArrayObject, s as translationsForLocale, r as unmarshalArray, u as unmarshalData } from './client-c_QAurxr.js';
4
+ export { A as Action, p as ArrayObject, c as DataSource, d as DataSourceData, e as DataSourceMode, D as Doc, b as DocMode, h as GetCountOptions, G as GetDocOptions, H as HttpMethod, j as ListActionsOptions, g as ListDocsOptions, L as LoadTranslationsOptions, a as LocaleTranslations, R as Release, k as RootCMSClient, f as SaveDraftOptions, S as SetDocOptions, i as Translation, T as TranslationsMap, U as UserRole, m as getCmsPlugin, l as isRichTextData, q as marshalArray, n as marshalData, o as normalizeData, v as parseDocId, t as toArrayObject, s as translationsForLocale, r as unmarshalArray, u as unmarshalData } from './client-vS0mO6Nw.js';
package/dist/client.js CHANGED
@@ -860,7 +860,8 @@ var RootCMSClient = class {
860
860
  const batch = this.db.batch();
861
861
  batch.set(dataDocRefPublished, {
862
862
  dataSource: updatedDataSource,
863
- data: (dataRes == null ? void 0 : dataRes.data) || null
863
+ data: (dataRes == null ? void 0 : dataRes.data) || null,
864
+ ...(dataRes == null ? void 0 : dataRes.headers) ? { headers: dataRes.headers } : {}
864
865
  });
865
866
  batch.update(dataDocRefDraft, {
866
867
  dataSource: updatedDataSource
package/dist/core.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { L as LoadTranslationsOptions, T as TranslationsMap, a as LocaleTranslations } from './client-c_QAurxr.js';
2
- export { A as Action, p as ArrayObject, c as DataSource, d as DataSourceData, e as DataSourceMode, D as Doc, b as DocMode, h as GetCountOptions, G as GetDocOptions, H as HttpMethod, j as ListActionsOptions, g as ListDocsOptions, w as Locale, M as MultiLocaleTranslationsMap, R as Release, k as RootCMSClient, f as SaveDraftOptions, S as SetDocOptions, E as SingleLocaleTranslationsMap, x as SourceString, y as TranslatedString, i as Translation, z as TranslationsDocMode, C as TranslationsLocaleDocEntry, B as TranslationsLocaleDocHashMap, F as TranslationsManager, U as UserRole, I as buildTranslationsDbPath, J as buildTranslationsLocaleDocDbPath, m as getCmsPlugin, l as isRichTextData, q as marshalArray, n as marshalData, o as normalizeData, v as parseDocId, t as toArrayObject, s as translationsForLocale, r as unmarshalArray, u as unmarshalData } from './client-c_QAurxr.js';
1
+ import { L as LoadTranslationsOptions, T as TranslationsMap, a as LocaleTranslations } from './client-vS0mO6Nw.js';
2
+ export { A as Action, p as ArrayObject, c as DataSource, d as DataSourceData, e as DataSourceMode, D as Doc, b as DocMode, h as GetCountOptions, G as GetDocOptions, H as HttpMethod, j as ListActionsOptions, g as ListDocsOptions, w as Locale, M as MultiLocaleTranslationsMap, R as Release, k as RootCMSClient, f as SaveDraftOptions, S as SetDocOptions, E as SingleLocaleTranslationsMap, x as SourceString, y as TranslatedString, i as Translation, z as TranslationsDocMode, C as TranslationsLocaleDocEntry, B as TranslationsLocaleDocHashMap, F as TranslationsManager, U as UserRole, I as buildTranslationsDbPath, J as buildTranslationsLocaleDocDbPath, m as getCmsPlugin, l as isRichTextData, q as marshalArray, n as marshalData, o as normalizeData, v as parseDocId, t as toArrayObject, s as translationsForLocale, r as unmarshalArray, u as unmarshalData } from './client-vS0mO6Nw.js';
3
3
  import { RootConfig } from '@blinkk/root';
4
4
  import { Query } from 'firebase-admin/firestore';
5
5
  export { s as schema } from './schema-hlZc-G1f.js';
package/dist/core.js CHANGED
@@ -866,7 +866,8 @@ var RootCMSClient = class {
866
866
  const batch = this.db.batch();
867
867
  batch.set(dataDocRefPublished, {
868
868
  dataSource: updatedDataSource,
869
- data: (dataRes == null ? void 0 : dataRes.data) || null
869
+ data: (dataRes == null ? void 0 : dataRes.data) || null,
870
+ ...(dataRes == null ? void 0 : dataRes.headers) ? { headers: dataRes.headers } : {}
870
871
  });
871
872
  batch.update(dataDocRefDraft, {
872
873
  dataSource: updatedDataSource
package/dist/functions.js CHANGED
@@ -865,7 +865,8 @@ var RootCMSClient = class {
865
865
  const batch = this.db.batch();
866
866
  batch.set(dataDocRefPublished, {
867
867
  dataSource: updatedDataSource,
868
- data: (dataRes == null ? void 0 : dataRes.data) || null
868
+ data: (dataRes == null ? void 0 : dataRes.data) || null,
869
+ ...(dataRes == null ? void 0 : dataRes.headers) ? { headers: dataRes.headers } : {}
869
870
  });
870
871
  batch.update(dataDocRefDraft, {
871
872
  dataSource: updatedDataSource
package/dist/plugin.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  import '@blinkk/root';
2
2
  import 'firebase-admin/app';
3
3
  import 'firebase-admin/firestore';
4
- export { N as CMSAIConfig, Q as CMSPlugin, P as CMSPluginOptions, O as CMSSidebarTool, K as CMSUser, V as cmsPlugin } from './client-c_QAurxr.js';
4
+ export { N as CMSAIConfig, Q as CMSPlugin, P as CMSPluginOptions, O as CMSSidebarTool, K as CMSUser, V as cmsPlugin } from './client-vS0mO6Nw.js';
package/dist/plugin.js CHANGED
@@ -1307,7 +1307,8 @@ var RootCMSClient = class {
1307
1307
  const batch = this.db.batch();
1308
1308
  batch.set(dataDocRefPublished, {
1309
1309
  dataSource: updatedDataSource,
1310
- data: (dataRes == null ? void 0 : dataRes.data) || null
1310
+ data: (dataRes == null ? void 0 : dataRes.data) || null,
1311
+ ...(dataRes == null ? void 0 : dataRes.headers) ? { headers: dataRes.headers } : {}
1311
1312
  });
1312
1313
  batch.update(dataDocRefDraft, {
1313
1314
  dataSource: updatedDataSource