@vev/silke 1.0.20 → 1.0.21

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/dist/styles.css CHANGED
@@ -1901,17 +1901,17 @@ img.silke-icon_icon_84f9e9d6b3 {
1901
1901
  * Get font size base on base font size
1902
1902
  * scaling = round(size * 1.200) (Minor Third)
1903
1903
  */
1904
- .silke-toolbar_root_dde856ffa5 {
1905
- position: relative;
1904
+ .silke-steps_number_e3e97b6c1a {
1905
+ width: 24px;
1906
+ height: 24px;
1907
+ outline: 1px solid #fff;
1908
+ border-radius: 50%;
1909
+ text-align: center;
1910
+ transition: 500ms outline;
1906
1911
  }
1907
- .silke-toolbar_root_dde856ffa5:before {
1908
- background-color: rgba(var(--color-neutral-100-rgb), var(--opacity-level-light));
1909
- position: absolute;
1910
- content: "";
1911
- bottom: 0;
1912
- left: 0;
1913
- right: 0;
1914
- height: 1px;
1912
+
1913
+ .silke-steps_number_e3e97b6c1a.silke-steps_done_e3e97b6c1a {
1914
+ outline: 1px solid var(--color-success-30);
1915
1915
  }
1916
1916
  /**********************
1917
1917
  * SOME MATH
@@ -1929,17 +1929,17 @@ img.silke-icon_icon_84f9e9d6b3 {
1929
1929
  * Get font size base on base font size
1930
1930
  * scaling = round(size * 1.200) (Minor Third)
1931
1931
  */
1932
- .silke-steps_number_e3e97b6c1a {
1933
- width: 24px;
1934
- height: 24px;
1935
- outline: 1px solid #fff;
1936
- border-radius: 50%;
1937
- text-align: center;
1938
- transition: 500ms outline;
1932
+ .silke-toolbar_root_dde856ffa5 {
1933
+ position: relative;
1939
1934
  }
1940
-
1941
- .silke-steps_number_e3e97b6c1a.silke-steps_done_e3e97b6c1a {
1942
- outline: 1px solid var(--color-success-30);
1935
+ .silke-toolbar_root_dde856ffa5:before {
1936
+ background-color: rgba(var(--color-neutral-100-rgb), var(--opacity-level-light));
1937
+ position: absolute;
1938
+ content: "";
1939
+ bottom: 0;
1940
+ left: 0;
1941
+ right: 0;
1942
+ height: 1px;
1943
1943
  }
1944
1944
  body {
1945
1945
  --silke-card-border-radius: 8px;
@@ -2542,6 +2542,10 @@ body {
2542
2542
  --text-field-hover-bg: var(--color-neutral-20);
2543
2543
  --text-field-focus-border-color: transparent;
2544
2544
  }
2545
+ .silke-autocomplete-field_root_bc5daf4479 .silke-autocomplete-field_placeholder_bc5daf4479 {
2546
+ color: var(--text-field-disabled-placeholder-color);
2547
+ font-size: var(--text-field-font-size);
2548
+ }
2545
2549
 
2546
2550
  .silke-autocomplete-field_autocompleteItem_bc5daf4479 {
2547
2551
  cursor: pointer;
@@ -2557,11 +2561,6 @@ body {
2557
2561
  transition: opacity 0.5s ease-in-out, transform 0.3s ease-out;
2558
2562
  }
2559
2563
 
2560
- .silke-autocomplete-field_placeholder_bc5daf4479 {
2561
- color: var(--text-field-disabled-placeholder-color);
2562
- font-size: var(--text-field-font-size);
2563
- }
2564
-
2565
2564
  .silke-autocomplete-field_hiddenSearch_bc5daf4479 {
2566
2565
  width: 0;
2567
2566
  height: 0;
@@ -2593,6 +2592,83 @@ body {
2593
2592
  * Get font size base on base font size
2594
2593
  * scaling = round(size * 1.200) (Minor Third)
2595
2594
  */
2595
+ body {
2596
+ --tile-background: var(--color-neutral-5);
2597
+ --tile-background-hover: rgba(var(--color-neutral-5-rgb), 0.32);
2598
+ --tile-background-active: rgba(var(--color-neutral-5-rgb), 0.08);
2599
+ }
2600
+
2601
+ .silke-tile_tile_47b57b749d {
2602
+ position: relative;
2603
+ background: var(--tile-background);
2604
+ }
2605
+ .silke-tile_tile_47b57b749d:focus {
2606
+ outline: none;
2607
+ }
2608
+ .silke-tile_tile_47b57b749d:focus-visible, .silke-tile_tile_47b57b749d.silke-tile_selected_47b57b749d {
2609
+ box-shadow: 0 0 0 1px var(--color-neutral-100);
2610
+ border-color: var(--color-neutral-100);
2611
+ }
2612
+
2613
+ .silke-tile_clickable_47b57b749d {
2614
+ cursor: pointer;
2615
+ transition: background ease-in-out 100ms;
2616
+ }
2617
+ .silke-tile_clickable_47b57b749d:hover {
2618
+ background-color: var(--tile-background-hover);
2619
+ }
2620
+ .silke-tile_clickable_47b57b749d:active {
2621
+ background: var(--tile-background-active);
2622
+ }
2623
+
2624
+ .silke-tile_icon_47b57b749d {
2625
+ font-size: 16px;
2626
+ }
2627
+
2628
+ .silke-tile_tags_47b57b749d {
2629
+ position: absolute;
2630
+ top: 0;
2631
+ right: 0;
2632
+ }
2633
+ .silke-tile_tags_47b57b749d > *:not(:last-child) {
2634
+ margin-right: 8px;
2635
+ }
2636
+
2637
+ .silke-tile_tiny_47b57b749d {
2638
+ max-width: 256px;
2639
+ width: 100%;
2640
+ }
2641
+
2642
+ .silke-tile_small_47b57b749d {
2643
+ max-width: 512px;
2644
+ width: 100%;
2645
+ }
2646
+
2647
+ .silke-tile_medium_47b57b749d {
2648
+ max-width: 768px;
2649
+ width: 100%;
2650
+ }
2651
+
2652
+ .silke-tile_large_47b57b749d {
2653
+ max-width: 1024px;
2654
+ width: 100%;
2655
+ }
2656
+ /**********************
2657
+ * SOME MATH
2658
+ ************************/
2659
+ /**********************
2660
+ * FONT
2661
+ ************************/
2662
+ /**********************
2663
+ * SPACING
2664
+ ************************/
2665
+ /**********************
2666
+ * SIZES
2667
+ ************************/
2668
+ /**
2669
+ * Get font size base on base font size
2670
+ * scaling = round(size * 1.200) (Minor Third)
2671
+ */
2596
2672
  .silke-table_toolbar_b5946502de {
2597
2673
  border-radius: var(--border-radius-medium);
2598
2674
  border-bottom-left-radius: var(--border-radius-tiny);
@@ -2672,83 +2748,6 @@ body {
2672
2748
  * Get font size base on base font size
2673
2749
  * scaling = round(size * 1.200) (Minor Third)
2674
2750
  */
2675
- body {
2676
- --tile-background: var(--color-neutral-5);
2677
- --tile-background-hover: rgba(var(--color-neutral-5-rgb), 0.32);
2678
- --tile-background-active: rgba(var(--color-neutral-5-rgb), 0.08);
2679
- }
2680
-
2681
- .silke-tile_tile_47b57b749d {
2682
- position: relative;
2683
- background: var(--tile-background);
2684
- }
2685
- .silke-tile_tile_47b57b749d:focus {
2686
- outline: none;
2687
- }
2688
- .silke-tile_tile_47b57b749d:focus-visible, .silke-tile_tile_47b57b749d.silke-tile_selected_47b57b749d {
2689
- box-shadow: 0 0 0 1px var(--color-neutral-100);
2690
- border-color: var(--color-neutral-100);
2691
- }
2692
-
2693
- .silke-tile_clickable_47b57b749d {
2694
- cursor: pointer;
2695
- transition: background ease-in-out 100ms;
2696
- }
2697
- .silke-tile_clickable_47b57b749d:hover {
2698
- background-color: var(--tile-background-hover);
2699
- }
2700
- .silke-tile_clickable_47b57b749d:active {
2701
- background: var(--tile-background-active);
2702
- }
2703
-
2704
- .silke-tile_icon_47b57b749d {
2705
- font-size: 16px;
2706
- }
2707
-
2708
- .silke-tile_tags_47b57b749d {
2709
- position: absolute;
2710
- top: 0;
2711
- right: 0;
2712
- }
2713
- .silke-tile_tags_47b57b749d > *:not(:last-child) {
2714
- margin-right: 8px;
2715
- }
2716
-
2717
- .silke-tile_tiny_47b57b749d {
2718
- max-width: 256px;
2719
- width: 100%;
2720
- }
2721
-
2722
- .silke-tile_small_47b57b749d {
2723
- max-width: 512px;
2724
- width: 100%;
2725
- }
2726
-
2727
- .silke-tile_medium_47b57b749d {
2728
- max-width: 768px;
2729
- width: 100%;
2730
- }
2731
-
2732
- .silke-tile_large_47b57b749d {
2733
- max-width: 1024px;
2734
- width: 100%;
2735
- }
2736
- /**********************
2737
- * SOME MATH
2738
- ************************/
2739
- /**********************
2740
- * FONT
2741
- ************************/
2742
- /**********************
2743
- * SPACING
2744
- ************************/
2745
- /**********************
2746
- * SIZES
2747
- ************************/
2748
- /**
2749
- * Get font size base on base font size
2750
- * scaling = round(size * 1.200) (Minor Third)
2751
- */
2752
2751
  .silke-toggle_container_5fdf33c914 {
2753
2752
  position: relative;
2754
2753
  cursor: pointer;
@@ -28,12 +28,15 @@ export declare enum NATIVE_TRIGGER_TYPES {
28
28
  ON_MOUSE_LEAVE = "onMouseLeave",
29
29
  ON_MOUSE_DOWN = "onMouseDown",
30
30
  ON_MOUSE_UP = "onMouseUp",
31
- ON_DOUBLE_CLICK = "onDoubleClick"
31
+ ON_DOUBLE_CLICK = "onDoubleClick",
32
+ ON_TOUCH_START = "onTouchStart",
33
+ ON_TOUCH_END = "onTouchEnd"
32
34
  }
33
35
  export declare const NATIVE_TRIGGERS: TriggerItem[];
34
36
  export declare enum CUSTOM_TRIGGER_TYPES {
35
37
  ON_VISIBLE = "onVisible",
36
- ON_LEAVE = "onLeave"
38
+ ON_LEAVE = "onLeave",
39
+ ON_SWIPE = "onSwipe"
37
40
  }
38
41
  export declare const CUSTOM_TRIGGERS: TriggerItem[];
39
42
  export declare enum GLOBAL_TRIGGER_TYPES {
@@ -43,7 +46,6 @@ export declare enum GLOBAL_TRIGGER_TYPES {
43
46
  ON_KEY_UP = "onKeyUp"
44
47
  }
45
48
  export declare const GLOBAL_TRIGGERS: TriggerItem[];
46
- export declare const GLOBAL_TRIGGER_ARGS: Record<GLOBAL_TRIGGER_TYPES, VevProps[]>;
47
49
  export declare enum GLOBAL_EVENT_TYPES {
48
50
  SHOW = "SHOW",
49
51
  HIDE = "HIDE",
@@ -59,7 +61,6 @@ export declare enum GLOBAL_EVENT_TYPES {
59
61
  SEND_SMS = "SEND_SMS"
60
62
  }
61
63
  export declare const GLOBAL_EVENTS: TriggerItem[];
62
- export declare const GLOBAL_EVENTS_ARGS: Record<GLOBAL_EVENT_TYPES, VevProps[]>;
63
64
  export type VevTriggerType = NATIVE_TRIGGER_TYPES | CUSTOM_TRIGGER_TYPES | string;
64
65
  export type VevTrigger = {
65
66
  type: VevTriggerType;
@@ -72,6 +73,7 @@ export type ProjectInteraction = {
72
73
  key: string;
73
74
  event?: VevDispatchEvent;
74
75
  trigger?: VevTrigger;
76
+ disabled?: boolean;
75
77
  updated?: number;
76
78
  deleted?: number;
77
79
  };
@@ -1,25 +1,25 @@
1
1
  import { VevProps } from './vev-props';
2
2
  import { OAuthConfig } from './oauth';
3
3
  type KeyPart = string | number | bigint | boolean | symbol;
4
- type KvKey = KeyPart[];
5
- interface KvCommitResult {
4
+ export type EditorPluginKvKey = KeyPart[];
5
+ interface EditorPluginKvCommitResult {
6
6
  ok: true;
7
7
  versionstamp: string;
8
8
  }
9
- interface KvEntry<T> {
10
- key: KvKey;
9
+ interface EditorPluginKvEntry<T> {
10
+ key: EditorPluginKvKey;
11
11
  value: T;
12
12
  versionstamp: string;
13
13
  }
14
- export interface Kv {
15
- set: (key: KvKey, value: unknown) => Promise<KvCommitResult>;
16
- get: <T>(key: KvKey) => Promise<KvEntry<T>>;
17
- delete: (key: KvKey) => Promise<void>;
14
+ export interface EditorPluginKv {
15
+ set: (key: EditorPluginKvKey, value: unknown) => Promise<EditorPluginKvCommitResult>;
16
+ get: <T>(key: EditorPluginKvKey) => Promise<EditorPluginKvEntry<T>>;
17
+ delete: (key: EditorPluginKvKey) => Promise<void>;
18
18
  }
19
- export interface Settings {
19
+ export interface EditorPluginSettings {
20
20
  form: VevProps[];
21
21
  }
22
- export interface AssetSourceResult {
22
+ export interface EditorPluginAssetSourceResult {
23
23
  images?: {
24
24
  key: string;
25
25
  name: string;
@@ -50,12 +50,12 @@ export interface EditorPlugin<T> {
50
50
  name: string;
51
51
  type: EditorPluginType;
52
52
  form: VevProps[];
53
- handler: (request: Request, env: Record<string, string>, kv: Kv) => T | Settings;
53
+ handler: (request: Request, env: Record<string, string>, kv: EditorPluginKv) => Promise<T | EditorPluginSettings>;
54
54
  icon?: string;
55
55
  oauthConfig?: OAuthConfig;
56
56
  }
57
- export interface AssetSource extends EditorPlugin<AssetSourceResult> {
57
+ export interface EditorPluginAssetSource extends EditorPlugin<EditorPluginAssetSourceResult> {
58
58
  type: EditorPluginType.ASSET_SOURCE;
59
59
  }
60
- export type VevPluginType = AssetSource;
60
+ export type VevPluginType = EditorPluginAssetSource;
61
61
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vev/silke",
3
- "version": "1.0.20",
3
+ "version": "1.0.21",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/silke/src/index.d.ts",
@@ -32,8 +32,8 @@
32
32
  "@pmmmwh/react-refresh-webpack-plugin": "^0.5.10",
33
33
  "@uiw/codemirror-theme-dracula": "^4.12.3",
34
34
  "@uiw/react-codemirror": "^4.12.3",
35
- "@vev/react": "0.1.4",
36
- "@vev/utils": "1.2.1",
35
+ "@vev/react": "0.1.5",
36
+ "@vev/utils": "1.2.2",
37
37
  "classnames": ">=2.2.0",
38
38
  "flux": "^4.0.4",
39
39
  "lodash": "^4.17.21",
@@ -21,6 +21,10 @@
21
21
  --text-field-focus-border-color: transparent;
22
22
  }
23
23
 
24
+ .placeholder {
25
+ color: var(--text-field-disabled-placeholder-color);
26
+ font-size: var(--text-field-font-size);
27
+ }
24
28
  }
25
29
 
26
30
  .autocompleteItem {
@@ -39,11 +43,6 @@
39
43
  transition: opacity 0.5s ease-in-out, transform 0.3s ease-out;
40
44
  }
41
45
 
42
- .placeholder {
43
- color: var(--text-field-disabled-placeholder-color);
44
- font-size: var(--text-field-font-size);
45
- }
46
-
47
46
  .hiddenSearch{
48
47
  width:0;height:0;
49
48
  overflow: hidden;
@@ -525,13 +525,13 @@ export function SilkeAutocompleteField<T>(props: SilkeAutocompleteFieldProps<T>)
525
525
  ) : (
526
526
  <>
527
527
  {selectedImage && (
528
- <SilkeBox size={dropDownSize} align="center" pad="xs">
528
+ <SilkeBox width={dropDownSize} align="center" hPad="xs">
529
529
  <SilkeIcon icon={{ type: EmojiType.upload, value: { url: selectedImage } }} />
530
530
  </SilkeBox>
531
531
  )}
532
532
 
533
533
  {selectedIcon && (
534
- <SilkeBox size={dropDownSize} align="center" pad="xs">
534
+ <SilkeBox width={dropDownSize} align="center" hPad="xs">
535
535
  <SilkeIcon icon={selectedIcon} />
536
536
  </SilkeBox>
537
537
  )}
@@ -1,4 +0,0 @@
1
- export declare const keyList: {
2
- value: number;
3
- label: string;
4
- }[];