datocms-plugin-sdk 0.8.0 → 1.0.0-alpha.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.
@@ -0,0 +1,7 @@
1
+ /* tslint:disable */
2
+ /**
3
+ * This file was automatically generated by hyperschema-to-ts: DO NOT MODIFY IT
4
+ * BY HAND.
5
+ */
6
+ export {};
7
+ //# sourceMappingURL=SiteApiSchema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SiteApiSchema.js","sourceRoot":"","sources":["../../src/SiteApiSchema.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB;;;GAGG"}
@@ -1,11 +1,6 @@
1
- import { SchemaTypes } from '@datocms/cma-client';
2
- import { AssetSource, ContentAreaSidebarItem, FieldExtensionOverride, InitialLocationQueryForItemSelector, InitPropertiesAndMethods, ItemFormSidebar, ItemFormSidebarPanel, ItemPresentationInfo, MainNavigationTab, ManualFieldExtension, OnBootPropertiesAndMethods, RenderAssetSourcePropertiesAndMethods, RenderConfigScreenPropertiesAndMethods, RenderFieldExtensionPropertiesAndMethods, RenderManualFieldExtensionConfigScreenPropertiesAndMethods, RenderModalPropertiesAndMethods, RenderPagePropertiesAndMethods, RenderSidebarPanelPropertiesAndMethods, RenderSidebarPropertiesAndMethods, SettingsAreaSidebarItemGroup } from './types';
1
+ import { Field, Item, ItemCreateSchema, ItemType, ItemUpdateSchema } from './SiteApiSchema';
2
+ import { AssetSource, ContentAreaSidebarItem, FieldExtensionOverride, InitPropertiesAndMethods, ItemFormSidebarPanel, MainNavigationTab, ManualFieldExtension, OnBootPropertiesAndMethods, RenderAssetSourcePropertiesAndMethods, RenderConfigScreenPropertiesAndMethods, RenderFieldExtensionPropertiesAndMethods, RenderManualFieldExtensionConfigScreenPropertiesAndMethods, RenderModalPropertiesAndMethods, RenderPagePropertiesAndMethods, RenderSidebarPanelPropertiesAndMethods, SettingsAreaSidebarItemGroup } from './types';
3
3
  import { ItemFormOutlet, RenderItemFormOutletPropertiesAndMethods, StructuredTextCustomBlockStyle, StructuredTextCustomMark } from '.';
4
- declare type Field = SchemaTypes.Field;
5
- declare type Item = SchemaTypes.Item;
6
- declare type ItemCreateSchema = SchemaTypes.ItemCreateSchema;
7
- declare type ItemType = SchemaTypes.ItemType;
8
- declare type ItemUpdateSchema = SchemaTypes.ItemUpdateSchema;
9
4
  export declare type SizingUtilities = {
10
5
  /**
11
6
  * Listens for DOM changes and automatically calls `setHeight` when it detects
@@ -32,7 +27,6 @@ export declare type RenderPageCtx = RenderPagePropertiesAndMethods;
32
27
  export declare type RenderModalCtx = RenderModalPropertiesAndMethods & SizingUtilities;
33
28
  export declare type RenderAssetSourceCtx = RenderAssetSourcePropertiesAndMethods & SizingUtilities;
34
29
  export declare type RenderItemFormSidebarPanelCtx = RenderSidebarPanelPropertiesAndMethods & SizingUtilities;
35
- export declare type RenderItemFormSidebarCtx = RenderSidebarPropertiesAndMethods & SizingUtilities;
36
30
  export declare type RenderItemFormOutletCtx = RenderItemFormOutletPropertiesAndMethods & SizingUtilities;
37
31
  export declare type RenderFieldExtensionCtx = RenderFieldExtensionPropertiesAndMethods & SizingUtilities;
38
32
  export declare type RenderManualFieldExtensionConfigScreenCtx = RenderManualFieldExtensionConfigScreenPropertiesAndMethods & SizingUtilities;
@@ -75,20 +69,6 @@ export declare type FullConnectParameters = {
75
69
  * @tag beforeHooks
76
70
  */
77
71
  onBeforeItemUpsert: (createOrUpdateItemPayload: ItemUpdateSchema | ItemCreateSchema, ctx: OnBootCtx) => MaybePromise<boolean>;
78
- /**
79
- * Use this function to customize the presentation of a record in records
80
- * collections and "Single link" or "Multiple links" field
81
- *
82
- * @tag presentation
83
- */
84
- buildItemPresentationInfo: (item: Item, ctx: OnBootCtx) => MaybePromise<ItemPresentationInfo | undefined>;
85
- /**
86
- * Use this function to customize the initial filters when opening an record
87
- * selector via a "Single link" or "Multiple links" field
88
- *
89
- * @tag locationQuery
90
- */
91
- initialLocationQueryForItemSelector: (openerfield: Item, itemType: ItemType, ctx: OnBootCtx) => MaybePromise<InitialLocationQueryForItemSelector | undefined>;
92
72
  /**
93
73
  * Use this function to declare new tabs you want to add in the top-bar of the
94
74
  * UI
@@ -131,13 +111,6 @@ export declare type FullConnectParameters = {
131
111
  * @tag sidebarPanels
132
112
  */
133
113
  itemFormSidebarPanels: (itemType: ItemType, ctx: IntentCtx) => ItemFormSidebarPanel[];
134
- /**
135
- * Use this function to declare new sidebar to be shown when the user edits
136
- * records of a particular model
137
- *
138
- * @tag sidebarPanels
139
- */
140
- itemFormSidebars: (itemType: ItemType, ctx: IntentCtx) => ItemFormSidebar[];
141
114
  /**
142
115
  * Use this function to declare custom outlets to be shown at the top of the
143
116
  * record's editing page
@@ -195,13 +168,6 @@ export declare type FullConnectParameters = {
195
168
  * @tag sidebarPanels
196
169
  */
197
170
  renderItemFormSidebarPanel: (sidebarPaneId: string, ctx: RenderItemFormSidebarPanelCtx) => void;
198
- /**
199
- * This function will be called when the plugin needs to render a sidebar (see
200
- * the `itemFormSidebars` function)
201
- *
202
- * @tag sidebarPanels
203
- */
204
- renderItemFormSidebar: (sidebarId: string, ctx: RenderItemFormSidebarCtx) => void;
205
171
  /**
206
172
  * This function will be called when the plugin needs to render an outlet (see
207
173
  * the `itemFormOutlets` function)
@@ -55,7 +55,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
55
55
  return to.concat(ar || Array.prototype.slice.call(from));
56
56
  };
57
57
  import connectToParent from 'penpal/lib/connectToParent';
58
- import { isOnBootParent, isRenderAssetSourceParent, isRenderConfigScreenParent, isRenderFieldExtensionParent, isRenderItemFormOutletParent, isRenderManualFieldExtensionConfigScreenParent, isRenderModalParent, isRenderPageParent, isRenderSidebarPanelParent, isRenderSidebarParent, } from './guards';
58
+ import { isOnBootParent, isRenderAssetSourceParent, isRenderConfigScreenParent, isRenderFieldExtensionParent, isRenderItemFormOutletParent, isRenderManualFieldExtensionConfigScreenParent, isRenderModalParent, isRenderPageParent, isRenderSidebarPanelParent, } from './guards';
59
59
  function toMultifield(fn) {
60
60
  return function (fields, ctx) {
61
61
  if (!fn) {
@@ -74,7 +74,7 @@ var buildRenderUtils = function (parent) {
74
74
  var oldHeight = null;
75
75
  var updateHeight = function (height) {
76
76
  var realHeight = height === undefined
77
- ? Math.max(document.body.scrollHeight, document.body.offsetHeight, document.documentElement.getBoundingClientRect().height)
77
+ ? Math.max(document.body.scrollHeight, document.body.offsetHeight, document.documentElement.clientHeight, document.documentElement.scrollHeight, document.documentElement.offsetHeight)
78
78
  : height;
79
79
  if (realHeight !== oldHeight) {
80
80
  parent.setHeight(realHeight);
@@ -82,44 +82,34 @@ var buildRenderUtils = function (parent) {
82
82
  }
83
83
  };
84
84
  var resizeObserver = null;
85
- var mutationObserver = null;
86
- var onMutation = function () { return updateHeight(); };
87
85
  var startAutoResizer = function () {
88
86
  updateHeight();
89
- if (!resizeObserver) {
90
- resizeObserver = new ResizeObserver(onMutation);
91
- resizeObserver.observe(document.documentElement);
92
- }
93
- if (!mutationObserver) {
94
- mutationObserver = new MutationObserver(onMutation);
95
- mutationObserver.observe(window.document.body, {
96
- attributes: true,
97
- childList: true,
98
- subtree: true,
99
- characterData: true,
100
- });
87
+ if (resizeObserver) {
88
+ return;
101
89
  }
90
+ resizeObserver = new ResizeObserver(function () {
91
+ // entries[entries.length - 1].borderBoxSize[0].blockSize;
92
+ updateHeight();
93
+ });
94
+ resizeObserver.observe(document.documentElement);
102
95
  };
103
96
  var stopAutoResizer = function () {
104
- if (resizeObserver) {
105
- resizeObserver.disconnect();
106
- resizeObserver = null;
107
- }
108
- if (mutationObserver) {
109
- mutationObserver.disconnect();
110
- mutationObserver = null;
97
+ if (!resizeObserver) {
98
+ return;
111
99
  }
100
+ resizeObserver.disconnect();
101
+ resizeObserver = null;
112
102
  };
113
103
  return { updateHeight: updateHeight, startAutoResizer: startAutoResizer, stopAutoResizer: stopAutoResizer };
114
104
  };
115
105
  export function connect(configuration) {
116
106
  if (configuration === void 0) { configuration = {}; }
117
107
  return __awaiter(this, void 0, void 0, function () {
118
- var assetSources, mainNavigationTabs, settingsAreaSidebarItemGroups, contentAreaSidebarItems, manualFieldExtensions, itemFormSidebarPanels, itemFormSidebars, itemFormOutlets, listener, callMethodMergingBootCtxExecutor, penpalConnection, parent, initialSettings, currentSettings_1, render, renderUtils_1, render, renderUtils_2, render, renderUtils_3, render, renderUtils_4, render, renderUtils_5, render, renderUtils_6, render, renderUtils_7, render, renderUtils_8, render;
108
+ var assetSources, mainNavigationTabs, settingsAreaSidebarItemGroups, contentAreaSidebarItems, manualFieldExtensions, itemFormSidebarPanels, itemFormOutlets, listener, callMethodMergingBootCtxExecutor, penpalConnection, parent, initialSettings, currentSettings_1, render, renderUtils_1, render, renderUtils_2, render, renderUtils_3, render, renderUtils_4, render, renderUtils_5, render, renderUtils_6, render, renderUtils_7, render;
119
109
  return __generator(this, function (_a) {
120
110
  switch (_a.label) {
121
111
  case 0:
122
- assetSources = configuration.assetSources, mainNavigationTabs = configuration.mainNavigationTabs, settingsAreaSidebarItemGroups = configuration.settingsAreaSidebarItemGroups, contentAreaSidebarItems = configuration.contentAreaSidebarItems, manualFieldExtensions = configuration.manualFieldExtensions, itemFormSidebarPanels = configuration.itemFormSidebarPanels, itemFormSidebars = configuration.itemFormSidebars, itemFormOutlets = configuration.itemFormOutlets;
112
+ assetSources = configuration.assetSources, mainNavigationTabs = configuration.mainNavigationTabs, settingsAreaSidebarItemGroups = configuration.settingsAreaSidebarItemGroups, contentAreaSidebarItems = configuration.contentAreaSidebarItems, manualFieldExtensions = configuration.manualFieldExtensions, itemFormSidebarPanels = configuration.itemFormSidebarPanels, itemFormOutlets = configuration.itemFormOutlets;
123
113
  listener = null;
124
114
  callMethodMergingBootCtxExecutor = null;
125
115
  penpalConnection = connectToParent({
@@ -140,7 +130,6 @@ export function connect(configuration) {
140
130
  contentAreaSidebarItems: contentAreaSidebarItems,
141
131
  manualFieldExtensions: manualFieldExtensions,
142
132
  itemFormSidebarPanels: itemFormSidebarPanels,
143
- itemFormSidebars: itemFormSidebars,
144
133
  itemFormOutlets: itemFormOutlets,
145
134
  overrideFieldExtensions: toMultifield(configuration.overrideFieldExtensions),
146
135
  customMarksForStructuredTextField: toMultifield(configuration.customMarksForStructuredTextField),
@@ -235,46 +224,35 @@ export function connect(configuration) {
235
224
  listener = render;
236
225
  render(initialSettings);
237
226
  }
238
- if (isRenderSidebarParent(parent, initialSettings)) {
239
- renderUtils_5 = buildRenderUtils(parent);
240
- render = function (settings) {
241
- if (!configuration.renderItemFormSidebar) {
242
- return;
243
- }
244
- configuration.renderItemFormSidebar(settings.sidebarId, __assign(__assign(__assign({}, parent), settings), renderUtils_5));
245
- };
246
- listener = render;
247
- render(initialSettings);
248
- }
249
227
  if (isRenderItemFormOutletParent(parent, initialSettings)) {
250
- renderUtils_6 = buildRenderUtils(parent);
228
+ renderUtils_5 = buildRenderUtils(parent);
251
229
  render = function (settings) {
252
230
  if (!configuration.renderItemFormOutlet) {
253
231
  return;
254
232
  }
255
- configuration.renderItemFormOutlet(settings.itemFormOutletId, __assign(__assign(__assign({}, parent), settings), renderUtils_6));
233
+ configuration.renderItemFormOutlet(settings.itemFormOutletId, __assign(__assign(__assign({}, parent), settings), renderUtils_5));
256
234
  };
257
235
  listener = render;
258
236
  render(initialSettings);
259
237
  }
260
238
  if (isRenderFieldExtensionParent(parent, initialSettings)) {
261
- renderUtils_7 = buildRenderUtils(parent);
239
+ renderUtils_6 = buildRenderUtils(parent);
262
240
  render = function (settings) {
263
241
  if (!configuration.renderFieldExtension) {
264
242
  return;
265
243
  }
266
- configuration.renderFieldExtension(settings.fieldExtensionId, __assign(__assign(__assign({}, parent), settings), renderUtils_7));
244
+ configuration.renderFieldExtension(settings.fieldExtensionId, __assign(__assign(__assign({}, parent), settings), renderUtils_6));
267
245
  };
268
246
  listener = render;
269
247
  render(initialSettings);
270
248
  }
271
249
  if (isRenderManualFieldExtensionConfigScreenParent(parent, initialSettings)) {
272
- renderUtils_8 = buildRenderUtils(parent);
250
+ renderUtils_7 = buildRenderUtils(parent);
273
251
  render = function (settings) {
274
252
  if (!configuration.renderManualFieldExtensionConfigScreen) {
275
253
  return;
276
254
  }
277
- configuration.renderManualFieldExtensionConfigScreen(settings.fieldExtensionId, __assign(__assign(__assign({}, parent), settings), renderUtils_8));
255
+ configuration.renderManualFieldExtensionConfigScreen(settings.fieldExtensionId, __assign(__assign(__assign({}, parent), settings), renderUtils_7));
278
256
  };
279
257
  listener = render;
280
258
  render(initialSettings);
@@ -1 +1 @@
1
- {"version":3,"file":"connect.js","sourceRoot":"","sources":["../../src/connect.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,eAAe,MAAM,4BAA4B,CAAC;AAiCzD,OAAO,EACL,cAAc,EACd,yBAAyB,EACzB,0BAA0B,EAC1B,4BAA4B,EAC5B,4BAA4B,EAC5B,8CAA8C,EAC9C,mBAAmB,EACnB,kBAAkB,EAClB,0BAA0B,EAC1B,qBAAqB,GAEtB,MAAM,UAAU,CAAC;AAqUlB,SAAS,YAAY,CACnB,EAA+D;IAE/D,OAAO,UACL,MAAe,EACf,GAA6B;QAE7B,IAAI,CAAC,EAAE,EAAE;YACP,OAAO,EAAE,CAAC;SACX;QAED,IAAM,MAAM,GAA2B,EAAE,CAAC;QAE1C,KAAoB,UAAM,EAAN,iBAAM,EAAN,oBAAM,EAAN,IAAM,EAAE;YAAvB,IAAM,KAAK,eAAA;YACd,IAAM,QAAQ,GAAG,GAAG,CAAC,SAAS,CAC5B,KAAK,CAAC,aAAa,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAC1B,CAAC;YACd,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,wBAAO,GAAG,KAAE,QAAQ,UAAA,IAAG,CAAC;SACpD;QAED,OAAO,MAAM,CAAC;IAChB,CAAC,CAAC;AACJ,CAAC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AC,QAAkB;4BAChC,IAAI,CAAC,aAAa,CAAC,oBAAoB,EAAE;gCACvC,OAAO;6BACR;4BAED,aAAa,CAAC,oBAAoB,CAAC,QAAQ,CAAC,gBAAgB,iCACvD,MAAM,GACN,QAAQ,GACR,aAAW,EACd,CAAC;wBACL,CAAC,CAAC;wBAEF,QAAQ,GAAG,MAAM,CAAC;wBAClB,MAAM,CAAC,eAA2B,CAAC,CAAC;qBACrC;oBAED,IAAI,4BAA4B,CAAC,MAAM,EAAE,eAAe,CAAC,EAAE;wBAKnD,gBAAc,gBAAgB,CAAC,MAAM,CAAC,CAAC;wBAEvC,MAAM,GAAG,UAAC,QAAkB;4BAChC,IAAI,CAAC,aAAa,CAAC,oBAAoB,EAAE;gCACvC,OAAO;6BACR;4BAED,aAAa,CAAC,oBAAoB,CAAC,QAAQ,CAAC,gBAAgB,iCACvD,MAAM,GACN,QAAQ,GACR,aAAW,EACd,CAAC;wBACL,CAAC,CAAC;wBAEF,QAAQ,GAAG,MAAM,CAAC;wBAClB,MAAM,CAAC,eAA2B,CAAC,CAAC;qBACrC;oBAED,IAAI,8CAA8C,CAAC,MAAM,EAAE,eAAe,CAAC,EAAE;wBAKrE,gBAAc,gBAAgB,CAAC,MAAM,CAAC,CAAC;wBAEvC,MAAM,GAAG,UAAC,QAAkB;4BAChC,IAAI,CAAC,aAAa,CAAC,sCAAsC,EAAE;gCACzD,OAAO;6BACR;4BAED,aAAa,CAAC,sCAAsC,CAClD,QAAQ,CAAC,gBAAgB,iCAEpB,MAAM,GACN,QAAQ,GACR,aAAW,EAEjB,CAAC;wBACJ,CAAC,CAAC;wBAEF,QAAQ,GAAG,MAAM,CAAC;wBAClB,MAAM,CAAC,eAA2B,CAAC,CAAC;qBACrC;;;;;CACF"}
@@ -1,5 +1,5 @@
1
1
  import { RenderItemFormOutletMethods } from '.';
2
- import { OnBootMethods, RenderPageMethods, RenderFieldExtensionMethods, RenderConfigScreenMethods, RenderManualFieldExtensionConfigScreenMethods, RenderSidebarPanelMethods, RenderModalMethods, RenderAssetSourceMethods, RenderSidebarMethods } from './types';
2
+ import { OnBootMethods, RenderPageMethods, RenderFieldExtensionMethods, RenderConfigScreenMethods, RenderManualFieldExtensionConfigScreenMethods, RenderSidebarPanelMethods, RenderModalMethods, RenderAssetSourceMethods } from './types';
3
3
  export declare type Parent = {
4
4
  getSettings: () => Promise<{
5
5
  mode: string;
@@ -20,9 +20,6 @@ export declare const isRenderModalParent: (parent: Parent, settings: {
20
20
  export declare const isRenderSidebarPanelParent: (parent: Parent, settings: {
21
21
  mode: string;
22
22
  }) => parent is RenderSidebarPanelMethods;
23
- export declare const isRenderSidebarParent: (parent: Parent, settings: {
24
- mode: string;
25
- }) => parent is RenderSidebarMethods;
26
23
  export declare const isRenderItemFormOutletParent: (parent: Parent, settings: {
27
24
  mode: string;
28
25
  }) => parent is RenderItemFormOutletMethods;
@@ -8,7 +8,6 @@ export var isRenderPageParent = buildGuard('renderPage');
8
8
  export var isRenderConfigScreenParent = buildGuard('renderConfigScreen');
9
9
  export var isRenderModalParent = buildGuard('renderModal');
10
10
  export var isRenderSidebarPanelParent = buildGuard('renderItemFormSidebarPanel');
11
- export var isRenderSidebarParent = buildGuard('renderItemFormSidebar');
12
11
  export var isRenderItemFormOutletParent = buildGuard('renderItemFormOutlet');
13
12
  export var isRenderFieldExtensionParent = buildGuard('renderFieldExtension');
14
13
  export var isRenderManualFieldExtensionConfigScreenParent = buildGuard('renderManualFieldExtensionConfigScreen');
@@ -1 +1 @@
1
- {"version":3,"file":"guards.js","sourceRoot":"","sources":["../../src/guards.ts"],"names":[],"mappings":"AAeA,SAAS,UAAU,CAAmB,IAAY;IAChD,OAAO,UAAC,MAAc,EAAE,QAA0B;QAChD,OAAA,QAAQ,CAAC,IAAI,KAAK,IAAI;IAAtB,CAAsB,CAAC;AAC3B,CAAC;AAED,MAAM,CAAC,IAAM,cAAc,GAAG,UAAU,CAAgB,QAAQ,CAAC,CAAC;AAElE,MAAM,CAAC,IAAM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,UAAU,CAA8B,sBAAsB,CAAC,CAAC;AAElE,MAAM,CAAC,IAAM,4BAA4B,GACvC,UAAU,CAA8B,sBAAsB,CAAC,CAAC;AAElE,MAAM,CAAC,IAAM,8CAA8C,GACzD,UAAU,CACR,wCAAwC,CACzC,CAAC;AAEJ,MAAM,CAAC,IAAM,yBAAyB,GACpC,UAAU,CAA2B,mBAAmB,CAAC,CAAC"}
@@ -1,14 +1,4 @@
1
- import { SchemaTypes } from '@datocms/cma-client';
2
- declare type Account = SchemaTypes.Account;
3
- declare type Field = SchemaTypes.Field;
4
- declare type Item = SchemaTypes.Item;
5
- declare type ItemType = SchemaTypes.ItemType;
6
- declare type Plugin = SchemaTypes.Plugin;
7
- declare type Site = SchemaTypes.Site;
8
- declare type SsoUser = SchemaTypes.SsoUser;
9
- declare type Upload = SchemaTypes.Upload;
10
- declare type User = SchemaTypes.User;
11
- declare type Role = SchemaTypes.Role;
1
+ import { Account, Field, Item, ItemType, Plugin, Site, SsoUser, Upload, User, Role } from './SiteApiSchema';
12
2
  export type { Account, Field, Item, ItemType, Plugin, Site, SsoUser, Upload, User, Role, };
13
3
  export * from './connect';
14
4
  export * from './types';