@planningcenter/core-automations 1.0.1 → 1.1.0-rc.1
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 +87 -0
- package/README.md +2 -0
- package/dist/cjs/core-automations.esm.js +1 -1
- package/dist/cjs/core-automations.esm.js.map +1 -1
- package/dist/cjs/core-automations.js +1 -1
- package/dist/cjs/core-automations.js.map +1 -1
- package/dist/cjs/core-automations.modern.mjs +1 -1
- package/dist/cjs/core-automations.modern.mjs.map +1 -1
- package/dist/cjs/core-automations.umd.js +1 -1
- package/dist/cjs/core-automations.umd.js.map +1 -1
- package/dist/types/src/assets/new_automation.d.ts +10 -0
- package/dist/types/src/assets/new_automation.d.ts.map +1 -0
- package/dist/types/src/automations.d.ts +2 -1
- package/dist/types/src/automations.d.ts.map +1 -1
- package/dist/types/src/mocks/handlers.d.ts +9 -0
- package/dist/types/src/mocks/handlers.d.ts.map +1 -0
- package/dist/types/src/mocks/server.d.ts +2 -0
- package/dist/types/src/mocks/server.d.ts.map +1 -0
- package/dist/types/src/mocks/style.d.ts +3 -0
- package/dist/types/src/mocks/style.d.ts.map +1 -0
- package/dist/types/src/new_automation.d.ts +2 -1
- package/dist/types/src/new_automation.d.ts.map +1 -1
- package/dist/types/tests/Automations.test.d.ts +2 -0
- package/dist/types/tests/Automations.test.d.ts.map +1 -0
- package/dist/types/tests/Definition.test.d.ts +2 -0
- package/dist/types/tests/Definition.test.d.ts.map +1 -0
- package/dist/types/tests/Field.test.d.ts +2 -0
- package/dist/types/tests/Field.test.d.ts.map +1 -0
- package/dist/types/tests/NewAutomation.test.d.ts +2 -0
- package/dist/types/tests/NewAutomation.test.d.ts.map +1 -0
- package/package.json +8 -3
- package/dist/types/assets/svg_automations.d.ts +0 -3
- package/dist/types/assets/svg_automations.d.ts.map +0 -1
- package/dist/types/automations.d.ts +0 -34
- package/dist/types/automations.d.ts.map +0 -1
- package/dist/types/definition.d.ts +0 -11
- package/dist/types/definition.d.ts.map +0 -1
- package/dist/types/field.d.ts +0 -19
- package/dist/types/field.d.ts.map +0 -1
- package/dist/types/fields.d.ts +0 -17
- package/dist/types/fields.d.ts.map +0 -1
- package/dist/types/history.d.ts +0 -8
- package/dist/types/history.d.ts.map +0 -1
- package/dist/types/history_modal.d.ts +0 -12
- package/dist/types/history_modal.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -2
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/new_automation.d.ts +0 -19
- package/dist/types/new_automation.d.ts.map +0 -1
- package/dist/types/new_automation_modal.d.ts +0 -12
- package/dist/types/new_automation_modal.d.ts.map +0 -1
- package/dist/types/src/automations.stories.d.ts +0 -6
- package/dist/types/src/automations.stories.d.ts.map +0 -1
- package/dist/types/src/stories/Automations.d.ts +0 -6
- package/dist/types/src/stories/Automations.d.ts.map +0 -1
- package/dist/types/src/stories/Automations.stories.d.ts +0 -6
- package/dist/types/src/stories/Automations.stories.d.ts.map +0 -1
- package/dist/types/src/stories/Button copy.d.ts +0 -35
- package/dist/types/src/stories/Button copy.d.ts.map +0 -1
- package/dist/types/src/stories/Button.d.ts +0 -35
- package/dist/types/src/stories/Button.d.ts.map +0 -1
- package/dist/types/src/stories/Header.d.ts +0 -18
- package/dist/types/src/stories/Header.d.ts.map +0 -1
- package/dist/types/src/stories/Page.d.ts +0 -4
- package/dist/types/src/stories/Page.d.ts.map +0 -1
- package/dist/types/src/stories/Page.stories.d.ts +0 -7
- package/dist/types/src/stories/Page.stories.d.ts.map +0 -1
- package/dist/types/utils/alerts.d.ts +0 -7
- package/dist/types/utils/alerts.d.ts.map +0 -1
- package/dist/types/utils/theme.d.ts +0 -22
- package/dist/types/utils/theme.d.ts.map +0 -1
- package/dist/types/utils/utils.d.ts +0 -24
- package/dist/types/utils/utils.d.ts.map +0 -1
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## Unreleased
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- Take in an optional `additional_options` prop inside a trigger event
|
|
13
|
+
- Take in a `blankStateLink` prop
|
|
14
|
+
- Add test suite for components
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
|
|
18
|
+
- Include missing `SweetAlert` styles in `Automations` component
|
|
19
|
+
|
|
20
|
+
## [1.0.1](https://github.com/planningcenter/core-automations/releases/tag/v1.0.1) - 2023-04-25
|
|
21
|
+
|
|
22
|
+
### Fixed
|
|
23
|
+
|
|
24
|
+
- Target product icon was the wrong color for migrated automations
|
|
25
|
+
|
|
26
|
+
## [1.0.0](https://github.com/planningcenter/core-automations/releases/tag/v1.0.0) - 2023-04-17
|
|
27
|
+
|
|
28
|
+
### Added
|
|
29
|
+
|
|
30
|
+
- Display incoming automations
|
|
31
|
+
- Take in a `currentPersonCanAccessPeople` prop that will determine if the `People` application shows up or not in the list of products where an automation can be created by the current user.
|
|
32
|
+
- Add blank state for incoming automations
|
|
33
|
+
- Show date that history begins when viewing a recently created automation
|
|
34
|
+
|
|
35
|
+
### Changed
|
|
36
|
+
|
|
37
|
+
- Changed sizing of `DateField`, `TextField`, and `TextArea` fields
|
|
38
|
+
- Changed spacing around loading indicators
|
|
39
|
+
|
|
40
|
+
### Fixed
|
|
41
|
+
|
|
42
|
+
- Automation name not showing in delete modal
|
|
43
|
+
- Fallback to `[Hidden]` if the person doesn't have access to the People API
|
|
44
|
+
- Downgrade SweetAlert2
|
|
45
|
+
|
|
46
|
+
## [0.3.0](https://github.com/planningcenter/core-automations/releases/tag/v0.3.0) - 2023-04-10
|
|
47
|
+
|
|
48
|
+
### Added
|
|
49
|
+
|
|
50
|
+
- Take in a `afterCreateOptions` prop. This `afterCreateOptions` prop will contain a `label` and a `onConfirm` callback function to be executed after the automation is created.
|
|
51
|
+
- Support multiple trigger events (e.g. "when person [joins|leaves] this group")
|
|
52
|
+
- Added implementation guide to the README
|
|
53
|
+
|
|
54
|
+
### Changed
|
|
55
|
+
|
|
56
|
+
- Update `border-radius` of modals to match newest design spec
|
|
57
|
+
- Migrated components to Typescript
|
|
58
|
+
- Change sizing of `Select`s and loading indicators in the `NewAutomation` form
|
|
59
|
+
- Refactor "Paused" and "Active" states in `Automation` header
|
|
60
|
+
|
|
61
|
+
### Fixed
|
|
62
|
+
|
|
63
|
+
- Prevent text overflow in History table
|
|
64
|
+
|
|
65
|
+
## [0.2.0](https://github.com/planningcenter/core-automations/releases/tag/v0.2.0) - 2023-03-21
|
|
66
|
+
|
|
67
|
+
### Added
|
|
68
|
+
|
|
69
|
+
- Take in a `currentOrganization` prop instead of reading from `window.currentOrganization`
|
|
70
|
+
|
|
71
|
+
### Changed
|
|
72
|
+
|
|
73
|
+
- Use `currentOrganization` prop for date formatting
|
|
74
|
+
- Use outline `Badge` variant in history table
|
|
75
|
+
|
|
76
|
+
### Fixed
|
|
77
|
+
|
|
78
|
+
- Build errors: specify `jsxFragment` for microbundle when building (#15)
|
|
79
|
+
- Move function definition above callsite (#16)
|
|
80
|
+
|
|
81
|
+
## [0.1.0](https://github.com/planningcenter/core-automations/releases/tag/v0.1.0) - 2023-03-14
|
|
82
|
+
|
|
83
|
+
### Added
|
|
84
|
+
|
|
85
|
+
- Set up initial repo with components extracted from People's original implementation
|
|
86
|
+
- Set up basic theme that includes necessary icons along with host app styles
|
|
87
|
+
- Add basic usage information to README
|
package/README.md
CHANGED
|
@@ -129,6 +129,7 @@ import { Automations } from "@planningcenter/core-automations"
|
|
|
129
129
|
#### Props
|
|
130
130
|
|
|
131
131
|
- `blankStateDescription` (string): Text to be displayed when there are no current automations
|
|
132
|
+
- `blankStateLink` (string) optional: A URL for the link to "Learn more", that will display below the blankStateDescription when there are no current automations. It defaults to the link to this [zendesk article](https://pcopeople.zendesk.com/hc/en-us/articles/217582148-Automations).
|
|
132
133
|
- `currentOrganization` (object): Date formatting info from the current org:
|
|
133
134
|
- `dateFormat` (string): The org's desired date format, in Ruby `strftime` [format](https://apidock.com/ruby/DateTime/strftime)
|
|
134
135
|
- `olsonTimeZone` (string): The org's time zone
|
|
@@ -143,6 +144,7 @@ import { Automations } from "@planningcenter/core-automations"
|
|
|
143
144
|
- `events` (object[]): An array of objects describing the possible trigger events (created/deleted/etc)
|
|
144
145
|
- `name` (string): The event name (matches the webhooks message `routing_key`)
|
|
145
146
|
- `description` (string): Human-readable description of this event (the words after "When a person...", e.g. "Joins this group")
|
|
147
|
+
- `additional_options` (object) optional: Values for additional options that can be used when performing an automation.
|
|
146
148
|
- `resource` (string): The encrypted trigger resource param from Step 3 (👆)
|
|
147
149
|
- `afterCreateOptions` (object) optional: Show a custom checkbox to optionally perform an action after the automation is created
|
|
148
150
|
- `label` (string): Description of the action to perform (e.g. "apply to everyone on this list")
|