@planningcenter/core-automations 0.1.0 → 0.2.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/CHANGELOG.md +20 -3
- package/README.md +11 -1
- 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/new_automation_modal.d.ts +8 -0
- package/dist/types/src/new_automation_modal.d.ts.map +1 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -5,12 +5,29 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.2.0] - 2023-03-21
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- Take in a `currentOrganization` prop instead of reading from `window.currentOrganization`
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
|
|
16
|
+
- Use `currentOrganization` prop for date formatting
|
|
17
|
+
- Use outline `Badge` variant in history table
|
|
18
|
+
|
|
19
|
+
### Fixed
|
|
20
|
+
|
|
21
|
+
- Build errors: specify `jsxFragment` for microbundle when building (#15)
|
|
22
|
+
- Move function definition above callsite (#16)
|
|
23
|
+
|
|
8
24
|
## [0.1.0] - 2023-03-14
|
|
9
25
|
|
|
10
26
|
### Added
|
|
11
27
|
|
|
12
|
-
- Set up
|
|
13
|
-
- Set up basic theme that includes necessary icons along with host app styles
|
|
14
|
-
- Add basic usage information to README
|
|
28
|
+
- Set up initial repo with components extracted from People's original implementation
|
|
29
|
+
- Set up basic theme that includes necessary icons along with host app styles
|
|
30
|
+
- Add basic usage information to README
|
|
15
31
|
|
|
16
32
|
[0.1.0]: https://github.com/planningcenter/core-automations/releases/tag/v0.1.0
|
|
33
|
+
[0.2.0]: https://github.com/planningcenter/core-automations/releases/tag/v0.2.0
|
package/README.md
CHANGED
|
@@ -13,12 +13,17 @@ yarn add @planningcenter/core-automations
|
|
|
13
13
|
### Displaying Core Automations
|
|
14
14
|
|
|
15
15
|
```jsx
|
|
16
|
-
import { Automations } from "@planningcenter/core-
|
|
16
|
+
import { Automations } from "@planningcenter/core-automations"
|
|
17
17
|
|
|
18
18
|
...
|
|
19
19
|
|
|
20
20
|
<Automations
|
|
21
21
|
blankStateDescription="Automations supercharge your form..."
|
|
22
|
+
currentOrganization={{
|
|
23
|
+
dateFormat: "%m/%d/%Y",
|
|
24
|
+
olsonTimeZone: "America/Los_Angeles",
|
|
25
|
+
twentyFourHourTime: false,
|
|
26
|
+
}}
|
|
22
27
|
currentPersonCanCreate={true}
|
|
23
28
|
currentPersonId={123456789}
|
|
24
29
|
defaultApp="people"
|
|
@@ -34,6 +39,11 @@ import { Automations } from "@planningcenter/core-automation"
|
|
|
34
39
|
- `blankStateDescription` (string): Text to be displayed when there are no current automations
|
|
35
40
|
- `currentPersonCanCreate` (boolean): Can the user create an automation?
|
|
36
41
|
- `currentPersonId` (number): ID of current user
|
|
42
|
+
- `currentOrganization` (object): Date formatting info from the current org:
|
|
43
|
+
- `dateFormat` (string): The org's desired date format, in Ruby `strftime` [format](https://apidock.com/ruby/DateTime/strftime)
|
|
44
|
+
- `olsonTimeZone` (string): The org's time zone
|
|
45
|
+
- `twentyFourHourTime` (boolean): Whether the org wants to see 12 or 24 hour times
|
|
46
|
+
}}
|
|
37
47
|
- `defaultApp` (string): Which app should be selected by default?
|
|
38
48
|
- `theme` (object) optional: Accepts a [Tapestry-React theme object](https://planningcenter.github.io/tapestry-react/theming)
|
|
39
49
|
- `triggerConditions` (object): The specific conditions for triggering this automation
|