-
Notifications
You must be signed in to change notification settings - Fork 17
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
Cobrowse.io Bot
committed
Sep 20, 2024
1 parent
342f5f5
commit f8b7de1
Showing
123 changed files
with
3,239 additions
and
17,517 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#import <Foundation/Foundation.h> | ||
|
||
@protocol CBIOHasViewProperties <NSObject> | ||
|
||
@property (copy, nullable) NSString *tag; | ||
@property (copy, nullable) NSString *id; | ||
@property (copy, nonnull) NSDictionary<NSString *, NSString *> *attributes; | ||
|
||
@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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#import <Foundation/Foundation.h> | ||
|
||
#import "CBIOViewProperties.h" | ||
#import "CBIOSelectorPart.h" | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@interface CBIOSelector : NSObject | ||
|
||
@property (readonly) NSArray<CBIOSelectorPart *>* parts; | ||
|
||
+ (nullable instancetype)from:(nonnull NSArray*) selector; | ||
|
||
- (nonnull instancetype)init NS_UNAVAILABLE; | ||
- (nonnull instancetype)initWithParts:(NSArray<CBIOSelectorPart *>*) parts; | ||
|
||
- (BOOL)matches:(CBIOViewProperties *)view withParents:(NSArray<CBIOViewProperties *> *)parents; | ||
|
||
@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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#import <Foundation/Foundation.h> | ||
#import "CBIOSelector.h" | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
extern NSNotificationName const CBIOSelectorsDidUpdateNotification; | ||
|
||
typedef NSMutableDictionary<NSString *, NSMutableSet<CBIOSelector *> *> *CBIOSelectorStore; | ||
|
||
@interface CBIOSelectorIndex : NSObject | ||
|
||
@property (class, nonatomic, readonly) CBIOSelectorIndex *redacted; | ||
@property (class, nonatomic, readonly) CBIOSelectorIndex *unredacted; | ||
|
||
@property (nonatomic, strong, readonly) NSSet<NSString *> *knownAttributes; | ||
@property (nonatomic, strong, nullable) NSSet<CBIOSelector *> *selectors; | ||
|
||
@property (nonatomic, strong, readonly) CBIOSelectorStore byTag; | ||
@property (nonatomic, strong, readonly) CBIOSelectorStore byID; | ||
@property (nonatomic, strong, readonly) CBIOSelectorStore byAttribute; | ||
|
||
- (NSSet<CBIOSelector *> *)possibleMatchesForView:(id<CBIOHasViewProperties>)view NS_SWIFT_NAME(possibleMatches(for:)); | ||
- (NSSet<CBIOSelector *> *)possibleMatchesForTag:(nullable NSString *)tag | ||
id:(nullable NSString *)id | ||
attributes:(nullable NSDictionary<NSString *, id> *)attributes; | ||
- (BOOL) isEmpty; | ||
|
||
@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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#import <Foundation/Foundation.h> | ||
|
||
#import "CBIOViewProperties.h" | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@interface CBIOSelectorPart : NSObject <CBIOHasViewProperties> | ||
@property (copy, nullable) NSString *tag; | ||
@property (copy, nullable) NSString *id; | ||
@property (copy, nonnull) NSDictionary<NSString *, NSString *> *attributes; | ||
|
||
+ (nonnull instancetype)fromDictionary:(NSDictionary*) dictionary; | ||
|
||
- (nonnull instancetype)initWithTag:(nullable NSString *)tag | ||
id:(nullable NSString *)id | ||
attributes:(nullable NSDictionary<NSString *, NSString *> *)attributes; | ||
|
||
- (BOOL)matches:(CBIOViewProperties *)view; | ||
|
||
@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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#import <Foundation/Foundation.h> | ||
|
||
#import "CBIOHasViewProperties.h" | ||
#import "CBIOViewProperties.h" | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@interface CBIOViewProperties : NSObject <CBIOHasViewProperties> | ||
|
||
@property (copy, nullable) NSString *tag; | ||
@property (copy, nullable) NSString *id; | ||
@property (copy, nonnull) NSDictionary<NSString *, NSString *> *attributes; | ||
|
||
- (instancetype)initWithTag:(nullable NSString *)tag | ||
id:(nullable NSString *)id | ||
attributes:(NSDictionary<NSString *, id> *)attributes NS_DESIGNATED_INITIALIZER; | ||
|
||
@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
Binary file not shown.
Binary file modified
BIN
-5.74 KB
(72%)
CobrowseIO.framework/Modules/CobrowseIO.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo
Binary file not shown.
Binary file modified
BIN
-5.74 KB
(72%)
...amework/Modules/CobrowseIO.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo
Binary file not shown.
Oops, something went wrong.