datocms-plugin-sdk 0.6.17 → 0.7.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.
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { BlockNodeTypeWithCustomStyle } from 'datocms-structured-text-utils';
3
- import { Account, Field, Fieldset, Item, ItemType, Plugin, Role, Site, SsoUser, Upload, User } from './SiteApiSchema';
3
+ import { Account, Organization, Field, Fieldset, Item, ItemType, Plugin, Role, Site, SsoUser, Upload, User } from './SiteApiSchema';
4
4
  export declare type Icon = string | {
5
5
  type: 'svg';
6
6
  viewBox: string;
@@ -485,7 +485,7 @@ export declare type CommonProperties = {
485
485
  * The current DatoCMS user. It can either be the owner or one of the
486
486
  * collaborators (regular or SSO).
487
487
  */
488
- currentUser: User | SsoUser | Account;
488
+ currentUser: User | SsoUser | Account | Organization;
489
489
  /** The role for the current DatoCMS user */
490
490
  currentRole: Role;
491
491
  /**
@@ -544,8 +544,15 @@ export declare type RenderAdditionalProperties = {
544
544
  * not present, use the `loadSsoUsers` function to load them.
545
545
  */
546
546
  ssoUsers: Partial<Record<string, SsoUser>>;
547
- /** The project owner */
547
+ /**
548
+ * The account that is the project owner
549
+ *
550
+ * @deprecated Please use `.owner` instead, as the project owner can also be
551
+ * an organization
552
+ */
548
553
  account: Account;
554
+ /** The account that is the project owner */
555
+ owner: Account | Organization;
549
556
  /** The padding in px that must be applied to the body */
550
557
  bodyPadding: [number, number, number, number];
551
558
  };