@fileverse-dev/fortune-react 1.0.2-mod-115 → 1.0.2
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/index.esm.js +292 -293
- package/dist/index.js +292 -293
- package/dist/index.umd.js +345 -346
- package/dist/index.umd.min.js +7 -7
- package/dist/packages/core/src/api/cell.d.ts +10 -0
- package/dist/packages/core/src/api/common.d.ts +66 -0
- package/dist/packages/core/src/api/errors.d.ts +2 -0
- package/dist/packages/core/src/api/index.d.ts +9 -0
- package/dist/packages/core/src/api/merge.d.ts +5 -0
- package/dist/packages/core/src/api/range.d.ts +22 -0
- package/dist/packages/core/src/api/rowcol.d.ts +14 -0
- package/dist/packages/core/src/api/sheet.d.ts +10 -0
- package/dist/packages/core/src/api/workbook.d.ts +15 -0
- package/dist/packages/core/src/canvas.d.ts +46 -0
- package/dist/packages/core/src/context.d.ts +197 -0
- package/dist/packages/core/src/events/copy.d.ts +2 -0
- package/dist/packages/core/src/events/index.d.ts +4 -0
- package/dist/packages/core/src/events/keyboard.d.ts +6 -0
- package/dist/packages/core/src/events/mouse.d.ts +22 -0
- package/dist/packages/core/src/events/paste.d.ts +3 -0
- package/dist/packages/core/src/index.d.ts +10 -0
- package/dist/packages/core/src/locale/en.d.ts +992 -0
- package/dist/packages/core/src/locale/es.d.ts +1134 -0
- package/dist/packages/core/src/locale/hi.d.ts +1030 -0
- package/dist/packages/core/src/locale/index.d.ts +1049 -0
- package/dist/packages/core/src/locale/zh.d.ts +1048 -0
- package/dist/packages/core/src/locale/zh_tw.d.ts +1187 -0
- package/dist/packages/core/src/modules/ConditionFormat.d.ts +17 -0
- package/dist/packages/core/src/modules/border.d.ts +3 -0
- package/dist/packages/core/src/modules/cell.d.ts +32 -0
- package/dist/packages/core/src/modules/clipboard.d.ts +3 -0
- package/dist/packages/core/src/modules/color.d.ts +1 -0
- package/dist/packages/core/src/modules/comment.d.ts +97 -0
- package/dist/packages/core/src/modules/conditionalFormat.d.ts +2 -0
- package/dist/packages/core/src/modules/cursor.d.ts +3 -0
- package/dist/packages/core/src/modules/dataVerification.d.ts +11 -0
- package/dist/packages/core/src/modules/dropCell.d.ts +10 -0
- package/dist/packages/core/src/modules/filter.d.ts +45 -0
- package/dist/packages/core/src/modules/format.d.ts +6 -0
- package/dist/packages/core/src/modules/formula.d.ts +54 -0
- package/dist/packages/core/src/modules/freeze.d.ts +5 -0
- package/dist/packages/core/src/modules/hyperlink.d.ts +21 -0
- package/dist/packages/core/src/modules/iframe.d.ts +12 -0
- package/dist/packages/core/src/modules/image.d.ts +31 -0
- package/dist/packages/core/src/modules/index.d.ts +36 -0
- package/dist/packages/core/src/modules/inline-string.d.ts +36 -0
- package/dist/packages/core/src/modules/location.d.ts +6 -0
- package/dist/packages/core/src/modules/locationCondition.d.ts +21 -0
- package/dist/packages/core/src/modules/merge.d.ts +3 -0
- package/dist/packages/core/src/modules/mobile.d.ts +5 -0
- package/dist/packages/core/src/modules/moveCells.d.ts +5 -0
- package/dist/packages/core/src/modules/protection.d.ts +5 -0
- package/dist/packages/core/src/modules/refresh.d.ts +3 -0
- package/dist/packages/core/src/modules/rowcol.d.ts +19 -0
- package/dist/packages/core/src/modules/screenshot.d.ts +2 -0
- package/dist/packages/core/src/modules/searchReplace.d.ts +36 -0
- package/dist/packages/core/src/modules/selection.d.ts +46 -0
- package/dist/packages/core/src/modules/sheet.d.ts +10 -0
- package/dist/packages/core/src/modules/sort.d.ts +7 -0
- package/dist/packages/core/src/modules/splitColumn.d.ts +5 -0
- package/dist/packages/core/src/modules/text.d.ts +10 -0
- package/dist/packages/core/src/modules/toolbar.d.ts +32 -0
- package/dist/packages/core/src/modules/validation.d.ts +19 -0
- package/dist/packages/core/src/modules/zoom.d.ts +3 -0
- package/dist/packages/core/src/settings.d.ts +100 -0
- package/dist/packages/core/src/types.d.ts +371 -0
- package/dist/packages/core/src/utils/freeze.d.ts +7 -0
- package/dist/packages/core/src/utils/index.d.ts +18 -0
- package/dist/packages/core/src/utils/patch.d.ts +37 -0
- package/dist/{components → packages/react/src/components}/Workbook/index.d.ts +22 -22
- package/dist/stories/API.stories.d.ts +1210 -0
- package/dist/stories/Collabration.stories.d.ts +2359 -0
- package/dist/stories/Features.stories.d.ts +9430 -0
- package/dist/stories/data/cell.d.ts +983 -0
- package/dist/stories/data/dataVerification.d.ts +131 -0
- package/dist/stories/data/empty.d.ts +10 -0
- package/dist/stories/data/formula.d.ts +362 -0
- package/dist/stories/data/freeze.d.ts +34 -0
- package/dist/stories/data/protected.d.ts +40 -0
- package/dist/stories/utils.d.ts +1 -0
- package/package.json +4 -2
- /package/dist/{components → packages/react/src/components}/ChangeColor/index.d.ts +0 -0
- /package/dist/{components → packages/react/src/components}/ConditionFormat/ConditionRules.d.ts +0 -0
- /package/dist/{components → packages/react/src/components}/ConditionFormat/index.d.ts +0 -0
- /package/dist/{components → packages/react/src/components}/ContextMenu/Divider.d.ts +0 -0
- /package/dist/{components → packages/react/src/components}/ContextMenu/FilterMenu.d.ts +0 -0
- /package/dist/{components → packages/react/src/components}/ContextMenu/Menu.d.ts +0 -0
- /package/dist/{components → packages/react/src/components}/ContextMenu/SheetTab.d.ts +0 -0
- /package/dist/{components → packages/react/src/components}/ContextMenu/index.d.ts +0 -0
- /package/dist/{components → packages/react/src/components}/CustomSort/index.d.ts +0 -0
- /package/dist/{components → packages/react/src/components}/DataVerification/DropdownList.d.ts +0 -0
- /package/dist/{components → packages/react/src/components}/DataVerification/RangeDialog.d.ts +0 -0
- /package/dist/{components → packages/react/src/components}/DataVerification/getDisplayedRangeTxt.d.ts +0 -0
- /package/dist/{components → packages/react/src/components}/DataVerification/index.d.ts +0 -0
- /package/dist/{components → packages/react/src/components}/Dialog/index.d.ts +0 -0
- /package/dist/{components → packages/react/src/components}/DuneChartsInputModal/DuneChartsInputModal.d.ts +0 -0
- /package/dist/{components → packages/react/src/components}/DunePreview/DunePreview.d.ts +0 -0
- /package/dist/{components → packages/react/src/components}/FilterOption/index.d.ts +0 -0
- /package/dist/{components → packages/react/src/components}/FormatSearch/index.d.ts +0 -0
- /package/dist/{components → packages/react/src/components}/FormulaSearch/index.d.ts +0 -0
- /package/dist/{components → packages/react/src/components}/FxEditor/NameBox.d.ts +0 -0
- /package/dist/{components → packages/react/src/components}/FxEditor/index.d.ts +0 -0
- /package/dist/{components → packages/react/src/components}/IFrameBoxs/iFrameBoxs.d.ts +0 -0
- /package/dist/{components → packages/react/src/components}/ImgBoxs/index.d.ts +0 -0
- /package/dist/{components → packages/react/src/components}/LinkEidtCard/index.d.ts +0 -0
- /package/dist/{components → packages/react/src/components}/LocationCondition/index.d.ts +0 -0
- /package/dist/{components → packages/react/src/components}/MessageBox/index.d.ts +0 -0
- /package/dist/{components → packages/react/src/components}/NotationBoxes/index.d.ts +0 -0
- /package/dist/{components → packages/react/src/components}/ResetColumnWidth/index.d.ts +0 -0
- /package/dist/{components → packages/react/src/components}/SVGDefines.d.ts +0 -0
- /package/dist/{components → packages/react/src/components}/SVGIcon.d.ts +0 -0
- /package/dist/{components → packages/react/src/components}/SearchReplace/index.d.ts +0 -0
- /package/dist/{components → packages/react/src/components}/Sheet/index.d.ts +0 -0
- /package/dist/{components → packages/react/src/components}/SheetList/SheetHiddenButton.d.ts +0 -0
- /package/dist/{components → packages/react/src/components}/SheetList/SheetListItem.d.ts +0 -0
- /package/dist/{components → packages/react/src/components}/SheetList/index.d.ts +0 -0
- /package/dist/{components → packages/react/src/components}/SheetOverlay/ColumnHeader.d.ts +0 -0
- /package/dist/{components → packages/react/src/components}/SheetOverlay/ContentEditable.d.ts +0 -0
- /package/dist/{components → packages/react/src/components}/SheetOverlay/FormulaHint/index.d.ts +0 -0
- /package/dist/{components → packages/react/src/components}/SheetOverlay/FormulaSearch/constant.d.ts +0 -0
- /package/dist/{components → packages/react/src/components}/SheetOverlay/FormulaSearch/index.d.ts +0 -0
- /package/dist/{components → packages/react/src/components}/SheetOverlay/InputBox.d.ts +0 -0
- /package/dist/{components → packages/react/src/components}/SheetOverlay/RowHeader.d.ts +0 -0
- /package/dist/{components → packages/react/src/components}/SheetOverlay/ScrollBar/index.d.ts +0 -0
- /package/dist/{components → packages/react/src/components}/SheetOverlay/index.d.ts +0 -0
- /package/dist/{components → packages/react/src/components}/SheetTab/SheetItem.d.ts +0 -0
- /package/dist/{components → packages/react/src/components}/SheetTab/index.d.ts +0 -0
- /package/dist/{components → packages/react/src/components}/SplitColumn/index.d.ts +0 -0
- /package/dist/{components → packages/react/src/components}/Toolbar/Button.d.ts +0 -0
- /package/dist/{components → packages/react/src/components}/Toolbar/ColorPicker.d.ts +0 -0
- /package/dist/{components → packages/react/src/components}/Toolbar/Combo.d.ts +0 -0
- /package/dist/{components → packages/react/src/components}/Toolbar/CustomBorder.d.ts +0 -0
- /package/dist/{components → packages/react/src/components}/Toolbar/CustomButton.d.ts +0 -0
- /package/dist/{components → packages/react/src/components}/Toolbar/CustomColor.d.ts +0 -0
- /package/dist/{components → packages/react/src/components}/Toolbar/CustomIcon.d.ts +0 -0
- /package/dist/{components → packages/react/src/components}/Toolbar/Divider.d.ts +0 -0
- /package/dist/{components → packages/react/src/components}/Toolbar/MoreItemsContainer.d.ts +0 -0
- /package/dist/{components → packages/react/src/components}/Toolbar/Select.d.ts +0 -0
- /package/dist/{components → packages/react/src/components}/Toolbar/index.d.ts +0 -0
- /package/dist/{components → packages/react/src/components}/Workbook/api.d.ts +0 -0
- /package/dist/{components → packages/react/src/components}/ZoomControl/index.d.ts +0 -0
- /package/dist/{components → packages/react/src/components}/index.d.ts +0 -0
- /package/dist/{constants.d.ts → packages/react/src/constants.d.ts} +0 -0
- /package/dist/{context → packages/react/src/context}/index.d.ts +0 -0
- /package/dist/{context → packages/react/src/context}/modal.d.ts +0 -0
- /package/dist/{hooks → packages/react/src/hooks}/useAlert.d.ts +0 -0
- /package/dist/{hooks → packages/react/src/hooks}/useDialog.d.ts +0 -0
- /package/dist/{hooks → packages/react/src/hooks}/useOutsideClick.d.ts +0 -0
- /package/dist/{hooks → packages/react/src/hooks}/usePrevious.d.ts +0 -0
- /package/dist/{index.d.ts → packages/react/src/index.d.ts} +0 -0
- /package/dist/{utils → packages/react/src/utils}/datepickerStyles.d.ts +0 -0
package/dist/index.esm.js
CHANGED
|
@@ -796,331 +796,331 @@ var ContentEditable = function ContentEditable(_ref) {
|
|
|
796
796
|
};
|
|
797
797
|
|
|
798
798
|
var UNFilter = [{
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
799
|
+
API_KEY: "ETHERSCAN_API_KEY",
|
|
800
|
+
LOGO: "https://etherscan.io/images/favicon3.ico",
|
|
801
|
+
BRAND_COLOR: "#F6F7F8",
|
|
802
|
+
BRAND_SECONDARY_COLOR: "#21325B",
|
|
803
|
+
n: "EOA",
|
|
804
|
+
t: 20,
|
|
805
|
+
d: "Fetches address data like transactions, balances, or portfolio info from multiple supported chains.",
|
|
806
|
+
a: "Dynamically queries blockchain data such as transactions and balances by resolving time ranges to block ranges and supporting pagination.",
|
|
807
|
+
p: [{
|
|
808
|
+
name: "addresses",
|
|
809
|
+
detail: "One or more addresses (comma-separated) to query.",
|
|
810
|
+
example: '"vitalik.eth"',
|
|
811
|
+
require: "m",
|
|
812
|
+
type: "string"
|
|
813
813
|
}, {
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
814
|
+
name: "categories",
|
|
815
|
+
detail: 'Type of data to fetch. Supported values: "txns", "balance".',
|
|
816
|
+
example: '"txns"',
|
|
817
|
+
require: "m",
|
|
818
|
+
type: "string"
|
|
819
819
|
}, {
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
820
|
+
name: "chain",
|
|
821
|
+
detail: 'Blockchain network(s) to query. Supported values: "ethereum", "gnosis", "base". Accepts comma-separated values.',
|
|
822
|
+
example: '"ethereum"',
|
|
823
|
+
require: "m",
|
|
824
|
+
type: "string"
|
|
825
825
|
}, {
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
826
|
+
name: "startTime",
|
|
827
|
+
detail: "Used to calculate starting block for transaction queries.",
|
|
828
|
+
example: '"01/01/2024"',
|
|
829
|
+
require: "m",
|
|
830
|
+
type: "string"
|
|
831
831
|
}, {
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
832
|
+
name: "endTime",
|
|
833
|
+
detail: "Used to calculate ending block for transaction queries.",
|
|
834
|
+
example: '"01/06/2024"',
|
|
835
|
+
require: "m",
|
|
836
|
+
type: "string"
|
|
837
837
|
}, {
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
838
|
+
name: "page",
|
|
839
|
+
detail: "The page number for paginated transaction results. Only used when category is 'txns'. Default is 1",
|
|
840
|
+
example: "1",
|
|
841
|
+
require: "o",
|
|
842
|
+
type: "number"
|
|
843
843
|
}, {
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
844
|
+
name: "offset",
|
|
845
|
+
detail: "The number of results to return per page (limit). Only used when category is 'txns'. Default is 10",
|
|
846
|
+
example: "10",
|
|
847
|
+
require: "o",
|
|
848
|
+
type: "number"
|
|
849
849
|
}]
|
|
850
850
|
}, {
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
851
|
+
LOGO: "https://files.readme.io/06394e687778e238a6cd43de6e1d7d339043aa50054703f64606369352ef1864-VariantCG-Symbol-Color.png",
|
|
852
|
+
BRAND_COLOR: "#f8fdf8",
|
|
853
|
+
BRAND_SECONDARY_COLOR: "#4bc63d",
|
|
854
|
+
n: "COINGECKO",
|
|
855
|
+
t: 20,
|
|
856
|
+
API_KEY: "COINGECKO_API_KEY",
|
|
857
|
+
d: "Query crypto prices, ecosystem market data, stablecoins, or derivatives from CoinGecko.",
|
|
858
|
+
a: 'Supports querying: "price" for specific tokens "market" for ecosystem categories (ETH, BASE, SOL, GNOSIS, HYPERLIQUID, BITCOIN, PUMP)\n- "stablecoins" for stablecoin categories like "crypto-backed-stablecoin"\n- "derivatives" globally or per exchange.\nPagination is supported for all except single-exchange derivatives.',
|
|
859
|
+
p: [{
|
|
860
|
+
name: "category",
|
|
861
|
+
detail: 'Query type: "price", "market", "stablecoins", or "derivatives".',
|
|
862
|
+
example: '"stablecoins"',
|
|
863
|
+
require: "m"
|
|
864
864
|
}, {
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
865
|
+
name: "param1",
|
|
866
|
+
detail: 'If "price" then - eg. "BTC", "ETH", OR any token on coingecko\n\nIf "market": one of "all", "base", "meme", "aiagents", "bitcoin", "ethereum", "hyperliquid", "pump", "solana".\n\nIf "stablecoins": one of "all", "yield-bearing-stablecoins", "crypto-backed-stablecoin".\n\nIf "derivatives": exchange name (e.g., "binance_futures").',
|
|
867
|
+
example: '"yield-bearing-stablecoins"',
|
|
868
|
+
require: "m"
|
|
869
869
|
}, {
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
870
|
+
name: "param2",
|
|
871
|
+
detail: 'If "market" and "stablecoins" then eg. "1h", "24h", "7d".',
|
|
872
|
+
example: '"1h,24h,7d"',
|
|
873
|
+
require: "o"
|
|
874
874
|
}]
|
|
875
875
|
}, {
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
876
|
+
API_KEY: "DEFILLAMA_API_KEY",
|
|
877
|
+
LOGO: "https://defillama.com/favicon-32x32.png",
|
|
878
|
+
BRAND_COLOR: "#f8f5fc",
|
|
879
|
+
BRAND_SECONDARY_COLOR: "#855dcd",
|
|
880
|
+
n: "DEFILLAMA",
|
|
881
|
+
t: 20,
|
|
882
|
+
d: "Fetches content from Defillama.",
|
|
883
|
+
a: "Retrieves data from Defillama.",
|
|
884
|
+
p: [{
|
|
885
|
+
name: "category",
|
|
886
|
+
detail: "Type of content to fetch. Supports 'protocols', 'yields', 'dex', or 'fees'.",
|
|
887
|
+
example: '"protocols"',
|
|
888
|
+
require: "m",
|
|
889
|
+
type: "string"
|
|
890
890
|
}]
|
|
891
891
|
}, {
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
892
|
+
API_KEY: "BASESCAN_API_KEY",
|
|
893
|
+
LOGO: "https://2064089921-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FevP3L0cUvP9xmRefuzCm%2Fuploads%2F2K1pvFsE7JAfcI3LAxYl%2Fbase-logo-in-blue.webp?alt=media&token=32c80439-dbdc-432a-b199-220e012efc3c",
|
|
894
|
+
BRAND_COLOR: "#f1f5ff",
|
|
895
|
+
BRAND_SECONDARY_COLOR: "#2752ff",
|
|
896
|
+
n: "BASE",
|
|
897
|
+
t: 20,
|
|
898
|
+
d: "Fetches Base network data via Basescan: native txns, ERC-20 transfers, ERC-721 transfers, and gas metrics.",
|
|
899
|
+
a: "Pulls on-chain activity for Base (chainid 8453) using Basescan’s API — supports full tx history, token/NFT transfers, gas prices, and pagination.",
|
|
900
|
+
p: [{
|
|
901
|
+
name: "type",
|
|
902
|
+
detail: "Data category: 'all-txns' | 'token-txns' | 'nft-txns' | 'gas'.",
|
|
903
|
+
example: '"token-txns"',
|
|
904
|
+
require: "m",
|
|
905
|
+
type: "string"
|
|
906
906
|
}, {
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
907
|
+
name: "chain",
|
|
908
|
+
detail: "Must be 'base'.",
|
|
909
|
+
example: '"base"',
|
|
910
|
+
require: "m",
|
|
911
|
+
type: "string"
|
|
912
912
|
}, {
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
913
|
+
name: "address",
|
|
914
|
+
detail: "Target wallet address (only required for txns, token, and nft queries). Not needed for 'gas'.",
|
|
915
|
+
example: '"0x7FD624f3f97A7dd36195E8379F28dB6147C270ff"',
|
|
916
|
+
require: "o",
|
|
917
|
+
type: "string"
|
|
918
918
|
}, {
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
919
|
+
name: "startDate",
|
|
920
|
+
detail: "Start date (used to resolve block range). Optional, only applies to txns.",
|
|
921
|
+
example: '"01/01/2024"',
|
|
922
|
+
require: "o",
|
|
923
|
+
type: "string"
|
|
924
924
|
}, {
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
925
|
+
name: "endDate",
|
|
926
|
+
detail: "End date (used to resolve block range). Optional, only applies to txns.",
|
|
927
|
+
example: '"07/07/2024"',
|
|
928
|
+
require: "o",
|
|
929
|
+
type: "string"
|
|
930
930
|
}, {
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
931
|
+
name: "page",
|
|
932
|
+
detail: "Page number for paginated results. Only applies to txns/token/nft queries.",
|
|
933
|
+
example: "1",
|
|
934
|
+
require: "o",
|
|
935
|
+
type: "number"
|
|
936
936
|
}, {
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
937
|
+
name: "offset",
|
|
938
|
+
detail: "Number of items per page (limit). Only applies to txns/token/nft queries.",
|
|
939
|
+
example: "2",
|
|
940
|
+
require: "o",
|
|
941
|
+
type: "number"
|
|
942
942
|
}]
|
|
943
943
|
}, {
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
944
|
+
API_KEY: "GNOSIS_API_KEY",
|
|
945
|
+
LOGO: "https://gnosisscan.io/assets/generic/html/favicon-light.ico",
|
|
946
|
+
BRAND_COLOR: "#f6f7f6",
|
|
947
|
+
BRAND_SECONDARY_COLOR: "#133629",
|
|
948
|
+
n: "GNOSIS",
|
|
949
|
+
t: 20,
|
|
950
|
+
d: "Fetches Gnosis Chain data via Gnosisscan: native transactions, ERC-20 token transfers, ERC-721 NFT transfers, and gas metrics.",
|
|
951
|
+
a: "Queries Gnosis Chain (chainid 100) through Gnosisscan’s API to return transaction history, token/NFT transfers, or gas price information. Supports pagination and time-based filtering for transaction types.",
|
|
952
|
+
p: [{
|
|
953
|
+
name: "type",
|
|
954
|
+
detail: "Data category to fetch. Options: 'all-txns', 'token-txns', 'nft-txns', or 'gas'.",
|
|
955
|
+
example: '"nft-txns"',
|
|
956
|
+
require: "m",
|
|
957
|
+
type: "string"
|
|
958
958
|
}, {
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
959
|
+
name: "chain",
|
|
960
|
+
detail: "Must be 'gnosis'.",
|
|
961
|
+
example: '"gnosis"',
|
|
962
|
+
require: "m",
|
|
963
|
+
type: "string"
|
|
964
964
|
}, {
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
965
|
+
name: "address",
|
|
966
|
+
detail: "Wallet address to query. Required for all types except 'gas'.",
|
|
967
|
+
example: '"0x90830Ed558f12D826370DC52E9D87947A7F18De9"',
|
|
968
|
+
require: "o",
|
|
969
|
+
type: "string"
|
|
970
970
|
}, {
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
971
|
+
name: "startDate",
|
|
972
|
+
detail: "Used to resolve starting block for txns.",
|
|
973
|
+
example: '"01/01/2024"',
|
|
974
|
+
require: "o",
|
|
975
|
+
type: "string"
|
|
976
976
|
}, {
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
977
|
+
name: "endDate",
|
|
978
|
+
detail: "Used to resolve ending block for txns.",
|
|
979
|
+
example: '"14/06/2025"',
|
|
980
|
+
require: "o",
|
|
981
|
+
type: "string"
|
|
982
982
|
}, {
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
983
|
+
name: "page",
|
|
984
|
+
detail: "Page number for paginated transaction results. Applies only to 'txns', 'token-txns', and 'nft-txns'.",
|
|
985
|
+
example: '"1"',
|
|
986
|
+
require: "o",
|
|
987
|
+
type: "number"
|
|
988
988
|
}, {
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
989
|
+
name: "offset",
|
|
990
|
+
detail: "Number of results per page (limit). Applies only to 'txns', 'token-txns', and 'nft-txns'.",
|
|
991
|
+
example: '"50"',
|
|
992
|
+
require: "o",
|
|
993
|
+
type: "number"
|
|
994
994
|
}]
|
|
995
995
|
}, {
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
996
|
+
API_KEY: "ETHERSCAN_API_KEY",
|
|
997
|
+
LOGO: "https://etherscan.io/images/favicon3.ico",
|
|
998
|
+
BRAND_COLOR: "#F6F7F8",
|
|
999
|
+
BRAND_SECONDARY_COLOR: "#21325B",
|
|
1000
|
+
n: "ETHERSCAN",
|
|
1001
|
+
t: 20,
|
|
1002
|
+
d: "Returns blockchain transaction history for the given address",
|
|
1003
|
+
a: "Retrieves blockchain data for a given chain and address from Etherscan, including txns, token/nft transfers, and gas metrics.",
|
|
1004
|
+
p: [{
|
|
1005
|
+
name: "type",
|
|
1006
|
+
detail: "The type of data to retrieve. Can be 'all-txns', 'token-txns', 'nft-txns', or 'gas'.",
|
|
1007
|
+
example: '"all-txns"',
|
|
1008
|
+
require: "m",
|
|
1009
|
+
type: "string"
|
|
1010
1010
|
}, {
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1011
|
+
name: "chain",
|
|
1012
|
+
detail: "The chain name (e.g. 'ethereum', 'base', 'gnosis').",
|
|
1013
|
+
example: '"ethereum"',
|
|
1014
|
+
require: "m",
|
|
1015
|
+
type: "string"
|
|
1016
1016
|
}, {
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1017
|
+
name: "address",
|
|
1018
|
+
detail: "Wallet address / Ens name to query",
|
|
1019
|
+
example: '"vitalik.eth"',
|
|
1020
|
+
require: "o",
|
|
1021
|
+
type: "string"
|
|
1022
1022
|
}, {
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1023
|
+
name: "startDate",
|
|
1024
|
+
detail: "Used to filter block range.",
|
|
1025
|
+
example: '"01/01/2024"',
|
|
1026
|
+
require: "o",
|
|
1027
|
+
type: "string"
|
|
1028
1028
|
}, {
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1029
|
+
name: "endDate",
|
|
1030
|
+
detail: "Used to filter block range.",
|
|
1031
|
+
example: '"01/07/2025"',
|
|
1032
|
+
require: "o",
|
|
1033
|
+
type: "string"
|
|
1034
1034
|
}]
|
|
1035
1035
|
}, {
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1036
|
+
API_KEY: "SAFE_API_KEY",
|
|
1037
|
+
LOGO: "https://safe-transaction-mainnet.safe.global/static/safe/favicon.png",
|
|
1038
|
+
BRAND_COLOR: "#ebf9f3",
|
|
1039
|
+
BRAND_SECONDARY_COLOR: "#00B460",
|
|
1040
|
+
n: "SAFE",
|
|
1041
|
+
t: 20,
|
|
1042
|
+
d: "Query the list of transactions performed by a Safe address, with optional pagination.",
|
|
1043
|
+
a: "Query the list of transactions performed by a Safe address, with optional pagination.",
|
|
1044
|
+
p: [{
|
|
1045
|
+
name: "address",
|
|
1046
|
+
detail: "The address to query, in hexadecimal format.",
|
|
1047
|
+
example: '"0xe9A6378d8FD4983C2999DB0735f258397E8C2253"',
|
|
1048
|
+
require: "m"
|
|
1049
1049
|
}, {
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1050
|
+
name: "utility",
|
|
1051
|
+
detail: "The utility to query, supported values: 'txns'.",
|
|
1052
|
+
example: '"txns"',
|
|
1053
|
+
require: "m"
|
|
1054
1054
|
}, {
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1055
|
+
name: "chain",
|
|
1056
|
+
detail: "The chain to query, supported values: 'ethereum', 'gnosis'.",
|
|
1057
|
+
example: '"gnosis"',
|
|
1058
|
+
require: "m"
|
|
1059
1059
|
}, {
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1060
|
+
name: "limit",
|
|
1061
|
+
detail: "The number of transactions to return, default is 100.",
|
|
1062
|
+
example: "10",
|
|
1063
|
+
require: "o",
|
|
1064
|
+
repeat: "n"
|
|
1065
1065
|
}, {
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1066
|
+
name: "offset",
|
|
1067
|
+
detail: "The number of transactions to skip, default is 0.",
|
|
1068
|
+
example: "0",
|
|
1069
|
+
require: "o",
|
|
1070
|
+
repeat: "n"
|
|
1071
1071
|
}]
|
|
1072
1072
|
}, {
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1073
|
+
LOGO: "https://cdn.prod.website-files.com/65f94dfd53db8b337c808067/68485baa72714ae58f350ce2_bs-logo.png",
|
|
1074
|
+
BRAND_COLOR: "#f8f8fd",
|
|
1075
|
+
BRAND_SECONDARY_COLOR: "#5353D3",
|
|
1076
|
+
n: "BLOCKSCOUT",
|
|
1077
|
+
t: 20,
|
|
1078
|
+
d: "Returns the onchain information about an address on a provided blockchain. By default on Ethereum mainnet.",
|
|
1079
|
+
a: "Returns the onchain information about an address on a provided blockchain. By default on Ethereum mainnet.",
|
|
1080
|
+
p: [{
|
|
1081
|
+
name: "address",
|
|
1082
|
+
detail: "The address string representing the addresses to check for balance",
|
|
1083
|
+
example: '"vitalik.eth"',
|
|
1084
|
+
require: "m",
|
|
1085
|
+
type: "string"
|
|
1086
1086
|
}, {
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1087
|
+
name: "type",
|
|
1088
|
+
detail: "The type of data to query.",
|
|
1089
|
+
example: '"txns"',
|
|
1090
|
+
require: "m",
|
|
1091
|
+
type: "string"
|
|
1092
1092
|
}, {
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1093
|
+
name: "chain",
|
|
1094
|
+
detail: "The blockchain to query. By default on Ethereum mainnet.",
|
|
1095
|
+
example: '"ethereum"',
|
|
1096
|
+
require: "o",
|
|
1097
|
+
type: "string"
|
|
1098
1098
|
}, {
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1099
|
+
name: "startTimestamp",
|
|
1100
|
+
detail: 'Start date marking the start of the transaction search range. Work with type === "txns"',
|
|
1101
|
+
example: '"01/01/2023"',
|
|
1102
|
+
require: "o",
|
|
1103
|
+
type: "string"
|
|
1104
1104
|
}, {
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1105
|
+
name: "endTimestamp",
|
|
1106
|
+
detail: 'End date marking the end of the transaction search range. Work with type === "txns"',
|
|
1107
|
+
example: '"01/05/2024"',
|
|
1108
|
+
require: "o",
|
|
1109
|
+
type: "string"
|
|
1110
1110
|
}, {
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1111
|
+
name: "page",
|
|
1112
|
+
detail: 'The page number to return. Work with type === "txns"',
|
|
1113
|
+
example: "1",
|
|
1114
|
+
require: "o",
|
|
1115
|
+
repeat: "n",
|
|
1116
|
+
type: "rangenumber"
|
|
1117
1117
|
}, {
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1118
|
+
name: "offset",
|
|
1119
|
+
detail: 'The number of transactions to return per page. Work with type === "txns"',
|
|
1120
|
+
example: "2",
|
|
1121
|
+
require: "o",
|
|
1122
|
+
repeat: "n",
|
|
1123
|
+
type: "rangenumber"
|
|
1124
1124
|
}]
|
|
1125
1125
|
}];
|
|
1126
1126
|
|
|
@@ -1129,12 +1129,12 @@ var FormulaSearch = function FormulaSearch(props) {
|
|
|
1129
1129
|
var _useContext = useContext(WorkbookContext),
|
|
1130
1130
|
context = _useContext.context,
|
|
1131
1131
|
isAuthorized = _useContext.settings.isAuthorized;
|
|
1132
|
-
var authedFunction = [
|
|
1132
|
+
var authedFunction = ["COINGECKO", "ETHERSCAN", "DEFILLAMA", "GNOSIS", "BASE", "EOA", "PNL", "SAFE", "BLOCKSCOUT", "GNOSIS", "LENS", "FARCASTER", "Ethereum"];
|
|
1133
1133
|
var filteredDefaultCandidates = context.defaultCandidates.filter(function (item) {
|
|
1134
1134
|
return !authedFunction.includes(item.n);
|
|
1135
1135
|
});
|
|
1136
1136
|
var unfilteredDefaultCandidates = UNFilter.filter(function (item) {
|
|
1137
|
-
return item.n !==
|
|
1137
|
+
return item.n !== "PNL";
|
|
1138
1138
|
});
|
|
1139
1139
|
var finalDefaultCandidates = !isAuthorized ? filteredDefaultCandidates : context.defaultCandidates.slice(0, 10);
|
|
1140
1140
|
var finalFunctionCandidates = isAuthorized ? context.functionCandidates : context.functionCandidates.filter(function (item) {
|
|
@@ -1177,20 +1177,17 @@ var FormulaSearch = function FormulaSearch(props) {
|
|
|
1177
1177
|
className: "text-helper-sm-bold color-text-secondary"
|
|
1178
1178
|
}, "Onchain functions"), /*#__PURE__*/React.createElement("p", {
|
|
1179
1179
|
className: "text-helper-text-sm color-text-secondary"
|
|
1180
|
-
}, "
|
|
1180
|
+
}, "Every onchain function is a native data structure allowing dSheets to read and structure data from smart contracts and APIs.")), !isAuthorized && (/*#__PURE__*/React.createElement("div", {
|
|
1181
1181
|
style: {
|
|
1182
1182
|
marginBottom: "8px",
|
|
1183
1183
|
backgroundColor: "#F8F9FA"
|
|
1184
1184
|
},
|
|
1185
1185
|
className: "w-full flex flex-col p-2 gap-1"
|
|
1186
1186
|
}, /*#__PURE__*/React.createElement("h4", {
|
|
1187
|
-
className: "
|
|
1188
|
-
style: {
|
|
1189
|
-
fontWeight: "bold"
|
|
1190
|
-
}
|
|
1187
|
+
className: "font-semibold"
|
|
1191
1188
|
}, "dSheets account required"), /*#__PURE__*/React.createElement("p", {
|
|
1192
1189
|
className: "text-helper-text-sm color-text-secondary"
|
|
1193
|
-
}, "Use more onchain functions by creating a dSheets account. ", /*#__PURE__*/React.createElement("span", {
|
|
1190
|
+
}, "Use more onchain functions by creating a dSheets account.", " ", /*#__PURE__*/React.createElement("span", {
|
|
1194
1191
|
className: "sign-fortune",
|
|
1195
1192
|
style: {
|
|
1196
1193
|
color: "#5C0AFF",
|
|
@@ -1200,13 +1197,14 @@ var FormulaSearch = function FormulaSearch(props) {
|
|
|
1200
1197
|
var _document$getElementB;
|
|
1201
1198
|
e.stopPropagation();
|
|
1202
1199
|
e.preventDefault();
|
|
1203
|
-
console.log(
|
|
1204
|
-
(_document$getElementB = document.getElementById(
|
|
1200
|
+
console.log("click");
|
|
1201
|
+
(_document$getElementB = document.getElementById("triggerAuth")) === null || _document$getElementB === void 0 ? void 0 : _document$getElementB.click();
|
|
1205
1202
|
}
|
|
1206
1203
|
}, "Signup/Login")), /*#__PURE__*/React.createElement("div", {
|
|
1207
1204
|
className: "flex gap-2 mt-2 mb-2"
|
|
1208
1205
|
}, unfilteredDefaultCandidates.map(function (v, index) {
|
|
1209
1206
|
return /*#__PURE__*/React.createElement("img", {
|
|
1207
|
+
key: index,
|
|
1210
1208
|
src: v.LOGO,
|
|
1211
1209
|
alt: "Service Logo",
|
|
1212
1210
|
style: {
|
|
@@ -1214,7 +1212,7 @@ var FormulaSearch = function FormulaSearch(props) {
|
|
|
1214
1212
|
height: "16px"
|
|
1215
1213
|
}
|
|
1216
1214
|
});
|
|
1217
|
-
}))))), context.defaultCandidates.length > 0 ? (/*#__PURE__*/React.createElement(React.Fragment, null, finalDefaultCandidates.map(function (v, index) {
|
|
1215
|
+
})))))), context.defaultCandidates.length > 0 ? (/*#__PURE__*/React.createElement(React.Fragment, null, finalDefaultCandidates.map(function (v, index) {
|
|
1218
1216
|
return /*#__PURE__*/React.createElement("div", {
|
|
1219
1217
|
key: v.n,
|
|
1220
1218
|
"data-func": v.n,
|
|
@@ -1321,7 +1319,7 @@ var FormulaSearch = function FormulaSearch(props) {
|
|
|
1321
1319
|
})))))), /*#__PURE__*/React.createElement("div", {
|
|
1322
1320
|
className: "luckysheet-formula-search-detail mt-1 text-helper-text-sm color-text-secondary"
|
|
1323
1321
|
}, v.d));
|
|
1324
|
-
}), finalFunctionCandidates.length === 0 && (/*#__PURE__*/React.createElement(
|
|
1322
|
+
}), finalFunctionCandidates.length === 0 && (/*#__PURE__*/React.createElement("span", null, !isAuthorized && (/*#__PURE__*/React.createElement("div", {
|
|
1325
1323
|
style: {
|
|
1326
1324
|
marginBottom: "8px",
|
|
1327
1325
|
backgroundColor: "#F8F9FA"
|
|
@@ -1334,7 +1332,7 @@ var FormulaSearch = function FormulaSearch(props) {
|
|
|
1334
1332
|
}
|
|
1335
1333
|
}, "dSheets account required"), /*#__PURE__*/React.createElement("p", {
|
|
1336
1334
|
className: "text-helper-text-sm color-text-secondary"
|
|
1337
|
-
}, "Use more onchain functions by creating a dSheets account. ", /*#__PURE__*/React.createElement("span", {
|
|
1335
|
+
}, "Use more onchain functions by creating a dSheets account.", " ", /*#__PURE__*/React.createElement("span", {
|
|
1338
1336
|
className: "sign-fortune",
|
|
1339
1337
|
style: {
|
|
1340
1338
|
color: "#5C0AFF",
|
|
@@ -1344,13 +1342,14 @@ var FormulaSearch = function FormulaSearch(props) {
|
|
|
1344
1342
|
var _document$getElementB2;
|
|
1345
1343
|
e.stopPropagation();
|
|
1346
1344
|
e.preventDefault();
|
|
1347
|
-
console.log(
|
|
1348
|
-
(_document$getElementB2 = document.getElementById(
|
|
1345
|
+
console.log("click");
|
|
1346
|
+
(_document$getElementB2 = document.getElementById("triggerAuth")) === null || _document$getElementB2 === void 0 ? void 0 : _document$getElementB2.click();
|
|
1349
1347
|
}
|
|
1350
1348
|
}, "Signup/Login")), /*#__PURE__*/React.createElement("div", {
|
|
1351
1349
|
className: "flex gap-2 mt-2 mb-2"
|
|
1352
1350
|
}, unfilteredDefaultCandidates.map(function (v, index) {
|
|
1353
1351
|
return /*#__PURE__*/React.createElement("img", {
|
|
1352
|
+
key: index,
|
|
1354
1353
|
src: v.LOGO,
|
|
1355
1354
|
alt: "Service Logo",
|
|
1356
1355
|
style: {
|
|
@@ -1358,7 +1357,7 @@ var FormulaSearch = function FormulaSearch(props) {
|
|
|
1358
1357
|
height: "16px"
|
|
1359
1358
|
}
|
|
1360
1359
|
});
|
|
1361
|
-
}))))))), /*#__PURE__*/React.createElement("hr", {
|
|
1360
|
+
})))))))), /*#__PURE__*/React.createElement("hr", {
|
|
1362
1361
|
className: "color-border-default mb-2 mt-4 "
|
|
1363
1362
|
}), /*#__PURE__*/React.createElement("div", {
|
|
1364
1363
|
style: {
|