Package detail

@powerhousedao/document-engineering

powerhouse-inc3.1kAGPL-3.0-only1.15.0

This package provides a set of tools and components for document engineering within the Powerhouse ecosystem.

readme

Powerhouse Document Engineering

This package provides a set of tools and components for document engineering within the Powerhouse ecosystem.

NPM Version License

Installation

# Using npm
npm install @powerhousedao/document-engineering

# Using yarn
yarn add @powerhousedao/document-engineering

# Using pnpm
pnpm add @powerhousedao/document-engineering

Usage

The package provides several entry points for different use cases:

Main Package

import { ... } from '@powerhousedao/document-engineering';

UI Components

import { ... } from '@powerhousedao/document-engineering/ui';

Scalars

For data manipulation and transformation utilities:

import { ... } from '@powerhousedao/document-engineering/scalars';

GraphQL

For GraphQL related utilities and schema definitions:

import { ... } from '@powerhousedao/document-engineering/graphql';

Styles

To include the package's styles:

import '@powerhousedao/document-engineering/style.css';

Import Maps

Within the project, the following import maps are available:

  • #assets - Assets utilities and components
  • #scalars - Scalar transformations and utilities
  • #ui - UI components
  • #graphql - GraphQL related utilities

Development

Prerequisites

  • Node.js (LTS version)
  • pnpm

Setup

# Install dependencies
pnpm install

# Run storybook for development
pnpm storybook

# Build the package
pnpm build

Testing

# Run tests
pnpm test

# Run tests in watch mode
pnpm test:watch

Semantic Release

This project uses semantic-release for versioning. Commit messages should follow the Conventional Commits specification.

Release channels:

  • main branch - Latest stable release
  • staging branch - Pre-release with staging tag
  • dev branch - Development pre-release

To make a commit using the conventional format:

pnpm commit

License

AGPL-3.0-only

changelog

1.15.0 (2025-06-27)

Bug Fixes

  • scalars: add diff stories for number-field (335c194)
  • scalars: add missing test for number differences (3160404)
  • scalars: applay default format to value in timepicker and datetime-picker (916055f)
  • scalars: fix the cr and delete unnecesry code (6ec9eaa)
  • scalars: get correct period of in timepicker and datetimepicker (41927f1)

Features

  • add support for custom editor renderers (6b76d73)
  • restore focus when entering in edit mode (863ea32)
  • save valid data only (bb0f1b7)
  • save values and fix issues (b19f1a8)
  • ui: add icons support to SelectDiff & other Select-based Diffs components (c825439)

1.14.0 (2025-06-24)

Bug Fixes

  • scalars: add missing props in the stories for ui component (b7947cc)
  • scalars: add test for Amount_Crypto and Amount_Crypto (e06c440)
  • scalars: add validation for intervals in date-time-field (61f8398)
  • scalars: avoid to show unnecesary props in the stories (6dc4284)
  • scalars: fix error to include the differences (bdf3ea6)
  • scalars: fix focus label and fix unnecesary props (fdff240)
  • scalars: fix formatter function and add test for it (442260c)
  • scalars: fix issues in date-time-picker and fix some ISO values (1385022)
  • scalars: fix remove the commented code (96d9ba4)
  • scalars: fix the interce and test (b297c38)
  • scalars: fix the interface conflict (f52a06e)
  • scalars: fix the issues for increment and decrement (bf22a4c)
  • scalars: fix the symbol colors when values are the same (90f25aa)
  • scalars: fix the value and default props for number field (44479bd)
  • scalars: made optional the new format for calendar (8ad2ac1)
  • scalars: remove some unnecesary code (a746d27)

Features

  • scalars & ui: add diff status to AIDInput & AIDField (3874520)
  • scalars & ui: add diff status to OIDInput & OIDField + PHIDInput diff fixes (11a6819)
  • scalars: add diff for amount component and add diff test (aac56a1)
  • scalars: add diff props to amountfield component (905002f)
  • scalars: add new format for the date-picker-component (79c69bb)
  • scalars: change value to string to add support to bigInt (1f478e9)

1.13.0 (2025-06-17)

Bug Fixes

  • obkect set table stories control (f02aa47)
  • scalars & ui: improve tests & stories & fix logic related to favoriteOptions (c8b838a)
  • scalars: add avility for pass down html div props for data-testid (c29981f)
  • scalars: add missing props for date-picker-field and remove clg (ae0eb2c)
  • scalars: add prebuilt for props and fix logic in the test (2944093)
  • scalars: add two new class for the input and popover (b9ceab9)
  • scalars: allow show complete border when icon is focus (543ced8)
  • scalars: allow tab navigation in the amount field component (8425d31)
  • scalars: avoid focus get cut (06423f5)
  • scalars: fix the CR and fix the test (2ae8dc9)
  • scalars: fix the naming (2248ad0)
  • scalars: fix the padding right and update snap-shot (57e9a87)
  • scalars: fix the test in differences (cca4190)
  • scalars: fix the value and baseValue (716015e)
  • scalars: fix the with as default (af28d88)
  • scalars: pass the class to input and update snapshot (b1efcc6)
  • scalars: put back input field remove and fix the test (d68e6a1)
  • scalars: remove the clg (b15cf67)
  • scalars: remove the comment code (a6b9f67)
  • scalars: remove the fixed with (c48f016)
  • scalars: remove unnecesary props and omit from interface (3aa6370)
  • scalars: update the test snapShot (919fc77)
  • snapshots (5f793e0)

Features

  • scalars & ui: add diff status to CurrencyCodePicker & minor fixes (503aee1)
  • scalars & ui: detach the Country Code component from the form (bac6cb4)
  • scalars & ui: read only diff status for the CountryCode component (337339d)
  • scalars: add diff component in date-picker (822239a)
  • scalars: add new diff component for datetimepicker (5196dad)
  • scalars: add test for checkox-diff (c54c02a)
  • scalars: add the diff mode for checkbox component (9a5d7ea)
  • scalars: add time picker differences (11c7793)
  • scalars: feat add diff in number component (b96654b)
  • scalars: fix tab navigation to focus the icon correctly (8964e25)

1.12.0 (2025-06-10)

Bug Fixes

  • scalars: add foucs to div container (9c6ae2e)
  • scalars: add necesary class for popver content (be195aa)
  • scalars: add the container class popover (b391fb8)
  • scalars: allow show the ceros, when trallingzero its set (164ad7d)
  • scalars: fix CR and chromatic changes (4ce3a64)
  • scalars: fix the naming convention in modifier (e2f63a0)
  • scalars: fix the step when its decimal point (46a99ba)
  • scalars: remove duplicate css (9bc512c)
  • scalars: remove duplicate message (37ca9b5)
  • scalars: update the snapshot (190f1d5)
  • url diff mode when the original value and the value are equals (182d8d8)

Features

  • add supprot for min row count (18b82f2)
  • allow sorting (f284078)
  • scalars: add new aproach for styling select component (3c5549d)

1.11.0 (2025-06-05)

Bug Fixes

  • scalars: add missing dependencies (25b2c2e)
  • scalars: correct naming error (dec21d0)
  • scalars: fix CR an remove the clg (9a9b12e)
  • scalars: remove clg (30ae446)

Features

  • scalars: add docs and fix validations issues (d46c493)
  • scalars: add way for customize the radio-group (579fd79)

1.10.0 (2025-06-04)

Bug Fixes

Features

  • allow to setup column width, alignment and table width (e69bb4f)

1.9.0 (2025-06-04)

Bug Fixes

  • scalars: adjust the Number got get a reference (ae5cdfa)
  • scalars: fix amount appear currency when input change state (1cc7710)
  • scalars: fix CR and remove unnecesary code (39d93c6)
  • scalars: fix lint error (6199eef)
  • scalars: fix the circular dependency and fix ling error (e4898bf)
  • scalars: fix the code review using and use BEM approach for customize (a144611)
  • scalars: fix the lint error (fce553e)
  • scalars: improve the description for rest props in the input and select (e2ba700)
  • scalars: improve the docs for the class and fix the CR (079e709)
  • scalars: pass rest props to select (7bbb4d9)
  • scalars: remove the clg (799a24f)

Features

  • allow custom header renderers (0afdeb4)
  • scalars: add avility to target component by state (0a42036)
  • scalars: add class and sections for customize components (51ca7ae)
  • scalars: add class for customize the date-time-picker-field (53ff98c)
  • scalars: add custom class for grid view years and months and footer navigation buttons (ad364c3)
  • scalars: add custom class for styling time-picker and time-picker-field (e1eb3ea)
  • scalars: add custom class grid view and add example for custom year and month in botton (1ed3f5e)
  • scalars: add number to be using outside of form (e83af02)

1.8.1 (2025-06-02)

Bug Fixes

  • scalars: fix input not typing when value its undefiend (32648a4)

1.8.0 (2025-06-02)

Bug Fixes

  • build (5de819e)
  • build (d598e82)
  • eslint issues (2934f95)
  • scalars & ui: tests, stories and circular references (955f22e)
  • scalars: add wrapper in the stories for amount component (b04adab)
  • scalars: add wrapper to check for onChange (c68f4c1)
  • scalars: fix the chromatic differences (55da7ad)
  • scalars: fix the test in date-time-field (24cb3d9)
  • scalars: fix the test in the date-time-picker-field (d73cb2a)
  • scalars: fix the test when invalid date its provieded (f82b144)
  • scalars: remove the comments in spanish (b548702)
  • scalars: remove the eslint rules (7007a06)
  • scalars: remove unnecesary border-0 (6470d15)
  • scalars: update the snapshot test (51ea200)
  • table broken type (2c66d8d)
  • ui: currency-code-picker.stories.tsx (6e26e30)
  • ui: remaining circular references (cae5819)

Features

  • add eslint (61a8b85)
  • allow public api usage (051ffed)
  • improve table api (d81d49e)
  • scalars & ui: adapt Currency component to be used outside of the form (17668e4)

1.7.0 (2025-05-27)

Bug Fixes

  • scalars & ui: tests & minor issues in stories (38ec9e7)
  • scalars: remove the comments (bb95cd6)

Features

  • scalars: add custom class for radio enum component (1dec6d8)
  • scalars: add two stories for the enum componenent (079a5fb)

1.6.0 (2025-05-26)

Bug Fixes

  • generate snapshots (c0c00e5)
  • remove chromatic build as there's another action for that (3291cb7)
  • remove scalar alias (2e794db)
  • replace alias import (76b0e62)
  • scalars: add same style in calendar for date-time (4d08eea)
  • scalars: fix CR, remove comments (230c3d3)
  • scalars: fix the CR, in type component (3d66045)
  • specify pnpm version (41f0671)
  • text field tests (dffce97)
  • time picker tests (f8fd866)

Features

  • add boolean cells support (cbd136c)

1.5.0 (2025-05-23)

Bug Fixes

  • scalars: add class for each item and one per global style (91b7bee)
  • scalars: add custom options for the example of colors (b34505a)
  • scalars: add default colors as primary in the calendars (56a9074)
  • scalars: fix CR: remove unnecesary class and group props (882255d)

Features

  • scalars: add custom storie for show colors (6706230)
  • scalars: add the test for the new two props (df78d6e)
  • scalars: add two class to customize the icon and text in the select (ddfff26)

1.4.1 (2025-05-22)

Bug Fixes

  • scalars: add text color when select value its not hover (981b7b9)

1.4.0 (2025-05-22)

Bug Fixes

  • partially fixed a set of failing tests (2a616b7)
  • scalars: add the important rule to avoid override styles (6843141)
  • scalars: remove the hover when its selected (441d9d5)

Features

  • scalars & ui: add diff support to URLInput & URLField (d69f690)

1.3.0 (2025-05-22)

Bug Fixes

  • scalars & ui: improve code (8116aa7)

Features

  • export object set table (a4821dd)
  • scalars: detached the url fro the form (8c08867)
  • support any phid ID format (95b297c)

1.2.2 (2025-05-19)

Bug Fixes

  • scalars: allow numbers in date format in connet (f4fa34c)

1.2.1 (2025-05-19)

Bug Fixes

  • scalars: fix date-time when not format is set (52d180c)

1.2.0 (2025-05-17)

Bug Fixes

  • scalars: fix color in correct label (8c5826d)

Features

  • scalars: add validation in the date-time-field component (da08626)

1.1.2 (2025-05-16)

Bug Fixes

  • scalars: fix the type and pass mixed in the toogle (ee36fe3)

1.1.1 (2025-05-16)

Bug Fixes

  • scalars: add disable props and export ToggleBaseProps (c30e01f)
  • scalars: add representation addition o delete in mixed state (e41be48)
  • scalars: avoid letters in date field componente (f289b70)
  • scalars: fix value and add disable props (3a7680e)
  • scalars: focus tab component press letter should be open de popover search (718f57f)
  • scalars: improve the naming in the comparation (3124cae)

1.1.0 (2025-05-15)

Bug Fixes

  • scalars: add props in boolean scalars (f469130)
  • use the correct button in examples (add9548)

Features

  • scalars & ui: update components (d499176)

1.0.2 (2025-05-13)

Bug Fixes

  • update GraphQL scalars structure and exports in index.ts (e2e5b17)

1.0.1 (2025-05-13)

Bug Fixes

1.0.0 (2025-05-12)

chore

  • update package version and README (29db19b)

Features

  • enabled semantic release (852c50a)

BREAKING CHANGES

  • set initial v1.0.0