@pcg/dynamic-components 1.0.0-alpha.2 → 1.0.0-alpha.3
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/CHANGELOG.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -993,11 +993,11 @@ interface DRowSettings extends DynamicComponent {
|
|
|
993
993
|
declare const isRowSettingsComponent: (component: DynamicComponent) => component is DRowSettings;
|
|
994
994
|
//#endregion
|
|
995
995
|
//#region src/dynamic-components/registry/uikit-dynamic-component.d.ts
|
|
996
|
-
type
|
|
996
|
+
type UiKitFormDynamicComponent = DTextInput | DCheckbox | DTextarea | DSelect | DEntitySelect | DRadioGroup | DCheckboxGroup | DFileUploader | DImageUploader | DSimpleImageUploader | DRawImageUploader | DSlug | DEmbedCode | DRichTextEditor | DNumberInput | DSwitch | DHeading | DRawImagesUploader | DDateTimePicker | DComputedValue | DHiddenInput | DConfirmDeletionInput;
|
|
997
997
|
type UiKitContentDynamicComponent = DRichText | DEmbedCode | DImage | DBibleQuote | DBiblePassage;
|
|
998
998
|
type UiKitLayoutDynamicComponent = DRow | DColumn | DRowSettings | DCollection | DRepeatableCollection;
|
|
999
999
|
type UiKitChatDynamicComponent = DChatTextMessage;
|
|
1000
|
-
type UiKitDynamicComponent =
|
|
1000
|
+
type UiKitDynamicComponent = UiKitFormDynamicComponent | UiKitContentDynamicComponent | UiKitLayoutDynamicComponent | UiKitChatDynamicComponent;
|
|
1001
1001
|
//#endregion
|
|
1002
1002
|
//#region src/dynamic-components/tools.d.ts
|
|
1003
1003
|
declare const urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
@@ -1366,7 +1366,7 @@ declare const joinPath: (path: (string | number)[], ...items: (string | number)[
|
|
|
1366
1366
|
* @example
|
|
1367
1367
|
* sortByPosition('a1', 'a2'); // Returns -1
|
|
1368
1368
|
*/
|
|
1369
|
-
declare const sortByPosition: (aPosition: string, bPosition: string) =>
|
|
1369
|
+
declare const sortByPosition: (aPosition: string, bPosition: string) => 0 | 1 | -1;
|
|
1370
1370
|
//#endregion
|
|
1371
1371
|
//#region src/y-components/types.d.ts
|
|
1372
1372
|
/**
|
|
@@ -1707,5 +1707,5 @@ interface AwarenessState {
|
|
|
1707
1707
|
*/
|
|
1708
1708
|
declare const getYArrayIndexByArrayKey: (yArray: unknown, key: string) => number;
|
|
1709
1709
|
//#endregion
|
|
1710
|
-
export { AwarenessState, AwarenessStateChange, BaseDataObject, ComponentStyles, DBiblePassage, DBibleQuote, DChatMessageDelay, DChatTextMessage, DCheckbox, DCheckboxGroup, DCollection, DColumn, DComputedValue, DConfirmDeletionInput, DDateTimePicker, DEmbedCode, DEntitySelect, DFileUploader, DHeading, DHiddenInput, DImage, DImageUploader, DLegacyContent, DNumberInput, DPractice, DRadioGroup, DRawImageUploader, DRawImagesUploader, DRepeatableCollection, DRichText, DRichTextEditor, DRow, DRowSettings, DSelect, DSimpleImageUploader, DSlug, DStatement, DSwitch, DTest, DTextInput, DTextarea, DynamicComponent, DynamicComponentIO, DynamicComponentLink, DynamicComponentWithPosition,
|
|
1710
|
+
export { AwarenessState, AwarenessStateChange, BaseDataObject, ComponentStyles, DBiblePassage, DBibleQuote, DChatMessageDelay, DChatTextMessage, DCheckbox, DCheckboxGroup, DCollection, DColumn, DComputedValue, DConfirmDeletionInput, DDateTimePicker, DEmbedCode, DEntitySelect, DFileUploader, DHeading, DHiddenInput, DImage, DImageUploader, DLegacyContent, DNumberInput, DPractice, DRadioGroup, DRawImageUploader, DRawImagesUploader, DRepeatableCollection, DRichText, DRichTextEditor, DRow, DRowSettings, DSelect, DSimpleImageUploader, DSlug, DStatement, DSwitch, DTest, DTextInput, DTextarea, DynamicComponent, DynamicComponentIO, DynamicComponentLink, DynamicComponentWithPosition, ID_PATH_KEY_PREFIX, IImageRenditionType, IRenditionOptions, ISizeType, InsertYMapAfterOptions, InsertYMapBeforeOptions, InsertYMapToEndOptions, MovePayload, MoveYMapAfterOptions, MoveYMapBeforeOptions, MoveYMapToEndOptions, MoveYMapToStartOptions, NestedRecord, PATH_REGEXP, POSITION_ARRAY_KEY_PREFIX, Point, PullPayload, PushPayload, RichText, SetPayload, TestItem, TestItemVariant, UiKitChatDynamicComponent, UiKitContentDynamicComponent, UiKitDynamicComponent, UiKitFormDynamicComponent, UiKitLayoutDynamicComponent, UnsetPayload, ValidationRules, YComponent, YComponentProps, YComponentsArray, arrayToYArray, copyDynamicComponent, createIdArrayKey, createPositionArrayKey, customAlphabet, defineDynamicComponent, defineDynamicComponents, dynamicComponentPropsToYComponentProps, dynamicComponentToYComponent, dynamicComponentToYMap, dynamicComponentsToYArray, entriesOf, existsInPath, extractIdFromArrayKey, extractPositionFromArrayKey, findInYArray, findIndexInYArray, findYComponentInArray, generateKeyBetween, getComponentPropertyPath, getComponentsSubtreeByPath, getComponentsSubtreeByRPath, getDataObjectKey, getFromPath, getFromYPath, getIndexByArrayKey, getRelativePoint, getSortedYArray, getYArrayIndexByArrayKey, getYArrayRefsByPosition, getYComponentComponentsArray, getYComponentProps, getYComponentsArrayParentComponent, insertInPath, insertYMapAfter, insertYMapBefore, insertYMapToEnd, isArrayKey, isBiblePassageComponent, isBibleQuoteComponent, isCallable, isChatMessageDelayComponent, isChatTextMessageComponent, isCheckboxComponent, isCheckboxGroupComponent, isCollectionComponent, isColumnComponent, isComputedValueComponent, isConfirmDeletionInputComponent, isContainerValue, isDateTimePickerComponent, isEmbedCodeComponent, isEmptyArray, isEmptyContainer, isEntitySelectComponent, isEqualPath, isFileUploaderComponent, isHeadingComponent, isIdArrayKey, isImageComponent, isImageUploaderComponent, isIndex, isLegacyContentComponent, isNullOrUndefined, isNumber, isNumberInputComponent, isObject, isPositionArrayKey, isPracticeComponent, isRadioGroupComponent, isRawImageUploaderComponent, isRawImagesUploaderComponent, isRepeatableCollectionComponent, isRichText, isRichTextComponent, isRichTextEditorComponent, isRowComponent, isRowSettingsComponent, isSamePath, isSelectComponent, isSimpleImageUploaderComponent, isSlugComponent, isStatementComponent, isString, isSwitchComponent, isTestComponent, isTextInputComponent, isTextareaComponent, isYArray, isYComponent, isYMap, joinPath, keysOf, makeDynamicComponentsWithPosition, moveInPath, moveInYPath, moveYMapAfter, moveYMapBefore, moveYMapToEnd, moveYMapToStart, objectToYMap, pullFromPath, pullFromYPath, pushInPath, pushInYPath, searchDynamicComponentInTree, setInPath, setInYPath, sortByPosition, sortDynamicComponents, uid, unsetPath, unsetYPath, urlAlphabet, yComponentHasComponentsYArray, yComponentToDynamicComponent };
|
|
1711
1711
|
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
DRowSettings,
|
|
38
38
|
} from './layout.js';
|
|
39
39
|
|
|
40
|
-
export type
|
|
40
|
+
export type UiKitFormDynamicComponent =
|
|
41
41
|
DTextInput
|
|
42
42
|
| DCheckbox
|
|
43
43
|
| DTextarea
|
|
@@ -78,7 +78,7 @@ DRow
|
|
|
78
78
|
export type UiKitChatDynamicComponent =
|
|
79
79
|
DChatTextMessage;
|
|
80
80
|
|
|
81
|
-
export type UiKitDynamicComponent =
|
|
81
|
+
export type UiKitDynamicComponent = UiKitFormDynamicComponent
|
|
82
82
|
| UiKitContentDynamicComponent
|
|
83
83
|
| UiKitLayoutDynamicComponent
|
|
84
84
|
| UiKitChatDynamicComponent;
|