API Documentation

Release notes

entity

druxt-entity

0.28.0

Minor Changes

  • 41cab3a0: feat(#639): add bypassCache druxt setting to DruxtEntity components.

Patch Changes

0.27.1

Patch Changes

  • 39af33a4: fix(#632): add passthrough attrs to DruxtField

0.27.0

Minor Changes

  • f6b4a664: feat(#578): updated missing schema/vue component message with DruxtDevelTemplate tool.

Patch Changes

0.26.1

Patch Changes

  • cc185819: fix(#552): sanitised empty emitted strings to prevent true error on themed text fields.

0.26.0

Minor Changes

  • 2f2a7cce: Added watch for 'settings' prop.

Patch Changes

0.25.1

Patch Changes

  • 28bed4ca: Fixed bug with DruxtEntity Storybook and unpublished content.
  • 45e14b84: Fixed support for nuxt/storybook.
  • Updated dependencies [352b7a51]

0.25.0

Minor Changes

  • be21952: Added langcode prop to DruxtEntity and DruxtField components for multilingual support.

    example:

    <DruxtEntity
      type="node--recipe"
      uuid="16268720-a0fa-4243-8bdc-491d8857eb26"
      langcode="es"
    />
    
  • be21952: Added langcode to component mixins.

Patch Changes

0.24.3

Patch Changes

0.24.2

Patch Changes

0.24.1

Patch Changes

  • d65eb40: fix(#438): fixed DruxtEntity and DruxtEntityForm stories.

0.24.0

Minor Changes

  • b79701c: feat(#249): Improved DruxtEntity and DruxtEntityForm storybook stories and documentation.

Patch Changes

0.23.0

Minor Changes

  • 87ec487: Updated DruxtRouterEntity to use Full view mode.

    ⚠ Potential breaking change

    Note: This may effect the rendered template if the Full view mode is configured in Drupal.

    -components/DruxtEntityNodePageDefault.vue
    +components/DruxtEntityNodePageFull.vue
    -components/druxt/entity/node/page/Default.vue
    +components/druxt/entity/node/page/Full.vue
    
  • 60ee4e8: Added DruxtEntity[EntityType][viewmode][SchemaType] component options.

Patch Changes

0.22.0

Minor Changes

  • 7b749bd: Updated DruxtEntityForm error handling.

Patch Changes

0.21.4

Patch Changes

0.21.3

Patch Changes

0.21.2

Patch Changes

0.21.1

Patch Changes

  • 6ade3a2: Fixed Vuex mutation error

0.21.0

Minor Changes

  • 025315a: Added include option and the ability to filter related resources.

    export default {
      druxt: {
        query: {
          include: ["field_media_image", "field_media_image.field_media_image"],
          fields: [
            ["file--file", ["uri"]],
            ["media--image", []],
          ],
        },
      },
    };
    
  • 025315a: Added settings property to the DruxtEntity and DruxtEntityForm components.

    <template>
      <DruxtEntity
        :settings="{ query: { include: ['uid'] } }"
        type="node--page"
        :uuid="uuid"
      />
    </template>
    
  • e7b1533: Refactored DruxtModule fetch hooks

Patch Changes

0.20.0

Minor Changes

  • 897dcbc: Updated DruxtEntityForm to use new DruxtClient methods

Patch Changes

0.19.0

Minor Changes

  • dae345e: Added module level options
  • 8d28c18: Updated storybook integration
  • dae345e: Moved $druxtEntity plugin settings to $druxt.settings.entity

Patch Changes

0.18.0

Minor Changes

  • 715e5ef: Updated component registration method to use the Nuxt components:dirs hook
  • 2b8c3f3: Updated to use DruxtDebug component

Patch Changes

0.17.1

Patch Changes

0.17.0

Minor Changes

  • 21170fb: Moved Vue components out of bundle

    ⚠ Potential breaking change

    Note: This only effects custom Druxt modules and implementations.

    -import { DruxtEntity } from 'druxt-entity'
    +import DruxtEntity from 'druxt-entity/dist/components/DruxtEntity.vue'
    

Patch Changes

0.16.0

Minor Changes

  • Added support for default template injection

  • Added support for schema-less entities

  • Added improved defaults to the DruxtField component

  • Deprecated DruxtField default field components

    The components can be tree shaken with the following setting in nuxt.config.js:

    module.exports = {
      druxt: {
        entity: {
          components: {
            fields: false,
          },
        },
      },
    };
    

0.15.0

Minor Changes

  • Fixed issue with EntityReferenceLabel component
  • Added watch to update DeruxtEntity data on props change
  • Updated components v-model support
  • Updated Storybook integration
  • Updated dependencies

0.14.2

Patch Changes

  • Updated fetchKey

0.14.1

Patch Changes

  • Added custom fetchKey to fix hydration issues

0.14.0

Minor Changes

  • Added v-model support for DruxtEntity/DruxtEntityForm components

    <template>
      <DruxtEntity v-model="entity" />
      <DruxtEntityForm v-model="entity" />
    </template>
    

0.13.0

Minor Changes

  • Added DruxtEntityForm component

    <DruxtEntityForm type="node--page" @submit="onSubmit" @error="onError" />
    

0.12.0

Minor Changes

  • Added ability to filter JSON:API fields
  • Updated Storybook integration

0.11.2

Patch Changes

  • Fixed issue with Storybook intergration
  • Updated Storybook integration

0.11.1

Patch Changes

  • Fixed issue with Storybook intergration

0.11.0

Minor Changes

  • Added DruxtEntity Storybook integration
  • Updated dependencies

0.10.1

Patch Changes

  • Added TextSummaryOrTrimmed field
  • Added TextTrimmed field
  • Updated dependencies

0.10.0

Minor Changes

  • Refactored module to use DruxtClient/DruxtStore

0.9.0

Minor Changes

  • Added support for Entity reference view mode
  • Add ability to passthrough $attrs

0.8.1

Patch Changes

  • Updated dependencies

0.8.0

Minor Changes

  • Added DruxtRouter Entity component
  • Updated dependencies

0.7.2

Patch Changes

  • Updated dependencies

0.7.1

Patch Changes

  • Updated DruxtEntity for DruxtComponentMixin
  • Updatd Field component mixins
  • Updated dependencies

0.7.0

Minor Changes

  • Updated DruxtEntity for DruxtComponentMixin

0.6.3

Patch Changes

  • Fixed issue with images and HMR

0.6.2

Patch Changes

  • Fixed issue with internal: links
  • Updated dependencies

0.6.1

Patch Changes

  • Updated dependencies

0.6.0

Minor Changes

  • Refactored to use Nuxt fetch hook

0.5.2

Patch Changes

  • Updated documentation

0.5.1

Patch Changes

  • Added support for UUIDs in component suggestions

0.5.0

Minor Changes

  • Added isEmpty method
  • Added FileDefault and Image fields
  • Added mode to EntityReferenceEntityView field
  • Added component suggestion system
  • Added context mixin

0.4.0

Minor Changes

  • Update Field and label system
  • Updated Entity suggestions

0.3.1

Patch Changes

  • Added named slots for fields

0.3.0

Minor Changes

  • Added view mode suggestions
  • Added field id suggestions

0.2.2

Patch Changes

  • Fixed issues with EntityReferenceLabel field
  • Updated NuberInteger field

0.2.1

Patch Changes

  • Added BasicString field
  • Added Timestamp field
  • Fixed issue with ReferenceLabel field
  • Fixed empty field filter

0.2.0

Minor Changes

  • Added better multivalue field support
  • Added ResponsiveImage field
  • Added EntityReferenceEntityView field
  • Added NumberInteger field
  • Added EntityReferenceRevisionsEntityView field
  • Added ListDefault field
  • Added Link field
  • Added DatetimeDefault field
  • Updated dependencies

0.1.0

Initial release