@bigbinary/neeto-access-control-frontend 1.3.2 → 1.3.4

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 CHANGED
@@ -137,6 +137,10 @@ The engine is used to manage access control across neeto products.
137
137
  def owner
138
138
  @organization
139
139
  end
140
+
141
+ def update_owner!
142
+ # Optional override to update the owner if required when configuration is updated
143
+ end
140
144
  end
141
145
  ```
142
146
 
@@ -181,6 +185,10 @@ The engine is used to manage access control across neeto products.
181
185
  - `hideAddEmailsFromInvitationPane`: Prop to hide the add emails form from invitation pane. Default: `false`.
182
186
  - `className`: Additional classes to be added to the form.
183
187
  - `onDestroyInvitationsSuccess`: Callback function that is triggered when the invitations are successfully destroyed.
188
+ - `inviteButtonProps`: If specified, this will show a button on the top of the Pane. It can be used to take the users to invitation forms outside the InvitationsPane.
189
+ - `additionalFieldsInitialValues`: Prop to add additional custom fields to the form.
190
+ - `fieldsWrapper`: A component that wraps the fields in the form. Useful for adding custom fields to the form.
191
+ - `translationContext`: Context for translations, it can be used to override the translations of the field labels. Ref: https://www.i18next.com/translation-function/context
184
192
 
185
193
  #### 2. `Invitations` Object
186
194
  The `Invitations` object provides access to invitation-related components, hooks, and constants.
@@ -200,6 +208,7 @@ The `Invitations` object provides access to invitation-related components, hooks
200
208
  - `hideAddEmailsForm`: Prop to hide the add emails form from invitation pane.
201
209
  - `configurationId`: Prop to specify the ID of the instance of the model. The ID is used to load access control configuration. **NOTE: If this prop is not passed, make sure `invitations_controller_override.rb` is added with `access_control_configuration` method as mentioned above in adding overrides section.**
202
210
  - `onDestroyInvitationsSuccess`: Callback function that is triggered when the invitations are successfully destroyed.
211
+ - `inviteButtonProps`: If specified, this will show a button on the top of the Pane. It can be used to take the users to invitation forms outside the InvitationsPane.
203
212
 
204
213
  #### Hooks
205
214
  - `useBulkCreateInvitations` [source code](/app/javascript/src/hooks/reactQuery/useInvitationsApi.js): Bulk create invitations.Check [usage](app/javascript/src/components/Configuration/Invitations/index.jsx).