Skip to content

Commit 716af4e

Browse files
author
Luís Assunção
committed
chore: update framework wrappers to use NPM package imports and bump version to 1.1.11
1 parent 6eace52 commit 716af4e

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"jquery-dynatable"
1818
],
1919
"type": "module",
20-
"version": "1.1.10",
20+
"version": "1.1.11",
2121
"name": "snap-records",
2222
"dependencies": {
2323
"dexie": "^4.0.11",

wrappers/SnapRecords.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<script lang="ts" generic="T extends Identifiable">
22
33
import { onMount } from 'svelte';
4-
import { SnapRecords } from './SnapRecords'; // Adjust path as needed
5-
import type { SnapRecordsOptions, Identifiable, ISnapApi } from './SnapTypes'; // Adjust path as needed
4+
import { SnapRecords } from 'snap-records';
5+
import type { SnapRecordsOptions, Identifiable, ISnapApi } from 'snap-records';
66
77
// Use $props() to declare component properties in Svelte 5.
88
const { options, onReady = () => {} } = $props<{

wrappers/SnapRecordsReact.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { useRef, useEffect, useId } from 'react';
2-
import { SnapRecords } from './SnapRecords'; // Adjust path as needed
3-
import { SnapRecordsOptions, Identifiable, ISnapApi } from './SnapTypes'; // Adjust path as needed
2+
import { SnapRecords } from 'snap-records';
3+
import { SnapRecordsOptions, Identifiable, ISnapApi } from 'snap-records';
44

55
// Make the wrapper generic to pass down the data type T
66
interface SnapRecordsReactProps<T extends Identifiable> {

wrappers/SnapRecordsVue.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
</template>
44

55
<script setup lang="ts" generic="T extends Identifiable">
6-
import { SnapRecords } from './SnapRecords'; // Adjust path as needed
6+
import { SnapRecords } from 'snap-records';
77
import { ref, onMounted, onUnmounted, watch, computed } from 'vue';
8-
import { SnapRecordsOptions, Identifiable, ISnapApi } from './SnapTypes'; // Adjust path as needed
8+
import { SnapRecordsOptions, Identifiable, ISnapApi } from 'snap-records';
99
1010
// Define component props
1111
const props = defineProps<{

wrappers/snap-records.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import {
1010
Output,
1111
EventEmitter
1212
} from '@angular/core';
13-
import { SnapRecords } from './SnapRecords'; // Adjust path as needed
14-
import { SnapRecordsOptions, Identifiable, ISnapApi } from './SnapTypes'; // Adjust path as needed
13+
import { SnapRecords } from 'snap-records';
14+
import { SnapRecordsOptions, Identifiable, ISnapApi } from 'snap-records';
1515

1616
@Component({
1717
selector: 'snap-records-wrapper',

0 commit comments

Comments
 (0)