@rulecms/source-components-angular 0.2.0 → 0.3.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.
- package/README.md +1 -0
- package/fesm2022/rulecms-source-components-angular.mjs +351 -80
- package/fesm2022/rulecms-source-components-angular.mjs.map +1 -1
- package/lib/base-components/display/card-entries/card-entries.d.ts.map +1 -1
- package/lib/base-components/display/component-attributes/component-name-to-modify-attribute.d.ts.map +1 -1
- package/lib/base-components/display/components/r-mount/attribute-edit-mode-configs.d.ts +6 -0
- package/lib/base-components/display/components/r-mount/attribute-edit-mode-configs.d.ts.map +1 -0
- package/lib/base-components/display/components/r-mount/default-attribute-values.d.ts +8 -0
- package/lib/base-components/display/components/r-mount/default-attribute-values.d.ts.map +1 -0
- package/lib/base-components/display/components/r-mount/display-card-entry.d.ts +3 -0
- package/lib/base-components/display/components/r-mount/display-card-entry.d.ts.map +1 -0
- package/lib/base-components/display/components/r-mount/mount-attributes.d.ts +34 -0
- package/lib/base-components/display/components/r-mount/mount-attributes.d.ts.map +1 -0
- package/lib/base-components/display/components/r-mount/r-mount.component.d.ts +31 -0
- package/lib/base-components/display/components/r-mount/r-mount.component.d.ts.map +1 -0
- package/lib/base-components/display/components/r-mount/resolve-mount-render.d.ts +26 -0
- package/lib/base-components/display/components/r-mount/resolve-mount-render.d.ts.map +1 -0
- package/lib/base-components/display/components/r-mount/resolve-no-container.d.ts +7 -0
- package/lib/base-components/display/components/r-mount/resolve-no-container.d.ts.map +1 -0
- package/lib/base-components/display/components/r-mount/resolve-renders-own-element.d.ts +6 -0
- package/lib/base-components/display/components/r-mount/resolve-renders-own-element.d.ts.map +1 -0
- package/lib/base-components/editor-preview/card-entries/card-entries.d.ts.map +1 -1
- package/lib/component-identifiers.d.ts +1 -1
- package/lib/component-identifiers.d.ts.map +1 -1
- package/lib/types.d.ts +3 -0
- package/lib/types.d.ts.map +1 -1
- package/package.json +2 -2
- package/public-api.d.ts +2 -0
- package/public-api.d.ts.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card-entries.d.ts","sourceRoot":"","sources":["../../../../../src/lib/base-components/display/card-entries/card-entries.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"card-entries.d.ts","sourceRoot":"","sources":["../../../../../src/lib/base-components/display/card-entries/card-entries.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAYvD,eAAO,MAAM,WAAW,EAAE,gBAAgB,EAWzC,CAAC"}
|
package/lib/base-components/display/component-attributes/component-name-to-modify-attribute.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component-name-to-modify-attribute.d.ts","sourceRoot":"","sources":["../../../../../src/lib/base-components/display/component-attributes/component-name-to-modify-attribute.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,gBAAgB,CAAC;AAEhE;;;;;;;;GAQG;AACH,eAAO,MAAM,8BAA8B,EAAE,
|
|
1
|
+
{"version":3,"file":"component-name-to-modify-attribute.d.ts","sourceRoot":"","sources":["../../../../../src/lib/base-components/display/component-attributes/component-name-to-modify-attribute.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,gBAAgB,CAAC;AAEhE;;;;;;;;GAQG;AACH,eAAO,MAAM,8BAA8B,EAAE,8BA6E5C,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { AttributeEditModeConfig } from '../../../../types';
|
|
2
|
+
/**
|
|
3
|
+
* Both settings the mount offers, in the order the Modify drawer shows them.
|
|
4
|
+
*/
|
|
5
|
+
export declare const attributeEditModeConfigs: AttributeEditModeConfig[];
|
|
6
|
+
//# sourceMappingURL=attribute-edit-mode-configs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attribute-edit-mode-configs.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/base-components/display/components/r-mount/attribute-edit-mode-configs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAGjE;;GAEG;AACH,eAAO,MAAM,wBAAwB,EAAE,uBAAuB,EAe7D,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { DefaultAttributeValue } from '../../../../types';
|
|
2
|
+
/**
|
|
3
|
+
* A fresh mount has no name and no props. Seeding either would invent a
|
|
4
|
+
* registration the host does not have, so both stay empty until the author
|
|
5
|
+
* fills them in.
|
|
6
|
+
*/
|
|
7
|
+
export declare const defaultAttributeValues: DefaultAttributeValue[];
|
|
8
|
+
//# sourceMappingURL=default-attribute-values.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default-attribute-values.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/base-components/display/components/r-mount/default-attribute-values.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAG/D;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,EAAE,qBAAqB,EASzD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"display-card-entry.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/base-components/display/components/r-mount/display-card-entry.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAG1D,eAAO,MAAM,gBAAgB,EAAE,gBAO9B,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { Type } from '@angular/core';
|
|
2
|
+
/**
|
|
3
|
+
* The attribute names `r-mount` reads.
|
|
4
|
+
*
|
|
5
|
+
* Two, and that is the whole of it: which host component to render, and the
|
|
6
|
+
* props the author filled in for it. The host application supplies the actual
|
|
7
|
+
* Angular component through `rulecms-widget`'s `mounts` map. This library never
|
|
8
|
+
* imports customer code.
|
|
9
|
+
*/
|
|
10
|
+
export declare const MOUNT_NAME_ATTRIBUTE = "mount-name-3-resolutions";
|
|
11
|
+
export declare const MOUNT_PROPS_ATTRIBUTE = "mount-props-3-resolutions";
|
|
12
|
+
export declare const MOUNT_PROP_TYPES: readonly ["string", "number", "boolean", "json"];
|
|
13
|
+
export type MountPropType = (typeof MOUNT_PROP_TYPES)[number];
|
|
14
|
+
export type MountPropRow = {
|
|
15
|
+
key: string;
|
|
16
|
+
type: MountPropType;
|
|
17
|
+
value: string;
|
|
18
|
+
};
|
|
19
|
+
export type MountsMap = {
|
|
20
|
+
[name: string]: Type<any>;
|
|
21
|
+
};
|
|
22
|
+
export declare const MOUNT_NAME_PATTERN: RegExp;
|
|
23
|
+
export declare const isMountPropType: (value: unknown) => value is MountPropType;
|
|
24
|
+
export declare const isAllowedMountName: (value: unknown) => value is string;
|
|
25
|
+
export declare const isForbiddenMountPropKey: (key: string) => boolean;
|
|
26
|
+
export declare const resolveMountName: (componentAttributes?: {
|
|
27
|
+
[key: string]: unknown;
|
|
28
|
+
}) => string;
|
|
29
|
+
export declare const resolveMountProps: (componentAttributes?: {
|
|
30
|
+
[key: string]: unknown;
|
|
31
|
+
}) => {
|
|
32
|
+
[key: string]: unknown;
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=mount-attributes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mount-attributes.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/base-components/display/components/r-mount/mount-attributes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAE1C;;;;;;;GAOG;AAEH,eAAO,MAAM,oBAAoB,6BAA6B,CAAC;AAC/D,eAAO,MAAM,qBAAqB,8BAA8B,CAAC;AAEjE,eAAO,MAAM,gBAAgB,kDAAmD,CAAC;AACjF,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE9D,MAAM,MAAM,YAAY,GAAG;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,aAAa,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IACtB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,kBAAkB,QAAkC,CAAC;AA2BlE,eAAO,MAAM,eAAe,UAAW,OAAO,KAAG,KAAK,IAAI,aAC4B,CAAC;AAEvF,eAAO,MAAM,kBAAkB,UAAW,OAAO,KAAG,KAAK,IAAI,MACA,CAAC;AAE9D,eAAO,MAAM,uBAAuB,QAAS,MAAM,KAAG,OAKrD,CAAC;AAEF,eAAO,MAAM,gBAAgB,yBACL;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,KAC/C,MAGF,CAAC;AAyCF,eAAO,MAAM,iBAAiB,yBACN;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,KAC/C;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAsB1B,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { OnChanges } from '@angular/core';
|
|
2
|
+
import type { WidgetInstanceProps } from '../../../../types';
|
|
3
|
+
import type { MountsMap } from './mount-attributes';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* A leaf that renders a host-app component by name.
|
|
7
|
+
*
|
|
8
|
+
* The author sets a name and a list of typed props in the composer. The host
|
|
9
|
+
* application passes the actual component on `rulecms-widget`'s `mounts` map.
|
|
10
|
+
* This file never imports customer code: a miss is a placeholder, not a
|
|
11
|
+
* lookup into executable text.
|
|
12
|
+
*
|
|
13
|
+
* The root is always a `<div>`. Author props are never spread onto this div
|
|
14
|
+
* — only onto the resolved host component via `NgComponentOutlet`.
|
|
15
|
+
*/
|
|
16
|
+
export declare class RMountComponent implements OnChanges {
|
|
17
|
+
componentAttributes?: {
|
|
18
|
+
[key: string]: any;
|
|
19
|
+
};
|
|
20
|
+
styleProps?: {
|
|
21
|
+
[key: string]: any;
|
|
22
|
+
};
|
|
23
|
+
className?: string;
|
|
24
|
+
mounts?: MountsMap;
|
|
25
|
+
widgetInstanceProps?: WidgetInstanceProps;
|
|
26
|
+
state: import("./resolve-mount-render").MountRenderState;
|
|
27
|
+
ngOnChanges(): void;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RMountComponent, never>;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RMountComponent, "rulecms-r-mount", never, { "componentAttributes": { "alias": "componentAttributes"; "required": false; }; "styleProps": { "alias": "styleProps"; "required": false; }; "className": { "alias": "className"; "required": false; }; "mounts": { "alias": "mounts"; "required": false; }; "widgetInstanceProps": { "alias": "widgetInstanceProps"; "required": false; }; }, {}, never, never, true, never>;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=r-mount.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"r-mount.component.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/base-components/display/components/r-mount/r-mount.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,SAAS,EAAE,MAAM,eAAe,CAAC;AAE5D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;;AAGpD;;;;;;;;;;GAUG;AACH,qBAca,eAAgB,YAAW,SAAS;IACtC,mBAAmB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAC7C,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAEnD,KAAK,oDAA0B;IAE/B,WAAW,IAAI,IAAI;yCATR,eAAe;2CAAf,eAAe;CAoB3B"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { Type } from '@angular/core';
|
|
2
|
+
import type { WidgetInstanceProps } from '../../../../types';
|
|
3
|
+
import { type MountsMap } from './mount-attributes';
|
|
4
|
+
export declare const PLACEHOLDER_STYLE: Record<string, string | number>;
|
|
5
|
+
export type MountRenderState = {
|
|
6
|
+
name: string;
|
|
7
|
+
hostComponent: Type<any> | undefined;
|
|
8
|
+
placeholderLabel: string;
|
|
9
|
+
rootStyle: {
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
} | undefined;
|
|
12
|
+
hostInputs: Record<string, unknown>;
|
|
13
|
+
shouldWarn: boolean;
|
|
14
|
+
};
|
|
15
|
+
export declare const resolveMountRender: ({ componentAttributes, mounts, widgetInstanceProps, styleProps, }: {
|
|
16
|
+
componentAttributes?: {
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
};
|
|
19
|
+
mounts?: MountsMap;
|
|
20
|
+
widgetInstanceProps?: WidgetInstanceProps;
|
|
21
|
+
styleProps?: {
|
|
22
|
+
[key: string]: any;
|
|
23
|
+
};
|
|
24
|
+
}) => MountRenderState;
|
|
25
|
+
export declare const warnUnmatchedMount: (name: string, registered: string[]) => void;
|
|
26
|
+
//# sourceMappingURL=resolve-mount-render.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve-mount-render.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/base-components/display/components/r-mount/resolve-mount-render.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAGL,KAAK,SAAS,EACf,MAAM,oBAAoB,CAAC;AAE5B,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAU7D,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,IAAI,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC;IACrC,gBAAgB,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,SAAS,CAAC;IAC9C,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACpC,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,kBAAkB,sEAK5B;IACD,mBAAmB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAC7C,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;CACrC,KAAG,gBAcH,CAAC;AAEF,eAAO,MAAM,kBAAkB,SAAU,MAAM,cAAc,MAAM,EAAE,KAAG,IAUvE,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Always renders a root `<div>` that holds the column's box styles — either
|
|
3
|
+
* around the host component or around the placeholder. The host component is
|
|
4
|
+
* unknown to this library, so it cannot be trusted to carry styles itself.
|
|
5
|
+
*/
|
|
6
|
+
export declare const resolveNoContainer: () => boolean;
|
|
7
|
+
//# sourceMappingURL=resolve-no-container.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve-no-container.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/base-components/display/components/r-mount/resolve-no-container.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,QAAO,OAAgB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The root `<div>` carries the className. There is always exactly one element
|
|
3
|
+
* and it is always the root, whether the host component resolved or not.
|
|
4
|
+
*/
|
|
5
|
+
export declare const resolveRendersOwnElement: () => boolean;
|
|
6
|
+
//# sourceMappingURL=resolve-renders-own-element.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve-renders-own-element.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/base-components/display/components/r-mount/resolve-renders-own-element.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,wBAAwB,QAAO,OAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card-entries.d.ts","sourceRoot":"","sources":["../../../../../src/lib/base-components/editor-preview/card-entries/card-entries.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAG7D,eAAO,MAAM,WAAW,EAAE,sBAAsB,
|
|
1
|
+
{"version":3,"file":"card-entries.d.ts","sourceRoot":"","sources":["../../../../../src/lib/base-components/editor-preview/card-entries/card-entries.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAG7D,eAAO,MAAM,WAAW,EAAE,sBAAsB,EAW/C,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
type ComponentIdentifier = 'r-text' | 'something-else' | 'cloudinary-advanced-image' | 'r-video' | 'r-icon' | 'r-button' | 'r-divider' | 'r-embed' | 'r-list' | 'r-accordion';
|
|
1
|
+
type ComponentIdentifier = 'r-text' | 'something-else' | 'cloudinary-advanced-image' | 'r-video' | 'r-icon' | 'r-button' | 'r-divider' | 'r-embed' | 'r-list' | 'r-accordion' | 'r-mount';
|
|
2
2
|
export declare const ComponentIdentifiers: Record<string, ComponentIdentifier>;
|
|
3
3
|
export {};
|
|
4
4
|
//# sourceMappingURL=component-identifiers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component-identifiers.d.ts","sourceRoot":"","sources":["../../src/lib/component-identifiers.ts"],"names":[],"mappings":"AAAA,KAAK,mBAAmB,GACpB,QAAQ,GACR,gBAAgB,GAChB,2BAA2B,GAC3B,SAAS,GACT,QAAQ,GACR,UAAU,GACV,WAAW,GACX,SAAS,GACT,QAAQ,GACR,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"component-identifiers.d.ts","sourceRoot":"","sources":["../../src/lib/component-identifiers.ts"],"names":[],"mappings":"AAAA,KAAK,mBAAmB,GACpB,QAAQ,GACR,gBAAgB,GAChB,2BAA2B,GAC3B,SAAS,GACT,QAAQ,GACR,UAAU,GACV,WAAW,GACX,SAAS,GACT,QAAQ,GACR,aAAa,GACb,SAAS,CAAC;AAEd,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAY3D,CAAC"}
|
package/lib/types.d.ts
CHANGED
|
@@ -50,6 +50,9 @@ export type LibraryCardComponent = import('@angular/core').Type<{
|
|
|
50
50
|
};
|
|
51
51
|
className?: string;
|
|
52
52
|
widgetInstanceProps?: WidgetInstanceProps;
|
|
53
|
+
mounts?: {
|
|
54
|
+
[name: string]: import('@angular/core').Type<any>;
|
|
55
|
+
};
|
|
53
56
|
}>;
|
|
54
57
|
export type DisplayCardEntry = {
|
|
55
58
|
id: string;
|
package/lib/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/lib/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AA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AC;AAEF,MAAM,MAAM,SAAS,GAAG;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,sBAAsB,EAAE,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,iBAAiB,EAAE,CAAC;IAC3B,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF,MAAM,WAAW,sBAAsB;IACrC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;CAC7C;AAED,MAAM,MAAM,QAAQ,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC;AAE1D,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,QAAQ,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rulecms/source-components-angular",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Angular source components for RuleCMS — the Angular counterpart of @rulecms/source-components-react",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "RuleCMS, LLC",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@angular/common": ">=17.0.0",
|
|
22
22
|
"@angular/core": ">=17.0.0",
|
|
23
23
|
"@angular/platform-browser": ">=17.0.0",
|
|
24
|
-
"@rulecms/widget-angular": ">=0.
|
|
24
|
+
"@rulecms/widget-angular": ">=0.3.0"
|
|
25
25
|
},
|
|
26
26
|
"peerDependenciesMeta": {
|
|
27
27
|
"@rulecms/widget-angular": {
|
package/public-api.d.ts
CHANGED
|
@@ -25,6 +25,8 @@ export { ACCORDION_HEADING_LEVELS, DEFAULT_ACCORDION_HEADING_LEVEL, } from './li
|
|
|
25
25
|
export type { AccordionHeadingLevel } from './lib/base-components/display/components/r-accordion/accordion-attributes';
|
|
26
26
|
export { EMBED_PROVIDERS, resolveEmbedUrl, isAllowedEmbedUrl, normaliseHost, } from './lib/base-components/display/components/r-embed/embed-providers';
|
|
27
27
|
export type { EmbedProvider, EmbedProviderId, ResolvedEmbedUrl, } from './lib/base-components/display/components/r-embed/embed-providers';
|
|
28
|
+
export { MOUNT_NAME_ATTRIBUTE, MOUNT_PROPS_ATTRIBUTE, MOUNT_PROP_TYPES, MOUNT_NAME_PATTERN, isAllowedMountName, isForbiddenMountPropKey, resolveMountName, resolveMountProps, } from './lib/base-components/display/components/r-mount/mount-attributes';
|
|
29
|
+
export type { MountPropType, MountPropRow, MountsMap, } from './lib/base-components/display/components/r-mount/mount-attributes';
|
|
28
30
|
export { EMBED_ASPECT_RATIOS, EMBED_LOADING_VALUES, EMBED_UNSHAPED_HEIGHT, DEFAULT_EMBED_LOADING, } from './lib/base-components/display/components/r-embed/embed-attributes';
|
|
29
31
|
export type { EmbedAspectRatio, EmbedLoading, } from './lib/base-components/display/components/r-embed/embed-attributes';
|
|
30
32
|
export { cardGroups } from './lib/base-components/display/card-groups';
|
package/public-api.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public-api.d.ts","sourceRoot":"","sources":["../src/public-api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AAC/E,OAAO,EAAE,8BAA8B,EAAE,MAAM,0CAA0C,CAAC;AAC1F,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;A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