@nextlyhq/plugin-form-builder 0.0.2-alpha.70 → 0.0.2-alpha.72
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 +7 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +11 -11
package/README.md
CHANGED
|
@@ -39,10 +39,16 @@ const fb = formBuilder({
|
|
|
39
39
|
|
|
40
40
|
export default defineConfig({
|
|
41
41
|
plugins: [fb.plugin],
|
|
42
|
-
collections: [
|
|
42
|
+
collections: [
|
|
43
|
+
/* your own collections only */
|
|
44
|
+
],
|
|
43
45
|
});
|
|
44
46
|
```
|
|
45
47
|
|
|
48
|
+
The plugin registers its `forms` and `form-submissions` collections itself. Don't
|
|
49
|
+
also add `fb.collections` to `collections`: the same slug twice stops the app
|
|
50
|
+
from booting with a duplicate `forms` collection.
|
|
51
|
+
|
|
46
52
|
> A `formBuilderPlugin` default-instance shortcut is also exported for cases where no customization is needed. See [the plugin docs](https://nextlyhq.com/docs/plugins/form-builder) for the full options reference.
|
|
47
53
|
|
|
48
54
|
## Admin components
|
package/dist/index.js
CHANGED
|
@@ -69,9 +69,9 @@ function applyRedirectPattern(pattern, document) {
|
|
|
69
69
|
* the role screen grants it: `read-form-submissions` to read submissions,
|
|
70
70
|
* `update-forms` to edit a form.
|
|
71
71
|
*
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
* name would refuse a custom role that holds the permission. The rule is given
|
|
72
|
+
* The grant is checked before a collection's rule, and the rule only narrows
|
|
73
|
+
* it, so this check repeats the gate's and keeps the default plain; a role
|
|
74
|
+
* name here would refuse a custom role that holds the permission. The rule is given
|
|
75
75
|
* the caller's permissions as the role screen spells them, `<action>-<slug>`,
|
|
76
76
|
* for a session and an API key alike, and a visitor holds none. `collection` is the slug the host installed
|
|
77
77
|
* the collection under, so a renamed collection is judged by its own
|