feat(activity): Added condition parameter for activities.

feat(packages): Editing packages is only enabled for packages.