# Copyright 2023 The Chromium Authors # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import("//ui/webui/resources/tools/build_webui.gni") assert(!is_android) build_webui("build") { grd_prefix = "side_panel_commerce" static_files = [ "shopping_insights.html" ] ts_files = [ "app.html.ts", "app.ts", "catalog_attributes_row.html.ts", "catalog_attributes_row.ts", "history_graph.html.ts", "history_graph.ts", "insights_comment_row.html.ts", "insights_comment_row.ts", "price_insights_browser_proxy.ts", "price_tracking_section.html.ts", "price_tracking_section.ts", ] css_files = [ "app.css", "catalog_attributes_row.css", "history_graph.css", "insights_comment_row.css", "price_tracking_section.css", ] mojo_files_deps = [ "//components/commerce/core/mojom:mojo_bindings_ts__generator" ] mojo_files = [ "$root_gen_dir/components/commerce/core/mojom/price_insights.mojom-webui.ts", "$root_gen_dir/components/commerce/core/mojom/price_tracking.mojom-webui.ts", "$root_gen_dir/components/commerce/core/mojom/shared.mojom-webui.ts", ] ts_composite = true ts_definitions = [ "//tools/typescript/definitions/metrics_private.d.ts" ] ts_deps = [ "../shared:build_ts", "//third_party/d3:library", "//third_party/lit/v3_0:build_ts", "//ui/webui/resources/cr_components/color_change_listener:build_ts", "//ui/webui/resources/cr_components/commerce:build_ts", "//ui/webui/resources/cr_elements:build_ts", "//ui/webui/resources/js:build_ts", "//ui/webui/resources/mojo:build_ts", ] ts_tsconfig_base = "tsconfig_base.json" ts_path_mappings = [ "//shopping-insights-side-panel.top-chrome/shared/*|" + rebase_path( "$root_gen_dir/chrome/browser/resources/side_panel/shared/tsc/*", target_gen_dir) ] webui_context_type = "trusted" }