mortgage-calculator-package 1.0.2 → 2.0.0

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.
@@ -0,0 +1,3 @@
1
+ <svg width="11" height="7" viewBox="0 0 11 7" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M5.47106 6.17456C5.37341 6.17512 5.27661 6.1564 5.1862 6.11947C5.0958 6.08254 5.01357 6.02813 4.94424 5.95937L0.492205 1.50734C0.352482 1.36762 0.273987 1.17811 0.273987 0.980517C0.273987 0.782924 0.352482 0.59342 0.492205 0.453697C0.631927 0.313975 0.821431 0.235474 1.01903 0.235474C1.21663 0.235474 1.40613 0.313975 1.54585 0.453697L5.47106 4.38632L9.39628 0.461106C9.53822 0.33955 9.72081 0.276027 9.90756 0.283239C10.0943 0.29045 10.2714 0.367864 10.4036 0.499986C10.5357 0.632107 10.6132 0.809253 10.6204 0.996009C10.6276 1.18276 10.5641 1.36534 10.4425 1.50734L5.99047 5.95937C5.85226 6.09645 5.66572 6.17374 5.47106 6.17456Z" fill="#FFFFFF"/>
3
+ </svg>
@@ -1 +1 @@
1
- export declare function calculateMortgage(principal: number, interestRate: number, amortizationYears: number, paymentFrequency: string): number;
1
+ export declare function initCalculator(container: HTMLElement, applyUrl: string): void;
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="#808080">
2
+ <polygon points="5,3 19,12 5,21"></polygon>
3
+ </svg>
package/dist/faqs.d.ts ADDED
@@ -0,0 +1 @@
1
+ export declare function initFaqs(container: HTMLElement): void;
@@ -0,0 +1,2 @@
1
+ import type { Firestore } from "firebase/firestore";
2
+ export declare function getFirestoreInstance(): Promise<Firestore>;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,10 @@
1
1
  import './styles.scss';
2
- export declare function init(options: {
2
+ interface InitParams {
3
3
  containerId: string;
4
- }): void;
4
+ product: "calculator" | "market-trend-videos" | "faqs" | "research-articles";
5
+ options?: {
6
+ applyUrl?: string;
7
+ };
8
+ }
9
+ export declare function init(initParams: InitParams): void;
10
+ export {};
package/dist/index.html CHANGED
@@ -1,5 +1,9 @@
1
1
  <!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Mortgage Calculator Test</title><script defer="defer" src="index.js"></script><link href="styles.css" rel="stylesheet"></head><body><div id="mortgage-calculator-container"></div><script>window.addEventListener('DOMContentLoaded', () => {
2
2
  MortgageCalculator.init({
3
- containerId: 'mortgage-calculator-container',
3
+ containerId: "mortgage-calculator-container",
4
+ product: "market-trend-videos",
5
+ // options: {
6
+ // applyUrl: 'https://staging.kreateable.com/template-canvas',
7
+ // },
4
8
  });
5
9
  });</script></body></html>