-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
91 changed files
with
219 additions
and
37 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+6 Bytes
(100%)
...amework/Beacon.bundle/Beacon.storyboardc/FIW-Nl-D7E-view-L3Z-OL-Hlk.nib/objects-11.0+.nib
Binary file not shown.
Binary file modified
BIN
-4 Bytes
(100%)
Beacon.framework/Beacon.bundle/Beacon.storyboardc/FIW-Nl-D7E-view-L3Z-OL-Hlk.nib/runtime.nib
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Beacon.framework/Beacon.bundle/Beacon.storyboardc/Info.plist
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...k/Beacon.bundle/Beacon.storyboardc/UITableViewController-mWd-3D-kHt.nib/objects-11.0+.nib
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...amework/Beacon.bundle/Beacon.storyboardc/UITableViewController-mWd-3D-kHt.nib/runtime.nib
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...Beacon.bundle/Beacon.storyboardc/beaconArticleDetailsViewController.nib/objects-11.0+.nib
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...ework/Beacon.bundle/Beacon.storyboardc/beaconArticleDetailsViewController.nib/runtime.nib
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...rk/Beacon.bundle/Beacon.storyboardc/beaconSuggestionsViewController.nib/objects-11.0+.nib
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...ramework/Beacon.bundle/Beacon.storyboardc/beaconSuggestionsViewController.nib/runtime.nib
Binary file not shown.
Binary file modified
BIN
-5 Bytes
(100%)
...amework/Beacon.bundle/Beacon.storyboardc/lJT-7H-r9B-view-6fo-dN-YF8.nib/objects-11.0+.nib
Binary file not shown.
Binary file modified
BIN
+1 Byte
(100%)
Beacon.framework/Beacon.bundle/Beacon.storyboardc/lJT-7H-r9B-view-6fo-dN-YF8.nib/runtime.nib
Binary file not shown.
Binary file modified
BIN
+2 Bytes
(100%)
...amework/Beacon.bundle/Beacon.storyboardc/mWd-3D-kHt-view-bLH-bl-Wcm.nib/objects-11.0+.nib
Binary file not shown.
Binary file modified
BIN
-4 Bytes
(100%)
Beacon.framework/Beacon.bundle/Beacon.storyboardc/mWd-3D-kHt-view-bLH-bl-Wcm.nib/runtime.nib
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+3 Bytes
(100%)
Beacon.framework/Beacon.bundle/BeaconDropdownCustomField.nib
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-2 Bytes
(100%)
...eacon.bundle/BeaconMessaging.storyboardc/1vf-ik-4dh-view-fTR-UL-YOa.nib/objects-11.0+.nib
Binary file not shown.
Binary file modified
BIN
+14 Bytes
(100%)
...work/Beacon.bundle/BeaconMessaging.storyboardc/1vf-ik-4dh-view-fTR-UL-YOa.nib/runtime.nib
Binary file not shown.
Binary file modified
BIN
-7 Bytes
(100%)
...eacon.bundle/BeaconMessaging.storyboardc/3rg-Lo-v8k-view-qgr-cq-MDj.nib/objects-11.0+.nib
Binary file not shown.
Binary file modified
BIN
+6 Bytes
(100%)
...work/Beacon.bundle/BeaconMessaging.storyboardc/3rg-Lo-v8k-view-qgr-cq-MDj.nib/runtime.nib
Binary file not shown.
Binary file modified
BIN
+7 Bytes
(100%)
...eacon.bundle/BeaconMessaging.storyboardc/Chv-3u-kNZ-view-iL2-Of-ctu.nib/objects-11.0+.nib
Binary file not shown.
Binary file modified
BIN
-4 Bytes
(100%)
...work/Beacon.bundle/BeaconMessaging.storyboardc/Chv-3u-kNZ-view-iL2-Of-ctu.nib/runtime.nib
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...undle/BeaconMessaging.storyboardc/HSBeaconContactFormViewController.nib/objects-11.0+.nib
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...acon.bundle/BeaconMessaging.storyboardc/HSBeaconContactFormViewController.nib/runtime.nib
Binary file not shown.
Binary file modified
BIN
+8 Bytes
(100%)
...eacon.bundle/BeaconMessaging.storyboardc/IC5-T0-B1n-view-6Wz-zO-fus.nib/objects-11.0+.nib
Binary file not shown.
Binary file modified
BIN
-4 Bytes
(100%)
...work/Beacon.bundle/BeaconMessaging.storyboardc/IC5-T0-B1n-view-6Wz-zO-fus.nib/runtime.nib
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Beacon.framework/Beacon.bundle/BeaconMessaging.storyboardc/Info.plist
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...bundle/BeaconMessaging.storyboardc/UITableViewController-wt9-io-yvx.nib/objects-11.0+.nib
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...eacon.bundle/BeaconMessaging.storyboardc/UITableViewController-wt9-io-yvx.nib/runtime.nib
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...acon.bundle/BeaconMessaging.storyboardc/UIViewController-Wmf-0s-qiu.nib/objects-11.0+.nib
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...ork/Beacon.bundle/BeaconMessaging.storyboardc/UIViewController-Wmf-0s-qiu.nib/runtime.nib
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...eacon.bundle/BeaconMessaging.storyboardc/Wmf-0s-qiu-view-tdL-8x-2wI.nib/objects-11.0+.nib
Binary file not shown.
Binary file modified
BIN
+2 Bytes
(100%)
...work/Beacon.bundle/BeaconMessaging.storyboardc/Wmf-0s-qiu-view-tdL-8x-2wI.nib/runtime.nib
Binary file not shown.
Binary file modified
BIN
+87 Bytes
(100%)
...acon.bundle/BeaconMessaging.storyboardc/beaconMessageSentController.nib/objects-11.0+.nib
Binary file not shown.
Binary file modified
BIN
+87 Bytes
(100%)
...ork/Beacon.bundle/BeaconMessaging.storyboardc/beaconMessageSentController.nib/runtime.nib
Binary file not shown.
Binary file modified
BIN
+44 Bytes
(100%)
...work/Beacon.bundle/BeaconMessaging.storyboardc/hsBeaconAskSelection.nib/objects-11.0+.nib
Binary file not shown.
Binary file modified
BIN
+44 Bytes
(100%)
....framework/Beacon.bundle/BeaconMessaging.storyboardc/hsBeaconAskSelection.nib/runtime.nib
Binary file not shown.
Binary file modified
BIN
+86 Bytes
(100%)
...on.bundle/BeaconMessaging.storyboardc/hsBeaconMessageEntryContainer.nib/objects-11.0+.nib
Binary file not shown.
Binary file modified
BIN
+93 Bytes
(100%)
...k/Beacon.bundle/BeaconMessaging.storyboardc/hsBeaconMessageEntryContainer.nib/runtime.nib
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...eacon.bundle/BeaconMessaging.storyboardc/wt9-io-yvx-view-wou-jo-jLi.nib/objects-11.0+.nib
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...work/Beacon.bundle/BeaconMessaging.storyboardc/wt9-io-yvx-view-wou-jo-jLi.nib/runtime.nib
Binary file not shown.
Binary file modified
BIN
-7 Bytes
(100%)
Beacon.framework/Beacon.bundle/BeaconMultilineCustomField.nib
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Beacon.framework/Beacon.bundle/BeaconPreviousMessages.storyboardc/Info.plist
Binary file not shown.
Binary file modified
BIN
-3 Bytes
(100%)
...undle/BeaconPreviousMessages.storyboardc/J2u-tH-rby-view-rsE-bf-444.nib/objects-11.0+.nib
Binary file not shown.
Binary file modified
BIN
-1 Byte
(100%)
...acon.bundle/BeaconPreviousMessages.storyboardc/J2u-tH-rby-view-rsE-bf-444.nib/runtime.nib
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...viousMessages.storyboardc/hsBeaconConversationDetailsViewController.nib/objects-11.0+.nib
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...conPreviousMessages.storyboardc/hsBeaconConversationDetailsViewController.nib/runtime.nib
Binary file not shown.
Binary file modified
BIN
+91 Bytes
(100%)
...aconPreviousMessages.storyboardc/hsBeaconPreviousMessagesController.nib/objects-11.0+.nib
Binary file not shown.
Binary file modified
BIN
+88 Bytes
(100%)
...dle/BeaconPreviousMessages.storyboardc/hsBeaconPreviousMessagesController.nib/runtime.nib
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...reviousMessages.storyboardc/hsBeaconPreviousMessagesReplyController.nib/objects-11.0+.nib
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...eaconPreviousMessages.storyboardc/hsBeaconPreviousMessagesReplyController.nib/runtime.nib
Binary file not shown.
Binary file modified
BIN
+3 Bytes
(100%)
...undle/BeaconPreviousMessages.storyboardc/rbY-BJ-kAj-view-dj7-n2-kaR.nib/objects-11.0+.nib
Binary file not shown.
Binary file modified
BIN
-2 Bytes
(100%)
...acon.bundle/BeaconPreviousMessages.storyboardc/rbY-BJ-kAj-view-dj7-n2-kaR.nib/runtime.nib
Binary file not shown.
Binary file modified
BIN
-3 Bytes
(100%)
...undle/BeaconPreviousMessages.storyboardc/zvY-vk-GgN-view-aU5-Gj-bWn.nib/objects-11.0+.nib
Binary file not shown.
Binary file modified
BIN
-4 Bytes
(100%)
...acon.bundle/BeaconPreviousMessages.storyboardc/zvY-vk-GgN-view-aU5-Gj-bWn.nib/runtime.nib
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-5 Bytes
(100%)
Beacon.framework/Beacon.bundle/BeaconSinglelineCustomField.nib
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Beacon.framework/Beacon.bundle/HSBeaconLoadingViewController.nib
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
Beacon.framework/Beacon.bundle/HSBeaconSearchResultsCell.nib
Binary file not shown.
Binary file modified
BIN
-2 Bytes
(100%)
Beacon.framework/Beacon.bundle/HSStatusMessageViewController.nib
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+141 Bytes
(110%)
Beacon.framework/Beacon.bundle/en.lproj/BeaconLocalizable.strings
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
#import <Foundation/Foundation.h> | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
/** | ||
This protocol indicates an object can be passed into suggesiton overides via the | ||
`HSBeacon` `suggestWithItems:` method. | ||
*/ | ||
@protocol HSBeaconSuggestionItem | ||
|
||
@end | ||
|
||
/** | ||
Provide an article id for suggestion overrides. The article title and url is looked | ||
up from Help Scout before rendering the suggestion. | ||
*/ | ||
@interface HSBeaconArticleSuggestion : NSObject <HSBeaconSuggestionItem> | ||
|
||
/** | ||
Initialize with the specified article id. | ||
Article IDs can be found in Help Scout by navigating to the article and copying the | ||
article ID from the URL. The URL is structured like this: | ||
https://secure.helpscout.net/docs/[COLLECTION ID]/article/[ARTICLE ID]/ | ||
*/ | ||
- (instancetype)initWithId:(NSString *)articleId; | ||
|
||
/** | ||
The article id to look up and show in the suggestions table. | ||
*/ | ||
@property (nonatomic, readonly) NSString *articleId; | ||
|
||
#pragma mark - Unavailable Methods | ||
|
||
/** | ||
HSBeaconArticleSuggestion objects are immutable, so always initialze with the articleId constructor. | ||
*/ | ||
- (instancetype) __unavailable init; | ||
|
||
@end | ||
|
||
/** | ||
Provide an title and url for suggestion overrides. The url is opened in a modal using | ||
`SFSafariViewController`. | ||
*/ | ||
@interface HSBeaconLinkSuggestion : NSObject <HSBeaconSuggestionItem> | ||
|
||
/** | ||
Initialize a link suggestion with the specified url and text. | ||
*/ | ||
- (instancetype)initWithUrl:(NSURL *)url text:(NSString *)text; | ||
|
||
/** | ||
The url the suggestion will open. | ||
*/ | ||
@property (nonatomic, readonly) NSURL *url; | ||
|
||
/** | ||
The text rendered in the suggestions table. | ||
*/ | ||
@property (nonatomic, readonly) NSString *text; | ||
|
||
#pragma mark - Unavailable Methods | ||
|
||
/** | ||
HSBeaconLinkSuggestion objects are immutable, so always initialze with the url and text constructor. | ||
*/ | ||
- (instancetype) __unavailable init; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,59 @@ | ||
#import <Foundation/Foundation.h> | ||
|
||
#import "HSBeaconActivityLog.h" | ||
#import "HSBeaconCloudFrontAPIClient.h" | ||
#import "HSBeaconConfig.h" | ||
#import "HSBeaconDocsAPIClient.h" | ||
#import "HSBeaconEmailMessage.h" | ||
#import "HSBeaconKeychainWrapper.h" | ||
#import "HSBeaconLocalizedStrings.h" | ||
#import "HSBeaconDocsAPIClient.h" | ||
#import "HSBeaconMessagingAPIClient.h" | ||
#import "HSBeaconCloudFrontAPIClient.h" | ||
#import "HSBeaconReplyNotificationPayload.h" | ||
#import "HSBeaconSecurityInfo.h" | ||
#import "HSBeaconSuggestionItem.h" | ||
#import "HSBeaconTintColor.h" | ||
#import "HSBeaconReplyNotificationPayload.h" | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@interface HSBeaconContext : NSObject | ||
|
||
@property (strong, nonatomic) HSBeaconConfig *config; | ||
@property (readonly) HSBeaconSettings *beaconSettings; | ||
@property (readonly) HSBeaconTintColor *tintColorSettings; | ||
@property (readonly) HSBeaconDocsAPIClient *docsApiClient; | ||
@property (readonly) HSBeaconMessagingAPIClient *messagingApiClient; | ||
@property (readonly) HSBeaconCloudFrontAPIClient *cloudFrontApiClient; | ||
@property (readonly) id<HSBeaconStringLocalizer> localizedStrings; | ||
@property (readonly) HSBeaconActivityLog *activityLog; | ||
@property (readonly) HSBeaconSecurityInfo *securityInfo; | ||
@property (readonly) HSBeaconKeychainWrapper *keychainWrapper; | ||
|
||
@property (readonly) NSMutableDictionary<NSNumber *, HSBeaconReplyMessage *> *draftReplies; | ||
@property (readonly) BOOL messagingEnabled; | ||
@property (readonly) BOOL docsOnly; | ||
@property (readonly) BOOL docsEnabled; | ||
@property (readonly) BOOL messagingOnly; | ||
@property (readonly) BOOL validConfig; | ||
@property (readonly, nonatomic) HSBeaconSettings *beaconSettings; | ||
@property (readonly, nonatomic) HSBeaconTintColor *tintColorSettings; | ||
|
||
/* these are readwrite for testing purposes */ | ||
@property (nonatomic) HSBeaconDocsAPIClient *docsApiClient; | ||
@property (nonatomic) HSBeaconMessagingAPIClient *messagingApiClient; | ||
@property (nonatomic) HSBeaconCloudFrontAPIClient *cloudFrontApiClient; | ||
@property (nonatomic) id<HSBeaconStringLocalizer> localizedStrings; | ||
|
||
@property (readonly, nonatomic) HSBeaconActivityLog *activityLog; | ||
@property (readonly, nonatomic) HSBeaconSecurityInfo *securityInfo; | ||
@property (readonly, nonatomic) HSBeaconKeychainWrapper *keychainWrapper; | ||
|
||
@property (readonly, nonatomic) NSMutableDictionary<NSNumber *, HSBeaconReplyMessage *> *draftReplies; | ||
@property (readonly, nonatomic) BOOL messagingEnabled; | ||
@property (readonly, nonatomic) BOOL docsOnly; | ||
@property (readonly, nonatomic) BOOL docsEnabled; | ||
@property (readonly, nonatomic) BOOL messagingOnly; | ||
@property (readonly, nonatomic) BOOL validConfig; | ||
|
||
@property (readonly, nonatomic) BOOL showNameEnabled; | ||
@property (readonly, nonatomic) BOOL showSubjectEnabled; | ||
@property (readonly, nonatomic) BOOL attachmentsEnabled; | ||
@property (readonly, nonatomic) BOOL customFieldsEnabled; | ||
@property (readonly, nonatomic) BOOL showGetInTouchEnabled; | ||
|
||
@property (strong, nonatomic) NSArray<NSString *> *suggestionArticleIds; | ||
@property (strong, nonatomic) NSArray<id<HSBeaconSuggestionItem>> *customSuggestions; | ||
|
||
@property (atomic) BOOL loadFailed; | ||
|
||
@property (nonatomic) BOOL hasPreviousMessages; | ||
|
||
@property (nullable) HSBeaconEmailMessage *draftMessage; | ||
|
||
- (instancetype _Nonnull)initWithBeaconSettings:(HSBeaconSettings *_Nullable)beaconSettings user:(HSBeaconUser *_Nullable)user signature:(NSString *_Nullable)signature; | ||
|
||
- (instancetype _Nonnull)initWithBeaconSettings:(HSBeaconSettings *_Nullable)beaconSettings | ||
user:(HSBeaconUser *_Nullable)user | ||
signature:(NSString *_Nullable)signature | ||
stringLocalizer:(id<HSBeaconStringLocalizer>)stringLocalizer | ||
messagingClient:(HSBeaconMessagingAPIClient *_Nullable)messagingClient; | ||
|
||
- (void)lookupUserDeviceInfo; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.