| 1 |
/** |
| 2 |
* Constants for Smart Design Library |
| 3 |
*/ |
| 4 |
|
| 5 |
// API Endpoints |
| 6 |
export const API_ENDPOINTS = { |
| 7 |
PATTERNS: "/smart-post-show/v2/get_premade_patterns", |
| 8 |
WISHLIST: "/sp-smart-post/v2/save_wishlist_item", |
| 9 |
SINGLE_PATTERN: "https://demo.wpsmartpost.com/wp-json/smart-post/v1/single-pattern", |
| 10 |
UPGRADE_URL: "https://wpsmartpost.com/pricing/", |
| 11 |
SITES: "/sp-smart-post/v2/get-replace-pages", |
| 12 |
PAGE_DATA: "/sp-smart-post/v2/get-insert-page-data", |
| 13 |
}; |
| 14 |
|
| 15 |
// CSS Classes |
| 16 |
export const CSS_CLASSES = { |
| 17 |
MODAL: "sp-smart-builder-modal", |
| 18 |
POPUP_OPEN: "sp-smart-popup-open", |
| 19 |
TOOLBAR_LIBRARY: "sp-smart-toolbar-design-library", |
| 20 |
PATTERN_GRID: "sp-smart-pattern-grid", |
| 21 |
PATTERN_COL2: "sp-smart-pattern-col2", |
| 22 |
PATTERN_COL3: "sp-smart-pattern-col3", |
| 23 |
}; |
| 24 |
|
| 25 |
// Default Values |
| 26 |
export const DEFAULTS = { |
| 27 |
COLUMN: "3", |
| 28 |
SEARCH_QUERY: "", |
| 29 |
TREND: "default", |
| 30 |
FREE_PRO: "all", |
| 31 |
DEBOUNCE_DELAY: 200, |
| 32 |
SKELETON_COUNT: 25, |
| 33 |
}; |
| 34 |
|
| 35 |
// Pattern Categories |
| 36 |
export const PATTERN_CATEGORIES = [ |
| 37 |
{ label: "All Blocks", value: "all" }, |
| 38 |
{ label: "Post Grid 01", value: "post-grid-one" }, |
| 39 |
{ label: "Post Grid 02", value: "post-grid-two" }, |
| 40 |
{ label: "Post Grid 03", value: "post-grid-three" }, |
| 41 |
{ label: "Post Grid 04", value: "post-grid-four" }, |
| 42 |
{ label: "Post Grid 05", value: "post-grid-five" }, |
| 43 |
{ label: "Post Grid 06", value: "post-grid-six" }, |
| 44 |
{ label: "Post List 01", value: "post-list-one" }, |
| 45 |
{ label: "Post List 02", value: "post-list-two" }, |
| 46 |
{ label: "Post List 03", value: "post-list-three" }, |
| 47 |
{ label: "Post Slider 01", value: "post-slider" }, |
| 48 |
{ label: "Post Slider 02", value: "post-slider-two" }, |
| 49 |
{ label: "Thumbnail Slider", value: "thumbnail-slider" }, |
| 50 |
// { label: "Thumbnail Slider 02", value: "thumbnail-slider-two" }, |
| 51 |
{ label: "Post Carousel 01", value: "post-carousel" }, |
| 52 |
{ label: "Post Carousel 02", value: "post-carousel-two" }, |
| 53 |
{ label: "Social Profiles", value: "social-profiles" }, |
| 54 |
{ label: "Section Heading", value: "section-heading" }, |
| 55 |
{ label: "Post Timeline 01", value: "post-timeline-one" }, |
| 56 |
{ label: "Post Timeline 02", value: "post-timeline-two" }, |
| 57 |
{ label: "Post Timeline 03", value: "post-timeline-three" }, |
| 58 |
{ label: "News ticker", value: "news-ticker" }, |
| 59 |
{ label: "Taxonomy", value: "taxonomy" }, |
| 60 |
{ label: "Table of Contents", value: "table-of-content" }, |
| 61 |
{ label: "Button Group", value: "buttons" }, |
| 62 |
]; |
| 63 |
|
| 64 |
// Keyboard Keys |
| 65 |
export const KEYBOARD_KEYS = { |
| 66 |
ESCAPE: 27, |
| 67 |
ENTER: "Enter", |
| 68 |
SPACE: " ", |
| 69 |
}; |
| 70 |
|
| 71 |
// Filter Options |
| 72 |
export const FILTER_OPTIONS = { |
| 73 |
FREE_PRO: [ |
| 74 |
{ value: "all", label: "All (Free / Pro)" }, |
| 75 |
{ value: "free", label: "Free" }, |
| 76 |
{ value: "pro", label: "Pro" }, |
| 77 |
], |
| 78 |
TREND: [ |
| 79 |
{ value: "default", label: "Sort By" }, |
| 80 |
{ value: "popular", label: "Popular" }, |
| 81 |
{ value: "latest", label: "Latest" }, |
| 82 |
], |
| 83 |
}; |
| 84 |
|