@kubex/zinc 1.1.63 → 1.1.65

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.
@@ -12949,7 +12949,17 @@
12949
12949
  "name": "formControlController",
12950
12950
  "privacy": "private",
12951
12951
  "readonly": true,
12952
- "default": "new FormControlController(this, { assumeInteractionOn: ['zn-change'], value: (el: ZnFile) => el.files })"
12952
+ "default": "new FormControlController(this, { assumeInteractionOn: ['zn-change'], // An explicitly cleared control submits an empty value so the server can // remove the stored upload; an untouched empty control submits nothing. value: (el: ZnFile) => { if (el.files?.length) return el.files; return el.clearedByUser ? '' : undefined; } })"
12953
+ },
12954
+ {
12955
+ "kind": "field",
12956
+ "name": "clearedByUser",
12957
+ "type": {
12958
+ "text": "boolean"
12959
+ },
12960
+ "privacy": "private",
12961
+ "default": "false",
12962
+ "description": "Set when the user clears the control; reset when a file is chosen."
12953
12963
  },
12954
12964
  {
12955
12965
  "kind": "field",
@@ -24837,6 +24847,34 @@
24837
24847
  "static": true,
24838
24848
  "default": "{ 'zn-collapsible': ZnCollapsible, 'zn-icon': ZnIcon, 'zn-input': ZnInput, 'zn-page-palette-item': ZnPagePaletteItem, 'zn-page-section-card': ZnPageSectionCard, }"
24839
24849
  },
24850
+ {
24851
+ "kind": "field",
24852
+ "name": "formControlController",
24853
+ "privacy": "private",
24854
+ "readonly": true,
24855
+ "default": "new FormControlController(this)"
24856
+ },
24857
+ {
24858
+ "kind": "field",
24859
+ "name": "name",
24860
+ "type": {
24861
+ "text": "string"
24862
+ },
24863
+ "default": "''",
24864
+ "description": "The name of the control, submitted as a name/value pair with form data.",
24865
+ "attribute": "name"
24866
+ },
24867
+ {
24868
+ "kind": "field",
24869
+ "name": "form",
24870
+ "type": {
24871
+ "text": "string"
24872
+ },
24873
+ "default": "''",
24874
+ "description": "Associates the control with a form by id. The form must be in the same document or shadow root.",
24875
+ "attribute": "form",
24876
+ "reflects": true
24877
+ },
24840
24878
  {
24841
24879
  "kind": "field",
24842
24880
  "name": "config",
@@ -24963,7 +25001,7 @@
24963
25001
  "kind": "field",
24964
25002
  "name": "_slotDragOver",
24965
25003
  "type": {
24966
- "text": "{containerId: string; index: number} | null"
25004
+ "text": "{ containerId: string; index: number } | null"
24967
25005
  },
24968
25006
  "privacy": "private",
24969
25007
  "default": "null",
@@ -24973,7 +25011,7 @@
24973
25011
  "kind": "field",
24974
25012
  "name": "_slotPicker",
24975
25013
  "type": {
24976
- "text": "{containerId: string; index: number} | null"
25014
+ "text": "{ containerId: string; index: number } | null"
24977
25015
  },
24978
25016
  "privacy": "private",
24979
25017
  "default": "null",
@@ -25022,6 +25060,78 @@
25022
25060
  },
25023
25061
  "description": "Replaces the page state wholesale (does not emit zn-page-change)."
25024
25062
  },
25063
+ {
25064
+ "kind": "field",
25065
+ "name": "value",
25066
+ "type": {
25067
+ "text": "string"
25068
+ },
25069
+ "description": "Replaces the page state from a JSON string (does not emit zn-page-change)."
25070
+ },
25071
+ {
25072
+ "kind": "field",
25073
+ "name": "defaultValue",
25074
+ "description": "The serialised state of the last externally loaded page — restored on form reset."
25075
+ },
25076
+ {
25077
+ "kind": "field",
25078
+ "name": "validity",
25079
+ "type": {
25080
+ "text": "ValidityState"
25081
+ },
25082
+ "description": "Gets the validity state object.",
25083
+ "readonly": true
25084
+ },
25085
+ {
25086
+ "kind": "field",
25087
+ "name": "validationMessage",
25088
+ "type": {
25089
+ "text": "string"
25090
+ },
25091
+ "description": "Gets the validation message.",
25092
+ "readonly": true
25093
+ },
25094
+ {
25095
+ "kind": "method",
25096
+ "name": "checkValidity",
25097
+ "return": {
25098
+ "type": {
25099
+ "text": "boolean"
25100
+ }
25101
+ },
25102
+ "description": "Checks for validity but does not show a validation message."
25103
+ },
25104
+ {
25105
+ "kind": "method",
25106
+ "name": "getForm",
25107
+ "return": {
25108
+ "type": {
25109
+ "text": "HTMLFormElement | null"
25110
+ }
25111
+ },
25112
+ "description": "Gets the associated form, if one exists."
25113
+ },
25114
+ {
25115
+ "kind": "method",
25116
+ "name": "reportValidity",
25117
+ "return": {
25118
+ "type": {
25119
+ "text": "boolean"
25120
+ }
25121
+ },
25122
+ "description": "Checks for validity and shows the browser's validation message if the control is invalid."
25123
+ },
25124
+ {
25125
+ "kind": "method",
25126
+ "name": "setCustomValidity",
25127
+ "parameters": [
25128
+ {
25129
+ "name": "_message",
25130
+ "default": "''"
25131
+ }
25132
+ ],
25133
+ "description": "Sets a custom validation message. Pass an empty string to restore validity."
25134
+ },
25025
25135
  {
25026
25136
  "kind": "method",
25027
25137
  "name": "handleConfigChange"
@@ -25147,7 +25257,7 @@
25147
25257
  "kind": "field",
25148
25258
  "name": "_restorePrompt",
25149
25259
  "type": {
25150
- "text": "{savedAt: number} | null"
25260
+ "text": "{ savedAt: number } | null"
25151
25261
  },
25152
25262
  "privacy": "private",
25153
25263
  "default": "null",
@@ -25185,7 +25295,7 @@
25185
25295
  "privacy": "private",
25186
25296
  "return": {
25187
25297
  "type": {
25188
- "text": "{savedAt: number; state: PageState} | null"
25298
+ "text": "{ savedAt: number; state: PageState } | null"
25189
25299
  }
25190
25300
  },
25191
25301
  "description": "The stored auto-save, purging it when past its TTL (or unreadable)."
@@ -25680,7 +25790,7 @@
25680
25790
  {
25681
25791
  "name": "drop",
25682
25792
  "type": {
25683
- "text": "{over: (e: DragEvent) => void; drop: (e: DragEvent) => void}"
25793
+ "text": "{ over: (e: DragEvent) => void; drop: (e: DragEvent) => void }"
25684
25794
  }
25685
25795
  },
25686
25796
  {
@@ -25877,6 +25987,24 @@
25877
25987
  }
25878
25988
  ],
25879
25989
  "attributes": [
25990
+ {
25991
+ "name": "name",
25992
+ "type": {
25993
+ "text": "string"
25994
+ },
25995
+ "default": "''",
25996
+ "description": "The name of the control, submitted as a name/value pair with form data.",
25997
+ "fieldName": "name"
25998
+ },
25999
+ {
26000
+ "name": "form",
26001
+ "type": {
26002
+ "text": "string"
26003
+ },
26004
+ "default": "''",
26005
+ "description": "Associates the control with a form by id. The form must be in the same document or shadow root.",
26006
+ "fieldName": "form"
26007
+ },
25880
26008
  {
25881
26009
  "name": "config",
25882
26010
  "type": {
@@ -29615,6 +29743,15 @@
29615
29743
  "default": "[]",
29616
29744
  "attribute": "show-values"
29617
29745
  },
29746
+ {
29747
+ "kind": "field",
29748
+ "name": "_usedFilterIds",
29749
+ "type": {
29750
+ "text": "Set<string>"
29751
+ },
29752
+ "privacy": "private",
29753
+ "readonly": true
29754
+ },
29618
29755
  {
29619
29756
  "kind": "field",
29620
29757
  "name": "validationMessage",
@@ -29860,7 +29997,7 @@
29860
29997
  {
29861
29998
  "name": "event",
29862
29999
  "type": {
29863
- "text": "Event | { target: ZnDatepicker | HTMLDivElement }"
30000
+ "text": "Event | {\n target: ZnDatepicker | HTMLDivElement\n }"
29864
30001
  }
29865
30002
  },
29866
30003
  {
@@ -31531,6 +31668,1013 @@
31531
31668
  }
31532
31669
  ]
31533
31670
  },
31671
+ {
31672
+ "kind": "javascript-module",
31673
+ "path": "components/remarkd-editor/remarkd-editor.js",
31674
+ "declarations": [
31675
+ {
31676
+ "kind": "class",
31677
+ "description": "",
31678
+ "name": "ZnRemarkdEditor",
31679
+ "cssParts": [
31680
+ {
31681
+ "description": "The component's base wrapper.",
31682
+ "name": "base"
31683
+ },
31684
+ {
31685
+ "description": "The always-visible block-insert toolbar.",
31686
+ "name": "toolbar"
31687
+ },
31688
+ {
31689
+ "description": "A rendered block wrapper.",
31690
+ "name": "block"
31691
+ },
31692
+ {
31693
+ "description": "The rendered remarkd output of a block.",
31694
+ "name": "rendered"
31695
+ },
31696
+ {
31697
+ "description": "The textarea shown while editing a block.",
31698
+ "name": "input"
31699
+ },
31700
+ {
31701
+ "description": "The context menu opened by typing \"/\" in a block.",
31702
+ "name": "slash-menu"
31703
+ },
31704
+ {
31705
+ "description": "The caption / alignment / size panel shown when an image block is clicked.",
31706
+ "name": "image-controls"
31707
+ }
31708
+ ],
31709
+ "members": [
31710
+ {
31711
+ "kind": "field",
31712
+ "name": "formControlController",
31713
+ "privacy": "private",
31714
+ "readonly": true,
31715
+ "default": "new FormControlController(this, { assumeInteractionOn: ['zn-input', 'zn-change'], })"
31716
+ },
31717
+ {
31718
+ "kind": "field",
31719
+ "name": "editingDraft",
31720
+ "type": {
31721
+ "text": "string"
31722
+ },
31723
+ "privacy": "private",
31724
+ "default": "''"
31725
+ },
31726
+ {
31727
+ "kind": "field",
31728
+ "name": "suppressValueSync",
31729
+ "type": {
31730
+ "text": "boolean"
31731
+ },
31732
+ "privacy": "private",
31733
+ "default": "false"
31734
+ },
31735
+ {
31736
+ "kind": "field",
31737
+ "name": "suppressBlurCommit",
31738
+ "type": {
31739
+ "text": "boolean"
31740
+ },
31741
+ "privacy": "private",
31742
+ "default": "false"
31743
+ },
31744
+ {
31745
+ "kind": "field",
31746
+ "name": "validationInput",
31747
+ "type": {
31748
+ "text": "HTMLTextAreaElement"
31749
+ },
31750
+ "privacy": "private"
31751
+ },
31752
+ {
31753
+ "kind": "field",
31754
+ "name": "blocks",
31755
+ "type": {
31756
+ "text": "string[]"
31757
+ },
31758
+ "privacy": "private",
31759
+ "default": "[]"
31760
+ },
31761
+ {
31762
+ "kind": "field",
31763
+ "name": "editingIndex",
31764
+ "type": {
31765
+ "text": "number | null"
31766
+ },
31767
+ "privacy": "private",
31768
+ "default": "null"
31769
+ },
31770
+ {
31771
+ "kind": "field",
31772
+ "name": "slashMenuOpen",
31773
+ "type": {
31774
+ "text": "boolean"
31775
+ },
31776
+ "privacy": "private",
31777
+ "default": "false"
31778
+ },
31779
+ {
31780
+ "kind": "field",
31781
+ "name": "slashQuery",
31782
+ "type": {
31783
+ "text": "string"
31784
+ },
31785
+ "privacy": "private",
31786
+ "default": "''"
31787
+ },
31788
+ {
31789
+ "kind": "field",
31790
+ "name": "slashActiveIndex",
31791
+ "type": {
31792
+ "text": "number"
31793
+ },
31794
+ "privacy": "private",
31795
+ "default": "0"
31796
+ },
31797
+ {
31798
+ "kind": "field",
31799
+ "name": "imagePickerIndex",
31800
+ "type": {
31801
+ "text": "number | null"
31802
+ },
31803
+ "privacy": "private",
31804
+ "default": "null"
31805
+ },
31806
+ {
31807
+ "kind": "field",
31808
+ "name": "imageEdit",
31809
+ "type": {
31810
+ "text": "ImageBlockData | null"
31811
+ },
31812
+ "privacy": "private",
31813
+ "default": "null"
31814
+ },
31815
+ {
31816
+ "kind": "field",
31817
+ "name": "dropIndicator",
31818
+ "type": {
31819
+ "text": "number | null"
31820
+ },
31821
+ "privacy": "private",
31822
+ "default": "null"
31823
+ },
31824
+ {
31825
+ "kind": "field",
31826
+ "name": "dragIndex",
31827
+ "type": {
31828
+ "text": "number | null"
31829
+ },
31830
+ "privacy": "private",
31831
+ "default": "null"
31832
+ },
31833
+ {
31834
+ "kind": "field",
31835
+ "name": "editShell",
31836
+ "type": {
31837
+ "text": "string"
31838
+ },
31839
+ "privacy": "private",
31840
+ "default": "''"
31841
+ },
31842
+ {
31843
+ "kind": "field",
31844
+ "name": "pendingDragHandle",
31845
+ "type": {
31846
+ "text": "HTMLElement | null"
31847
+ },
31848
+ "privacy": "private",
31849
+ "default": "null"
31850
+ },
31851
+ {
31852
+ "kind": "field",
31853
+ "name": "dragStartX",
31854
+ "type": {
31855
+ "text": "number"
31856
+ },
31857
+ "privacy": "private",
31858
+ "default": "0"
31859
+ },
31860
+ {
31861
+ "kind": "field",
31862
+ "name": "dragStartY",
31863
+ "type": {
31864
+ "text": "number"
31865
+ },
31866
+ "privacy": "private",
31867
+ "default": "0"
31868
+ },
31869
+ {
31870
+ "kind": "field",
31871
+ "name": "dragGhost",
31872
+ "type": {
31873
+ "text": "HTMLElement | null"
31874
+ },
31875
+ "privacy": "private",
31876
+ "default": "null"
31877
+ },
31878
+ {
31879
+ "kind": "field",
31880
+ "name": "name",
31881
+ "type": {
31882
+ "text": "string"
31883
+ },
31884
+ "default": "''",
31885
+ "description": "The name of the control, submitted as part of form data.",
31886
+ "attribute": "name"
31887
+ },
31888
+ {
31889
+ "kind": "field",
31890
+ "name": "value",
31891
+ "type": {
31892
+ "text": "string"
31893
+ },
31894
+ "default": "''",
31895
+ "description": "The current remarkd source.",
31896
+ "attribute": "value"
31897
+ },
31898
+ {
31899
+ "kind": "field",
31900
+ "name": "defaultValue",
31901
+ "type": {
31902
+ "text": "string"
31903
+ },
31904
+ "default": "''",
31905
+ "description": "The default value — used when resetting the form."
31906
+ },
31907
+ {
31908
+ "kind": "field",
31909
+ "name": "placeholder",
31910
+ "type": {
31911
+ "text": "string"
31912
+ },
31913
+ "default": "'Type something…'",
31914
+ "description": "Placeholder shown when the document is empty.",
31915
+ "attribute": "placeholder"
31916
+ },
31917
+ {
31918
+ "kind": "field",
31919
+ "name": "attachmentUrl",
31920
+ "type": {
31921
+ "text": "string"
31922
+ },
31923
+ "default": "''",
31924
+ "description": "Endpoint for image uploads — required for image support. Posting the file\nmetadata here must return `{uploadPath, uploadUrl}`; the file is then PUT\nto `uploadUrl` and the returned `uploadPath` is embedded as the image URL.",
31925
+ "attribute": "attachment-url"
31926
+ },
31927
+ {
31928
+ "kind": "field",
31929
+ "name": "required",
31930
+ "type": {
31931
+ "text": "boolean"
31932
+ },
31933
+ "default": "false",
31934
+ "description": "Makes the editor required for form submission.",
31935
+ "attribute": "required",
31936
+ "reflects": true
31937
+ },
31938
+ {
31939
+ "kind": "field",
31940
+ "name": "readonly",
31941
+ "type": {
31942
+ "text": "boolean"
31943
+ },
31944
+ "default": "false",
31945
+ "description": "Makes the editor read-only.",
31946
+ "attribute": "readonly",
31947
+ "reflects": true
31948
+ },
31949
+ {
31950
+ "kind": "field",
31951
+ "name": "disabled",
31952
+ "type": {
31953
+ "text": "boolean"
31954
+ },
31955
+ "default": "false",
31956
+ "description": "Disables the editor.",
31957
+ "attribute": "disabled",
31958
+ "reflects": true
31959
+ },
31960
+ {
31961
+ "kind": "field",
31962
+ "name": "validity",
31963
+ "type": {
31964
+ "text": "ValidityState"
31965
+ },
31966
+ "readonly": true
31967
+ },
31968
+ {
31969
+ "kind": "field",
31970
+ "name": "validationMessage",
31971
+ "type": {
31972
+ "text": "string"
31973
+ },
31974
+ "readonly": true
31975
+ },
31976
+ {
31977
+ "kind": "method",
31978
+ "name": "checkValidity",
31979
+ "return": {
31980
+ "type": {
31981
+ "text": "boolean"
31982
+ }
31983
+ }
31984
+ },
31985
+ {
31986
+ "kind": "method",
31987
+ "name": "getForm",
31988
+ "return": {
31989
+ "type": {
31990
+ "text": "HTMLFormElement | null"
31991
+ }
31992
+ }
31993
+ },
31994
+ {
31995
+ "kind": "method",
31996
+ "name": "reportValidity",
31997
+ "return": {
31998
+ "type": {
31999
+ "text": "boolean"
32000
+ }
32001
+ }
32002
+ },
32003
+ {
32004
+ "kind": "method",
32005
+ "name": "setCustomValidity",
32006
+ "return": {
32007
+ "type": {
32008
+ "text": "void"
32009
+ }
32010
+ },
32011
+ "parameters": [
32012
+ {
32013
+ "name": "message",
32014
+ "type": {
32015
+ "text": "string"
32016
+ }
32017
+ }
32018
+ ]
32019
+ },
32020
+ {
32021
+ "kind": "method",
32022
+ "name": "focus",
32023
+ "description": "Starts editing the first block, or a new block if the document is empty."
32024
+ },
32025
+ {
32026
+ "kind": "method",
32027
+ "name": "blur",
32028
+ "description": "Commits any in-progress block edit."
32029
+ },
32030
+ {
32031
+ "kind": "method",
32032
+ "name": "handleValueChange"
32033
+ },
32034
+ {
32035
+ "kind": "method",
32036
+ "name": "splitBlocks",
32037
+ "privacy": "private",
32038
+ "return": {
32039
+ "type": {
32040
+ "text": "string[]"
32041
+ }
32042
+ },
32043
+ "parameters": [
32044
+ {
32045
+ "name": "source",
32046
+ "type": {
32047
+ "text": "string"
32048
+ }
32049
+ }
32050
+ ],
32051
+ "description": "Splits remarkd source into blocks on blank lines, keeping fenced /\ndelimited containers (``` ==== !!!! .... ----) as single blocks."
32052
+ },
32053
+ {
32054
+ "kind": "method",
32055
+ "name": "fenceMarker",
32056
+ "privacy": "private",
32057
+ "return": {
32058
+ "type": {
32059
+ "text": "string | null"
32060
+ }
32061
+ },
32062
+ "parameters": [
32063
+ {
32064
+ "name": "line",
32065
+ "type": {
32066
+ "text": "string"
32067
+ }
32068
+ }
32069
+ ]
32070
+ },
32071
+ {
32072
+ "kind": "method",
32073
+ "name": "closesFence",
32074
+ "privacy": "private",
32075
+ "return": {
32076
+ "type": {
32077
+ "text": "boolean"
32078
+ }
32079
+ },
32080
+ "parameters": [
32081
+ {
32082
+ "name": "line",
32083
+ "type": {
32084
+ "text": "string"
32085
+ }
32086
+ },
32087
+ {
32088
+ "name": "fence",
32089
+ "type": {
32090
+ "text": "string"
32091
+ }
32092
+ }
32093
+ ]
32094
+ },
32095
+ {
32096
+ "kind": "method",
32097
+ "name": "updateBlocks",
32098
+ "privacy": "private",
32099
+ "parameters": [
32100
+ {
32101
+ "name": "blocks",
32102
+ "type": {
32103
+ "text": "string[]"
32104
+ }
32105
+ }
32106
+ ]
32107
+ },
32108
+ {
32109
+ "kind": "method",
32110
+ "name": "handleRenderedClick",
32111
+ "privacy": "private",
32112
+ "parameters": [
32113
+ {
32114
+ "name": "e",
32115
+ "type": {
32116
+ "text": "MouseEvent"
32117
+ }
32118
+ },
32119
+ {
32120
+ "name": "index",
32121
+ "type": {
32122
+ "text": "number"
32123
+ }
32124
+ }
32125
+ ]
32126
+ },
32127
+ {
32128
+ "kind": "method",
32129
+ "name": "parseImageBlock",
32130
+ "privacy": "private",
32131
+ "return": {
32132
+ "type": {
32133
+ "text": "ImageBlockData | null"
32134
+ }
32135
+ },
32136
+ "parameters": [
32137
+ {
32138
+ "name": "block",
32139
+ "type": {
32140
+ "text": "string"
32141
+ }
32142
+ }
32143
+ ],
32144
+ "description": "Parses a block that is purely an image (with optional caption/align lines)."
32145
+ },
32146
+ {
32147
+ "kind": "method",
32148
+ "name": "serializeImageBlock",
32149
+ "privacy": "private",
32150
+ "return": {
32151
+ "type": {
32152
+ "text": "string"
32153
+ }
32154
+ },
32155
+ "parameters": [
32156
+ {
32157
+ "name": "data",
32158
+ "type": {
32159
+ "text": "ImageBlockData"
32160
+ }
32161
+ }
32162
+ ]
32163
+ },
32164
+ {
32165
+ "kind": "method",
32166
+ "name": "toggleCheckbox",
32167
+ "privacy": "private",
32168
+ "parameters": [
32169
+ {
32170
+ "name": "index",
32171
+ "type": {
32172
+ "text": "number"
32173
+ }
32174
+ },
32175
+ {
32176
+ "name": "checkbox",
32177
+ "type": {
32178
+ "text": "HTMLInputElement"
32179
+ }
32180
+ }
32181
+ ]
32182
+ },
32183
+ {
32184
+ "kind": "method",
32185
+ "name": "startEdit",
32186
+ "privacy": "private",
32187
+ "parameters": [
32188
+ {
32189
+ "name": "index",
32190
+ "type": {
32191
+ "text": "number"
32192
+ }
32193
+ },
32194
+ {
32195
+ "name": "draft",
32196
+ "optional": true,
32197
+ "type": {
32198
+ "text": "string"
32199
+ }
32200
+ }
32201
+ ]
32202
+ },
32203
+ {
32204
+ "kind": "method",
32205
+ "name": "updateImageEdit",
32206
+ "privacy": "private",
32207
+ "parameters": [
32208
+ {
32209
+ "name": "patch",
32210
+ "type": {
32211
+ "text": "Partial<ImageBlockData>"
32212
+ }
32213
+ }
32214
+ ]
32215
+ },
32216
+ {
32217
+ "kind": "field",
32218
+ "name": "saveImageEdit",
32219
+ "privacy": "private"
32220
+ },
32221
+ {
32222
+ "kind": "field",
32223
+ "name": "closeImageEdit",
32224
+ "privacy": "private"
32225
+ },
32226
+ {
32227
+ "kind": "field",
32228
+ "name": "deleteImageBlock",
32229
+ "privacy": "private"
32230
+ },
32231
+ {
32232
+ "kind": "field",
32233
+ "name": "editImageSource",
32234
+ "privacy": "private"
32235
+ },
32236
+ {
32237
+ "kind": "field",
32238
+ "name": "handleImageControlsKeydown",
32239
+ "privacy": "private"
32240
+ },
32241
+ {
32242
+ "kind": "method",
32243
+ "name": "computeEditShell",
32244
+ "privacy": "private",
32245
+ "return": {
32246
+ "type": {
32247
+ "text": "string"
32248
+ }
32249
+ },
32250
+ "parameters": [
32251
+ {
32252
+ "name": "draft",
32253
+ "type": {
32254
+ "text": "string"
32255
+ }
32256
+ }
32257
+ ],
32258
+ "description": "The remarkd chrome the editing block should keep, derived from its first\nline — so a NOTE still looks like a note while its source is edited."
32259
+ },
32260
+ {
32261
+ "kind": "method",
32262
+ "name": "focusInput",
32263
+ "privacy": "private"
32264
+ },
32265
+ {
32266
+ "kind": "method",
32267
+ "name": "addBlockAt",
32268
+ "privacy": "private",
32269
+ "parameters": [
32270
+ {
32271
+ "name": "index",
32272
+ "type": {
32273
+ "text": "number"
32274
+ }
32275
+ },
32276
+ {
32277
+ "name": "content",
32278
+ "type": {
32279
+ "text": "string"
32280
+ }
32281
+ }
32282
+ ]
32283
+ },
32284
+ {
32285
+ "kind": "method",
32286
+ "name": "deleteBlock",
32287
+ "privacy": "private",
32288
+ "parameters": [
32289
+ {
32290
+ "name": "index",
32291
+ "type": {
32292
+ "text": "number"
32293
+ }
32294
+ }
32295
+ ]
32296
+ },
32297
+ {
32298
+ "kind": "method",
32299
+ "name": "insertDraftBlock",
32300
+ "privacy": "private",
32301
+ "parameters": [
32302
+ {
32303
+ "name": "index",
32304
+ "type": {
32305
+ "text": "number"
32306
+ }
32307
+ },
32308
+ {
32309
+ "name": "prefill",
32310
+ "default": "''"
32311
+ }
32312
+ ],
32313
+ "description": "Inserts a draft block — committed (or dropped, if left empty) on blur."
32314
+ },
32315
+ {
32316
+ "kind": "field",
32317
+ "name": "handleEditBlur",
32318
+ "privacy": "private",
32319
+ "description": "Blur handler for the editing textarea. Re-renders that replace the\nfocused textarea (e.g. Shift+Enter committing and opening the next\nblock) fire blur mid-transition — `suppressBlurCommit` masks those."
32320
+ },
32321
+ {
32322
+ "kind": "field",
32323
+ "name": "commitEdit",
32324
+ "privacy": "private",
32325
+ "description": "Commits the in-progress edit; returns the index after the committed parts."
32326
+ },
32327
+ {
32328
+ "kind": "field",
32329
+ "name": "filteredSlashItems",
32330
+ "type": {
32331
+ "text": "BlockType[]"
32332
+ },
32333
+ "privacy": "private",
32334
+ "readonly": true
32335
+ },
32336
+ {
32337
+ "kind": "field",
32338
+ "name": "handleDraftInput",
32339
+ "privacy": "private"
32340
+ },
32341
+ {
32342
+ "kind": "field",
32343
+ "name": "handleEditKeydown",
32344
+ "privacy": "private"
32345
+ },
32346
+ {
32347
+ "kind": "method",
32348
+ "name": "applySlashItem",
32349
+ "privacy": "private",
32350
+ "parameters": [
32351
+ {
32352
+ "name": "item",
32353
+ "type": {
32354
+ "text": "BlockType"
32355
+ }
32356
+ }
32357
+ ]
32358
+ },
32359
+ {
32360
+ "kind": "field",
32361
+ "name": "handleEditPaste",
32362
+ "privacy": "private"
32363
+ },
32364
+ {
32365
+ "kind": "field",
32366
+ "name": "handleDragOver",
32367
+ "privacy": "private"
32368
+ },
32369
+ {
32370
+ "kind": "field",
32371
+ "name": "handleDrop",
32372
+ "privacy": "private"
32373
+ },
32374
+ {
32375
+ "kind": "method",
32376
+ "name": "insertionIndexFromY",
32377
+ "privacy": "private",
32378
+ "return": {
32379
+ "type": {
32380
+ "text": "number"
32381
+ }
32382
+ },
32383
+ "parameters": [
32384
+ {
32385
+ "name": "y",
32386
+ "type": {
32387
+ "text": "number"
32388
+ }
32389
+ }
32390
+ ],
32391
+ "description": "The insertion index a drop at `y` maps to, from the rendered block positions."
32392
+ },
32393
+ {
32394
+ "kind": "field",
32395
+ "name": "handleHandlePointerDown",
32396
+ "privacy": "private"
32397
+ },
32398
+ {
32399
+ "kind": "field",
32400
+ "name": "handleDragPointerMove",
32401
+ "privacy": "private"
32402
+ },
32403
+ {
32404
+ "kind": "field",
32405
+ "name": "handleDragPointerUp",
32406
+ "privacy": "private"
32407
+ },
32408
+ {
32409
+ "kind": "field",
32410
+ "name": "cancelDrag",
32411
+ "privacy": "private"
32412
+ },
32413
+ {
32414
+ "kind": "method",
32415
+ "name": "createDragGhost",
32416
+ "privacy": "private",
32417
+ "parameters": [
32418
+ {
32419
+ "name": "index",
32420
+ "type": {
32421
+ "text": "number"
32422
+ }
32423
+ }
32424
+ ]
32425
+ },
32426
+ {
32427
+ "kind": "method",
32428
+ "name": "moveDragGhost",
32429
+ "privacy": "private",
32430
+ "parameters": [
32431
+ {
32432
+ "name": "x",
32433
+ "type": {
32434
+ "text": "number"
32435
+ }
32436
+ },
32437
+ {
32438
+ "name": "y",
32439
+ "type": {
32440
+ "text": "number"
32441
+ }
32442
+ }
32443
+ ]
32444
+ },
32445
+ {
32446
+ "kind": "method",
32447
+ "name": "pickImage",
32448
+ "privacy": "private",
32449
+ "parameters": [
32450
+ {
32451
+ "name": "index",
32452
+ "type": {
32453
+ "text": "number"
32454
+ }
32455
+ }
32456
+ ]
32457
+ },
32458
+ {
32459
+ "kind": "field",
32460
+ "name": "closeImagePicker",
32461
+ "privacy": "private"
32462
+ },
32463
+ {
32464
+ "kind": "field",
32465
+ "name": "handleImagePicked",
32466
+ "privacy": "private"
32467
+ },
32468
+ {
32469
+ "kind": "method",
32470
+ "name": "insertImage",
32471
+ "privacy": "private",
32472
+ "parameters": [
32473
+ {
32474
+ "name": "file",
32475
+ "type": {
32476
+ "text": "File"
32477
+ }
32478
+ },
32479
+ {
32480
+ "name": "index",
32481
+ "type": {
32482
+ "text": "number"
32483
+ }
32484
+ }
32485
+ ]
32486
+ },
32487
+ {
32488
+ "kind": "method",
32489
+ "name": "uploadImage",
32490
+ "privacy": "private",
32491
+ "return": {
32492
+ "type": {
32493
+ "text": "Promise<string>"
32494
+ }
32495
+ },
32496
+ "parameters": [
32497
+ {
32498
+ "name": "file",
32499
+ "type": {
32500
+ "text": "File"
32501
+ }
32502
+ }
32503
+ ]
32504
+ },
32505
+ {
32506
+ "kind": "method",
32507
+ "name": "autosize",
32508
+ "privacy": "private",
32509
+ "parameters": [
32510
+ {
32511
+ "name": "input",
32512
+ "type": {
32513
+ "text": "HTMLTextAreaElement"
32514
+ }
32515
+ }
32516
+ ]
32517
+ },
32518
+ {
32519
+ "kind": "method",
32520
+ "name": "handleToolbarInsert",
32521
+ "privacy": "private",
32522
+ "parameters": [
32523
+ {
32524
+ "name": "item",
32525
+ "type": {
32526
+ "text": "BlockType"
32527
+ }
32528
+ }
32529
+ ]
32530
+ },
32531
+ {
32532
+ "kind": "method",
32533
+ "name": "renderSlashMenu",
32534
+ "privacy": "private"
32535
+ },
32536
+ {
32537
+ "kind": "method",
32538
+ "name": "renderImageControls",
32539
+ "privacy": "private"
32540
+ },
32541
+ {
32542
+ "kind": "method",
32543
+ "name": "renderBlock",
32544
+ "privacy": "private",
32545
+ "parameters": [
32546
+ {
32547
+ "name": "block",
32548
+ "type": {
32549
+ "text": "string"
32550
+ }
32551
+ },
32552
+ {
32553
+ "name": "index",
32554
+ "type": {
32555
+ "text": "number"
32556
+ }
32557
+ }
32558
+ ]
32559
+ },
32560
+ {
32561
+ "kind": "method",
32562
+ "name": "renderBody",
32563
+ "privacy": "private",
32564
+ "description": "The block views, with the inline image picker spliced in when active."
32565
+ },
32566
+ {
32567
+ "kind": "method",
32568
+ "name": "renderImagePicker",
32569
+ "privacy": "private"
32570
+ }
32571
+ ],
32572
+ "events": [
32573
+ {
32574
+ "description": "Emitted on each keystroke while editing a block.",
32575
+ "name": "zn-input"
32576
+ },
32577
+ {
32578
+ "description": "Emitted when a block edit is committed and the value changes.",
32579
+ "name": "zn-change"
32580
+ }
32581
+ ],
32582
+ "attributes": [
32583
+ {
32584
+ "name": "name",
32585
+ "type": {
32586
+ "text": "string"
32587
+ },
32588
+ "default": "''",
32589
+ "description": "The name of the control, submitted as part of form data.",
32590
+ "fieldName": "name"
32591
+ },
32592
+ {
32593
+ "name": "value",
32594
+ "type": {
32595
+ "text": "string"
32596
+ },
32597
+ "default": "''",
32598
+ "description": "The current remarkd source.",
32599
+ "fieldName": "value"
32600
+ },
32601
+ {
32602
+ "name": "placeholder",
32603
+ "type": {
32604
+ "text": "string"
32605
+ },
32606
+ "default": "'Type something…'",
32607
+ "description": "Placeholder shown when the document is empty.",
32608
+ "fieldName": "placeholder"
32609
+ },
32610
+ {
32611
+ "name": "attachment-url",
32612
+ "type": {
32613
+ "text": "string"
32614
+ },
32615
+ "default": "''",
32616
+ "description": "Endpoint for image uploads — required for image support. Posting the file\nmetadata here must return `{uploadPath, uploadUrl}`; the file is then PUT\nto `uploadUrl` and the returned `uploadPath` is embedded as the image URL.",
32617
+ "fieldName": "attachmentUrl"
32618
+ },
32619
+ {
32620
+ "name": "required",
32621
+ "type": {
32622
+ "text": "boolean"
32623
+ },
32624
+ "default": "false",
32625
+ "description": "Makes the editor required for form submission.",
32626
+ "fieldName": "required"
32627
+ },
32628
+ {
32629
+ "name": "readonly",
32630
+ "type": {
32631
+ "text": "boolean"
32632
+ },
32633
+ "default": "false",
32634
+ "description": "Makes the editor read-only.",
32635
+ "fieldName": "readonly"
32636
+ },
32637
+ {
32638
+ "name": "disabled",
32639
+ "type": {
32640
+ "text": "boolean"
32641
+ },
32642
+ "default": "false",
32643
+ "description": "Disables the editor.",
32644
+ "fieldName": "disabled"
32645
+ }
32646
+ ],
32647
+ "superclass": {
32648
+ "name": "ZincElement",
32649
+ "module": "/src/internal/zinc-element"
32650
+ },
32651
+ "summary": "A Notion-style block editor for remarkd content. Blocks render inline; click one to edit its source.",
32652
+ "tagNameWithoutPrefix": "remarkd-editor",
32653
+ "tagName": "zn-remarkd-editor",
32654
+ "customElement": true,
32655
+ "jsDoc": "/**\n * @summary A Notion-style block editor for remarkd content. Blocks render inline; click one to edit its source.\n * @documentation https://zinc.style/components/remarkd-editor\n * @status experimental\n * @since 1.0\n *\n * @dependency zn-button\n * @dependency zn-button-group\n * @dependency zn-icon\n * @dependency zn-file\n *\n * @event zn-input - Emitted on each keystroke while editing a block.\n * @event zn-change - Emitted when a block edit is committed and the value changes.\n *\n * @csspart base - The component's base wrapper.\n * @csspart toolbar - The always-visible block-insert toolbar.\n * @csspart block - A rendered block wrapper.\n * @csspart rendered - The rendered remarkd output of a block.\n * @csspart input - The textarea shown while editing a block.\n * @csspart slash-menu - The context menu opened by typing \"/\" in a block.\n * @csspart image-controls - The caption / alignment / size panel shown when an image block is clicked.\n */",
32656
+ "documentation": "https://zinc.style/components/remarkd-editor",
32657
+ "status": "experimental",
32658
+ "since": "1.0",
32659
+ "dependencies": [
32660
+ "zn-button",
32661
+ "zn-button-group",
32662
+ "zn-icon",
32663
+ "zn-file"
32664
+ ]
32665
+ }
32666
+ ],
32667
+ "exports": [
32668
+ {
32669
+ "kind": "js",
32670
+ "name": "default",
32671
+ "declaration": {
32672
+ "name": "ZnRemarkdEditor",
32673
+ "module": "components/remarkd-editor/remarkd-editor.js"
32674
+ }
32675
+ }
32676
+ ]
32677
+ },
31534
32678
  {
31535
32679
  "kind": "javascript-module",
31536
32680
  "path": "components/reveal/reveal.js",
@@ -41157,7 +42301,7 @@
41157
42301
  "package": {
41158
42302
  "name": "@kubex/zinc",
41159
42303
  "description": "A collection of web components for building web applications based off of @shoelace-style/Shoelace",
41160
- "version": "1.1.63",
42304
+ "version": "1.1.65",
41161
42305
  "author": "",
41162
42306
  "license": "MIT"
41163
42307
  }