@apolitical/component-library 4.5.11-4697.1 → 4.5.11-beta.100

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.
Files changed (29) hide show
  1. package/context/user/user.context.d.ts +5 -13
  2. package/context/user/user.provider.d.ts +1 -2
  3. package/form/components/form/form.types.d.ts +12 -13
  4. package/form/components/form/index.d.ts +1 -1
  5. package/form/components/profile-image-change/profile-image-change.d.ts +7 -20
  6. package/form/types/index.d.ts +0 -1
  7. package/helpers/intl.d.ts +6 -20
  8. package/index.js +63 -63
  9. package/index.mjs +9236 -9482
  10. package/modals/{types/discussion-form-modal → discussion-form-modal}/discussion-form-modal.d.ts +1 -1
  11. package/modals/index.d.ts +4 -2
  12. package/modals/{components/overlay → overlay}/overlay.d.ts +1 -1
  13. package/package.json +1 -1
  14. package/sections/edit-section/edit-section.d.ts +2 -4
  15. package/style.css +1 -1
  16. package/user/profile-picture/profile-picture.d.ts +1 -3
  17. package/form/types/profile-form/index.d.ts +0 -1
  18. package/form/types/profile-form/profile-form.d.ts +0 -34
  19. package/modals/components/index.d.ts +0 -2
  20. package/modals/types/index.d.ts +0 -3
  21. package/modals/types/profile-modal/index.d.ts +0 -1
  22. package/modals/types/profile-modal/profile-modal.d.ts +0 -25
  23. /package/modals/{types/discussion-form-modal → discussion-form-modal}/index.d.ts +0 -0
  24. /package/modals/{types/invite-modal → invite-modal}/index.d.ts +0 -0
  25. /package/modals/{types/invite-modal → invite-modal}/invite-modal.d.ts +0 -0
  26. /package/modals/{components/modal → modal}/index.d.ts +0 -0
  27. /package/modals/{components/modal → modal}/modal.d.ts +0 -0
  28. /package/modals/{components/overlay → overlay}/index.d.ts +0 -0
  29. /package/modals/{components/overlay → overlay}/overlay.helpers.d.ts +0 -0
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { type IDiscussionForm, type CachedText, type IMentions } from '../../../discussion';
2
+ import { type IDiscussionForm, type CachedText, type IMentions } from '../../discussion';
3
3
  interface Props {
4
4
  /** Whether the modal is open on page load */
5
5
  showModal?: boolean;
package/modals/index.d.ts CHANGED
@@ -1,2 +1,4 @@
1
- export * from './components';
2
- export * from './types';
1
+ export * from './discussion-form-modal';
2
+ export * from './invite-modal';
3
+ export * from './modal';
4
+ export * from './overlay';
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { ButtonPropsType } from '../../../general';
2
+ import { ButtonPropsType } from '../../general';
3
3
  interface Props {
4
4
  /** ID of the overlay */
5
5
  id?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apolitical/component-library",
3
- "version": "4.5.11-4697.1",
3
+ "version": "4.5.11-beta.100",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
@@ -20,10 +20,8 @@ interface Props {
20
20
  title: string;
21
21
  /** Modal Title */
22
22
  modalTitle?: string;
23
- /** Form fields to be rendered inside a modal form when user clicks cta or edit button. Alternatively, we can pass a whole form in `form`, if there's an existing component. */
23
+ /** Form fields to be rendered inside a modal form when user clicks cta or edit button */
24
24
  formProps?: IFormProps;
25
- /** A form to render inside the modal. Alternatively, we can use `formProps` to create a new form if the component doesn't already exist. */
26
- formComponent?: JSX.Element;
27
25
  /** Link to a url where user can edit the data */
28
26
  href?: THref;
29
27
  /** Whether to show a divider at the bottom of the section */
@@ -31,5 +29,5 @@ interface Props {
31
29
  /** Placeholder settings */
32
30
  placeholder?: IPlaceholder;
33
31
  }
34
- declare const EditSection: ({ children, className, formProps, formComponent: originalFormComponent, href, title, modalTitle, placeholder, showDivider, }: Props) => import("react/jsx-runtime").JSX.Element;
32
+ declare const EditSection: ({ children, className, formProps, href, title, modalTitle, placeholder, showDivider, }: Props) => import("react/jsx-runtime").JSX.Element;
35
33
  export default EditSection;